arXiv:2609.01833cs.CLSep 2026

Manuscript Offprint

arXiv:2609.01833

Candidate Generation and Definition-Guided Verification for Sentence-Level Depression Symptom Recognition

Weiming Li, Catarina Barata, Miguel Constante, Joao Sanches

ABSTRACT

Sentence-level recognition of depression symptoms is challenging because similar expressions can differ in symptom relevance, and language-model inference is insufficiently grounded in diagnostic definitions. This study proposes a two-stage framework separating symptom-candidate generation from definition-grounded verification. A contrastively fine-tuned sentence encoder generates a symptom candidate per sentence, and a fine-tuned language model verifies whether the candidate is present or absent using the sentence, its context, and a candidate-specific diagnostic definition, checking its judgment against that definition before answering. Evaluated against encoder, inference-based, medical, and general LLM baselines and a matched single-stage supervised classifier, the proposed pipeline attains the best accuracy and F1 scores of all methods, with rationales matching expert-authored annotations. A preliminary clinical audit indicates moderate alignment with diagnostic definitions, with explanation quality strongly dependent on prediction correctness. The results support decomposing symptom recognition into candidate generation and definition-grounded verification, though performance remains limited for rare categories.

INDEX TERMS Artificial intelligence, Classification algorithms, Data mining, Decision support systems, Deep learning, Machine learning, Mental health, Natural language processing, Psychiatry, Text mining.

1. INTRODUCTION

The rapid growth of social media and online mental-health communities has produced large volumes of unstructured text describing users' emotions, behaviours, and psychological experiences [1]. Accordingly, text-based depression analysis has progressed from lexicon-based sentiment analysis and conventional machine-learning classifiers to transformer-based semantic models [2], [3]. Most existing studies, however, operate at the post or user level and produce aggregate outcomes such as depression status or severity. Although useful for large-scale screening, these formulations do not necessarily identify which sentence expresses a particular depressive symptom or how that expression corresponds to a symptom category defined by the Diagnostic and Statistical Manual of Mental Disorders, Fifth Edition (DSM-5) [4], [5]. Recent work has begun to align deep-learning depression detectors more directly with DSM-5 criteria, but such systems still classify at the document or post level rather than attributing individual sentences to specific symptom categories [6].

Sentence-level symptom recognition provides a more fine-grained and traceable analytical target. ReDSM-5 supports this task by linking sentences from social-media posts to DSM-5-aligned depressive symptom annotations while retaining access to their source-post context [7]. Nevertheless, symptom expressions may be implicit, semantically overlapping, negated, temporally qualified, or dependent on surrounding text. The long-tailed distribution of symptom categories further complicates the recognition of less frequent expressions.

Contextual encoders such as Sentence-BERT and MentalBERT provide effective representations for sentence clas-sification [8], [9], while contrastive learning can organise the representation space using symptom-level supervision [10]. However, even strong encoders may produce ambiguous decisions near boundaries between overlapping symptom categories. Autoregressive large language models (LLMs) provide additional contextual modelling capacity but are substantially more expensive when applied to every sentence. Moreover, despite their instruction-following and structured-generation capabilities, LLMs remain subject to factual inconsistency, bias, prompt sensitivity, and imperfect agreement with clinicians [11]–[15]. Sentence-level DSM-5 recognition therefore requires both selective use of LLM reasoning and an explicit reference for determining whether a predicted symptom is supported by the textual evidence. Prior sentence-level approaches, however, either rely on a single encoder-only classifier without a definitional consistency check, apply generic zero-shot entailment that is not conditioned on DSM-5 criteria, or invoke LLM reasoning on every sentence without separating candidate generation from verification [7], [16]–[18]. To our knowledge, prior work has not examined this specific combination of encoder-based candidate generation and candidate-specific, definition-grounded verification, in which LLM verification is restricted to the selected symptom candidate.

To address these challenges, we propose a two-stage sentence-level DSM-5 symptom recognition framework that separates symptom-candidate generation from candidate-specific presence verification. In Stage 1, MentalSBERT-S, a sentence encoder contrastively fine-tuned with symptom-level supervision, produces a nine-class symptom-matching score for each sentence and selects the highest-scoring category as the Stage-1 candidate. This encoder-only design avoids autoregressive generation for every sentence while matching the accuracy of the directly fine-tuned generative alternative, as shown in Section IV.

In Stage 2, a separately fine-tuned DeepSeek model determines whether the Stage-1 candidate is Present or Absent. It receives the target sentence, source-post context, candidate symptom, and a concise candidate-specific DSM-5-informed definition. Within one structured inference call, the model forms a binary judgment and checks its consistency with the supplied definition before answering. The framework consequently produces a sentence-level symptom hypothesis, a consistency-checked binary status, and a model-generated explanation grounded in the target sentence and its supporting context. This verification operates at the annotation level and is not intended as a complete clinical diagnostic assessment.

The main contributions of this work are as follows:

  1. We formulate sentence-level DSM-5 symptom recognition as a two-stage task that separates nine-class symptom-candidate generation from definition-grounded binary verification of the selected candidate.

  2. We develop MentalSBERT-S, a contrastively fine-tuned sentence encoder that generates the Stage-1 symptom candidate directly from a single forward pass, matching the accuracy of the directly fine-tuned generative alternative without autoregressive inference.

  3. We introduce a fine-tuned definition-grounded verification procedure that combines an initial Present/Absent judgment with candidate-specific, DSM-5-informed consistency checking within one structured inference call.

  4. We evaluate the framework against supervised encoders, NLI-style zero-shot models, direct LLM baselines including MedGemma-4B-IT, and a matched single-stage supervised classifier trained on the identical data and backbone. The evaluation includes three training seeds, hierarchical bootstrap confidence intervals, per-symptom analysis, component ablations, error analysis, inference-efficiency measurements, and a preliminary clinical rationale audit.

The remainder of this paper is organised as follows. Section II reviews related work. Section III presents the proposed framework. Section IV describes the experimental setup and results. Section V discusses the findings, clinical implications, and limitations. Section VI concludes the paper and outlines future research directions.

References (38)