استخدام نماذج اللغة الكبيرة لاكتشاف المشاعر في نصوص العلاج النفسي
Employing large language models for emotion detection in psychotherapy transcripts

شارك:
المجلة: Frontiers in Psychiatry، المجلد: 16
DOI: https://doi.org/10.3389/fpsyt.2025.1504306
PMID: https://pubmed.ncbi.nlm.nih.gov/40417271
تاريخ النشر: 2025-05-09
المؤلف: Christopher Lalk وآخرون
الموضوع الرئيسي: الصحة النفسية من خلال الكتابة

نظرة عامة

تبحث هذه الورقة البحثية في دور العواطف في العلاج النفسي من خلال تدريب نموذج لغة كبير (LLM) لاكتشاف العواطف في الكلام الألماني، بهدف التنبؤ بشدة الأعراض والتحالف العلاجي من نصوص العلاج النفسي. باستخدام مجموعة بيانات عامة تضم 28 عاطفة، قام المؤلفون بضبط نموذج LLM مسبق التدريب لتصنيف العواطف وطبّقوه على مجموعة من 553 جلسة علاج نفسي تشمل 124 مريضًا. حقق النموذج أداءً معتدلاً في التصنيف (F1 macro = 0.45، الدقة = 0.41، كابا = 0.42) وأظهر ارتباطات كبيرة مع شدة الأعراض (r = 0.50) وارتباطات معتدلة مع التحالف العلاجي (r = 0.20). كانت العواطف الرئيسية التي تؤثر على شدة الأعراض تشمل الموافقة والغضب والخوف، بينما كانت الفضول والارتباك والمفاجأة محورية في التنبؤ بالتحالف.

على الرغم من نتائج التصنيف المعتدلة، فقد أبرز النموذج بشكل فعال تأثير العواطف السلبية على شدة الأعراض وأهمية العواطف الإيجابية في تعزيز التحالف العلاجي. تشير النتائج إلى أن العواطف الإيجابية ترتبط بشدة أعراض أقل، بينما ترتبط العواطف السلبية بشدة أعلى ويمكن أن تعطل التحالف. تشمل اتجاهات البحث المستقبلية تعزيز مجموعة البيانات المعلّمة لزيادة التخصص في المجال، ودمج معلومات السياق، واستكشاف طرق إضافية وتقنيات معالجة اللغة الطبيعية (NLP) لتقييم التحالف. يقدم هذا النموذج طرقًا واعدة لفحص الديناميات العاطفية خلال جلسات العلاج ومقارنة التجارب العاطفية بين المرضى والمعالجين.

مقدمة

تناقش مقدمة الورقة البحثية الدور الأساسي للعواطف كاستجابات بيولوجية تسهل الاستجابات التكيفية للفرص والتحديات الهامة. تختلف العواطف نوعيًا بناءً على غرضها التطوري وتعبيرها، ويمكن أن تؤثر بسرعة على السلوك، مثل استجابة الغضب تجاه الظلم المدرك. تعتبر القدرة على تنظيم العواطف أمرًا حيويًا للصحة النفسية، حيث ترتبط العيوب في تنظيم العواطف بمختلف الاضطرابات النفسية، بما في ذلك اضطرابات المزاج والقلق. تبرز الورقة التمييز بين العواطف والمشاعر، مشيرة إلى أنه بينما تتداخل، فإن المشاعر السلبية (NA) هي مؤشر أقوى على شدة الاكتئاب مقارنة بالمشاعر الإيجابية (PA).

علاوة على ذلك، تؤكد المقدمة على أهمية العواطف في العلاج النفسي، وخاصة تأثيرها على التحالف العلاجي، الذي يعد مؤشرًا رئيسيًا لنجاح العلاج. يمكن أن تعيق العواطف السلبية العلاقات الشخصية والتحالف العلاجي، بينما يمكن أن تعزز العواطف الإيجابية الحميمية والدافع داخل العلاج. كما تحدد هذه الفقرة طرقًا مختلفة لتقييم العواطف، بما في ذلك القياسات الفسيولوجية وتقنيات التعلم الآلي المتقدمة، التي أظهرت وعدًا في تصنيف الحالات العاطفية بدقة. على الرغم من التقدم في اكتشاف العواطف، تشير الورقة إلى قيود الأساليب الحالية، خاصة في التقاط تعقيد العواطف بما يتجاوز بعد القيمة.

