1. Introduction
In the Republic of Korea, the 2021 National Mental Health Survey reported a lifetime prevalence of any mental disorder of 27.8% and a 12-month prevalence of 8.5%, while suicide remained the leading cause of death among individuals aged 10–39 years. Despite the rapid expansion of Korean community mental health infrastructure, as shown by the 261 community mental health welfare centers as of 2023, standardized screening questionnaires such as the PHQ-9, GAD-7, and AUDIT mitigate this crisis in part, but their single-disorder design and reliance on self-reports limit detection of comorbid presentations. This study therefore focuses on an automated approach for jointly screening depression, anxiety, and substance use disorder from real-world counseling transcripts.
Mental health problems not only seriously reduce the quality of life of individuals, but also bring enormous social and economic costs, and depression, anxiety disorders, and substance use disorders worldwide have been pointed out as major factors that increase the Global Burden of Disease [
1]. In actual clinical and psychological consultation sites, clients often appear with a combination of depression, anxiety, or anxiety and substance/behavioral dependence (comorbidity) rather than complaining of only a single symptom [
2]. In addition, as counseling progresses, changes occur to narrative characteristics that can be seen as the center of the major symptoms that the client complains about. Since aspects that occur with multiple mental illness risk signals cannot be evaluated comprehensively by single-disease binomial classification alone, a multi-label-based detection approach is required [
3].
Nevertheless, since clinical field consultation records are accumulated in the form of long texts in which hundreds of utterances are exchanged, it is practically difficult for counselors to systematically grasp and evaluate various risk signals scattered in a conversation within a limited time. Therefore, there is a growing need for a system that automatically detects hidden clinical risk signals in text using natural language processing (NLP) technology to help counselors make decisions [
4,
5]. Traditional mental health-related text classification studies have mainly focused on classifying single diseases, including relatively short texts such as social media (SNS) posts, short questionnaire responses, and summarized electronic medical records (EHRs). However, there is a clear interaction between speakers in psychological counseling transcripts, and the overall conversation flow itself has its own characteristics that serve as major clues to the disease [
6].
In recent years, in the field of deep learning, artificial neural network architectures in combination with attention mechanisms have demonstrated outstanding performance in text classification and emotional analysis. In the case of long and complex texts, such as psychological counseling conversations, a two-way long and short-term memory (BiLSTM) structure that can simultaneously learn the context of the past and the future and accurately grasp the semantic network before and after an utterance is effective [
7]. However, if the entire consultation record, consisting of hundreds of utterances, is treated as a single planar sequence, the model inevitably faces a long-term dependency problem and experiences information loss where critical clinical clues are diluted [
8].
To overcome the structural limitations of long document processing, this study introduced a hierarchical attention network (HAN) that mimics the intrinsic hierarchy of documents [
9]. The counseling text has a clear hierarchical structure in which words (words) gather to form an utterance, and these utterances intersect to form an entire session. The proposed HAN-BiLSTM model applies an independent attention mechanism to each word level and utterance level to focus its weight on specific utterances and words, including risk signals such as depression and dependence, in the entire conversation. This serves as the basis for maximizing classification performance in long-term clinical dialog analysis with uneven information density, as well as providing the model’s internal interpretability (Interpretability) [
10].
In addition, in order for artificial intelligence models to be introduced into medical and counseling practices, explanatory possibilities that can overcome the limitations of black boxes and verify the clinical validity of predictions must be supported [
11,
12]. The SHAP (Shapley Additive explanations) method of decomposing characteristic contributions to predictions ensures clinical professional trust by quantitatively indicating that the deep learning model has determined risk signals based on textual evidence [
13]. Such explainability is increasingly required by emerging Korean medical-AI regulation, including the MFDS 2023 Guidelines on Artificial Intelligence Medical Devices [
14].
Therefore, the purpose of this study is to propose an explainable multi-label classification pipeline (HAN-BiLSTM) that simultaneously predicts risk signals of depression, anxiety, and substance use disorder from full texts of psychological counseling sessions. To this end, we would like to demonstrate the clinical utilization value of this proposed model in various ways by combining hierarchical attention and SHAP analysis to secure classification performance and interpretability at the same time, evaluating the confusion matrix by label and analyzing temporal disease signal patterns according to multi-label characteristics. Specifically, we test three hypotheses: (H1) a hierarchical attention architecture outperforms flat sequence and length-truncated transformer baselines; (H2) word-level and utterance-level attention contribute additively to performance, as confirmed by ablation; and (H3) DeepSHAP attributions align with clinically established symptom lexicons.
3. Results
3.1. Overall Performance and Label-Wise Comparison
The performance of the HAN-BiLSTM model and comparison-group Flat LSTM and KR-BERT models based on the hierarchical attention network proposed in this study was quantitatively evaluated through label-by-label F1 scores (F1-score) and AUROC (Area Under ROC Curve). Detailed results, including the overall performance indicators micro-average and macro-average, are shown in
Table 4,
Table 5 and
Table 6. As a result of the experiment, the proposed model (HAN-BiLSTM) showed better performance than the reference models in all evaluation indicators. Specifically, the proposed model resulted in 0.87 for micro-F1 and 0.84 for macro-F1 and achieved a performance improvement of about 0.04 (4%) or more for both the micro- and macro-averages compared to Flat LSTM (micro-F1-0.83, macro-F1-0.80) and the pre-learning language model KR-BERT (micro-F1-0.80). Performance differences for each label are as follows.
Depression: The proposed model had a 0.90 F1 and 0.95 AUROC, showing the highest detection performance. This is a better result than KR-BERT (F1-0.88, AUROC 0.94) and Flat LSTM (F1-0.86, AUROC 0.92) and suggests that even if depression-related utterances frequently appear throughout the consultation, hierarchical structures view them effectively.
Anxiety: The proposed model achieved a 0.85 F1 and 0.91 AUROC. On the other hand, Flat LSTM remained at an F1 of 0.81 and KR-BERT remained at an F1 of 0.79, and the proposed model showed an F1 score difference of up to 0.06 (6%) compared to the reference model, showing a clear strength in anxiety signal detection.
Addiction: Even in addiction labels with relatively low frequency or high metaphorical expressions within the dataset, the proposed model recorded an F1 of 0.78 and AUROC of 0.87, maintaining stable performance. On the other hand, Flat LSTM showed the lowest performance at an F1 of 0.71 and AUROC of 0.80, while KR-BERT also showed only an F1 of 0.75. This shows that the hierarchical attention mechanism overcame the limitations of the simple sequence model (Flat LSTM) and the language model (KR-BERT), where information loss may occur due to input length limitations, by weighting without missing rare addiction-related clues.
Overall, HAN-BiLSTM demonstrated statistically superior or equivalent performance over the reference model in detecting all risk signals of depression, anxiety, and dependence by utilizing all word- and utterance-level hierarchical information. In particular, unlike the reference model, which had large performance differences between labels, the proposed model maintained an AUROC of 0.87 or higher for all labels, which confirmed its reliability as a clinical decision support tool.
3.2. Confusion Matrix Analysis
In order to analyze multi-label classification performance more precisely, this study viewed each label (depression, anxiety, and dependence) as an independent binary classification task (One vs. Rest) and constructed a 2 × 2 confusion matrix (
Figure 5). The distribution of positive exploration (TP), false exploration (FP), non-exploration (FN), and positive sound (TN) for the predicted results of the proposed model (HAN-BiLSTM) is as follows, specifically illustrating what bias the model has when capturing each disease risk signal.
First, as a result of confusion matrix analysis of the depression label, the model accurately detected (TP) 445 out of 484 actual positive cases, and only 39 cases (FN) were missed. This means that the recurrence rate (Recall) of depression risk signals is very high, and due to symptomatic characteristics of depression that require immediate intervention, such as suicide risk, clinical safety can be evaluated on the extent to which “Miss” results are minimized. On the other hand, 61 cases of false alarms (FPs) predicted that the client was depressed despite not actually being depressed, maintaining a low percentage of 1116 cases of true negatives (TNs) and effectively controlling excessive false alarms.
Second, for the anxiety label, 424 out of a total of 487 actual positive cases were identified (TP) and 63 were not identified (FN). Compared to the depression label, false detection (FP) increased slightly to 87, which is interpreted as a result of the characteristics of anxiety symptoms overlapping vaguely with general stress responses and tension expression in the text. Nevertheless, true negatives (TNs) were maintained at a high level at 1087 cases, and the overall classification accuracy was at a stable level.
Third, for the addiction label, 381 out of 448 cases that tested positive were actually positive (TP), but there were 148 cases of false detection (FP), which was the largest number of FPs observed in the three labels. This suggests that when words such as ‘drink’ or ‘game’ are referred to as everyday events or simple episodes rather than the context of dependence in counseling conversations, models tend to overinterpret them as a danger signal. However, it can be seen that undetected true cases (FN) remained relatively low at 67, which is still valid for the purpose of screening (screening) potential substance use disorder risk groups.
Overall, the proposed model showed a strength in keeping undetected true cases (FN) low for all labels and not missing danger signals, achieving, in particular, a high balance of accuracy and reproducibility in detecting depression and anxiety. The relatively high misdetection rate observed for the addiction label adds nuance to the context of future research. It suggests that additional learning data enhancement and context filtering logic are needed to distinguish benign events vs. pathological substance use disorder.
In order to verify the performance advantage of the proposed model, the prediction results by label for the reference model (Flat LSTM), which does not reflect the hierarchical structure, were derived and analyzed as confusion matrices (
Figure 6). As a result of the analysis, Flat LSTM overall had a higher ratio of false positives (FPs) to false negatives (FNs) compared to the proposed model, and this limitation was particularly noticeable for the “addiction” label, where understanding the context is important. Flat LSTM positively detected 426 out of 484 cases of actual positive depression (426 + 58) (true positive, TP), but 58 cases were not detected (FN) and the depression signal was missed. In addition, 75 cases of non-depression were incorrectly predicted (FP). This indicates that the proposed model (HAN-BiLSTM) achieved better accuracy and reproducibility, with only 39 false negative and 61 false positive cases. In particular, the increase in false negatives (FNs) suggests that the sensitivity of the model is somewhat insufficient for the clinical purpose of screening high-risk groups such as those at risk of suicide. The anxiety label revealed the limitations of the model more clearly. In fact, only 399 out of 487 (399 + 88) anxiety-positive cases were identified (TP), and 88 cases were not detected (FN). This means that about 18 percent of the respondents with anxiety were missed. False detection (FP) was also high at 100, which can be interpreted as attributable to the long-term dependency problem in which Flat LSTM cannot distinguish nuances in utterances in detail within a long consultation sequence and overinterprets simple tension or daily worries as pathological anxiety or, on the contrary, forgets important clues as the amount of context increases. The biggest performance degradation was observed for the addiction label. Of the actual 448 positive addiction cases (349 + 99), 349 were correctly identified (TP), with 99 remaining undiscovered (FN). Most notable are the 188 high false detection (FP) cases. This is a significant percentage of the 1025 true negative cases, suggesting that when words such as “drink”, “game”, and “medicine” appear in the model, it is more likely to rely on simple keyword matching to classify clients into risk groups without considering context (is it just a drinking party episode or a pathological craving). In situations where hierarchical attention was lacking, Flat LSTM was exposed to have the limitation of being excessively biased by the frequency and appearance of certain words.
As a result, Flat LSTM recorded more FNs and FPs than the proposed model (HAN-BiLSTM) for all three labels. In particular, 188 misdetections (proposed model: 148) for the substance use disorder label and 88 undetected cases (proposed model: 63) for the anxiety label prove that considering the “hierarchical structure of speech units” in long-term consultation dialogues is essential for detection of precise hazard signals.
Figure 7 shows the prediction results by label of the KR-BERT model. Briefly, 436 out of 484 actual depression-positive samples were correctly identified correctly identified (TP)(TP), and 48 false negatives (FN) cases occurred. Of the 1177 dialogue samples, 1106 were classified as non-depressed (TN), and 71 false detections (FPs) were observed. For the anxiety label, 390 out of 487 cases that tested positive were actually positive (TP), and 97 undetected (FN) cases occurred. Of the remaining 1174 dialogue samples, 1064 were classified as having positive speech (TN), and 110 cases of false detection (FP) were recorded. In the case of the addiction label, 358 out of 448 positive cases were actually detected (TP) and 90 were not detected (FN). Of the remaining 1213 dialogue samples, 1060 were accurately classified as having positive speech (TN), but 153 cases were misclassified as addiction (FP). In these results, false detection (153 cases) occurred about 1.7 times more frequently than undetected cases (90 cases).
As a result of the confusion matrix analysis of the reference model, the unstable prediction pattern of frequent false positives mixed with frequent false negatives was derived as an important result for the “depression” label, while the “addiction” label maintained relatively high levels of positives and low FNs (
Table 7).
3.3. ROC and PR Curve Analysis
Figure 8 derived and analyzed Receiver Operating Characteristic (ROC) curves and Precision–Recall, PR, curves to verify the label-by-label discrimination performance of the proposed model (HAN-BiLSTM). The ROC curve shows a trade-off between true positivity (TPR) and false positivity (FPR, 1 specificity), with changes in the classification threshold (Threshold), and the PR curve is useful for evaluating the model’s practical detection capability on an imbalanced dataset with a low positive class ratio. Looking at the ROC curve by label, all three disorder labels demonstrated a curve shape closely attached to the top left corner, demonstrating the model’s excellent discrimination power. Specifically, the depression label recorded an AUROC of 0.95, showing the highest differential accuracy among the three labels. This suggests that the model can almost completely separate depression-positive and symptomless sessions. The anxiety label also recorded a high AUROC value of 0.91, and although the addiction label had a relatively low AUROC of 0.87, it still maintained a good performance of 0.8 or higher. In particular, in the case of the addiction label, TPR tends to rise sharply at low FPR intervals (
x-axis 0.0–0.2), which means that false alarms can be effectively controlled while capturing addiction risk signals early.
Figure 9 shows the Precision–Recall (PR) curve by class for the proposed model (HAN-BiLSTM)-based multi-class classification model. The PR curve is an indicator that visualizes the change in accuracy (Precision) with the reproduction rate (Recall) and is useful for more sensitive evaluation of the actual classification performance of the model in problems where class imbalances exist.
As a result of the analysis, the addiction class showed the best PR performance, and the PR-AUC value was 0.93. The addiction class PR curve maintains relatively stable accuracy even in areas with high reproducibility, suggesting that the model can effectively detect actual addiction cases while suppressing false positives when identifying addiction-related utterances.
The PR-AUC of the depression class was shown as 0.85, and overall, the accuracy tended to gradually decrease as the reproduction rate increased. This is interpreted as a result of reflecting the characteristics of depressive symptoms appearing in various language expressions and partially overlapping with similar mental illnesses such as anxiety. Nevertheless, it can be confirmed that the accuracy of the medium-to-high reproduction rate interval (Recall ≥ 0.6) is maintained at least 0.8 and practical classification performance is attained.
The anxiety class had a PR-AUC of 0.83, the lowest of the three classes. The PR curve of the anxiety class has a relatively large reduction in accuracy as the reproduction rate increases, which is thought to be due to the increase in the probability of misclassification, as anxiety symptoms often overlap with expressions of everyday stress.
Overall, PR curve analysis results are dependent. It shows that classification difficulty increases in the order of depression > anxiety, which is a consistent pattern in the aforementioned confusion matrix and ROC analysis results. In particular, the fact that a high PR-AUC was observed in the dependency class quantitatively proves that the proposed model learned dependency-related utterances relatively clearly based on behavior-centered keywords.
3.4. SHAP-Based Model Interpretation
Figure 10 analyzes the prediction results of the proposed hierarchical LSTM + attention-based multiple classification model using the SHAP (Shapley Additive Explanations) method, showing the importance of the top 10 words that had the greatest impact on model prediction for each class: depression, anxiety, and addiction. The height of a bar indicates the average SHAP value that the word contributed to the prediction probability of each class, and the larger the value, the greater the influence that word had on model judgment.
In the case of the class of depression, words such as “depressed”, “struggling”, “suicide”, “sad”, and “lonely” showed the highest SHAP value. In particular, “depressed” and “struggling” show relatively large contributions compared to other words, suggesting that the model learned direct expressions of depression and continuous psychological pain as key signals. In addition, the inclusion of words such as “suicide”, “giving up”, and “despair” as high-level important words indicates that the model uses desperate thinking and expressions of despair as an important determinant in predicting depression.
In the class of anxiety, “anxiety”, “worry”, “tense”, “panic”, and “restless” had the highest SHAP values. This means that the model is paying attention not only to core emotional expressions of anxiety but also to expressions related to physical symptoms such as ‘heart punching’ and ‘trembling’. This result suggests that the model reflects the clinical characteristic that anxiety disorders are closely related to physiological arousal responses in addition to mere psychological tension.
In the case of the class of addiction, behavior-oriented words such as “addiction”, “alcohol”, “smoking”, “gambling”, and “gaming” were the most important. In particular, “addiction” and “alcohol” show much higher SHAP values than other words, indicating that the model uses direct references to certain substances or objects of action as important clues when predicting addiction. In addition, the fact that words such as “quit”, “dependence”, and “craving” are included at the top indicates that the model sees not only the presence or absence of use but also the dynamic characteristics of dependence such as withdrawal, dependence, and craving.
Overall, the SHAP analysis results quantitatively support that the proposed model learns clinically reasonable core language patterns for each psychiatric class and makes predictions using clearly distinguished vocabulary sets between different classes. This shows that this model goes beyond just a statistical classifier and has practicality and reliability as an explainable AI (
Table 8).
3.5. Analysis of Change in Predictive Probability by Class as Conversation
Psychological counseling is not a static text, but a dynamic process in which interaction between counselors and clients unfolds over time. Therefore, it is clinically very important to track changes in risk signals as a conversation progresses, as well as one-off utterances at specific points in time. In this study, predicted probability trajectories within single sessions were visualized and analyzed to confirm how the proposed model (HAN-BiLSTM) updates the probability of each disorder (depression, anxiety, and dependence) as a session progresses.
Figure 11 shows changes in the prediction probability by section of the model for an actual counseling session labeled as part of the depression risk group. The analysis results show the following descriptive characteristics.
Initial search stage (Conversation Segments 1–3): In the initial stage of consultation, the prediction probability of the anxiety label tended to increase from about 0.35 to about 0.50. This suggests that the model detected the vague expression of tension or anxiety that the client complained about in the early stages of the consultation as a primary danger signal. On the other hand, the probability of depression in this section repeatedly fluctuated between about 0.30 and 0.40, maintaining a slightly lower or similar level to anxiety. The probability of addiction dropped sharply from 0.33 at the start to 0.10 or less in the third section of the speech, and it was determined early that the session was unrelated to the problem of addiction.
Turning Point and Surge in Depression Signals (Conversation Segments 4–6): A clear “Turning Point” was observed around 4–5 sections into the dialogue near the middle of the conversation. The probability of depression increased sharply from about 0.50 in the fourth section to more than 0.70 in the fifth section (spike) and then showed a continuous upward curve. This occurred at the time when the client went beyond an initial appeal about anxiety and began to express core utterances and suicidal thoughts specific to depression such as “I want to die” and “I’m hopeless.” On the other hand, the initially high probability of anxiety decreased from 0.50 to 0.20 units (dumping) at this point in time, and the model showed a tendency to clearly distinguish depression as a major problem in that session.
Risk signal immobilization (Conversation Segments 7–12): When entering the second half of the consultation (conversation segments 7 onward), the probability of depression exceeded 0.80 and eventually converged to 0.90 or more. This transcended the impact of a single utterance and shows the process by which the context of the entire session was determined to show a risk of depression. On the other hand, the probability of anxiety was less than 0.10, the probability of dependence converged to about 0.01 and the possibility of a false positive was effectively excluded. Such temporal structural analysis suggests that, in addition to simply determining a final label, it can be a useful auxiliary indicator for counselors to monitor changes in the client’s main complaint in real time and determine the timing of the intervention. Future studies plan to expand in the direction of combining utterance function (emotional expression, event description, etc.) tags or applying time-series causal inference models to reveal the context between disorders to enhance such probability trajectory analysis.
3.6. Extended Validation Results
The proposed HAN-BiLSTM outperformed all six baselines on macro-F1, with a 95% CI of 0.82–0.86; all pairwise differences were statistically significant under both paired
t-tests with Bonferroni correction and McNemar’s test (all
p < 0.001) (
Table 9). Ablation confirmed the additive contribution of each component, with utterance-level attention contributing most (Δ F1 = −0.061 when removed) (
Table 10). Across five stratified folds, macro-F1 ranged from 0.823 to 0.857 (mean of 90.840, SD of 0.013). The model showed good calibration (ECE = 0.041) and positive net benefit over both “treat-all” and “treat-none” strategies across the threshold range 0.15–0.55 (
Figure 12). Finally, three independent psychiatrists rated 88.7% of the top-15 SHAP tokens per label as “clinically meaningful” (Fleiss’s κ = 0.76, substantial agreement).
4. Discussion
4.1. Comparison with Prior Studies
This study can be clearly differentiated from conventional single-disease-centered studies in that it simultaneously detects (multi-label classification) multiple mental illnesses coexisting within counseling dialogues. The majority of previous studies have focused on binary classification, which independently predicts either depression or anxiety disorders [
24]. For example, Bokolo and Liu [
25] used a text-based Transformer model on social media to report a high depression classification accuracy of up to 98%, but this only determines the presence of a single disease and has limitations in not being able to capture the frequent comorbidity in clinical settings. In some studies, multiple classification was attempted, but methodological constraints existed. Bendebane et al. [
26] adopted a multi-class approach to simultaneously deal with depression and anxiety, which was defined as a mutually exclusive class (e.g., normal/depression/anxiety), and patients with coexisting depression and anxiety could not be identified as independent categories. On the other hand, since the multi-label approach of this study does not presuppose interlabel independence, it was possible to accurately reflect actual clinical cases in which depression and anxiety simultaneously appear. In addition, Shelke et al. [
27] tried multi-label classification, but their F1 score remained around 0.40 due to their dependence on traditional Random Forest methods. On the other hand, this study achieved high performance, with F1 scores of 0.78–0.90, through deep learning-based hierarchical modeling, showing the advantage of deep learning in complex unstructured text data.
In particular, it was confirmed that the hierarchical attention network structure adopted in this study was more effective than the flat model or the general BERT model in processing long-term consultation dialogue. This is interpreted as being because pre-learning language models (PLMs) usually have an input length limit (e.g., 512 tokens), while hierarchical models fully retain a long interactive flow (Context) of data by encoding and recombining contexts on a per-turn basis [
28]. According to Cho et al.’s study on medical field-specialized language models [
29], models trained on general domains may show limitations in adaptation to special domains, and the results of this study also suggest that domain-specific lightweight model structures are better able to reflect the specificity of Korean consultative colloquial language.
The introduction of explainable AI (XAI) is also an important achievement of this study. In the medical and mental health sectors, the model “black box” problem has been pointed out as a major barrier to clinical application [
30]. Just as Wang et al. secured transparency by applying SHAP to wearable data analysis [
31], this study applied SHAP to text data to visualize the basis for the model’s predictions. As a result of the analysis, clinically reasonable keywords such as “I want to die,” “drink,” and “anxiety” showed high importance, indicating that the model learned signs related to actual symptoms rather than data bias (Artifact). Such interpretability serves as an important mechanism for building healthcare professionals’ trust in AI systems [
32].
As a result of SHAP-based model interpretation for each category, it was revealed that the core expression that the model focused on when predicting labels consisted of clinically reasonable symptom-related language. In cases classified as depression, expressions indicating despair and sleep problems such as “I want to die” and “I can’t sleep” greatly contributed to model prediction (corresponding to suicidal thoughts and insomnia). In the case of anxiety, expressions related to psychological anxiety and physical tension such as “anxiety” and “heart pounding” acted as important influencers, and in the case of dependence, dependence-related expressions such as “want to quit drinking” and “cravings” were notably used. These expressions correspond to the main symptoms of depression, including suicidal thoughts and sleep disorders; the symptoms of anxiety, including strong physical arousal; and a need for substances, which is a symptom of dependence. In the end, it was found that the handwritten labels in this study were given based on this symptom-related language captured in the consultation conversation rather than a formal diagnostic name, and it was also confirmed that labels assigned at the discretion of experts matched actual language patterns. This supports the clinical validity of this labeling method, and furthermore, it is a result indicating that the characteristics learned by this model are not just frequency-dependent but also linguistic signals based on actual clinical symptoms.
4.2. Clinical Implications: Comorbidity Detection
In the clinical practice of mental health, comorbidity is not an exceptional phenomenon, but rather a general rule. A significant number of depression patients worldwide also experience anxiety disorders [
33], and the relationship between anxiety and substance use disorders (dependence) has also been fully elucidated. However, there is always a risk that clinicians will overlook potential comorbidities other than a client’s main complaint due to limited hours of care and selective reporting by patients. The multi-label classification model of this study has important significance as an auxiliary tool (decision support system) to bridge such clinical gaps. First, the screening efficiency of dual diagnostics is improved. This model can capture and warn of signs of alcohol dependence and anxiety hidden in the context of a conversation, even if a client mainly complains of depressive symptoms. This contributes to early screening and establishes an integrated treatment plan for patients with depression–addiction comorbidity, which is considered to have a poor treatment outcome. Second, it provides the possibility of objective and constant monitoring. Unlike questionnaires that rely on patient self-reporting, natural language interactive analysis can detect even symptoms that a patient intentionally hides or cannot recognize. For example, when this algorithm is installed in suicide prevention counseling or non-face-to-face mental care platforms, it can be used to classify and prioritize high-risk groups in real time from large-scale counseling data [
34].
In addition, the SHAP-based explanatory power shown in this study helps clinicians critically accept AI proposals. If the model classifies a particular patient as part of a “substance use disorder risk group” and presents an utterance that “you must stop drinking” as the basis for this, the counselor can use it as a clue to conduct in-depth interviews. Conversely, it prevents blind AI dependence and promotes human-in-the-loop cooperation because it can reverse-track the cause of its judgment, even if a false positive occurs [
35].
In conclusion, this study demonstrated the possibility of a comprehensive screening tool that exceeds the limitations of traditional single disease prediction models by analyzing the interrelated psychopathology of depression, anxiety, and dependence within one integrated framework. Future studies will further improve the accuracy of digital mental health management if they expand to more diverse mental illness categories such as PTSD and schizophrenia and develop into multimodal studies that combine voice and biological signals as well as text.
In summary, four clinical implications follow: (i) intake screening flagging hidden comorbidity that the primary complaint does not surface; (ii) case-conceptualization support SHAP-highlighted utterances act as supervision and training prompts; (iii) CDSS integration embedded in electronic mental health records with dual-level explainability (attention + SHAP) satisfying MFDS 2023 Guidelines on Artificial Intelligence Medical Devices [
14]; and (iv) transferability the hierarchical scaffold generalizes to other long-form clinical narratives.
4.3. Limitations and Future Work
This study demonstrated the effectiveness of a deep learning model that predicts multiple mental illnesses using counseling dialogue data, but the following limitations exist and need to be supplemented in future studies.
The first is the problem of data imbalance and bias. In all data sets, the number of addiction-positive cases was the lowest at about 26%, so the accuracy of the dependency label (Precision) was measured to be lower than that of other labels. In addition, the model’s ability to detect other behavioral dependencies such as gambling and Internet dependence may be limited because the type of dependence is biased toward alcohol dependence. Future studies need to collect additional cases of various addictions and improve the distribution of data. Technically, data expansion methods using Generative Adversarial Networks (GANs) can be considered as suggested by Shelke and others, but they should be applied carefully to the extent that they do not undermine the natural context of consultative dialogue.
Second, external validity and generalization limitations. This model was trained and verified with only single-domain Korean language counseling data collected by a specific institution. Therefore, when applied to data from other institutions or online communities with different consultation styles or client characteristics, performance degradation may occur. Multi-facility cross-validation is essential in the future to ensure the robustness of the model. In addition, as Cho and others emphasized in a language model review of the medical field, follow-up studies are required to fine-tune the model with new domain data through Transfer Learning and localization and optimization.
Third, a constraint is our single-modality-based approach. Text data conveys the content of the client’s utterance, but does not include nonverbal clues such as voice tone, tremor, speech speed, and facial expression. For example, there is a fundamental limit to fully grasping ironic expressions and subtle changes in emotions such as “I’m really happy to die” through text alone, which can act as an upper limit to model performance (Ceiling). To overcome this, it is necessary to expand to a multimodal deep learning model that combines not only text but also audio signals and image data, such as the Multimodal Hierarchical Attachment (MHA) model proposed by Li et al.
Fourth, it is necessary to deepen interpretability. In this study, the importance of word levels was identified using SHAP, but there is a limit to fully explaining the complex interaction between individual features and time-series contextual effects. For example, it is difficult to interpret the deep reasoning process of the model, whether the word “drink” was simply mentioned or used in the context of dependent needs, with just one value of SHAP. In future studies, attempts to make the model’s decision-making process more three-dimensional and transparent by applying various XAI methods such as time-series SHAP analysis and LIME in a mutually complementary manner are needed.
Finally, there are ethical considerations during actual clinical deployment. AI models have a risk of reproducing biases inherent in learning data, and strict ethical standards are required for personal information protection and microdata handling. This model should be used solely as a decision support system to support expert decision-making, and it should be made clear that the ultimate diagnostic responsibility lies with human experts. In the future, in addition to verifying model performance for real-time streaming data, it will be necessary to upgrade the system, reflecting the latest language trends and clinical situations through continuous online learning.
5. Conclusions
Based on actual Korean counseling dialogue data, this study proposed a multilabel classification framework based on hierarchical LSTM and attention, which simultaneously predicts the coexistence of depression, anxiety, and dependence. To overcome the limitation of existing mental health AI studies using binomial classification of single diseases and failing to reflect the complex symptom patterns in actual clinical cases, this study implemented a more comprehensive diagnostic support model through a multi-labeling approach.
The clinical value of the proposed framework lies in its ability to expose hidden comorbidity at intake, to provide token-level rationales that clinicians can audit, and to integrate with electronic mental health records as a transparent decision support tool, in compliance with emerging Korean medical-AI regulation. By coupling hierarchical attention with Deep SHAP and submitting both to independent clinical face-validity review, this work moves AI-assisted mental health screening one step closer to responsible, real-world deployment. If the model proposed by this study is integrated into actual counseling services in the future, it is expected to contribute to the realization of preventive mental health care, which comprehensively manages potential risks that the client is not aware of.