depression-diagnosis-chat-eval
Enhancing Depression-Diagnosis-Oriented Chat with Psychological State Tracking — Gu et al. (2024) (arXiv:2403.09717, 2024)
What this evaluates
Evaluates a model's ability to conduct depression-diagnosis-oriented dialogues by tracking psychological states, generating appropriate responses, summarizing patient symptoms, and classifying depression/suicide severity. It also assesses conversational qualities like fluency, empathy, and doctor-likeness through human evaluation.
Datasets
- MedDialog — total ?; splits: train (-1), test (-1)
Metrics
BLEU-2 (primary) — range: percent
- Bigram overlap between generated and reference responses, computed after jieba tokenization.
ROUGE-L — range: [0, 1]
- Longest common subsequence overlap between generated and reference text.
METEOR — range: [0, 1]
- Precision, recall, and penalty for fragmentation between generated and reference text.
DIST-2 — range: [0, 1]
- Ratio of unique bigrams to total tokens in the generated response, measuring diversity.
Average weighted F1 (primary) — range: [0, 1]
- Weighted average of precision and recall across depression and suicide severity classes (2-class or 4-class), computed via sklearn.
Input / output format
Input: Dialogue history (and optionally patient portrait information) provided as context. For response generation, the model receives the dialogue context and psychological state tracking (POST) components (Stage, Information, Summary, Next) or operates without them.
Output: Generated dialogue response, patient symptom summary, or depression/suicide severity classification label (2-class or 4-class).
Scoring recipe
# Tokenize with jieba
preds_tok = [jieba.lcut(p) for p in predictions]
refs_tok = [jieba.lcut(r) for r in references]
# Response/Summary metrics
bleu2 = compute_bleu(n=2, preds=preds_tok, refs=refs_tok)
rougel = compute_rouge_l(preds=preds_tok, refs=refs_tok)
meteor = compute_meteor(preds=preds_tok, refs=refs_tok)
dist2 = sum(len(set(ngrams(t, 2))) for t in preds_tok) / sum(len(t) for t in preds_tok)
# Classification metrics
prec, rec, f1, _ = sklearn.metrics.precision_recall_fscore_support(y_true, y_pred, average='weighted')
Common pitfalls
- POSTs are evaluated in three modes: excluded ('-'), predicted, and given golden ('*'), which significantly impacts scores.
- Tokenization uses the jieba library for Chinese text, differing from standard spaCy/WordPiece tokenizers.
- ChatGPT baselines lack dataset-specific fine-tuning, leading to artificially lower BLEU/ROUGE scores compared to fine-tuned models.
Evidence (verbatim from paper)
Metrics like BLEU-2, Rouge-L and METEOR are employed to assess the response generation quality. In addition, we calculate DIST-2 to demonstrate the diversity of responses. Tokenization is performed using the jieba library... To be consistent with D4, we use average weighted precision, recall, and F1 scores computed by sklearn to evaluate classification results.
Citation
@misc{gu2024enhancing,
title={Enhancing Depression-Diagnosis-Oriented Chat with Psychological State Tracking},
author={Gu et al. (2024)},
year={2024},
note={arXiv:2403.09717}
}
1---2name: depression-diagnosis-chat-eval3description: Evaluates a model's ability to conduct depression-diagnosis-oriented dialogues by tracking psychological states, generating appropriate responses, summarizing patient symptoms, and classifying depression/suicide severity. It also assesses conversational qualities like fluency, empathy, and doctor-likeness through human evaluation. Use when the user wants to benchmark on MedDialog, or asks about evaluating this task. Reports BLEU-2, Average weighted F1.4metadata:5 source: https://skillmd.com/skills/qhjqhj00/depression-diagnosis-chat-eval6 skill_kind: dataset_eval7 source_arxiv: 2403.097178 bibtex_key: gu2024enhancing9 confidence: high10---1112# depression-diagnosis-chat-eval1314> Enhancing Depression-Diagnosis-Oriented Chat with Psychological State Tracking — Gu et al. (2024) (arXiv:2403.09717, 2024)1516## What this evaluates1718Evaluates a model's ability to conduct depression-diagnosis-oriented dialogues by tracking psychological states, generating appropriate responses, summarizing patient symptoms, and classifying depression/suicide severity. It also assesses conversational qualities like fluency, empathy, and doctor-likeness through human evaluation.1920## Datasets2122- **MedDialog** — total ?; splits: train (-1), test (-1)2324## Metrics2526- `BLEU-2` **(primary)** — range: percent27 - Bigram overlap between generated and reference responses, computed after jieba tokenization.28- `ROUGE-L` — range: [0, 1]29 - Longest common subsequence overlap between generated and reference text.30- `METEOR` — range: [0, 1]31 - Precision, recall, and penalty for fragmentation between generated and reference text.32- `DIST-2` — range: [0, 1]33 - Ratio of unique bigrams to total tokens in the generated response, measuring diversity.34- `Average weighted F1` **(primary)** — range: [0, 1]35 - Weighted average of precision and recall across depression and suicide severity classes (2-class or 4-class), computed via sklearn.3637## Input / output format3839**Input**: Dialogue history (and optionally patient portrait information) provided as context. For response generation, the model receives the dialogue context and psychological state tracking (POST) components (Stage, Information, Summary, Next) or operates without them.4041**Output**: Generated dialogue response, patient symptom summary, or depression/suicide severity classification label (2-class or 4-class).4243## Scoring recipe4445```python46# Tokenize with jieba47preds_tok = [jieba.lcut(p) for p in predictions]48refs_tok = [jieba.lcut(r) for r in references]4950# Response/Summary metrics51bleu2 = compute_bleu(n=2, preds=preds_tok, refs=refs_tok)52rougel = compute_rouge_l(preds=preds_tok, refs=refs_tok)53meteor = compute_meteor(preds=preds_tok, refs=refs_tok)54dist2 = sum(len(set(ngrams(t, 2))) for t in preds_tok) / sum(len(t) for t in preds_tok)5556# Classification metrics57prec, rec, f1, _ = sklearn.metrics.precision_recall_fscore_support(y_true, y_pred, average='weighted')58```5960## Common pitfalls6162- POSTs are evaluated in three modes: excluded ('-'), predicted, and given golden ('*'), which significantly impacts scores.63- Tokenization uses the jieba library for Chinese text, differing from standard spaCy/WordPiece tokenizers.64- ChatGPT baselines lack dataset-specific fine-tuning, leading to artificially lower BLEU/ROUGE scores compared to fine-tuned models.6566## Evidence (verbatim from paper)6768> Metrics like BLEU-2, Rouge-L and METEOR are employed to assess the response generation quality. In addition, we calculate DIST-2 to demonstrate the diversity of responses. Tokenization is performed using the jieba library... To be consistent with D4, we use average weighted precision, recall, and F1 scores computed by sklearn to evaluate classification results.6970## Citation7172```bibtex73@misc{gu2024enhancing,74 title={Enhancing Depression-Diagnosis-Oriented Chat with Psychological State Tracking},75 author={Gu et al. (2024)},76 year={2024},77 note={arXiv:2403.09717}78}79```8081- arXiv: 2403.09717