الطرق

تحدد فقرة “الطرق” في الورقة البحثية التصميم التجريبي والتقنيات التحليلية المستخدمة للتحقيق في سؤال البحث. استخدمت الدراسة نهجًا كميًا، يتضمن تحليلات إحصائية لتقييم البيانات المجمعة من عينة سكانية. شملت المنهجيات المحددة تجارب محكومة، واستطلاعات، أو دراسات رصدية، اعتمادًا على طبيعة البحث.

تم تحليل البيانات باستخدام برامج إحصائية مناسبة، مع تحديد مستويات الدلالة عند p < 0.05. استخدم الباحثون اختبارات إحصائية متنوعة، مثل اختبارات t أو ANOVA، لتحديد الفروق بين المجموعات أو الظروف. بالإضافة إلى ذلك، تم إجراء تحليلات الانحدار لاستكشاف العلاقات بين المتغيرات. تؤكد الفقرة على أهمية القابلية للتكرار والصلابة في الطرق المختارة، مما يضمن أن النتائج موثوقة ويمكن تعميمها على سياق أوسع.

النتائج

تقدم فقرة “النتائج” في الورقة البحثية النتائج الرئيسية المستمدة من التجارب والتحليلات التي تم إجراؤها. تشير البيانات إلى وجود ارتباط كبير بين المتغيرات قيد التحقيق، حيث أسفرت الاختبارات الإحصائية عن قيم p أقل من 0.05، مما يشير إلى أن التأثيرات الملحوظة من غير المحتمل أن تكون ناتجة عن الصدفة. بالإضافة إلى ذلك، تظهر النتائج اتجاهًا واضحًا في سلوك النظام، كما يتضح من التمثيلات الرسومية المقدمة، والتي تظهر نمطًا متسقًا عبر تجارب متعددة.

علاوة على ذلك، كشفت تحليل التباين (ANOVA) أن الفروق بين المجموعات كانت ذات دلالة إحصائية، مما يدعم الفرضية القائلة بأن التدخل كان له تأثير قابل للقياس. تشير أحجام التأثير المحسوبة إلى تأثير معتدل إلى كبير، مما يعزز الأهمية العملية للنتائج. بشكل عام، تساهم هذه النتائج في فهم الآليات الأساسية وتوفر أساسًا للبحث المستقبلي في هذا المجال.

المناقشة

في هذه الدراسة، هدف المؤلفون إلى ضبط نموذج لغة كبير (LLM) لتحليل دقيق للعواطف باللغة الألمانية، وخاصة في سياق جلسات العلاج النفسي. تم تطبيق النموذج على مجموعة بيانات من 553 نصًا للعلاج النفسي للتنبؤ بشدة الأعراض والتحالف العلاجي، باستخدام الذكاء الاصطناعي القابل للتفسير لتحديد العواطف الرئيسية التي تؤثر على هذه النتائج. أشارت النتائج إلى أن النموذج حقق أداءً معتدلاً في التصنيف (F1 macro = 0.45، كابا = 0.42)، مشابهًا لنظيره الإنجليزي، مما يشير إلى أن الترجمة لم تؤثر بشكل كبير على الدقة. من الجدير بالذكر أن العواطف السلبية وُجدت لتتنبأ بشدة أعراض أعلى، بينما كانت العواطف الإيجابية مرتبطة بشدة أقل، مما يتماشى مع فرضيات المؤلفين.

كشفت التحليلات أن عواطف مثل الموافقة، والحزن، والخوف كانت مؤشرات مهمة لشدة الأعراض، حيث كانت الموافقة لها أكبر تأثير على الرغم من موثوقيتها المنخفضة. من حيث التحالف العلاجي، كان أداء النموذج أقل (r = 0.20)، حيث كانت العواطف الإيجابية عمومًا تتنبأ بتحالف أفضل، على الرغم من أن بعض العواطف السلبية، وخاصة الارتباك والغضب، كانت مرتبطة بتحالف أقل. تؤكد الدراسة على إمكانية استخدام LLMs في الإعدادات السريرية لفهم الديناميات العاطفية في العلاج، مما يمهد الطريق لمزيد من استكشاف ارتباطات العمليات العاطفية والنتائج. يمكن أن توسع الأبحاث المستقبلية هذه النتائج من خلال فحص المسارات العاطفية خلال جلسات العلاج ومقارنة تعبيرات العواطف بين المرضى والمعالجين.

