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

arXiv cs.CL Papers

Summary

This study proposes a two-stage framework for sentence-level depression symptom recognition using candidate generation and definition-guided verification, achieving best accuracy and F1 scores among evaluated methods.

arXiv:2609.01833v1 Announce Type: new 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.
Original Article
View Cached Full Text

Cached at: 09/03/26, 05:48 AM

# Candidate Generation and Definition-Guided Verification for Sentence-Level Depression Symptom Recognition
Source: [https://arxiv.org/html/2609.01833](https://arxiv.org/html/2609.01833)
###### 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\.

††address:Institute for Systems and Robotics \(ISR\), LARSyS, Departamento de Bioengenharia, Instituto Superior Técnico \(IST\), 1049\-001 Lisboa\. Portugal††address:Institute for Systems and Robotics \(ISR\), LARSyS, Instituto Superior Técnico, University of Lisbon, 1049\-001 Lisbon, Portugal††address:Department of Psychiatry, Hospital Beatriz Ângelo, 2674\-514 Loures, Portugal††titlenote:This work was supported by LARSyS funding DOI:10\.54499/LA/P/0083/2020 and 10\.54499/UID/50009/2025\. This work has been submitted to the IEEE for possible publication\. Copyright may be transferred without notice, after which this version may no longer be accessible\.††corresponding:Corresponding author: Weiming Li \(E\-mail: weimingli9999@gmail\.com\)\.## IIntroduction

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](https://arxiv.org/html/2609.01833#bib.bib1)\]\. Accordingly, text\-based depression analysis has progressed from lexicon\-based sentiment analysis and conventional machine\-learning classifiers to transformer\-based semantic models\[[2](https://arxiv.org/html/2609.01833#bib.bib2),[3](https://arxiv.org/html/2609.01833#bib.bib3)\]\. 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](https://arxiv.org/html/2609.01833#bib.bib9),[5](https://arxiv.org/html/2609.01833#bib.bib10)\]\. 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](https://arxiv.org/html/2609.01833#bib.bib36)\]\.

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](https://arxiv.org/html/2609.01833#bib.bib16)\]\. 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 classification\[[8](https://arxiv.org/html/2609.01833#bib.bib19),[9](https://arxiv.org/html/2609.01833#bib.bib28)\], while contrastive learning can organise the representation space using symptom\-level supervision\[[10](https://arxiv.org/html/2609.01833#bib.bib29)\]\. 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](https://arxiv.org/html/2609.01833#bib.bib5),[12](https://arxiv.org/html/2609.01833#bib.bib6),[13](https://arxiv.org/html/2609.01833#bib.bib7),[14](https://arxiv.org/html/2609.01833#bib.bib8),[15](https://arxiv.org/html/2609.01833#bib.bib26)\]\. 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](https://arxiv.org/html/2609.01833#bib.bib16),[16](https://arxiv.org/html/2609.01833#bib.bib31),[17](https://arxiv.org/html/2609.01833#bib.bib22),[18](https://arxiv.org/html/2609.01833#bib.bib23)\]\. 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 isPresentorAbsent\. 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. 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. 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. 3\.We introduce a fine\-tuned definition\-grounded verification procedure that combines an initialPresent/Absentjudgment with candidate\-specific, DSM\-5\-informed consistency checking within one structured inference call\.
4. 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\.

## IIRelated Work

Early text\-based depression detection primarily addressed user\-level or post\-level screening through binary classification or severity estimation\[[4](https://arxiv.org/html/2609.01833#bib.bib9),[5](https://arxiv.org/html/2609.01833#bib.bib10),[19](https://arxiv.org/html/2609.01833#bib.bib4)\]\. Resources such as SMHD, expert\-annotated suicide\-risk posts, interview corpora, and contextual depression challenges have broadened the empirical foundations of mental\-health NLP\[[20](https://arxiv.org/html/2609.01833#bib.bib12),[21](https://arxiv.org/html/2609.01833#bib.bib13),[22](https://arxiv.org/html/2609.01833#bib.bib14),[23](https://arxiv.org/html/2609.01833#bib.bib15)\]\. However, predictions aggregated across a document or user history do not necessarily localise the sentence expressing a clinically relevant symptom\[[24](https://arxiv.org/html/2609.01833#bib.bib11)\]\. ReDSM\-5 advances a more fine\-grained formulation by associating individual sentences with DSM\-5\-aligned depressive symptom categories\[[7](https://arxiv.org/html/2609.01833#bib.bib16)\]\. In this setting, the linked post remains useful for resolving negation, temporal qualification, and unclear references, but the prediction target is the symptom evidence expressed by an individual sentence\.

Pretrained contextual encoders remain strong foundations for mental\-health text analysis\. Domain adaptation to mental\-health corpora can improve representations of language associated with mental\-health conditions\[[25](https://arxiv.org/html/2609.01833#bib.bib17),[26](https://arxiv.org/html/2609.01833#bib.bib18)\]\. MentalBERT and MentalRoBERTa, for example, were pretrained on mental\-health\-related social\-media text and evaluated across multiple mental\-health detection benchmarks\[[8](https://arxiv.org/html/2609.01833#bib.bib19)\]\. MentalBERT representations have also been combined with downstream neural classifiers for depression and major\-depressive\-disorder detection\[[27](https://arxiv.org/html/2609.01833#bib.bib20)\]\. Transfer learning from general\-purpose encoders to subreddit\-specific mental\-illness classification has likewise been shown to improve label discrimination over generic pretraining\[[28](https://arxiv.org/html/2609.01833#bib.bib37)\]\. Although these models can learn symptom\-discriminative contextual representations, fixed\-label decisions remain difficult when symptom categories share linguistic cues, evidence depends on surrounding context, or rare categories provide limited supervision\. Sentence\-pair and contrastive objectives can further shape the representation space by drawing same\-label sentences together and separating cross\-category sentences\[[9](https://arxiv.org/html/2609.01833#bib.bib28),[10](https://arxiv.org/html/2609.01833#bib.bib29)\]; nevertheless, their contribution must be established empirically through controlled ablation\.

Natural\-language inference \(NLI\) offers a complementary formulation in which label descriptions are expressed as hypotheses and evaluated for entailment\. Yin et al\.\[[16](https://arxiv.org/html/2609.01833#bib.bib31)\]established entailment as a general approach to zero\-shot text classification, while BART provides a widely used sequence\-to\-sequence foundation for NLI\-style transfer\[[29](https://arxiv.org/html/2609.01833#bib.bib32)\]\. This formulation is relevant to symptom recognition because symptom definitions can be converted into hypotheses without task\-specific fine\-tuning\. However, generic entailment training does not necessarily capture the annotation boundaries of a specialised mental\-health dataset\. We therefore treat NLI\-style zero\-shot classification as an external baseline rather than a replacement for supervised symptom modelling\.

LLMs have expanded the range of clinical and mental\-health NLP tasks that can be addressed through instruction following, contextual reasoning, and structured generation\[[17](https://arxiv.org/html/2609.01833#bib.bib22),[18](https://arxiv.org/html/2609.01833#bib.bib23)\]\. A recent systematic review of LLM use in mental health similarly reports that most deployments remain confined to screening\-level classification and stresses the need for interpretable, clinically verifiable outputs rather than opaque predictions\[[30](https://arxiv.org/html/2609.01833#bib.bib38)\]\. Medical instruction tuning and domain alignment can improve performance on medical tasks, but strong benchmark results do not eliminate concerns regarding possible harm, bias, prompt sensitivity, or disagreement with clinicians\[[31](https://arxiv.org/html/2609.01833#bib.bib24),[15](https://arxiv.org/html/2609.01833#bib.bib26)\]\. These concerns are especially relevant when heterogeneous expressions of symptoms such as anhedonia must be mapped to narrowly defined clinical categories\[[32](https://arxiv.org/html/2609.01833#bib.bib21)\]\. Direct zero\-shot and few\-shot LLM methods are therefore important baselines, while constrained outputs and explicit separation between model\-generated explanations and clinically reviewed interpretations remain necessary\.

Medically tuned foundation models provide a stronger comparison than general\-purpose LLM prompting alone\. MedGemma is a family of medical text and vision\-language models derived from Gemma 3 and evaluated across medical reasoning, information\-retrieval, and image\-understanding tasks\[[33](https://arxiv.org/html/2609.01833#bib.bib33)\]\. MedGemma\-4B\-IT is an instruction\-tuned model of practical size that can be applied to textual medical tasks without dataset\-specific training\. Its inclusion as a zero\-shot baseline tests whether general medical instruction tuning is sufficient to capture the sentence\-level DSM\-5 annotation boundaries considered in this study\.

Clinical knowledge can be incorporated into LLM inference through diagnostic definitions, structured instructions, external documents, or retrieval\-augmented generation\[[34](https://arxiv.org/html/2609.01833#bib.bib25),[15](https://arxiv.org/html/2609.01833#bib.bib26),[35](https://arxiv.org/html/2609.01833#bib.bib27)\]\. Retrieval\-oriented systems introduce external evidence, whereas definition\-conditioned inference supplies a fixed criterion directly in the model input\. For sentence\-level DSM\-5 recognition, concise candidate\-specific definitions provide a transparent reference for assessing whether the target sentence and its local context support a proposed symptom\. Such definition\-grounded, self\-checking verification remains an annotation\-level consistency check rather than a complete diagnostic assessment\.

Collectively, prior work provides effective components for contextual encoding, contrastive representation learning, zero\-shot entailment, medical instruction following, and definition\-conditioned reasoning\. However, these components address different parts of the sentence\-level recognition problem\. The present study integrates them into a two\-stage pipeline with separately evaluated responsibilities: encoder\-based symptom\-candidate generation and definition\-grounded binary verification of the resulting candidate\.

## IIIMethod

We propose a two\-stage sentence\-level DSM\-5 symptom recognition framework that separates symptom\-category localisation from symptom\-presence verification\. The design follows a “semantic filtering first, structured verification second” principle\. Stage 1 answers*which symptom category best describes the target sentence*; Stage 2 answers*whether that candidate symptom is actually supported*\. These responsibilities are separated because category confusion and symptom validity are different error sources\. A sentence can be semantically close to a symptom category without providing sufficient evidence that the symptom is actually present, particularly when the expression is negated or context\-dependent\. The framework therefore keeps candidate selection and evidence verification as distinct decisions\. It remains sentence\-level: the target sentence is the unit being labelled, while its linked post is used only as supporting context when needed\.

TABLE I:Example post from the ReDSM\-5 dataset\[[7](https://arxiv.org/html/2609.01833#bib.bib16)\]illustrating the sentence\-level annotation format used throughout this study\. The full source post \(left\) provides context; three of its sentences \(second column\) are each independently labelled with a DSM\-5 symptom category and aPresent/Absentstatus \(third column\), together with a human\-written rationale explaining the label \(right column\)\. This structure motivates the sentence\-level, definition\-grounded formulation adopted in Section[III](https://arxiv.org/html/2609.01833#S3)\.Post textSentence textDSM\-5 symptomAnnotation explanationI felt really good when I first started it\.\(I was filled with energy\)\.I got so much done for 2–3 months\.It all went downhill after that\(I can’t concentrate at all now\)\.\(I have more sleep troubles and now rely on sleeping pills\.Also in constant low moods\)Also in constant low moodsDEPRESSED\_MOODPresentThe sentence directly expresses a continuing low mood, which is consistent with depressed\-mood symptom evidence at the sentence level\.I can’t concentrate at all nowCOGNITIVE\_ISSUESPresentDifficulty concentrating or thinking clearly is a hallmark of depression, aligning with criterion eight of the DSM\-5 major depressive disorder symptoms\.I have more sleep troubles and now rely on sleeping pillsSLEEP\_ISSUESPresentPersistent sleep difficulty and reliance on medication may indicate sleep disturbance, corresponding to insomnia or hypersomnia within the DSM\-5 symptom set\.This study uses the ReDSM\-5 dataset\[[7](https://arxiv.org/html/2609.01833#bib.bib16)\], which links each target sentence to its source post and provides a primary symptom category\. The sentence is the minimal analytical unit, while the linked post provides supporting context for LLM\-based verification when sentence meaning depends on surrounding text\. Table[I](https://arxiv.org/html/2609.01833#S3.T1)illustrates this organisation\. Model\-parameter training and training\-pair construction use only the training partition\.

![Refer to caption](https://arxiv.org/html/2609.01833v1/FIG/FIG1.png)Fig\. 1:Two\-stage sentence\-level symptom recognition framework\. Stage 1 generates a symptom candidate using a contrastively fine\-tuned sentence encoder, and Stage 2 performs binary symptom\-presence judgment with definition\-grounded, internal self\-checking against the candidate\-specific DSM\-5\-informed definition, all within a single model call\.As illustrated in Fig\.[1](https://arxiv.org/html/2609.01833#S3.F1), the framework separates symptom\-candidate generation from presence verification\. Given a target sentencexxand source postdd, Stage 1 uses MentalSBERT\-S to produce independent symptom scoresP⁡\(x\)P\(x\)and selects the highest\-scoring category as the candidates​\(x\)=y^​\(x\)s\(x\)=\\hat\{y\}\(x\)\. Stage 2 providesxx,dd,s⁡\(x\)s\(x\), and the corresponding candidate\-specific DSM\-5\-informed definitiongs⁡\(x\)g\_\{s\(x\)\}to a separately fine\-tuned DeepSeek verifier, which determines whether the candidate isPresentorAbsentand checks consistency with the definition in a single structured inference call\. The target sentence remains the primary evidence, while the post supplies supporting context for ambiguity, negation, temporal information, or context\-dependent expressions\. The final output is the verified status together with a model\-generated explanation\.

### III\-ASymptom\-Aware Sentence Representation and Initial Classification

Letxxdenote a target sentence andddits source post\. Stage 1 formulates symptom\-candidate generation as a single\-label classification problem over

𝒴=\{1,2,…,K\},K=9,\\mathcal\{Y\}=\\\{1,2,\\ldots,K\\\},\\qquad K=9,\(1\)where each label corresponds to one of the nine core depressive symptom categories represented in ReDSM\-5\.

MentalSBERT\-S is initialised from a SentenceTransformer encoder\[[9](https://arxiv.org/html/2609.01833#bib.bib28)\]and fine\-tuned on the ReDSM\-5 training split\. Given contextual token representationszi∈ℝmz\_\{i\}\\in\\mathbb\{R\}^\{m\}for a sentence containingnnsubword tokens, mean pooling produces

h⁡\(x\)=1n​∑i=1nzi,h\(x\)=\\frac\{1\}\{n\}\\sum\_\{i=1\}^\{n\}z\_\{i\},\(2\)whereh⁡\(x\)∈ℝmh\(x\)\\in\\mathbb\{R\}^\{m\}is the sentence embedding\. The encoder is trained using symptom supervision together with label\-derived contrastive relations\. Positive relations are formed only between training sentences sharing the same symptom label, whereas sentences with different labels provide cross\-category negative relations\. No held\-out sentence is used to construct these relations\.

On the shared representationh⁡\(x\)h\(x\), the model usesKKone\-vs\-rest classification heads\. For labelkk, the independent sigmoid score is

pk​\(x\)=σ⁡\(wk⊤​h​\(x\)\+bk\),k∈𝒴\.p\_\{k\}\(x\)=\\sigma\\\!\\left\(w\_\{k\}^\{\\top\}h\(x\)\+b\_\{k\}\\right\),\\qquad k\\in\\mathcal\{Y\}\.\(3\)The vector

P⁡\(x\)=\[p1​\(x\),p2​\(x\),…,pK​\(x\)\]P\(x\)=\\left\[p\_\{1\}\(x\),p\_\{2\}\(x\),\\ldots,p\_\{K\}\(x\)\\right\]\(4\)contains independently estimated class\-matching scores rather than a jointly normalised categorical posterior\. The initial symptom prediction is

y^​\(x\)=arg⁡maxk∈𝒴​pk​\(x\)\.\\hat\{y\}\(x\)=\\arg\\max\_\{k\\in\\mathcal\{Y\}\}p\_\{k\}\(x\)\.\(5\)Independent heads allow overlapping symptoms to receive non\-negligible scores without forcing probability mass to sum to one\. The Stage\-1 symptom candidate iss​\(x\)=y^​\(x\)s\(x\)=\\hat\{y\}\(x\), which is passed directly to Stage 2 for verification\.

### III\-BDefinition\-Grounded Binary Symptom Verification

Stage 2 verifies the candidate symptoms⁡\(x\)s\(x\)produced by Stage 1\. It is formulated as binary classification rather than another nine\-class prediction:

v⁡\(x,s⁡\(x\)\)∈\{0,1\},v\(x,s\(x\)\)\\in\\\{0,1\\\},\(6\)where11denotesPresentand00denotesAbsent\. The target remains the sentencexx; its source postddis included only to resolve contextual phenomena such as negation, referent ambiguity, or statements whose interpretation depends on surrounding text\.

The verifier is a DeepSeek decoder separately adapted by low\-rank fine\-tuning \(LoRA\)\[[36](https://arxiv.org/html/2609.01833#bib.bib30)\]for this present/absent task\. Its training objective is

ℒB=−∑t=1TBlogpθB\(ut∣u<t,d,x,s\(x\)\),\\mathcal\{L\}\_\{B\}=\-\\sum\_\{t=1\}^\{T\_\{B\}\}\\log p\_\{\\theta\_\{B\}\}\\left\(u\_\{t\}\\mid u\_\{<t\},d,x,s\(x\)\\right\),\(7\)whereutu\_\{t\}is a target output token,TBT\_\{B\}is the length of the target output sequence, andθB\\theta\_\{B\}denotes the verifier’s LoRA\-adapted parameters\.

Given the target sentence, post context, and Stage\-1 candidate, the verifier records an initial binary judgment

v~​\(x,d,s⁡\(x\)\)=fB​\(d,x,s⁡\(x\)\)\.\\tilde\{v\}\(x,d,s\(x\)\)=f\_\{B\}\\\!\\left\(d,x,s\(x\)\\right\)\.\(8\)The inference prompt instructs the model to prioritise explicit evidence inxx, useddonly as supporting context, distinguish current symptom evidence from negated or historical\-only statements, and return a structured JSON object\. The model is not asked to diagnose major depressive disorder, and the binary label does not require evidence for all diagnostic criteria, duration, severity, or functional impairment\.

### III\-CDefinition\-Grounded Self\-Checking and Explanation Generation

For each candidate symptoms⁡\(x\)s\(x\), a concise DSM\-5\-informed symptom definitiongs⁡\(x\)g\_\{s\(x\)\}is supplied as a sentence\-level consistency reference\. This definition guides verification of the candidate symptom but does not constitute a complete diagnostic assessment of duration, severity, functional impairment, or the full DSM\-5 criteria for major depressive disorder\. The model checks whether its preliminary binary decision is semantically consistent with the target sentence, supporting context, and candidate\-specific definition, producing

v∗​\(x,d,s⁡\(x\)\)=VDSM5​\(d,x,s⁡\(x\),v~​\(x,d,s⁡\(x\)\),gs⁡\(x\)\)\.v^\{\*\}\(x,d,s\(x\)\)=V\_\{\\mathrm\{DSM5\}\}\\left\(d,x,s\(x\),\\tilde\{v\}\(x,d,s\(x\)\),g\_\{s\(x\)\}\\right\)\.\(9\)The initial judgment and consistency check are elicited as two structured fields within one verifier model call\. Equation \([9](https://arxiv.org/html/2609.01833#S3.E9)\) describes the internal decision logic and does not denote a separate model or a second inference call\. A second call is made only if syntactically invalid JSON requires repair\.

## IVExperimental Results

This section describes the dataset and experimental protocol and then evaluates Stage\-1 symptom localisation, Stage\-2 binary verification, and the complete two\-stage framework\. The analysis covers comparisons with supervised encoder, NLI\-style, medical\-LLM, and direct LLM baselines, together with statistical robustness, computational efficiency, error patterns, and automatic and psychiatrist\-based assessment of model\-generated explanations\.

### IV\-ADataset

This study uses ReDSM\-5, a sentence\-level dataset derived from DepreSym\[[37](https://arxiv.org/html/2609.01833#bib.bib34)\]by linking annotated sentences to their original Reddit posts and assigning DSM\-5\-informed symptom labels\[[7](https://arxiv.org/html/2609.01833#bib.bib16)\]\. Each record contains a target sentence, source\-post context, one symptom label, a candidate\-specificPresent/Absentstatus, and an annotation rationale\. The label space covers nine core depressive symptom categories, supporting multiclass symptom localisation in Stage 1 and candidate\-specific binary verification in Stage 2; Table[II](https://arxiv.org/html/2609.01833#S4.T2)summarises these categories and definitions\[[7](https://arxiv.org/html/2609.01833#bib.bib16),[38](https://arxiv.org/html/2609.01833#bib.bib39)\]\. The raw corpus contains 1,896 uniquely annotated sentences\. Before partitioning, we apply two cleaning steps\. First, we remove 82 sentences labelled only asSPECIAL\_CASE, an operational residual category for psychologically relevant content outside the nine core DSM\-5 symptoms\. Second, we remove 47 genuinely multi\-label sentences annotated as simultaneouslyPresentfor two or more categories, since assigning a single primary label would impose an arbitrary priority rather than reflect the annotation\. The resulting dataset contains 1,767 single\-label sentences across the nine core categories\.

Because a Reddit post may contribute multiple annotated sentences, sentence\-level splitting can leak the same post across partitions\. We therefore use CP\-SAT\[[39](https://arxiv.org/html/2609.01833#bib.bib35)\]to assign whole posts to train, development, and test sets while minimizing deviations from a 65/16/19% per\-class target\. This yields 1,163/280/324 instances with zero post\-level overlap\. The prediction unit is the annotated target sentence, with its source post providing context for negation, temporal qualification, unclear referents, or information distributed across nearby sentences\. Labels represent sentence–symptom correspondence rather than patient\-level diagnosis, so diagnostic duration, frequency, severity, impairment, and differential\-diagnosis criteria are not required\. Table[II](https://arxiv.org/html/2609.01833#S4.T2)is therefore used as a semantic reference for symptom\-related evidence, not as a complete diagnostic rule set\. All parameter training, contrastive\-pair construction, fine\-tuning, and checkpoint optimisation use only the training partition; the development partition is used for model selection and early stopping\. The test partition is touched only once, for final evaluation\. Evaluation labels and annotation rationales are not supplied to any model during inference\.

TABLE II:DSM\-5\-Informed Symptom Categories and Definitions\[[7](https://arxiv.org/html/2609.01833#bib.bib16),[38](https://arxiv.org/html/2609.01833#bib.bib39)\]Symptom CategoryDefinitionDepressed MoodDepressed mood most of the day, nearly every day, as indicated by either subjective report \(e\.g\., feels sad, empty, or hopeless\) or observation made by others \(e\.g\., appears tearful\)\.AnhedoniaMarkedly diminished interest or pleasure in all, or almost all, activities most of the day, nearly every day \(as indicated by either subjective account or observation\)\.Appetite or Weight ChangeSignificant weight loss when not dieting or weight gain \(e\.g\., a change of more than 5% of body weight in a month\), or decrease or increase in appetite nearly every day\.Sleep IssuesInsomnia or hypersomnia nearly every day\.Psychomotor AlterationPsychomotor agitation or retardation nearly every day \(observable by others, not merely subjective feelings of restlessness or being slowed down\)\.Fatigue / Loss of EnergyFatigue or loss of energy nearly every day\.Worthlessness or Excessive GuiltFeelings of worthlessness or excessive or inappropriate guilt \(which may be delusional\) nearly every day \(not merely self\-reproach or guilt about being sick\)\.Cognitive IssuesDiminished ability to think or concentrate, or indecisiveness, nearly every day \(either by subjective account or as observed by others\)\.Suicidal Thoughts / Death IdeationRecurrent thoughts of death \(not just fear of dying\), recurrent suicidal ideation without a specific plan, or a suicide attempt or a specific plan for committing suicide\.

TABLE III:Stage\-1 per\-symptom precision, recall, and F1\-score comparison for ANH=ANHEDONIA; APP=APPETITE\_CHANGE; COG=COGNITIVE\_ISSUES; DEP=DEPRESSED\_MOOD; FAT=FATIGUE\.Note:For methods evaluated over three seeds, each entry reports the seed\-averaged precision/recall/F1; deterministic zero\-shot, few\-shot, and retrieval\-augmented methods are evaluated once\.ModelANHAPPCOGDEPFATBART\-MNLI zero\-shot0\.266/0\.943/0\.4151\.000/0\.083/0\.1540\.400/0\.095/0\.1540\.675/0\.333/0\.4460\.450/0\.818/0\.581MedGemma\-4B\-IT zero\-shot0\.595/0\.714/0\.6490\.889/0\.667/0\.7620\.812/0\.619/0\.7030\.577/0\.741/0\.6490\.718/0\.848/0\.778MentalBERT zero\-shot0\.771/0\.771/0\.7711\.000/1\.000/1\.0000\.643/0\.857/0\.7350\.853/0\.358/0\.5040\.882/0\.909/0\.895DeBERTa0\.678/0\.886/0\.7580\.000/0\.000/0\.0000\.286/0\.095/0\.1430\.887/0\.831/0\.8570\.465/0\.707/0\.557MentalRoBERTa0\.893/0\.924/0\.9071\.000/0\.944/0\.9710\.920/0\.905/0\.9120\.931/0\.938/0\.9350\.806/1\.000/0\.892DeepSeek 0\-shot0\.698/0\.857/0\.7691\.000/0\.833/0\.9090\.615/0\.762/0\.6810\.768/0\.778/0\.7730\.912/0\.939/0\.925DeepSeek few\-shot0\.566/0\.857/0\.6821\.000/0\.917/0\.9570\.652/0\.714/0\.6820\.879/0\.630/0\.7340\.879/0\.879/0\.879DeepSeek RAG0\.630/0\.829/0\.7161\.000/0\.667/0\.8000\.889/0\.762/0\.8210\.757/0\.691/0\.7230\.882/0\.909/0\.895DeepSeek \(fine\-tuned\)0\.923/0\.905/0\.9141\.000/0\.889/0\.9380\.903/0\.873/0\.8870\.895/0\.942/0\.9180\.838/0\.990/0\.908MentalSBERT\-S \(BCE only\)0\.930/0\.886/0\.9071\.000/0\.972/0\.9860\.944/0\.810/0\.8700\.903/0\.951/0\.9260\.860/0\.990/0\.920MentalSBERT\-S0\.969/0\.895/0\.9301\.000/0\.917/0\.9570\.945/0\.825/0\.8810\.912/0\.975/0\.9420\.831/0\.990/0\.903

TABLE IV:Stage\-1 per\-symptom precision, recall, and F1\-score comparison for PSY=PSYCHOMOTOR; SLE=SLEEP\_ISSUES; SUI=SUICIDAL\_THOUGHTS; WOR=WORTHLESSNESS\.Note:For methods evaluated over three seeds, each entry reports the seed\-averaged precision/recall/F1; deterministic zero\-shot, few\-shot, and retrieval\-augmented methods are evaluated once\.ModelPSYSLESUIWORBART\-MNLI zero\-shot0\.117/0\.778/0\.2031\.000/0\.194/0\.3241\.000/0\.771/0\.8711\.000/0\.015/0\.029MedGemma\-4B\-IT zero\-shot0\.125/0\.111/0\.1180\.889/0\.774/0\.8281\.000/0\.800/0\.8890\.938/0\.672/0\.783MentalBERT zero\-shot0\.600/0\.333/0\.4290\.906/0\.935/0\.9210\.557/0\.971/0\.7080\.554/0\.687/0\.613DeBERTa0\.000/0\.000/0\.0000\.733/0\.925/0\.8020\.927/0\.952/0\.9390\.839/0\.905/0\.870MentalRoBERTa0\.833/0\.333/0\.4740\.966/0\.925/0\.9450\.941/0\.914/0\.9280\.950/0\.930/0\.940DeepSeek 0\-shot0\.167/0\.111/0\.1330\.935/0\.935/0\.9350\.941/0\.914/0\.9270\.862/0\.746/0\.800DeepSeek few\-shot0\.176/0\.333/0\.2310\.903/0\.903/0\.9030\.968/0\.857/0\.9090\.862/0\.836/0\.849DeepSeek RAG0\.400/0\.444/0\.4211\.000/0\.935/0\.9670\.689/0\.886/0\.7750\.863/0\.657/0\.746DeepSeek \(fine\-tuned\)0\.838/0\.519/0\.6370\.935/0\.925/0\.9300\.980/0\.933/0\.9560\.954/0\.920/0\.937MentalSBERT\-S \(BCE only\)1\.000/0\.333/0\.4770\.957/0\.957/0\.9570\.961/0\.924/0\.9420\.924/0\.965/0\.944MentalSBERT\-S0\.867/0\.444/0\.5860\.957/0\.946/0\.9511\.000/0\.943/0\.9710\.956/0\.970/0\.963

TABLE V:Overall Stage\-1 performance on the 324\-instance test partition\.
Note:For methods evaluated over three seeds, each entry reports the seed mean±\\pmsample SD\. Methods evaluated once \(deterministic zero\-shot, few\-shot, and retrieval\-augmented prompting\) omit SD\.ModelAccuracyMacro F1Weighted F1BART\-MNLI zero\-shot0\.4040\.3530\.368MedGemma\-4B\-IT zero\-shot0\.7160\.6840\.726MentalBERT zero\-shot0\.7040\.7310\.689DeBERTa0\.760±\\pm0\.0350\.547±\\pm0\.0250\.720±\\pm0\.032MentalRoBERTa0\.919±\\pm0\.0110\.878±\\pm0\.0100\.916±\\pm0\.011DeepSeek 0\-shot0\.8090\.7620\.807DeepSeek few\-shot0\.7810\.7580\.793DeepSeek RAG0\.7620\.7630\.774DeepSeek \(fine\-tuned\)0\.918±\\pm0\.0100\.891±\\pm0\.0200\.916±\\pm0\.010MentalSBERT\-S \(BCE only\)0\.923±\\pm0\.0030\.881±\\pm0\.0240\.918±\\pm0\.005MentalSBERT\-S0\.934±\\pm0\.0020\.898±\\pm0\.0020\.932±\\pm0\.002TABLE VI:Efficiency comparison across the retained Stage\-1 baselines and ablations on the 324\-instance test partition\.
Note:LLM Gen is the number of autoregressive generations\. Multi\-seed configurations report mean±\\pmSD across seeds\.ModelLLM GenTotal Time \(s\)Avg Latency \(s\)ThroughputAvg Input Tok\.Avg Output Tok\.Total TokensBART\-MNLI zero\-shot03\.350\.01096\.65311\.10\.0100791MedGemma\-4B\-IT zero\-shot324156\.40\.4832\.07426\.713\.7142683MentalBERT zero\-shot00\.200\.0011639\.2618\.30\.05923DeBERTa0±\\pm01\.11±\\pm0\.020\.004±\\pm0\.000251\.92±\\pm3\.38316\.8±\\pm0\.00\.0±\\pm0\.088697±\\pm0MentalRoBERTa0±\\pm00\.41±\\pm0\.000\.001±\\pm0\.000796\.54±\\pm7\.53284\.6±\\pm0\.00\.0±\\pm0\.092195±\\pm0DeepSeek 0\-shot3243240\.410\.0010\.10400\.8295\.3225527DeepSeek few\-shot3243965\.612\.2400\.08973\.1342\.0426094DeepSeek RAG3241823\.55\.6280\.18599\.4145\.4241332DeepSeek \(fine\-tuned\)324±\\pm0292\.4±\\pm2\.00\.902±\\pm0\.0061\.11±\\pm0\.01242\.9±\\pm3\.511\.9±\\pm0\.282531±\\pm1100MentalSBERT\-S0±\\pm00\.39±\\pm0\.100\.001±\\pm0\.000869\.75±\\pm208\.7718\.3±\\pm0\.00\.0±\\pm0\.05923±\\pm0

### IV\-BStage\-1 Results Analysis

Stage\-1 assigns one of nine DSM\-5 symptom categories to each target sentence\. MentalSBERT\-S is a SentenceTransformer encoder fine\-tuned with a joint multi\-head binary classification and triplet\-contrastive objective\. Methods with trainable multi\-seed configurations were evaluated with random seeds 42, 52, and 62 on the fixed 324\-sentence test partition, with results reported as the seed mean and sample standard deviation\. Fixed single\-run zero\-shot, few\-shot, and retrieval\-augmented baseline configurations were evaluated once\. BART\-MNLI uses independent entailment scoring with a fixed hypothesis template, while generative LLM baselines use greedy decoding\. MedGemma\-4B\-IT provides a recent medical\-domain LLM baseline, evaluated under zero\-shot prompting with the same task instruction and label set as the other generative baselines\. MentalBERT zero\-shot is a deterministic cosine\-similarity classifier that embeds the target sentence and each symptom’s textual definition with the same SentenceTransformer backbone used by MentalSBERT\-S, without any task\-specific training\.

Tables[III](https://arxiv.org/html/2609.01833#S4.T3)and[IV](https://arxiv.org/html/2609.01833#S4.T4)summarize class\-specific performance, whereas Table[V](https://arxiv.org/html/2609.01833#S4.T5)reports aggregate performance\. Per\-symptom cells report one\-versus\-rest precision, recall, and F1, whereas Macro F1 is the unweighted average over the nine\-class label set and Weighted F1 weights each class by its evaluation support\.

The baseline comparison exhibits a clear progression from generic inference to domain adaptation and task\-specific training\. Among the deterministic zero\-shot baselines, BART\-MNLI obtains an accuracy of 0\.404, a Macro F1 of 0\.353, and a Weighted F1 of 0\.368\. Its strong SUICIDAL\_THOUGHTS F1 \(0\.871\) indicates that explicit high\-risk language is readily captured, whereas its near\-zero recall on WORTHLESSNESS \(F1=0\.029\) reveals the limitations of independent generic entailment scores for a mutually exclusive, dataset\-specific label space\. The recent medical\-domain MedGemma\-4B\-IT zero\-shot baseline substantially improves over BART\-MNLI, reaching 0\.716 accuracy, 0\.684 Macro F1, and 0\.726 Weighted F1\. The zero\-shot MentalBERT cosine\-similarity classifier, despite using no task\-specific training, is a competitive reference point \(0\.704 accuracy, 0\.731 Macro F1, 0\.689 Weighted F1\), performing particularly well on FATIGUE \(F1=0\.895\) and SLEEP\_ISSUES \(F1=0\.921\) but poorly on DEPRESSED\_MOOD \(F1=0\.504\), where its definition\-similarity signal is diluted by the category’s broad and heterogeneous surface forms\.

The trained encoder baselines demonstrate the importance of task\-specific representation learning\. DeBERTa reaches0\.760±0\.0350\.760\\pm 0\.035accuracy but a much lower Macro F1 of0\.547±0\.0250\.547\\pm 0\.025, reflecting collapsed performance on the low\-support APPETITE\_CHANGE and PSYCHOMOTOR categories \(F1=0\.000 in the representative seed\)\. MentalRoBERTa is the strongest conventional encoder baseline, reaching0\.919±0\.0110\.919\\pm 0\.011accuracy,0\.878±0\.0100\.878\\pm 0\.010Macro F1, and0\.916±0\.0110\.916\\pm 0\.011Weighted F1\. The proposed MentalSBERT\-S reaches0\.934±0\.0020\.934\\pm 0\.002accuracy,0\.898±0\.0020\.898\\pm 0\.002Macro F1, and0\.932±0\.0020\.932\\pm 0\.002Weighted F1, exceeding MentalRoBERTa by 0\.015, 0\.020, and 0\.016, respectively, with a visibly tighter seed\-to\-seed spread\. To assess whether this gap reflects a stable effect rather than sampling variation, we ran a hierarchical bootstrap that jointly resamples the three training seeds and the test instances \(10,000 resamples\)\. The 95% confidence interval for the Macro\-F1 difference between MentalSBERT\-S and MentalRoBERTa is\[−0\.019,0\.065\]\[\-0\.019,\\,0\.065\]\(p=0\.334p=0\.334\), so the numerical advantage of MentalSBERT\-S over the strongest conventional encoder baseline is not statistically conclusive at this test\-set scale\. The specific contribution of the contrastive objective is examined separately below\.

The generative baselines show that prompting alone remains behind supervised adaptation on this closed\-set sentence\-level task\. DeepSeek zero\-shot obtains 0\.809 accuracy, 0\.762 Macro F1, and 0\.807 Weighted F1; few\-shot prompting reaches 0\.781, 0\.758, and 0\.793; and retrieval\-augmented prompting reaches 0\.762, 0\.763, and 0\.774\. Directly fine\-tuning DeepSeek\-R1\-Distill\-Qwen\-14B on the Stage\-1 task improves on all three prompting variants, reaching0\.918±0\.0100\.918\\pm 0\.010accuracy,0\.891±0\.0200\.891\\pm 0\.020Macro F1, and0\.916±0\.0100\.916\\pm 0\.010Weighted F1, slightly below MentalSBERT\-S on all three metrics\. The fine\-tuned generative model requires autoregressive generation for every sentence, whereas MentalSBERT\-S requires none; given its comparable or better accuracy, this makes the lighter contrastively fine\-tuned sentence encoder the more practical choice for the Stage\-1 component, and it is used as such throughout the remainder of the paper\.

MentalSBERT\-S benefits from the joint classification and contrastive objective, though the gap is modest at this data scale\. The BCE\-only variant obtains an accuracy of0\.923±0\.0030\.923\\pm 0\.003and a Macro F1 of0\.881±0\.0240\.881\\pm 0\.024, whereas the full BCE\+triplet objective reaches0\.934±0\.0020\.934\\pm 0\.002and0\.898±0\.0020\.898\\pm 0\.002, respectively – a gain of 0\.011 accuracy and 0\.017 Macro F1, with a visibly tighter seed\-to\-seed spread on Macro F1\. The largest per\-class gain from adding the contrastive term is on PSYCHOMOTOR \(F1 0\.477 to 0\.586\), the lowest\-support category, consistent with contrastive training providing the most benefit where classification supervision alone has the fewest positive examples to learn from\. The training pairs use same\-symptom anchor–positive pairs and random cross\-symptom negatives\. Within\-category negatives are not used because the corpus does not identify semantically incompatible sentence pairs within a symptom label; treating unannotated same\-label examples as negatives would oppose the BCE class supervision\.

![Refer to caption](https://arxiv.org/html/2609.01833v1/FIG/FIG2.png)Fig\. 2:Confusion matrix for MentalSBERT\-S on the nine\-class Stage\-1 symptom\-candidate task, representative seed 42\. Rows denote the ground\-truth DSM\-5 symptom category and columns denote the category predicted by MentalSBERT\-S on the 324\-instance test partition; cell values are instance counts, with darker shading indicating a higher count\. A perfectly accurate classifier would place all mass on the diagonal\.The confusion matrix in Fig\.[2](https://arxiv.org/html/2609.01833#S4.F2)presents the representative seed\-42 result\. Predictions are strongly concentrated along the diagonal, especially for DEPRESSED\_MOOD, FATIGUE, SUICIDAL\_THOUGHTS, and WORTHLESSNESS, indicating reliable recognition of several well\-represented or semantically distinctive symptom categories\. The remaining errors are concentrated in the lower\-support PSYCHOMOTOR category, which is most often confused with the semantically related FATIGUE and DEPRESSED\_MOOD categories\. This pattern is consistent with the per\-class results in Tables[III](https://arxiv.org/html/2609.01833#S4.T3)and[IV](https://arxiv.org/html/2609.01833#S4.T4)and indicates that the principal remaining difficulty lies in fine\-grained boundary discrimination for rare categories rather than recognition of the major symptom classes\.

The efficiency results in Table[VI](https://arxiv.org/html/2609.01833#S4.T6)highlight the practical cost of generative inference relative to the encoder approach\. MentalSBERT\-S classifies all 324 test sentences in under half a second of total inference time, several orders of magnitude faster than any generative baseline, while requiring no autoregressive generation\. The DeepSeek and MedGemma\-4B\-IT prompting baselines and the fine\-tuned DeepSeek model each require one generation per sentence and consume between8\.3×1048\.3\\times 10^\{4\}and4\.3×1054\.3\\times 10^\{5\}tokens in total, whereas MentalSBERT\-S consumes under 6,000 tokens for the entire test partition\. Combined with its comparable or better accuracy relative to the fine\-tuned generative model, this efficiency advantage motivates using MentalSBERT\-S as the Stage\-1 component of the complete pipeline\.

### IV\-CStage\-2 Results Analysis

Stage 2 evaluates whether a candidate symptom isPresentorAbsentin the target sentence\. The proposed configuration fine\-tunes DeepSeek\-R1\-Distill\-Qwen\-14B together with a concise candidate\-specific, DSM\-5\-informed symptom definition\. Within one structured inference call, the model first forms a binary judgment and then checks that judgment for consistency with the supplied definition\. This procedure is evaluated as sentence\-level annotation verification rather than as a complete clinical diagnostic assessment\.

Tables[VII](https://arxiv.org/html/2609.01833#S4.T7)and[VIII](https://arxiv.org/html/2609.01833#S4.T8)break down the proposed verifier’sPresent\-class precision, recall, and F1 by candidate symptom category, complementing the aggregate results in Table[IX](https://arxiv.org/html/2609.01833#S4.T9)\.

TABLE VII:Present\-class precision, recall, and F1\-score by candidate symptom category on the Stage\-2 verification task \(multi\-method comparison; cross\-encoder and fine\-tuned rows shown for representative seed 42\) for ANH=ANHEDONIA; APP=APPETITE\_CHANGE; COG=COGNITIVE\_ISSUES; DEP=DEPRESSED\_MOOD; FAT=FATIGUE\.MethodANHAPPCOGDEPFATBART\-MNLI zero\-shot0\.765/1\.000/0\.8670\.667/1\.000/0\.8000\.550/1\.000/0\.7100\.786/0\.917/0\.8460\.906/0\.967/0\.935MedGemma\-4B\-IT zero\-shot0\.743/1\.000/0\.8520\.667/1\.000/0\.8000\.550/1\.000/0\.7100\.794/0\.900/0\.8440\.909/1\.000/0\.952DeepSeek zero\-shot0\.870/0\.769/0\.8160\.700/0\.875/0\.7780\.526/0\.909/0\.6670\.872/0\.683/0\.7660\.906/0\.967/0\.935DeepSeek few\-shot0\.815/0\.846/0\.8300\.875/0\.875/0\.8750\.600/0\.818/0\.6920\.778/0\.817/0\.7970\.935/0\.967/0\.951DeepSeek RAG0\.833/0\.769/0\.8000\.700/0\.875/0\.7780\.588/0\.909/0\.7140\.875/0\.817/0\.8450\.935/0\.967/0\.951DeBERTa\-v3 cross\-encoder0\.743/1\.000/0\.8520\.667/1\.000/0\.8000\.524/1\.000/0\.6880\.741/1\.000/0\.8510\.909/1\.000/0\.952MentalSBERT cross\-encoder0\.769/0\.769/0\.7690\.667/1\.000/0\.8000\.556/0\.909/0\.6900\.738/0\.983/0\.8430\.909/1\.000/0\.952DeepSeek \(fine\-tuned, direct\)0\.833/0\.769/0\.8000\.700/0\.875/0\.7780\.588/0\.909/0\.7140\.824/0\.933/0\.8750\.906/0\.967/0\.935DeepSeek \(fine\-tuned, definition\-only\)0\.852/0\.885/0\.8680\.700/0\.875/0\.7780\.526/0\.909/0\.6670\.818/0\.900/0\.8570\.909/1\.000/0\.952DeepSeek \(fine\-tuned, proposed\)0\.808/0\.808/0\.8080\.667/0\.750/0\.7060\.556/0\.909/0\.6900\.831/0\.900/0\.8640\.909/1\.000/0\.952

TABLE VIII:Present\-class precision, recall, and F1\-score by candidate symptom category on the Stage\-2 verification task \(multi\-method comparison; cross\-encoder and fine\-tuned rows shown for representative seed 42\) for PSY=PSYCHOMOTOR; SLE=SLEEP\_ISSUES; SUI=SUICIDAL\_THOUGHTS; WOR=WORTHLESSNESS\.MethodPSYSLESUIWORBART\-MNLI zero\-shot0\.667/1\.000/0\.8000\.581/1\.000/0\.7350\.970/0\.941/0\.9550\.815/0\.863/0\.838MedGemma\-4B\-IT zero\-shot0\.625/0\.833/0\.7140\.581/1\.000/0\.7350\.968/0\.882/0\.9230\.790/0\.961/0\.867DeepSeek zero\-shot0\.750/0\.500/0\.6000\.607/0\.944/0\.7390\.964/0\.794/0\.8710\.971/0\.667/0\.791DeepSeek few\-shot1\.000/0\.333/0\.5000\.542/0\.722/0\.6191\.000/0\.853/0\.9210\.875/0\.824/0\.848DeepSeek RAG0\.667/0\.333/0\.4440\.552/0\.889/0\.6810\.968/0\.882/0\.9230\.857/0\.824/0\.840DeBERTa\-v3 cross\-encoder0\.667/1\.000/0\.8000\.581/1\.000/0\.7350\.971/1\.000/0\.9860\.761/1\.000/0\.864MentalSBERT cross\-encoder0\.625/0\.833/0\.7140\.586/0\.944/0\.7230\.971/1\.000/0\.9860\.769/0\.980/0\.862DeepSeek \(fine\-tuned, direct\)0\.667/0\.667/0\.6670\.615/0\.889/0\.7270\.967/0\.853/0\.9060\.820/0\.980/0\.893DeepSeek \(fine\-tuned, definition\-only\)0\.667/1\.000/0\.8000\.593/0\.889/0\.7110\.969/0\.912/0\.9390\.814/0\.941/0\.873DeepSeek \(fine\-tuned, proposed\)0\.571/0\.667/0\.6150\.654/0\.944/0\.7730\.971/0\.971/0\.9710\.860/0\.961/0\.907

TABLE IX:Overall Stage\-2 performance on the 324\-instance test partition\. Values for trained methods report mean±\\pmsample SD over seeds 42, 52, and 62\.Note:Macro F1 is the unweighted mean over thePresentandAbsentclasses; Weighted F1 is support\-weighted\. Deterministic zero\-shot, few\-shot, and retrieval\-augmented baselines are reported once\.MethodAccuracyMacro F1Weighted F1Absent F1Present F1BART\-MNLI zero\-shot0\.7500\.5530\.7030\.2570\.850MedGemma\-4B\-IT zero\-shot0\.7470\.5300\.6920\.2120\.849DeepSeek zero\-shot0\.7100\.6360\.7190\.4720\.800DeepSeek few\-shot0\.7310\.6340\.7300\.4460\.823DeepSeek RAG0\.7410\.6420\.7370\.4550\.830DeBERTa\-v3 cross\-encoder0\.755±0\.0040\.755\\pm 0\.0040\.488±0\.1020\.488\\pm 0\.1020\.675±0\.0480\.675\\pm 0\.0480\.120±0\.2080\.120\\pm 0\.2080\.857±0\.0040\.857\\pm 0\.004MentalSBERT cross\-encoder0\.750±0\.0110\.750\\pm 0\.0110\.524±0\.0400\.524\\pm 0\.0400\.690±0\.0180\.690\\pm 0\.0180\.197±0\.0840\.197\\pm 0\.0840\.852±0\.0090\.852\\pm 0\.009DeepSeek \(fine\-tuned, direct\)0\.766±0\.0110\.766\\pm 0\.0110\.656±0\.0190\.656\\pm 0\.0190\.754±0\.0100\.754\\pm 0\.0100\.461±0\.0400\.461\\pm 0\.0400\.851±0\.0100\.851\\pm 0\.010DeepSeek \(fine\-tuned, definition\-only\)0\.770±0\.0100\.770\\pm 0\.0100\.630±0\.0520\.630\\pm 0\.0520\.745±0\.0260\.745\\pm 0\.0260\.404±0\.1020\.404\\pm 0\.1020\.857±0\.0010\.857\\pm 0\.001DeepSeek \(fine\-tuned, proposed\)0\.780±0\.005\\mathbf\{0\.780\\pm 0\.005\}0\.658±0\.021\\mathbf\{0\.658\\pm 0\.021\}0\.761±0\.007\\mathbf\{0\.761\\pm 0\.007\}0\.453±0\.0480\.453\\pm 0\.0480\.862±0\.007\\mathbf\{0\.862\\pm 0\.007\}

TABLE X:Efficiency comparison across the retained Stage\-2 baselines and ablations\. Values report mean±\\pmsample SD where seed\-specific measurements are available\.MethodInput tokens/sampleOutput tokens/sampleLatency/sample \(s\)Throughput \(samples/s\)BART\-MNLI zero\-shot225\.3–0\.010101\.71MedGemma\-4B\-IT zero\-shot466\.58\.10\.2883\.48DeepSeek zero\-shot440\.6345\.012\.0590\.08DeepSeek few\-shot1382\.1207\.07\.3200\.14DeepSeek RAG686\.7316\.711\.0560\.09DeBERTa\-v3 cross\-encoder232\.3±0\.0232\.3\\pm 0\.0–0\.0054±0\.00000\.0054\\pm 0\.0000184\.43MentalSBERT cross\-encoder235\.4±0\.0235\.4\\pm 0\.0–0\.0039±0\.00000\.0039\\pm 0\.0000252\.45DeepSeek \(fine\-tuned, direct\)194\.8±0\.0194\.8\\pm 0\.06\.1±0\.26\.1\\pm 0\.20\.491±0\.0160\.491\\pm 0\.0162\.04DeepSeek \(fine\-tuned, definition\-only\)234\.5±0\.0234\.5\\pm 0\.035\.7±0\.835\.7\\pm 0\.82\.641±0\.0332\.641\\pm 0\.0330\.38DeepSeek \(fine\-tuned, proposed\)253\.5±0\.0\\mathbf\{253\.5\\pm 0\.0\}43\.5±1\.0\\mathbf\{43\.5\\pm 1\.0\}3\.066±0\.015\\mathbf\{3\.066\\pm 0\.015\}0\.33

Table[IX](https://arxiv.org/html/2609.01833#S4.T9)compares the proposed verifier with prompting\-based LLMs, zero\-shot NLI and medical\-LLM baselines, and supervised discriminative cross\-encoders\. Among the deterministic and prompted baselines, the DeepSeek zero\-shot, few\-shot, and RAG configurations reach the highest Macro F1 \(0\.636, 0\.634, and 0\.642, respectively\) but the lowest accuracy \(0\.710–0\.741\) of any baseline family, since their higher Absent F1 \(0\.446–0\.472\) comes at the cost of frequently rejecting genuinelyPresentcandidates\. BART\-MNLI and MedGemma\-4B\-IT zero\-shot achieve higher accuracy \(0\.750 and 0\.747\) but substantially lower Absent F1 \(0\.257 and 0\.212\), revealing a strong tendency to accept the supplied candidate\. The trained cross\-encoders show a similar imbalance: both DeBERTa\-v3 and MentalSBERT cross\-encoders reach approximately 0\.75 accuracy and Present F1 above 0\.85, but DeBERTa\-v3 is markedly unstable across seeds \(Macro F10\.488±0\.1020\.488\\pm 0\.102, with two of three seeds collapsing to predictingPresentfor nearly every instance\), while the MentalSBERT cross\-encoder is more consistent but still weak on the minorityAbsentclass \(0\.197±0\.0840\.197\\pm 0\.084\)\.

![Refer to caption](https://arxiv.org/html/2609.01833v1/FIG/FIG4.png)Fig\. 3:Confusion matrix for the proposed Stage\-2 verifier on the binaryPresent/Absentcandidate\-verification task, representative seed 42\. Rows denote the ground\-truth status of the Stage\-1 candidate and columns denote the status predicted by the verifier on the 324\-instance test partition \(244Present, 80Absent\); cell values are instance counts\.Fine\-tuning DeepSeek directly on the verification task without definitions or self\-checking \(direct\) already outperforms all zero\-shot and cross\-encoder baselines, reaching0\.766±0\.0110\.766\\pm 0\.011accuracy and0\.656±0\.0190\.656\\pm 0\.019Macro F1\. Adding only the DSM\-5 definition \(definition\-only\) lowers Macro F1 to0\.630±0\.0520\.630\\pm 0\.052, mainly because Absent F1 drops from0\.461±0\.0400\.461\\pm 0\.040to0\.404±0\.1020\.404\\pm 0\.102, suggesting that the definition alone may bias the model toward accepting candidates rather than rejecting unsupported ones\. Adding the self\-check step on top of the definition restores Macro F1 to0\.658±0\.0210\.658\\pm 0\.021and yields the best accuracy,0\.780±0\.0050\.780\\pm 0\.005\. A hierarchical bootstrap jointly resampling the three training seeds and test instances \(10,000 resamples\) found no significant pairwise differences: direct vs\. definition\-only, 95% CI\[−0\.073,0\.118\]\[\-0\.073,\\,0\.118\]\(p=0\.687p=0\.687\); definition\-only vs\. the proposed self\-check configuration,\[−0\.122,0\.072\]\[\-0\.122,\\,0\.072\]\(p=0\.627p=0\.627\); and direct vs\. proposed,\[−0\.071,0\.064\]\[\-0\.071,\\,0\.064\]\(p=0\.970p=0\.970\)\. Thus, the observed pattern—definition\-only reducing Macro F1 and self\-checking recovering and slightly exceeding the direct setting—should be interpreted as a suggestive trend rather than a statistically established effect\.

To compare the proposed verifier with the strongest external baseline, we evaluated it against DeepSeek RAG, the best\-performing prompting configuration\. The bootstrap 95% CI for the Macro\-F1 difference is\[−0\.055,0\.082\]\[\-0\.055,\\,0\.082\]\(p=0\.665p=0\.665\), indicating that the fine\-tuned verifier’s numerical advantage is not statistically conclusive at the current test\-set scale, despite higher accuracy \(0\.780 vs\. 0\.741\) and Present F1 \(0\.862 vs\. 0\.830\)\.

Figure[3](https://arxiv.org/html/2609.01833#S4.F3)shows that the verifier correctly identifies 224 of 244Presentand 29 of 80Absentinstances\. The 51 false accepts versus 20 false rejects is consistent with the lower Absent F1 in Table[IX](https://arxiv.org/html/2609.01833#S4.T9)and the class imbalance\. Tables[VII](https://arxiv.org/html/2609.01833#S4.T7)and[VIII](https://arxiv.org/html/2609.01833#S4.T8)show further category\-level variation: F1 is highest for FATIGUE and SUICIDAL\_THOUGHTS \(0\.952 and 0\.971\) and lowest for PSYCHOMOTOR and COGNITIVE\_ISSUES \(0\.615 and 0\.690\), indicating greater reliability for well\-supported, semantically clearer categories and similar rare\-category difficulty to Stage 1\. Table[X](https://arxiv.org/html/2609.01833#S4.T10)shows that cross\-encoders remain three to four orders of magnitude faster than generative verifiers\. Among fine\-tuned DeepSeek variants, the direct model is fastest \(0\.491±0\.0160\.491\\pm 0\.016s/sample\) because it outputs only a binary decision, while definition\-only and self\-check generate short rationales \(35\.7±0\.835\.7\\pm 0\.8and43\.5±1\.043\.5\\pm 1\.0tokens\), increasing latency to2\.641±0\.0332\.641\\pm 0\.033s and3\.066±0\.0153\.066\\pm 0\.015s per sample\.

Overall, the Stage\-2 results support the definition\-plus\-self\-check design: it achieves the highest accuracy and Present F1, while all fine\-tuned models—direct, definition\-only, and self\-check—outperform all zero\-shot, few\-shot, and cross\-encoder baselines on accuracy\. Differences among the fine\-tuned variants, however, are not statistically conclusive at the current test\-set scale and should be interpreted as trends rather than settled conclusions\. As in Stage 1, the remaining errors, especially for the sparseAbsentclass, indicate that the verifier is a sentence\-level annotation component rather than a substitute for clinical diagnosis\.

### IV\-DTwo\-Stage Inference Result Analysis

TABLE XI:Per\-class precision, recall, and F1\-score on the final ten\-class end\-to\-end evaluation \(multi\-seed methods and the proposed pipeline shown for representative seed 42\) for ANH=ANHEDONIA; APP=APPETITE\_CHANGE; COG=COGNITIVE\_ISSUES; DEP=DEPRESSED\_MOOD; FAT=FATIGUE\.MethodANHAPPCOGDEPFATBART\-MNLI zero\-shot0\.361/0\.846/0\.5060\.500/0\.375/0\.4290\.242/0\.727/0\.3640\.471/0\.667/0\.5520\.366/0\.867/0\.515MentalBERT zero\-shot0\.543/0\.731/0\.6230\.667/1\.000/0\.8000\.333/0\.818/0\.4740\.724/0\.350/0\.4720\.824/0\.933/0\.875MedGemma\-4B\-IT zero\-shot0\.679/0\.731/0\.7040\.636/0\.875/0\.7370\.333/0\.636/0\.4380\.444/0\.733/0\.5530\.750/0\.500/0\.600DeBERTa0\.000/0\.000/0\.0000\.000/0\.000/0\.0000\.000/0\.000/0\.0000\.649/0\.800/0\.7160\.789/0\.500/0\.612DeepSeek zero\-shot0\.500/0\.538/0\.5190\.778/0\.875/0\.8240\.412/0\.636/0\.5000\.528/0\.633/0\.5760\.774/0\.800/0\.787MentalRoBERTa0\.643/0\.692/0\.6670\.727/1\.000/0\.8420\.833/0\.455/0\.5880\.708/0\.850/0\.7730\.789/1\.000/0\.882DeepSeek few\-shot0\.606/0\.769/0\.6780\.750/0\.750/0\.7500\.471/0\.727/0\.5710\.724/0\.700/0\.7120\.744/0\.967/0\.841DeepSeek RAG0\.600/0\.808/0\.6890\.714/0\.625/0\.6670\.500/0\.909/0\.6450\.623/0\.717/0\.6670\.871/0\.900/0\.885Single\-stage supervised DeepSeek QLoRA0\.720/0\.692/0\.7060\.778/0\.875/0\.8240\.400/0\.545/0\.4620\.718/0\.850/0\.7790\.789/1\.000/0\.882Proposed two\-stage pipeline0\.750/0\.692/0\.7200\.625/0\.625/0\.6250\.438/0\.636/0\.5190\.743/0\.867/0\.8000\.769/1\.000/0\.870

TABLE XII:Per\-class precision, recall, and F1\-score on the final ten\-class end\-to\-end evaluation \(multi\-seed methods and the proposed pipeline shown for representative seed 42\) for PSY=PSYCHOMOTOR; SLE=SLEEP\_ISSUES; SUI=SUICIDAL\_THOUGHTS; WOR=WORTHLESSNESS; NO=NO\_SYMPTOM\.MethodPSYSLESUIWORNOBART\-MNLI zero\-shot0\.067/0\.167/0\.0950\.333/0\.056/0\.0950\.935/0\.853/0\.8920\.917/0\.216/0\.3490\.429/0\.037/0\.069MentalBERT zero\-shot0\.250/0\.167/0\.2000\.531/0\.944/0\.6800\.589/0\.971/0\.7330\.434/0\.647/0\.5200\.474/0\.113/0\.182MedGemma\-4B\-IT zero\-shot0\.100/0\.333/0\.1540\.556/0\.833/0\.6670\.897/0\.765/0\.8250\.816/0\.608/0\.6970\.548/0\.212/0\.306DeBERTa0\.000/0\.000/0\.0000\.000/0\.000/0\.0000\.681/0\.941/0\.7900\.750/0\.882/0\.8110\.387/0\.600/0\.471DeepSeek zero\-shot0\.143/0\.167/0\.1540\.548/0\.944/0\.6940\.912/0\.912/0\.9120\.754/0\.843/0\.7960\.526/0\.250/0\.339MentalRoBERTa0\.000/0\.000/0\.0000\.593/0\.889/0\.7110\.941/0\.941/0\.9410\.793/0\.902/0\.8440\.480/0\.300/0\.369DeepSeek few\-shot0\.600/0\.500/0\.5450\.552/0\.889/0\.6810\.967/0\.853/0\.9060\.677/0\.824/0\.7430\.605/0\.325/0\.423DeepSeek RAG0\.375/0\.500/0\.4290\.567/0\.944/0\.7080\.968/0\.882/0\.9230\.854/0\.804/0\.8280\.556/0\.312/0\.400Single\-stage supervised DeepSeek QLoRA0\.200/0\.167/0\.1820\.667/0\.667/0\.6670\.935/0\.853/0\.8920\.815/0\.863/0\.8380\.500/0\.362/0\.420Proposed two\-stage pipeline0\.400/0\.333/0\.3640\.680/0\.944/0\.7910\.969/0\.912/0\.9390\.842/0\.941/0\.8890\.604/0\.362/0\.453

TABLE XIII:Overall performance in the final ten\-class end\-to\-end evaluation on the 324\-instance test partition\. Trained methods report mean±\\pmsample SD over seeds 42, 52, and 62; deterministic single\-run baselines are reported once\.MethodAccuracyMacro F1Weighted F1BART\-MNLI zero\-shot0\.4440\.3870\.386MentalBERT zero\-shot0\.5490\.5560\.499MedGemma\-4B\-IT zero\-shot0\.5650\.5680\.559DeBERTa0\.484±0\.0930\.484\\pm 0\.0930\.258±0\.0810\.258\\pm 0\.0810\.412±0\.1020\.412\\pm 0\.102DeepSeek zero\-shot0\.6230\.6100\.605MentalRoBERTa0\.691±0\.0160\.691\\pm 0\.0160\.633±0\.0260\.633\\pm 0\.0260\.663±0\.0160\.663\\pm 0\.016DeepSeek few\-shot0\.6820\.6850\.666DeepSeek RAG0\.6850\.6840\.672Single\-stage supervised DeepSeek QLoRA0\.698±0\.0030\.698\\pm 0\.0030\.661±0\.0150\.661\\pm 0\.0150\.684±0\.0040\.684\\pm 0\.004Proposed two\-stage pipeline0\.731±0\.005\\mathbf\{0\.731\\pm 0\.005\}0\.690±0\.011\\mathbf\{0\.690\\pm 0\.011\}0\.715±0\.010\\mathbf\{0\.715\\pm 0\.010\}

TABLE XIV:Efficiency comparison for the final ten\-class end\-to\-end evaluation on the 324\-instance test partition\.
Note:LLM Gen is the number of autoregressive generations\. The proposed pipeline’s cost is the sum of the Stage\-1 encoder pass and the Stage\-2 verifier call for every test sentence\. Multi\-seed configurations report mean±\\pmSD across seeds\.MethodLLM GenTotal Time \(s\)Avg Latency \(s\)ThroughputAvg Input Tok\.Avg Output Tok\.Total TokensBART\-MNLI zero\-shot05\.760\.01856\.25286\.60\.092874MentalBERT zero\-shot00\.200\.0011651\.6118\.30\.05923DeBERTa01\.05±0\.001\.05\\pm 0\.000\.003±0\.0000\.003\\pm 0\.000308\.69±1\.32308\.69\\pm 1\.32276\.1±0\.0276\.1\\pm 0\.00\.0±0\.00\.0\\pm 0\.089463±089463\\pm 0MentalRoBERTa00\.41±0\.010\.41\\pm 0\.010\.001±0\.0000\.001\\pm 0\.000790\.29±25\.93790\.29\\pm 25\.93290\.3±0\.0290\.3\\pm 0\.00\.0±0\.00\.0\\pm 0\.094067±094067\\pm 0MedGemma\-4B\-IT zero\-shot324155\.600\.4802\.08407\.714\.6136824DeepSeek zero\-shot3241184\.283\.6550\.27544\.793\.1206652DeepSeek few\-shot3241417\.774\.3760\.231517\.9109\.7527348DeepSeek RAG3241286\.303\.9700\.25830\.9100\.1301671Single\-stage supervised DeepSeek QLoRA324459\.03±0\.22459\.03\\pm 0\.221\.417±0\.0011\.417\\pm 0\.0010\.71±0\.000\.71\\pm 0\.00495\.7±0\.0495\.7\\pm 0\.018\.7±0\.118\.7\\pm 0\.1166674±40166674\\pm 40Proposed two\-stage pipeline324978\.32±30\.25\\mathbf\{978\.32\\pm 30\.25\}3\.020±0\.093\\mathbf\{3\.020\\pm 0\.093\}0\.33±0\.01\\mathbf\{0\.33\\pm 0\.01\}271\.5±0\.0\\mathbf\{271\.5\\pm 0\.0\}43\.4±0\.9\\mathbf\{43\.4\\pm 0\.9\}𝟏𝟎𝟐𝟎𝟒𝟏±𝟐𝟗𝟒\\mathbf\{102041\\pm 294\}

The final experiment evaluates the complete framework without access to gold symptom labels\. For each target sentence, Stage 1 \(MentalSBERT\-S\) proposes a symptom candidate, and Stage 2 \(the fine\-tuned DeepSeek verifier\) then determines whether that candidate isPresentorAbsent\. APresentdecision preserves the Stage\-1 symptom, whereas anAbsentdecision producesNO\_SYMPTOM\. The resulting label space contains the nine core symptom categories plusNO\_SYMPTOM\. This genuinely end\-to\-end evaluation differs from the isolated Stage\-1 and Stage\-2 results reported above in that Stage\-2 verifies whatever category Stage\-1 actually predicted, including its errors, rather than the gold category\.

Table[XIII](https://arxiv.org/html/2609.01833#S4.T13)reports aggregate performance, comparing the proposed pipeline against encoder, NLI\-style, medical\-LLM, and direct\-prompting baselines, together with a directly supervised single\-stage DeepSeek\-R1\-Distill\-Qwen\-14B QLoRA baseline trained end\-to\-end on the same ten\-class task and training partition\. All trained methods are reported as mean±\\pmsample SD over seeds 42, 52, and 62; deterministic single\-run baselines are reported once\.

Table[XIV](https://arxiv.org/html/2609.01833#S4.T14)shows that the proposed pipeline’s inference cost is dominated by the Stage\-2 generation call: the Stage\-1 MentalSBERT\-S pass adds under half a second in total across all 324 test sentences, so the pipeline’s average latency \(3\.020±0\.0933\.020\\pm 0\.093s/sample\) closely tracks the isolated Stage\-2 verifier cost reported in Table[X](https://arxiv.org/html/2609.01833#S4.T10)\. The proposed pipeline is markedly cheaper than every DeepSeek prompting baseline \(zero\-shot, few\-shot, and RAG all exceed 3\.6s/sample and consume22–5×5\\timesmore total tokens\)\. It is slower per sample than the single\-stage supervised DeepSeek QLoRA baseline \(1\.417±0\.0011\.417\\pm 0\.001s\), since the single\-stage classifier emits only a short class label in a single call whereas the proposed pipeline performs two model calls per sentence and generates a supporting rationale as part of the Stage\-2 verification; despite this, the proposed pipeline consumes fewer total tokens overall \(102041±294102041\\pm 294versus166674±40166674\\pm 40\) because its Stage\-1 pass requires no generation at all\. This latency\-versus\-accuracy trade\-off is consistent with the accuracy advantage of the two\-stage decomposition reported in Table[XIII](https://arxiv.org/html/2609.01833#S4.T13)\.

Among the baselines, accuracy and Macro F1 improve steadily from generic zero\-shot inference \(BART\-MNLI: 0\.444/0\.387\) through domain zero\-shot and encoder methods \(MentalBERT: 0\.549/0\.556; MedGemma zero\-shot: 0\.565/0\.568; DeBERTa:0\.484±0\.0930\.484\\pm 0\.093/0\.258±0\.0810\.258\\pm 0\.081, unstable across seeds\) to task\-adapted encoders and prompted generation \(MentalRoBERTa:0\.691±0\.0160\.691\\pm 0\.016/0\.633±0\.0260\.633\\pm 0\.026; DeepSeek few\-shot: 0\.682/0\.685; DeepSeek RAG: 0\.685/0\.684\)\. Directly fine\-tuning DeepSeek\-R1\-Distill\-Qwen\-14B as a single\-stage ten\-class classifier improves further, reaching0\.698±0\.0030\.698\\pm 0\.003accuracy and0\.661±0\.0150\.661\\pm 0\.015Macro F1, and outperforms every zero\-shot, few\-shot, RAG, and encoder baseline\.

The proposed two\-stage pipeline – MentalSBERT\-S for candidate generation followed by the fine\-tuned DeepSeek verifier – reaches0\.731±0\.0050\.731\\pm 0\.005accuracy,0\.690±0\.0110\.690\\pm 0\.011Macro F1, and0\.715±0\.0100\.715\\pm 0\.010Weighted F1, the best result of any evaluated method\. Because the single\-stage supervised baseline uses the identical backbone, training partition, and comparable QLoRA optimisation settings, the comparison against it isolates the benefit of decomposing the task into candidate generation and candidate\-specific verification rather than any difference in model capacity or training data\. A hierarchical bootstrap that jointly resamples the three training seeds and the test instances \(10,000 resamples\) gives a 95% CI of\[−0\.053,0\.105\]\[\-0\.053,\\,0\.105\]for the Macro\-F1 difference between the two\-stage pipeline and the single\-stage baseline \(p=0\.498p=0\.498\), so the numerical advantage of the two\-stage decomposition, while consistent in direction across all three seeds, is not statistically conclusive at this test\-set scale\.

![Refer to caption](https://arxiv.org/html/2609.01833v1/FIG/FIG5.png)Fig\. 4:Confusion matrix for the complete two\-stage pipeline on the final ten\-class end\-to\-end task \(nine DSM\-5 symptom categories plusNO\_SYMPTOM\), representative seed 42 \(accuracy 0\.738, Macro F1 0\.697\)\. Rows denote the ground\-truth ten\-class label and columns denote the label produced by the full pipeline \(Stage\-1 candidate generation followed by Stage\-2 verification\) on the 324\-instance test partition; cell values are instance counts\.Tables[XI](https://arxiv.org/html/2609.01833#S4.T11)and[XII](https://arxiv.org/html/2609.01833#S4.T12), together with Fig\.[4](https://arxiv.org/html/2609.01833#S4.F4), show the representative seed\-42 run \(accuracy 0\.738, Macro F1 0\.697, Weighted F1 0\.721\) in per\-class detail\. Predictions are strongly concentrated along the diagonal for SUICIDAL\_THOUGHTS \(F1 0\.939\), WORTHLESSNESS \(0\.889\), FATIGUE \(0\.870\), and DEPRESSED\_MOOD \(0\.800\)\. The weakest categories are the low\-support PSYCHOMOTOR \(F1 0\.364, 6 test instances\) andNO\_SYMPTOM\(F1 0\.453\), the latter reflecting the accumulation of both Stage\-1 candidate errors and Stage\-2 verification errors: a sentence is only correctly mapped toNO\_SYMPTOMwhen Stage\-2 correctly rejects whatever candidate Stage\-1 proposed, soNO\_SYMPTOMrecall is bounded by Stage\-2’s Absent\-class sensitivity reported in Table[IX](https://arxiv.org/html/2609.01833#S4.T9)\. This end\-to\-end error compounding – an incorrect Stage\-1 candidate that Stage\-2 accepts becomes an unrecoverable error, since Stage\-2 can only accept or reject the proposed candidate rather than substitute a different one – is an inherent limitation of the candidate\-generation\-then\-verification decomposition\.

We additionally assessed semantic agreement between generated Stage\-2 rationales and the expert\-authored annotation rationales provided by ReDSM\-5 using Sentence\-BERT embeddings\[[9](https://arxiv.org/html/2609.01833#bib.bib28)\], restricted to the subset of test instances where both the Stage\-1 candidate and the Stage\-2 decision were jointly correct\. Across seeds 42, 52, and 62, mean cosine similarity was0\.597±0\.0030\.597\\pm 0\.003, with3\.5%±0\.3%3\.5\\%\\pm 0\.3\\%of rationales exceeding the prespecified high\-similarity threshold of 0\.75\. This embedding\-based measure quantifies lexical\-semantic agreement with the expert\-authored rationales and should not be interpreted as an independent clinical\-correctness score\.

A consultant psychiatrist additionally conducted a single\-rater blinded audit of 32 model\-generated explanations produced by the final sanitized Stage\-2 verifier \(Table[XV](https://arxiv.org/html/2609.01833#S4.T15)\)\. The audit packet was resampled to address a limitation of an earlier pilot round: rather than conditioning on correctly classified outputs only, the 32 audited cases are stratified into four equal\-sized subsets crossing the verifier’s predicted status \(Present/Absent\) with whether that prediction was correct, so that rationale quality could be assessed separately for correct and incorrect verifier decisions rather than only for cases the system already got right\. As in the pilot round, the rater was blinded to the gold label and to correctness, and the results are reported here as a preliminary, single\-rater assessment by a coauthor rather than an independent external clinical evaluation\. Because the four subsets were sampled in equal number \(eight each\) rather than in proportion to their true frequency in the test partition \(64\.8%/20\.4%/9\.6%/5\.2% forPresent\-correct/Present\-incorrect/Absent\-correct/Absent\-incorrect, respectively\), the overall score reported in Table[XV](https://arxiv.org/html/2609.01833#S4.T15)is computed as a population\-weighted average of the four subset means using these true proportions as weights, rather than an unweighted average over the 32 rated cases; an unweighted average would overrepresent the rareAbsentsubsets and underrepresent the dominantPresent\-correct subset relative to the system’s actual output distribution\.

The population\-weighted overall scores are3\.153\.15for DSM\-5 alignment and2\.522\.52for clinical usefulness\. The dominant factor is whether the verifier’s decision was correct, not whether it wasPresentorAbsent: correct decisions \(74\.4% population weight\) score3\.523\.52/2\.732\.73on average, whereas incorrect decisions \(25\.6% population weight\) drop to2\.112\.11/1\.901\.90\. This confirms the concern that motivated resampling the audit – rationale quality for incorrect verifier decisions is substantially lower than for correct ones, so an audit restricted to correct cases alone overestimates practical explanation quality\. In contrast, the gap betweenPresentandAbsentrationales is much smaller once both correct and incorrect decisions are included \(3\.113\.11/2\.542\.54forPresentversus3\.403\.40/2\.402\.40forAbsent, population\-weighted\), unlike the largerPresent\-versus\-Absentgap observed in the smaller, correctness\-conditioned pilot round\. The rater’s written comments further indicate that somePresent\-incorrect cases reflect an upstream Stage\-1 candidate error \(e\.g\., a sentence describing a suicide attempt routed to Stage\-2 under an unrelated candidate symptom rather thanSUICIDAL\_THOUGHTS\) rather than a Stage\-2 rationale failure per se, and that in at least one case the rater’s clinical judgment diverged from the underlying ReDSM\-5 gold annotation itself, which we note as a limitation of the source annotations rather than of the model\.

TABLE XV:Single\-rater blinded psychiatrist audit of 32 model\-generated explanations, stratified by predicted status and correctness\. Both DSM\-5 alignment and clinical usefulness are rated on a five\-point Likert scale \(1=lowest; 5=highest\)\. Subset rows report the sample mean±\\pmSD over the eight equally\-sampled cases in that subset\. The Overall row is a population\-weighted average of the four subset means, weighted by each subset’s true frequency in the 324\-instance test partition \(64\.8%/20\.4%/9\.6%/5\.2%\) rather than by the equal 25% sampling weight used to construct the audit\.SubsetDSM\-5 alignmentClinical usefulnessPresent, correct \(n=8n=8, weight 64\.8%\)3\.50±1\.203\.50\\pm 1\.202\.75±0\.892\.75\\pm 0\.89Present, incorrect \(n=8n=8, weight 20\.4%\)1\.88±0\.991\.88\\pm 0\.991\.88±0\.831\.88\\pm 0\.83Absent, correct \(n=8n=8, weight 9\.6%\)3\.62±1\.303\.62\\pm 1\.302\.62±0\.922\.62\\pm 0\.92Absent, incorrect \(n=8n=8, weight 5\.2%\)3\.00±1\.693\.00\\pm 1\.692\.00±0\.932\.00\\pm 0\.93Overall \(population\-weighted,n=32n=32\)3\.15\\mathbf\{3\.15\}2\.52\\mathbf\{2\.52\}Overall, the end\-to\-end results support the two\-stage decomposition: the proposed pipeline reaches the best accuracy, Macro F1, and Weighted F1 of any evaluated method, including a matched single\-stage supervised baseline, though the margin over that baseline is not yet statistically conclusive at the current test\-set scale\.

## VDiscussion

This study develops a two\-stage framework for sentence\-level DSM\-5 symptom recognition that separates symptom candidate generation from candidate\-specific verification\. Stage 1 uses a contrastively fine\-tuned sentence encoder, MentalSBERT\-S, to generate an initial symptom candidate for every sentence\. Stage 2 then evaluates whether that candidate isPresentorAbsentusing the target sentence, its post context, and a candidate\-specific DSM\-5\-informed definition, combined with a self\-check step that verifies the preliminary judgment against the supplied definition before answering\. This decomposition differs from direct end\-to\-end prediction because the two stages address distinct questions: which symptom is the most plausible candidate, and whether the available evidence is sufficient to retain that candidate\. The resulting outputs should be interpreted as sentence\-level research annotations rather than psychiatric diagnoses\.

Two design choices account for most of the improvement observed in this study\. First, task\-specific fine\-tuning provides a decisive and consistent gain over prompting\-based inference at both stages: the fine\-tuned Stage\-1 encoder and Stage\-2 verifier outperform every zero\-shot, few\-shot, and retrieval\-augmented baseline by a wide margin, confirming that adapting model parameters to this annotation scheme, rather than relying on prompting alone, is central to the framework’s accuracy\. Second, decomposing the task into candidate generation and definition\-grounded verification is architecturally well motivated and is the best\-performing configuration among all evaluated methods, including every single\-stage alternative, even though its numerical margin over a matched single\-stage supervised baseline does not reach statistical significance at the current test\-set scale \(discussed below\)\.

The Stage\-1 results reported above show that MentalSBERT\-S matches the accuracy of the directly fine\-tuned generative alternative \(DeepSeek\) while requiring no autoregressive generation, making it a substantially cheaper choice for the candidate\-generation role without a measurable accuracy cost\. The Stage\-2 ablation isolates the contribution of the two design choices layered onto direct verification: adding the DSM\-5 definition alone numerically reduces Macro F1 relative to the direct baseline, while adding the self\-check step on top of the definition recovers and slightly exceeds the direct\-only level; none of the pairwise differences reaches significance at the current test\-set scale, so this is reported as a trend rather than a settled effect\.

The end\-to\-end comparison against a matched single\-stage supervised DeepSeek QLoRA baseline is the most direct test of whether the two\-stage decomposition itself is beneficial, since both methods share the same backbone, training partition, and comparable optimisation settings\. The two\-stage pipeline outperforms the single\-stage baseline on accuracy, Macro F1, and Weighted F1, consistently across all three seeds, though the hierarchical bootstrap comparison does not reach significance atp<0\.05p<0\.05\. We report this honestly as a consistent numerical trend rather than a proven effect, and note that a larger evaluation partition would be needed to determine whether the gap is a genuine, stable property of the decomposition\. This accuracy advantage comes at a latency cost: the two\-stage pipeline is slower per sample than the single\-stage baseline \(Table[XIV](https://arxiv.org/html/2609.01833#S4.T14)\), since it performs two model calls and generates a supporting rationale rather than a single short class label, though it remains markedly cheaper than any prompting\-based baseline and consumes fewer total tokens overall\.

The error analysis reveals an architectural limitation shared by both single\-stage and two\-stage designs at the current data scale: rare categories such as PSYCHOMOTOR remain difficult across every evaluated method \(Tables[VII](https://arxiv.org/html/2609.01833#S4.T7)–[VIII](https://arxiv.org/html/2609.01833#S4.T8)and[XI](https://arxiv.org/html/2609.01833#S4.T11)–[XII](https://arxiv.org/html/2609.01833#S4.T12)\), and the two\-stage pipeline’sNO\_SYMPTOMperformance is bounded by Stage\-2’s sensitivity to theAbsentclass\. Because Stage\-2 can only accept or reject the single candidate Stage\-1 proposes, an incorrect Stage\-1 candidate that Stage\-2 accepts becomes an unrecoverable end\-to\-end error; Stage\-2 has no mechanism to substitute a different symptom category\. A possible extension would allow Stage\-2 to compare a small set of Stage\-1 candidates or request a revision, but such a mechanism constitutes a distinct architecture and would require separate validation\.

The explanation\-quality evidence should be read with its limitations in mind\. The Sentence\-BERT similarity measure quantifies lexical\-semantic overlap with expert\-authored rationales, not clinical correctness\. The psychiatrist audit, while a useful preliminary signal, is rated by a single clinician who is also a coauthor, and is therefore better described as a preliminary single\-rater audit than an independent external clinical evaluation\. Its stratified, population\-weighted design shows that rationale quality is governed primarily by whether the verifier’s decision is correct \(population\-weighted DSM\-5 alignment/clinical usefulness of3\.523\.52/2\.732\.73for correct decisions versus2\.112\.11/1\.901\.90for incorrect ones\) rather than by whether the candidate isPresentorAbsent\(3\.113\.11/2\.542\.54versus3\.403\.40/2\.402\.40\), which both confirms the concern that motivated resampling the audit and revises the earlier, correctness\-conditioned finding thatPresentrationales were the primary weakness\.

Several additional limitations apply to the study as a whole\. The dataset is small and long\-tailed, and several rare categories have wide seed\-to\-seed variation despite multi\-seed evaluation; the observed class distribution reflects the sampled social\-media corpus and should not be interpreted as clinically representative prevalence\. The source annotations encode sentence\-level symptom relevance and do not provide sufficient information to establish DSM\-5 duration, functional impairment, or full episode\-level diagnostic criteria, so the system’s outputs are sentence\-level evidence markers rather than diagnostic judgments\. Finally, the framework does not reconcile multiple sentence\-level decisions into a post\-level diagnosis; cross\-sentence consistency, temporal evidence, symptom co\-occurrence, and post\-level aggregation remain outside its validated scope\.

A related limitation concerns statistical power\. None of the pairwise comparisons reported in this study – the Stage\-2 ablation among direct, definition\-only, and self\-check variants, the proposed verifier against the strongest prompting baseline, and the end\-to\-end two\-stage pipeline against the matched single\-stage baseline – reached significance at the conventionalp<0\.05p<0\.05threshold under the hierarchical bootstrap\. This reflects the joint resampling of both training seeds and the 324\-instance test partition \(and, for several per\-symptom breakdowns, even smaller category\-level subsets\), a considerably stricter standard than a seed\-only comparison that ignores instance\-level sampling uncertainty\. The observed effect sizes are consistently small \(one to three percentage points in Macro F1\) relative to the sampling noise inherent to a few\-hundred\-instance test set, so a substantially larger evaluation partition would be needed to establish or rule out these effects with confidence\. We regard the contribution of this work as resting on convergent, non\-p\-value evidence rather than any single significance test: the proposed configuration achieves the best point estimate on every aggregate metric among all evaluated methods, consistently across all three seeds and in the direction predicted by its architectural motivation – definition\-grounded self\-checking reduces spurious symptom acceptance, and decomposing candidate generation from verification separates two distinct error sources – while requiring substantially less inference cost than every prompting\-based alternative\.

Overall, the results support decomposing sentence\-level symptom recognition into candidate generation and definition\-grounded candidate verification\. The two\-stage pipeline improves over strong encoder, NLI\-style, medical\-LLM, direct\-prompting, and matched single\-stage supervised alternatives under a shared evaluation protocol, while the seed\-level and error analyses make its remaining limitations explicit\. The evidence supports the framework as a research method for producing sentence\-anchored symptom hypotheses and rationales; it does not establish a diagnostic system or a substitute for professional clinical assessment\.

## VIConclusion

This study proposes a two\-stage framework for sentence\-level DSM\-5 depression symptom recognition, combining a contrastively fine\-tuned encoder for symptom\-candidate generation with a definition\-grounded, self\-checking verifier for candidate\-specificPresent/Absentjudgment\. The framework separates two tasks: identifying the most plausible symptom candidate and determining whether the available evidence is sufficient to retain it\.

Stage 1 uses MentalSBERT\-S to generate symptom\-aware representations and select an initial candidate without autoregressive generation\. Stage 2 uses a fine\-tuned DeepSeek verifier with the target sentence, post context, and a candidate\-specific DSM\-5\-informed definition, checking its preliminary decision against that definition\.Presentretains the Stage\-1 candidate, whileAbsentmaps the sentence toNO\_SYMPTOM\.

End\-to\-end, the framework achieved0\.731±0\.0050\.731\\pm 0\.005accuracy,0\.690±0\.0110\.690\\pm 0\.011Macro F1, and0\.715±0\.0100\.715\\pm 0\.010Weighted F1 across three seeds, outperforming all evaluated baselines, including a matched single\-stage supervised DeepSeek QLoRA model, although this margin was not statistically significant\. The two\-stage design incurs additional latency but remains substantially cheaper than prompting\-based baselines\. Generated rationales reached0\.597±0\.0030\.597\\pm 0\.003Sentence\-BERT similarity with expert rationales on jointly correct predictions\. A preliminary psychiatrist audit gave population\-weighted DSM\-5 alignment and clinical usefulness scores of3\.153\.15and2\.522\.52, with rationale quality strongly dependent on decision correctness\.

Limitations include the small, long\-tailed dataset, ambiguous symptom expressions, dependence on Stage 1 candidates, limited statistical power, and the preliminary clinical audit\. The system is intended for sentence\-level research annotation and explanation, not diagnosis or replacement of professional clinical assessment\.

## Conflicting Interests

The authors declare that there is no conflict of interest\.

## Funding

This work was supported by LARSyS funding DOI: 10\.54499/LA/P/0083/2020 and DOI: 10\.54499/UID/50009/ 2025\.

## Ethical Approval

This research follows ethical principles and guidelines applicable to IEEE Access publications\. The study performs secondary analysis of ReDSM\-5, a publicly released, de\-identified dataset of Reddit posts and sentence\-level annotations\[[7](https://arxiv.org/html/2609.01833#bib.bib16)\]\. Although the underlying text originates from human authors, this work involves no direct interaction with human participants, no collection of new personal data, and no identifiable information: all posts and annotations were obtained from ReDSM\-5 in its already\-anonymized, publicly distributed form and used strictly under its stated licence and usage terms\. Under the Ethics Committee Regulation of Instituto Superior Técnico, University of Lisbon, ethics\-committee review applies to research involving human beings directly as research subjects or indirectly susceptible to being affected by it, informed consent, or the protection of privacy and personal data; this study falls outside that scope, as it neither collects new data nor involves any direct or indirect interaction with participants\. On this basis, and consistent with Committee on Publication Ethics \(COPE\) guidance on secondary analysis of pre\-existing anonymized public datasets, the authors determined that a new ethics committee review at Instituto Superior Técnico, University of Lisbon, was not required for this study\. The study adheres to publication ethics guidelines based on principles upheld by the Committee on COPE\.

## Guarantor

Weiming Li\.

## Contributorship

Weiming Li conducted the literature review, conceptualized the study, performed data collection and analysis, and wrote the manuscript\. Catarina Barata and João Sanches reviewed the manuscript and provided valuable revision suggestions\. Miguel Constante contributed psychiatric expertise and re viewed the DSM\-5\-related clinical consistency of the pro posed framework\. All authors reviewed and approved the final version of the manuscript\.

## Acknowledgment

The authors would like to acknowledge Instituto Superior Técnico, University of Lisbon, the Institute for Systems and Robotics \(ISR\), and LARSyS for providing the research environment and infrastructure supporting this work\.

## Appendix ATraining Configurations and Prompt Templates

This appendix reports the principal training settings, task definitions, prompt templates, and decoding constraints used in the final experiments\. All reported evaluation results were obtained on the fixed evaluation partition\. The evaluation labels and reference explanations were used only for performance and explanation\-quality assessment and were not included in model prompts or used for checkpoint optimisation\.

### A\-ASoftware Environment

TABLE XVI:Principal software environment used for model training and evaluation, listing the exact package versions of the retainedfine\_tuning\_deepseekenvironment, identical across all three random\-seed runs, to support exact reproduction of the reported results\.PackageVersionPython3\.10\.18PyTorch2\.10\.0\.dev20250922\+cu128Transformers4\.56\.2PEFT0\.17\.1bitsandbytes0\.48\.1NumPy1\.26\.4scikit\-learn1\.7\.2The package versions were read from the retainedfine\_tuning\_deepseekenvironment used for the final experiments\. All three random\-seed runs used the same software environment and model identifiers\.

### A\-BMentalSBERT\-S Training Configuration

MentalSBERT\-S serves as the Stage\-1 sentence encoder and symptom\-candidate classifier\. It is based onsentence\-transformers/all\-mpnet\-base\-v2and contains nine independent one\-vs\-rest sigmoid heads, one per depressive symptom category\. Table[XVII](https://arxiv.org/html/2609.01833#A1.T17)reports its principal training settings\.

TABLE XVII:Training configuration of MentalSBERT\-S, the Stage\-1 nine\-head sentence encoder used for symptom\-candidate generation, including the base encoder, joint BCE\-plus\-triplet training objective, and optimisation hyperparameters shared across the three random\-seed runs\.ComponentConfigurationBase encoderall\-mpnet\-base\-v2ArchitectureNine\-head one\-vs\-rest classifierOutput activationIndependent sigmoid headsTraining objectiveBCE \+ triplet metric\-learning lossOptimizerAdamWLearning rate2×10−52\\times 10^\{\-5\}Batch size16Epochs5Warmup ratio0\.10Weight decay0\.01Triplet margin0\.30Triplet\-loss weight0\.50Gradient clipping1\.0SchedulerLinear warmup and linear decayTraining seeds42, 52, and 62
### A\-CDeepSeek Verifier Fine\-Tuning

The Stage\-2 verifier is initialised from DeepSeek\-R1\-Distill\-Qwen\-14B and adapted using 4\-bit QLoRA for candidate\-specificPresent/Absentverification\. Table[XVIII](https://arxiv.org/html/2609.01833#A1.T18)reports the fine\-tuning configuration, and Table[XIX](https://arxiv.org/html/2609.01833#A1.T19)summarises the task\-specific input/output specification\.

TABLE XVIII:Fine\-tuning configuration of the Stage\-2 DeepSeek verifier, including the 4\-bit QLoRA setup, target modules, and optimisation hyperparameters applied toDeepSeek\-R1\-Distill\-Qwen\-14Bacross the three random\-seed runs\.ItemConfigurationBase modelDeepSeek\-R1\-Distill\-Qwen\-14BModel scale14B parametersMaximum training length2048 tokensFine\-tuning method4\-bit QLoRAQuantisationNF4 with double quantisationCompute precisionbfloat16LoRA rankrr16LoRA scalingα\\alpha32LoRA dropout0\.05Target modulesq\_proj,k\_proj,v\_proj,o\_proj,gate\_proj,up\_proj,down\_projEpochs3Per\-device batch size1Gradient accumulation8Effective batch size8OptimizerAdamWLearning rate2×10−42\\times 10^\{\-4\}Warmup ratio0\.03Weight decay0\.01Training seeds42, 52, and 62TABLE XIX:Task\-specific input/output specification of the Stage\-2 verifier, describing the information supplied to the model at inference time and the structured fields it must produce, including the model\-generated rationale used in the explanation\-quality audit of Section[V](https://arxiv.org/html/2609.01833#S5)\.ComponentConfigurationTaskCandidate\-specificPresent/AbsentverificationPrimary inputStage\-1 candidate symptom, target sentence, post context, and candidate\-specific DSM\-5\-informed definitionTraining objectiveCausal\-LM supervised fine\-tuningPrediction outputself\_label,final\_label, andverify\_actionAdditional outputModel\-generated rationaleInference callsOne main call per sample; repair only after invalid JSONEach training instance pairs one target sentence with one candidate symptom and itsPresent/Absentstatus, following the candidate\-specific annotation structure of ReDSM\-5 \(Section[IV\-A](https://arxiv.org/html/2609.01833#S4.SS1)\); no additional negative candidates are synthesised\. The 1,163\-instance training partition and 280\-instance development partition are used directly, without oversampling or class reweighting\. The resulting label distribution is imbalanced towardPresent: 904Presentversus 259Absentinstances in training \(77\.7%/22\.3%\) and 212 versus 68 in development \(75\.7%/24\.3%\), closely matching the 244/80 \(75\.3%/24\.7%\) split observed in the test partition\. This imbalance motivates reporting Absent F1 and Present F1 separately throughout Section[IV\-C](https://arxiv.org/html/2609.01833#S4.SS3)rather than accuracy alone\.

### A\-DCandidate\-Specific DSM\-5\-Informed Definitions

The following task\-specific, DSM\-5\-informed definitions are supplied to the verifier according to the Stage\-1 candidate:

- •ANHEDONIA:reduced interest or inability to experience pleasure in normally enjoyable activities\.
- •APPETITE\_CHANGE:a noticeable increase or decrease in appetite or weight not explained by dieting or medical conditions\.
- •COGNITIVE\_ISSUES:difficulty thinking, concentrating, or making decisions, including mental fog or slowed thinking\.
- •DEPRESSED\_MOOD:feelings of sadness, emptiness, hopelessness, or emotional heaviness\.
- •FATIGUE:reduced energy, tiredness, or physical or mental exhaustion affecting functioning\.
- •PSYCHOMOTOR:observable slowing or agitation in movement, restlessness, or difficulty initiating physical actions\.
- •SLEEP\_ISSUES:difficulty falling asleep, remaining asleep, or excessive sleep, including disrupted or unrefreshing sleep\.
- •SUICIDAL\_THOUGHTS:thoughts of death, suicidal ideas, wishing to be dead, or considering self\-harm\.
- •WORTHLESSNESS:strong negative self\-evaluation, worthlessness, guilt, or harsh self\-blame\.

No deterministic keyword override, symptom\-specific fallback, or gold\-label fallback is applied at inference time\.

### A\-EStage\-2 Verifier Prompt Template

For each Stage\-1 candidate, the verifier receives the target sentence, post context, and corresponding DSM\-5\-informed definition, then forms a binary judgment and checks it against the definition within the same generation call\.

YouareaDSM\-5depressionsentenceannotationassistant\.

DecidewhetherTARGET\_SENTENCEexpressestherequestedlabelS

asPRESENT\(1\)orABSENT\(0\)\.

UseTARGET\_SENTENCEastheprimaryevidence,CONTEXT\_POSTas

supportinglocalcontext,andDSM5\_GUIDELINEasthedefinition

oflabelS\.

Important:

\-Thisissentence\-levelannotation,notaformaldiagnosis\.

\-Donotrequireduration,severity,recurrence,functional

impairment,oracompletediagnostichistory\.

\-Brief,mild,implicit,orshortexpressionscanbePRESENT

whenthetargetsentenceorlocalcontextmeaningfully

expressesS\.

\-Donotusedataset\-specificrulesorsuperficialkeyword

matching\.

\-Donotmentionannotations,goldlabels,trainingdata,or

thetechnicaldecisionprocessintheexplanation\.

\[SYMPTOM\]

\{stage1\_candidate\}

\[DSM5\_GUIDELINE\]

\{candidate\_specific\_definition\}

\[TARGET\_SENTENCE\]

\{sentence\_text\}

\[CONTEXT\_POST\]

\{context\_post\}

Step1:INITIALSENTENCE\-LEVELJUDGMENT

Setself\_label=1ifthetargetsentenceorlocalcontext

meaningfullyexpressesS;otherwisesetself\_label=0\.

Step2:DSM\-5CONSISTENCYCHECK

Conservativelyverifyself\_labelagainstDSM5\_GUIDELINE\.

UseKEEP\_1orKEEP\_0whentheinitialjudgmentisretained,

andCORRECT\_TO\_0orCORRECT\_TO\_1whenitiscorrected\.

Step3:EXPLANATION

WriteaDSM\-5\-styleexplanationsupportingfinal\_labelwithout

referringtoanoriginalannotation,goldlabel,trainingdata,

ortechnicalprocessing\.

OutputoneJSONobjectandnothingelse:

\{

"self\_label":0or1,

"final\_label":0or1,

"verify\_action":"KEEP\_0"or"CORRECT\_TO\_1"or

"KEEP\_1"or"CORRECT\_TO\_0",

"reason":"3\-\-6sentencessupportingfinal\_label"

\}

### A\-FInference Summary

TABLE XX:Decoding and generation settings used for the final Stage\-2 verifier at inference time, applied identically across all reported test\-partition evaluations and the clinician explanation audit\.SettingConfigurationInvocationEvery Stage\-1 candidateTemperatureNot applicableSamplingDisabledTop\-pp1\.0Maximum new tokens192Primary predictionBinaryfinal\_labelContext useSupporting local evidenceAdditional generationJSON repair only if requiredGold\-label fallbackDisabled
### A\-GPipeline Output Example

An example output generated by the proposed two\-stage framework is shown below\.

> Candidate symptom: WORTHLESSNESS System status: ABSENT Target sentence: I’m already happy with who I am and what I do\. Supporting post context: What do you mean by upgrading myself? I’m already happy with who I am and what I do\. Model\-generated explanation: The sentence expresses a positive self\-perception and satisfaction with life, which is not indicative of worthlessness\.

## References

- \[1\]S\. Narayan, S\. Chaurasia, S\. Waize, V\. R\. Singh, and A\. Bhatnagar\(2025\)Machine learning application in detecting mental health issues using social media\.SSRN Electronic Journal\.Note:Available at SSRN 5192456Cited by:[§I](https://arxiv.org/html/2609.01833#S1.p1.1)\.
- \[2\]B\. Bharadwaj, S\. Nayak, and P\. K\. Panigrahi\(2025\)Sentiment analysis for identifying depression through social media texts using machine learning technique\.Big Data and Computing Visions5\(2\),pp\. 102–118\.Cited by:[§I](https://arxiv.org/html/2609.01833#S1.p1.1)\.
- \[3\]A\. Qasim, G\. Mehak, N\. Hussain, A\. Gelbukh, and G\. Sidorov\(2025\)Detection of depression severity in social media text using transformer\-based models\.Information16\(2\),pp\. 114\.Cited by:[§I](https://arxiv.org/html/2609.01833#S1.p1.1)\.
- \[4\]T\. Zhang, A\. M\. Schoene, S\. Ji, and S\. Ananiadou\(2022\)Natural language processing applied to mental illness detection: a narrative review\.NPJ Digital Medicine5\(1\),pp\. 46\.Cited by:[§I](https://arxiv.org/html/2609.01833#S1.p1.1),[§II](https://arxiv.org/html/2609.01833#S2.p1.1)\.
- \[5\]M\. Abdullah and N\. Negied\(2024\)Detection and prediction of future mental disorder from social media data using machine learning, ensemble learning, and large language models\.IEEE Access12,pp\. 120553–120569\.External Links:[Document](https://dx.doi.org/10.1109/ACCESS.2024.3406469)Cited by:[§I](https://arxiv.org/html/2609.01833#S1.p1.1),[§II](https://arxiv.org/html/2609.01833#S2.p1.1)\.
- \[6\]T\. T\. Prama, M\. S\. Islam, M\. M\. Anwar, and I\. Jahan\(2024\)AI\-enabled deep depression detection and evaluation informed by DSM\-5\-TR\.IEEE Transactions on Computational Social Systems11\(5\),pp\. 6453–6465\.External Links:[Document](https://dx.doi.org/10.1109/TCSS.2024.3382139)Cited by:[§I](https://arxiv.org/html/2609.01833#S1.p1.1)\.
- \[7\]E\. Bao, A\. Pérez, and J\. Parapar\(2025\)ReDSM5: a reddit dataset for dsm\-5 depression detection\.InProceedings of the 34th ACM International Conference on Information and Knowledge Management,pp\. 6323–6327\.Cited by:[§I](https://arxiv.org/html/2609.01833#S1.p2.1),[§I](https://arxiv.org/html/2609.01833#S1.p3.1),[§II](https://arxiv.org/html/2609.01833#S2.p1.1),[TABLE I](https://arxiv.org/html/2609.01833#S3.T1),[§III](https://arxiv.org/html/2609.01833#S3.p2.1),[§IV\-A](https://arxiv.org/html/2609.01833#S4.SS1.p1.1),[TABLE II](https://arxiv.org/html/2609.01833#S4.T2),[Ethical Approval](https://arxiv.org/html/2609.01833#Sx3.p1.1)\.
- \[8\]S\. Jiet al\.\(2022\)MentalBERT: publicly available pretrained language models for mental healthcare\.InProceedings of the Thirteenth Language Resources and Evaluation Conference,pp\. 7184–7190\.Cited by:[§I](https://arxiv.org/html/2609.01833#S1.p3.1),[§II](https://arxiv.org/html/2609.01833#S2.p2.1)\.
- \[9\]N\. Reimers and I\. Gurevych\(2019\)Sentence\-BERT: sentence embeddings using Siamese BERT\-networks\.InProceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing \(EMNLP\-IJCNLP\),pp\. 3982–3992\.External Links:[Document](https://dx.doi.org/10.18653/v1/D19-1410)Cited by:[§I](https://arxiv.org/html/2609.01833#S1.p3.1),[§II](https://arxiv.org/html/2609.01833#S2.p2.1),[§III\-A](https://arxiv.org/html/2609.01833#S3.SS1.p2.1),[§IV\-D](https://arxiv.org/html/2609.01833#S4.SS4.p7.1)\.
- \[10\]T\. Gao, X\. Yao, and D\. Chen\(2021\)SimCSE: simple contrastive learning of sentence embeddings\.InProceedings of the 2021 Conference on Empirical Methods in Natural Language Processing \(EMNLP\),pp\. 6894–6910\.External Links:[Document](https://dx.doi.org/10.18653/v1/2021.emnlp-main.552)Cited by:[§I](https://arxiv.org/html/2609.01833#S1.p3.1),[§II](https://arxiv.org/html/2609.01833#S2.p2.1)\.
- \[11\]F\. Liuet al\.\(2025\)Application of large language models in medicine\.Nature Reviews Bioengineering,pp\. 1–20\.Cited by:[§I](https://arxiv.org/html/2609.01833#S1.p3.1)\.
- \[12\]Y\. Huaet al\.\(2025\)Large language models in mental health care: a scoping review\.Current Treatment Options in Psychiatry12\(1\),pp\. 27\.Cited by:[§I](https://arxiv.org/html/2609.01833#S1.p3.1)\.
- \[13\]W\. Zhaiet al\.\(2025\)MentalGLM series: explainable large language models for mental health analysis on chinese social media\.InProceedings of the 2025 Conference on Empirical Methods in Natural Language Processing,pp\. 13599–13614\.Cited by:[§I](https://arxiv.org/html/2609.01833#S1.p3.1)\.
- \[14\]E\. Asgariet al\.\(2025\)A framework to assess clinical safety and hallucination rates of llms for medical text summarisation\.npj Digital Medicine8\(1\),pp\. 274\.Cited by:[§I](https://arxiv.org/html/2609.01833#S1.p3.1)\.
- \[15\]K\. Singhalet al\.\(2023\)Large language models encode clinical knowledge\.Nature620\(7972\),pp\. 172–180\.Cited by:[§I](https://arxiv.org/html/2609.01833#S1.p3.1),[§II](https://arxiv.org/html/2609.01833#S2.p4.1),[§II](https://arxiv.org/html/2609.01833#S2.p6.1)\.
- \[16\]W\. Yin, J\. Hay, and D\. Roth\(2019\)Benchmarking zero\-shot text classification: datasets, evaluation and entailment approach\.InProceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing,pp\. 3914–3923\.External Links:[Document](https://dx.doi.org/10.18653/v1/D19-1404)Cited by:[§I](https://arxiv.org/html/2609.01833#S1.p3.1),[§II](https://arxiv.org/html/2609.01833#S2.p3.1)\.
- \[17\]X\. Lanet al\.\(2025\)Depression detection on social media with large language models\.InProceedings of the 2025 Conference on Empirical Methods in Natural Language Processing: Industry Track,pp\. 2155–2171\.Cited by:[§I](https://arxiv.org/html/2609.01833#S1.p3.1),[§II](https://arxiv.org/html/2609.01833#S2.p4.1)\.
- \[18\]D\. E\. Merzougui, G\. Dias, J\. Pantin, and F\. Maurel\(2025\)Evaluating large language models for depression symptom estimation\.InInternational Conference on Artificial Intelligence in Medicine,pp\. 272–276\.Cited by:[§I](https://arxiv.org/html/2609.01833#S1.p3.1),[§II](https://arxiv.org/html/2609.01833#S2.p4.1)\.
- \[19\]S\. Zhou and M\. Mohd\(2025\)Mental health safety and depression detection in social media text data: a classification approach based on a deep learning model\.IEEE Access\.Cited by:[§II](https://arxiv.org/html/2609.01833#S2.p1.1)\.
- \[20\]A\. Cohan, B\. Desmet, A\. Yates, L\. Soldaini, S\. MacAvaney, and N\. Goharian\(2018\)SMHD: a large\-scale resource for exploring online language usage for multiple mental health conditions\.InProceedings of the 27th International Conference on Computational Linguistics \(COLING\),pp\. 1485–1497\.Cited by:[§II](https://arxiv.org/html/2609.01833#S2.p1.1)\.
- \[21\]H\.\-C\. Shinget al\.\(2018\)Expert, crowdsourced, and machine assessment of suicide risk via online postings\.InProceedings of the Fifth Workshop on Computational Linguistics and Clinical Psychology,pp\. 25–36\.Cited by:[§II](https://arxiv.org/html/2609.01833#S2.p1.1)\.
- \[22\]J\. Gratchet al\.\(2014\)The distress analysis interview corpus of human and computer interviews\.InLREC,Reykjavik,pp\. 3123–3128\.Cited by:[§II](https://arxiv.org/html/2609.01833#S2.p1.1)\.
- \[23\]J\. Parapar, A\. Perez, X\. Wang, and F\. Crestani\(2025\)ERisk 2025: contextual and conversational approaches for depression challenges\.InEuropean Conference on Information Retrieval,pp\. 416–424\.Cited by:[§II](https://arxiv.org/html/2609.01833#S2.p1.1)\.
- \[24\]H\. Fisheret al\.\(2025\)Language\-based detection of depression with machine learning: systematic review and meta\-analysis\.Research Square\.Note:preprint, ver\. 1\. doi: 10\.21203/rs\.3\.rs\-8067325/v1Cited by:[§II](https://arxiv.org/html/2609.01833#S2.p1.1)\.
- \[25\]M\. Malgaroli, T\. D\. Hull, J\. M\. Zech, and T\. Althoff\(2023\)Natural language processing for mental health interventions: a systematic review and research framework\.Translational Psychiatry13\(1\),pp\. 309\.Cited by:[§II](https://arxiv.org/html/2609.01833#S2.p2.1)\.
- \[26\]V\. Vajre, M\. Naylor, U\. Kamath, and A\. Shehu\(2021\)PsychBERT: a mental health language model for social media mental health behavioral analysis\.In2021 IEEE International Conference on Bioinformatics and Biomedicine \(BIBM\),pp\. 1077–1082\.Cited by:[§II](https://arxiv.org/html/2609.01833#S2.p2.1)\.
- \[27\]C\. Shwetha and K\. Pushpalatha\(2025\)A deep learning framework for depression and major depressive disorder detection from social media text using mentalbert and multilayer perceptron\.International Journal of Intelligent Engineering & Systems18\(8\)\.Cited by:[§II](https://arxiv.org/html/2609.01833#S2.p2.1)\.
- \[28\]M\. Sao and H\.\-J\. Lim\(2024\)MIRoBERTa: mental illness text classification with transfer learning on subreddits\.IEEE Access12,pp\. 197454–197466\.External Links:[Document](https://dx.doi.org/10.1109/ACCESS.2024.3522465)Cited by:[§II](https://arxiv.org/html/2609.01833#S2.p2.1)\.
- \[29\]M\. Lewis, Y\. Liu, N\. Goyal, M\. Ghazvininejad, A\. Mohamed, O\. Levy, V\. Stoyanov, and L\. Zettlemoyer\(2020\)BART: denoising sequence\-to\-sequence pre\-training for natural language generation, translation, and comprehension\.InProceedings of the 58th Annual Meeting of the Association for Computational Linguistics,pp\. 7871–7880\.External Links:[Document](https://dx.doi.org/10.18653/v1/2020.acl-main.703)Cited by:[§II](https://arxiv.org/html/2609.01833#S2.p3.1)\.
- \[30\]I\. Amine, I\. Lmati, H\. Anoun, and F\. Ammor\(2025\)Use, performance, and limitations of large language models in mental health: a systematic review\.In2025 International Conference on Intelligent Systems: Theories and Applications \(SITA\),External Links:[Document](https://dx.doi.org/10.1109/SITA67914.2025.11273691)Cited by:[§II](https://arxiv.org/html/2609.01833#S2.p4.1)\.
- \[31\]N\. C\. Chung, G\. Dyer, and L\. Brocki\(2023\)Challenges of large language models for mental health counseling\.arXiv preprint arXiv:2311\.13857\.Cited by:[§II](https://arxiv.org/html/2609.01833#S2.p4.1)\.
- \[32\]C\. Wu, Q\. Mu, W\. Gao, and S\. Lu\(2025\)The characteristics of anhedonia in depression: a review from a clinically oriented perspective\.Translational Psychiatry15\(1\),pp\. 90\.Cited by:[§II](https://arxiv.org/html/2609.01833#S2.p4.1)\.
- \[33\]A\. Sellergrenet al\.\(2025\)MedGemma technical report\.arXiv preprint arXiv:2507\.05201\.External Links:[Document](https://dx.doi.org/10.48550/arXiv.2507.05201)Cited by:[§II](https://arxiv.org/html/2609.01833#S2.p5.1)\.
- \[34\]J\. Vladika, P\. Schneider, and F\. Matthes\(2024\)MedREQAL: examining medical knowledge recall of large language models via question answering\.arXiv preprint arXiv:2406\.05845\.Cited by:[§II](https://arxiv.org/html/2609.01833#S2.p6.1)\.
- \[35\]M\. A\. El\-Enen, S\. Saad, and T\. Nazmy\(2025\)A survey on retrieval\-augmentation generation \(rag\) models for healthcare applications\.Neural Computing and Applications37\(33\),pp\. 28191–28267\.Cited by:[§II](https://arxiv.org/html/2609.01833#S2.p6.1)\.
- \[36\]E\. J\. Hu, Y\. Shen, P\. Wallis, Z\. Allen\-Zhu, Y\. Li, S\. Wang, L\. Wang, and W\. Chen\(2022\)LoRA: low\-rank adaptation of large language models\.InInternational Conference on Learning Representations \(ICLR\),Cited by:[§III\-B](https://arxiv.org/html/2609.01833#S3.SS2.p2.1)\.
- \[37\]A\. Pérez, M\. Fernández\-Pichel, J\. Parapar, and D\. E\. Losada\(2025\)DepreSym: a depression symptom annotated corpus and the role of large language models as assessors of psychological markers\.Language Resources and Evaluation59\(3\),pp\. 2737–2762\.External Links:[Document](https://dx.doi.org/10.1007/s10579-025-09831-6)Cited by:[§IV\-A](https://arxiv.org/html/2609.01833#S4.SS1.p1.1)\.
- \[38\]American Psychiatric Association\(2013\)Diagnostic and statistical manual of mental disorders\.5th edition,American Psychiatric Publishing,Arlington, VA\.Cited by:[§IV\-A](https://arxiv.org/html/2609.01833#S4.SS1.p1.1),[TABLE II](https://arxiv.org/html/2609.01833#S4.T2)\.
- \[39\]L\. Perron and V\. Furnon\(2023\)OR\-Tools\.Note:Googlehttps://developers\.google\.com/optimization/Cited by:[§IV\-A](https://arxiv.org/html/2609.01833#S4.SS1.p2.1)\.

![[Uncaptioned image]](https://arxiv.org/html/2609.01833v1/a1.png)WEIMING LIreceived the bachelor’s degree from Tiangong University, China, and the master’s degree from the University of Leeds, U\.K\. He is currently pursuing the Ph\.D\. degree with the Institute for Systems and Robotics \(ISR\), LARSyS, Instituto Superior Técnico, University of Lisbon\. His research interests include natural language processing and artificial intelligence\.![[Uncaptioned image]](https://arxiv.org/html/2609.01833v1/a2.png)Catarina Baratais an Assistant Professor in the Department of Electrical Engineering at Instituto Superior Técnico \(IST\) and Researcher at the Institute of Systems and Robotics of Lisbon \(ISR\-Lisbon\)\. She is a member of the European Laboratory for Learning and Intelligent Systems \(ELLIS\) and its Lisbon Unit \(Lisbon\)\. Her main line of research focuses on the application of machine learning models to image analysis problems, with a focus on the development of explainable artificial intelligence models\. In 2021 she received a Google Research Award for her work in personalizing treatment for cancer patients\. She participated in several national and European research projects\. She has published over 20 articles in scientific journals and presented more than 40 papers at international conferences\.![[Uncaptioned image]](https://arxiv.org/html/2609.01833v1/a3.png)MIGUEL CONSTANTEis a Consultant General Adult Psychiatrist, he completed his specialist training in the U\.K, at the Maudsley Hospital, acquiring membership of the Royal College of Psychiatrists and his Ph\.D\. degree in neurophysiology of psychosis from the Institute of Psychiatry, KCL\. He is currently based in Lisbon, providing clinical care and managing a broad range of psychiatric disorders in varied clinical settings at ULSLOD \(public\) and Luz Saúde \(private\)\. Simultaneously, he is an invited Professor at Catolica Medical School\. He is actively involved in medical teaching, psychiatry training, and service development\. His research interests include exploring, alongside biomedical engineers, digital psychiatry interventions\.![[Uncaptioned image]](https://arxiv.org/html/2609.01833v1/a4.png)João Sanchesis Full Professor at the Department of Bioengineering, Instituto Superior Técnico \(IST\), Universidade de Lisboa \(UL\) where he coordinates the Master and Doctoral programs in Biomedical Engineering\. He’s senior research at Institute for Systems and Robotics / LARSyS where he conducts research in medical and biological image analysis and statistical signal processing of biomedical data, mainly, physiological and behavioral data\. He is Senior Member of the IEEE Engineering in Medicine and Biology Society \(EMBS\)\. As a group leader, he has fostered a multidisciplinary environment that brings together experts from biology, medicine, engineering, and computer science\. This collaboration has resulted in approximately 200 international publications\.

Similar Articles

Probabilistic Textual Time Series Depression Detection

arXiv cs.CL

This paper proposes PTTSD, a probabilistic framework for depression severity detection from clinical interview transcripts that models uncertainty and provides temporal interpretability, achieving competitive performance on benchmark datasets.