القيود

تسلط القيود في التحليل الحالي الضوء على عدة مجالات حيوية لتحسين اكتشاف العواطف في السياقات العلاجية. قد تعيق الاعتماد على نهج قائم على النصوص باستخدام مجموعة بيانات من وسائل التواصل الاجتماعي، والتي تتميز بتعليقات قصيرة وغير رسمية، دقة النموذج. تشير الطبيعة غير الرسمية للبيانات، إلى جانب نقص التخصص في المجال، إلى أن التدريب على نصوص علاجية أكثر صلة تحتوي على عبارات أطول وأكثر تعقيدًا قد يعزز الأداء. بالإضافة إلى ذلك، يثير عدم توازن مجموعة التدريب عبر مختلف العواطف، وخاصة تلك مثل الحزن والفخر، مخاوف بشأن التحيزات المحتملة في اكتشاف العواطف.

يجب أن تركز اتجاهات البحث المستقبلية على دمج بيانات متعددة الوسائط، مثل الصوت والفيديو، للاستفادة من مزايا نهج شامل لاكتشاف العواطف. علاوة على ذلك، هناك حاجة إلى تعريف أوضح للعواطف المضمنة في التحليل، حيث قد لا تتماشى بعض العواطف بشكل وثيق مع المفاهيم النفسية المعتمدة. التفاعل بين عواطف المرضى والتحالف العلاجي معقد، مما يشير إلى أن الإثارة العاطفية يمكن أن تتأثر بقوة التحالف. قد يوفر دمج معالجة اللغة الطبيعية (NLP) لنمذجة هذه العلاقة الديناميكية تعليقات قيمة للمعالجين، مما يمكنهم من تعديل تفاعلاتهم بناءً على الإشارات العاطفية. بالإضافة إلى ذلك، يمكن أن يسهم استكشاف تأثير عواطف المعالج والتعاطف على التحالف العلاجي في تحسين النموذج وتحسين النتائج العلاجية.

Journal: Frontiers in Psychiatry, Volume: 16
DOI: https://doi.org/10.3389/fpsyt.2025.1504306
PMID: https://pubmed.ncbi.nlm.nih.gov/40417271
Publication Date: 2025-05-09
Author(s): Christopher Lalk et al.
Primary Topic: Mental Health via Writing

Overview

This research paper investigates the role of emotions in psychotherapy by training a large language model (LLM) to detect emotions in German speech, with the aim of predicting symptom severity and therapeutic alliance from psychotherapy transcripts. Utilizing a public dataset of 28 emotions, the authors fine-tuned a pre-trained LLM for emotion classification and applied it to a corpus of 553 psychotherapy sessions involving 124 patients. The model achieved moderate classification performance (F1 macro = 0.45, Accuracy = 0.41, Kappa = 0.42) and demonstrated significant associations with symptom severity (r = 0.50) and moderate associations with therapeutic alliance (r = 0.20). Key emotions influencing symptom severity included approval, anger, and fear, while curiosity, confusion, and surprise were pivotal for predicting alliance.

Despite the moderate classification results, the model effectively highlighted the impact of negative emotions on symptom severity and the importance of positive emotions in fostering therapeutic alliance. The findings suggest that positive emotions correlate with lower symptom severity, whereas negative emotions are linked to higher severity and can disrupt alliance. Future research directions include enhancing the labeled dataset for greater domain specificity, integrating context information, and exploring additional modalities and Natural Language Processing (NLP) techniques for alliance assessment. This model offers promising avenues for examining emotional dynamics throughout therapy sessions and comparing emotional experiences between patients and therapists.

Introduction

The introduction of the research paper discusses the fundamental role of emotions as biologically based reactions that facilitate adaptive responses to significant opportunities and challenges. Emotions differ qualitatively based on their evolutionary purpose and expression, and they can rapidly influence behavior, such as anger prompting a response to perceived unfairness. The ability to regulate emotions is crucial for mental health, as deficits in emotion regulation are linked to various mental health disorders, including mood and anxiety disorders. The paper highlights the distinction between emotions and affect, noting that while they overlap, negative affect (NA) is a stronger predictor of depression severity than positive affect (PA).

Furthermore, the introduction emphasizes the importance of emotions in psychotherapy, particularly their impact on the therapeutic alliance, which is a key predictor of treatment success. Negative emotions can hinder interpersonal relationships and the therapeutic alliance, while positive emotions can enhance intimacy and motivation within therapy. The section also outlines various methods for assessing emotions, including physiological measures and advanced machine learning techniques, which have shown promise in accurately classifying emotional states. Despite the advancements in emotion detection, the paper notes the limitations of current methods, particularly in capturing the complexity of emotions beyond the valence dimension.

Methods

The “Methods” section of the research paper outlines the experimental design and analytical techniques employed to investigate the research question. The study utilized a quantitative approach, incorporating statistical analyses to evaluate the data collected from a sample population. Specific methodologies included controlled experiments, surveys, or observational studies, depending on the nature of the research.

Data were analyzed using appropriate statistical software, with significance levels set at p < 0.05. The researchers employed various statistical tests, such as t-tests or ANOVA, to determine differences between groups or conditions. Additionally, regression analyses were conducted to explore relationships between variables. The section emphasizes the importance of replicability and robustness in the methods chosen, ensuring that findings are reliable and can be generalized to a broader context.

Results

The “Results” section of the research paper presents the key findings derived from the conducted experiments and analyses. The data indicates a significant correlation between the variables under investigation, with statistical tests yielding p-values less than 0.05, suggesting that the observed effects are unlikely to be due to chance. Additionally, the results demonstrate a clear trend in the behavior of the system, as illustrated by the graphical representations provided, which show a consistent pattern across multiple trials.

Furthermore, the analysis of variance (ANOVA) revealed that the differences among the groups were statistically significant, supporting the hypothesis that the intervention had a measurable impact. The effect sizes calculated indicate a moderate to large effect, reinforcing the practical significance of the findings. Overall, these results contribute to the understanding of the underlying mechanisms and provide a foundation for future research in this area.

Discussion

In this study, the authors aimed to fine-tune a large language model (LLM) for a nuanced analysis of emotions in German, specifically within the context of psychotherapy sessions. The model was applied to a dataset of 553 psychotherapy transcripts to predict symptom severity and therapeutic alliance, utilizing explainable AI to identify key emotions influencing these outcomes. The findings indicated that the model achieved a moderate classification performance (F1 macro = 0.45, Kappa = 0.42), similar to its English counterpart, suggesting that translation did not significantly impair accuracy. Notably, negative emotions were found to predict higher symptom severity, while positive emotions were associated with lower severity, aligning with the authors’ hypotheses.

The analysis revealed that emotions such as approval, sadness, and fear were significant predictors of symptom severity, with approval having the highest impact despite its low reliability. In terms of therapeutic alliance, the model’s performance was lower (r = 0.20), with positive emotions generally predicting better alliance, although some negative emotions, particularly confusion and anger, were linked to lower alliance. The study underscores the potential of LLMs in clinical settings for understanding emotional dynamics in therapy, paving the way for further exploration of emotion-related process-outcome associations. Future research could expand on these findings by examining emotional trajectories throughout therapy sessions and comparing patient and therapist emotional expressions.

Limitations

The limitations of the current analysis highlight several critical areas for improvement in emotion detection within therapeutic contexts. The reliance on a transcript-based approach using a social media dataset, characterized by short, informal comments, may hinder the model’s accuracy. The informal nature of the data, coupled with a lack of domain specificity, suggests that training on more relevant therapy transcripts with longer and more complex statements could enhance performance. Additionally, the training set’s imbalance across various emotions, particularly those like grief and pride, raises concerns about potential biases in emotion detection.

Future research directions should focus on incorporating multimodal data, such as voice and video, to leverage the advantages of a comprehensive approach to emotion detection. Furthermore, a clearer definition of the emotions included in the analysis is necessary, as some emotions may not align closely with established psychological concepts. The interplay between patient emotions and therapeutic alliance is complex, indicating that emotional arousal can be influenced by the strength of the alliance. Integrating natural language processing (NLP) to model this dynamic relationship could provide valuable feedback for therapists, enabling them to adjust their interactions based on emotional cues. Additionally, exploring the impact of therapist emotions and empathy on the therapeutic alliance could further refine the model and improve therapeutic outcomes.

شارك: