<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>SonUIT eRisk2025: Enhanced Depression Detection on Social Media via Filtering and Re-Ranking</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Nguyen Minh Son</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Dang Van Thin</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>University of Information Technology-VNUHCM</institution>
          ,
          <addr-line>Quarter 6, Linh Trung Ward, Thu Duc District, Ho Chi Minh City</addr-line>
          ,
          <country country="VN">Vietnam</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Vietnam National University</institution>
          ,
          <addr-line>Ho Chi Minh City</addr-line>
          ,
          <country country="VN">Vietnam</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2025</year>
      </pub-date>
      <abstract>
        <p>This paper presents our approach for eRisk 2025 Task 1: Search for Symptoms of Depression. The task involves ranking sentences from user writings based on their relevance to the 21 depression symptoms defined in the Beck Depression Inventory (BDI). A sentence is considered relevant if it provides information about the user's condition regarding a specific symptom. Our method follows a two-stage pipeline. In the first stage, we generate symptom embeddings from labeled training data and compute cosine similarity to rank sentences by semantic relevance. In the second stage, we apply re-ranking candidates using various strategies, including cross-encoders, BM25, or using larger embedding models. Our approach demonstrates strong performance, consistently ranking among the top three teams across all evaluation metrics out of a total of 17 participating teams.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Depression Detection</kwd>
        <kwd>BM25</kwd>
        <kwd>Cross-Encoders</kwd>
        <kwd>Re-Ranking</kwd>
        <kwd>Sentence Transformers</kwd>
        <kwd>BDI-II</kwd>
        <kwd>Mental Health</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
    </sec>
    <sec id="sec-2">
      <title>2. Related Work</title>
      <p>
        The task was first introduced in the eRisk 2023 [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] Task 1 (Search for Symptoms of Depression), which
required participants to rank sentences according to their relevance to each of the 21 items from
the Beck Depression Inventory-II (BDI-II) [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. The top-performing team, Formula-ML [4], utilized
Transformer-based embeddings combined with soft cosine similarity over BDI-related terms to rank
sentences efectively. In contrast, the BLUE [ 5] team generated synthetic training examples for each
symptom using GPT and subsequently employed a dual transformer architecture for sentence ranking.
      </p>
      <p>In the 2024 edition of the task, a total of 29 system runs were submitted by nine participating
teams. The REBECCA team [6] applied Sentence Transformers for initial semantic encoding, filtered
candidates based on cosine similarity, and performed re-ranking using GPT-4. The SINAI group [7]
ifne-tuned DistilRoBERTa on symptom relevance annotations and also explored a prompt-based variant
using GPT-3 to assess the performance gap between supervised fine-tuning and prompting. DS@GT
team [8]framed symptom detection as a supervised classification task but found that their classifiers
were poorly calibrated for ranking metrics. APB-UC3M team [9] implemented an ensemble method
that combined semantic similarity pipelines with a RoBERTa-based classifier to benchmark ensemble
performance against single-model baselines. Finally, NUS-IDS team [10] fine-tuned multiple
sentencetransformer models via contrastive learning, incorporating both BDI symptoms and Early Maladaptive
Schemas and ensembled these predictors, demonstrating competitive performance across all major
evaluation metrics.</p>
    </sec>
    <sec id="sec-3">
      <title>3. Methodology</title>
      <p>Building upon insights provided by the previous year’s team, we adopted a refined approach informed
by their empirical observations. Two key considerations guided the development of our method: (1)
eficient preprocessing to reduce the dimensionality and noise within the large-scale dataset, and (2)
re-framing the task not as a traditional supervised multi-label classification problem, but rather as a
sentence-level semantic similarity task, which proved more efective for capturing contextual relevance.</p>
      <sec id="sec-3-1">
        <title>3.1. Data Preprocessing</title>
        <p>To standardize and clean the textual data, we first normalized all text by converting it to lowercase
and removing punctuation, special characters, and non-linguistic symbols. In order to retain only
sentences relevant to the user’s personal experiences with symptoms, we implemented a lexical filtering
step based on first-person pronouns (e.g., "I", "me", "my", "myself", "we", "us", "our", "ourselves"). This
heuristic ensured that only sentences likely to reflect personal symptom descriptions were retained for
further analysis.</p>
      </sec>
      <sec id="sec-3-2">
        <title>3.2. Data Preparation</title>
        <p>The labeled datasets from the 2023 and 2024 annotation cycles were utilized as our primary training
corpus. For each symptom class, we employed a majority-vote criterion to determine relevance labels
at the sentence level. Sentences annotated as relevant by the majority of annotators were retained,
resulting in a high-confidence set of training examples for each symptom category.</p>
      </sec>
      <sec id="sec-3-3">
        <title>3.3. Filtering and Re-ranking System</title>
        <p>Our approach consists of a two-stage pipeline involving candidate sentence filtering followed by
reranking, with optional preprocessing of the input text. The overall system architecture is illustrated in
Figure 1. Details of each stage are described in the following sections.</p>
        <sec id="sec-3-3-1">
          <title>3.3.1. Filtering</title>
          <p>The first stage of our retrieval pipeline involved filtering the dataset to identify candidate sentences
that are semantically similar to each symptom. We employed the Sentence Transformer model
all-MiniLM-L6-v2. This model was selected based on its previously demonstrated efectiveness in
semantic similarity tasks within our domain.</p>
          <p>To generate robust and representative embeddings for each symptom class, we first grouped the
training data by symptom label (denoted by the query field). For each symptom, all associated sentences
were aggregated and encoded using a pre-trained transformer model. Each sentence was tokenized and
processed in batches. The model’s final hidden states (token embeddings) were extracted, and
attentionweighted mean pooling was applied across valid tokens using the attention mask. This produced one
vector per sentence. We then computed the average of these sentence-level vectors to obtain a single
embedding representing the symptom. Our approach is inspired by the architecture of Sentence-BERT
[11], which applies pooling over token embeddings to obtain sentence-level representations. While
we do not fine-tune the model using contrastive loss, we similarly extract sentence embeddings from
a Transformer model via pooling, and aggregate them to form class-level representations. The final
process is as follows:
1. Group training data by symptom label (query).
2. Tokenize and encode all sentences for each symptom using all-MiniLM-L6-v2.
3. Extract token-level hidden states from the final layer.
4. Apply attention-weighted mean pooling across tokens to obtain one vector per sentence.
5. Average all sentence embeddings for each symptom to produce a final embedding.
6. Store these vectors as symptom-level representations.</p>
          <p>With symptom embeddings in place, we calculate cosine similarity between each sentence in the
unlabeled corpus and the corresponding symptom embedding. The top  (where  = 1000)
highestscoring sentences for each symptom are selected as candidate sentences.</p>
        </sec>
        <sec id="sec-3-3-2">
          <title>3.3.2. Re-ranking</title>
          <p>To improve the quality of the final ranked list, we explore multiple re-ranking strategies applied to the
ifltered sentence candidates:
• BM25: A sparse retrieval method based on term frequency-inverse document frequency (TF-IDF)
weighting, used to re-rank based on lexical similarity.
• Cross-Encoder: A transformer-based model that jointly encodes the query and candidate
sentences to score them based on contextual relevance.
• Cosine Similarity: Sentence embeddings for candidates are re-computed using larger
embedding models such as BAAI/bge-large-en-v [12] or OpenAI’s text-embedding-3-large.
For each candidate, cosine similarity is computed against all individual sentence embeddings
associated with the target symptom. The final similarity score is obtained by averaging these
values, resulting in a mean similarity score that captures overall alignment with the symptom
representation. Candidates are then re-ranked based on this aggregated score.</p>
          <p>Each re-ranking method was tested independently to isolate its impact on ranking performance.
This modular design allows for direct comparison across diferent retrieval paradigms and embedding
architectures.</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Experimental Setup</title>
      <p>We conducted five experiments to evaluate the efectiveness of diferent data processing and ranking
strategies. Details of each configuration are outlined below. Although our methodology initially
considered the use of cross-encoders for re-ranking, we excluded them from the final experiments due
to their high computational cost and suboptimal performance when evaluated on the previous year’s
data, as shown in Table 1.</p>
      <p>Based on observations from the previous year’s data, the top 100 candidates retrieved during the
initial filtering stage already exhibit high relevance. Therefore, in our approach, we focus re-ranking
eforts primarily on the remaining candidates beyond this top set. It also revealed in Table 1 that
aggressive preprocessing, such as removing punctuation and limiting sentences to those with
firstperson pronouns, may inadvertently exclude sentences that are still semantically relevant. As a result,
using raw (non-preprocessed) data yielded higher performance in the 2024 dataset.</p>
      <p>The five experimental configurations are as follows:
• Experiment 1: Raw data + Filter</p>
      <p>This baseline experiment uses the unprocessed dataset and applies sentence-level filtering based
on semantic similarity. We employ the all-MiniLM-L6-v2 Sentence Transformer to compute
cosine similarity.
• Experiment 2: Preprocessed Data + Filter</p>
      <p>This setup mirrors Experiment 1 but applies preprocessing steps before filtering. These
include converting text to lowercase, removing punctuation and special characters, and restricting
the dataset to sentences containing first-person pronouns. The same filtering strategy using
all-MiniLM-L6-v2 is applied.
• Experiment 3: Raw Data + Filter + Re-ranking (Cosine Similarity - Open Source
Embedding Model)
Building upon Experiment 1, this experiment adds a semantic re-ranking step using the
BAAI/bge-large-en-v1.5 embedding model [12].</p>
      <p>Each experimental configuration, labeled config1 through config5, was evaluated using the oficial
scoring metrics provided by the shared task, allowing for a systematic comparison across diferent
retrieval and ranking strategies.</p>
    </sec>
    <sec id="sec-5">
      <title>5. Results and Discussion</title>
      <p>
        A comprehensive overview of all participating teams’ performance, along with detailed explanations of
the evaluation metrics, can be found in [
        <xref ref-type="bibr" rid="ref1">1, 13</xref>
        ].
      </p>
      <p>In Task 1, we focused exclusively on majority voting, as our training data was constructed using
majority rather than unanimity labels. The oficial results, shown in Table 2, demonstrate that our
approach is highly efective, consistently ranking among the top three teams across all evaluation
metrics. Although our system did not achieve the highest score in any single metric, it maintained
strong and balanced performance overall.</p>
      <p>Interestingly, unlike in the 2024 dataset, this year’s results indicate that preprocessing had a positive
impact on performance. Specifically, config2 , the only configuration using preprocessed data, achieved
the highest scores in three out of four metrics (MAP, P@10, and NDCG@1000). This suggests that,
for the current dataset, preprocessing steps such as punctuation removal and sentence filtering may
enhance relevance estimation.</p>
      <p>Among our configurations, config5 , which used BM25 for re-ranking, performed the worst,
highlighting the limitations of traditional retrieval methods in this setting. In contrast, re-ranking with more
powerful embedding models, such as text-embedding-3-large used in config4 , yielded significant
performance improvements over the baseline (config1 ).</p>
      <p>Overall, the top-performing team in the shared task was INESC-ID, which achieved the highest
scores across all four metrics using their unanimity-based configuration. The UET-Psyche-Warriors
team, which employed a machine learning-based approach, also achieved high scores across all metrics.
This is particularly noteworthy given that, in last year’s evaluation, framing the task as a classification
problem resulted in significantly lower performance.</p>
    </sec>
    <sec id="sec-6">
      <title>6. Conclusion and Future Work</title>
      <p>Our system demonstrates strong efectiveness in detecting early signs of depression by ranking user
writings according to their relevance to specific depression symptoms. Despite these promising results,
there remains room for improvement, particularly in preprocessing strategies, as well as in the filtering
and re-ranking methods employed.</p>
      <p>Although our system did not achieve the highest score on any individual metric, its consistently
balanced performance underscores the robustness of our approach. For future work, we plan to explore
more sophisticated ensemble techniques and investigate the integration of cross-encoder models while
addressing their computational costs. Additionally, we aim to experiment with machine learning
approaches, inspired by the encouraging outcomes from other teams.</p>
      <p>Moreover, further research into data preparation techniques, such as data augmentation and
contrastive learning methods, could provide further performance improvements. These directions
emphasize the need for ongoing investigation in this area to determine the optimal solutions for the early
detection of depression symptoms.</p>
    </sec>
    <sec id="sec-7">
      <title>Acknowledgments</title>
      <p>This research was supported by The VNUHCM-University of Information Technology’s Scientific
Research Support Fund.</p>
    </sec>
    <sec id="sec-8">
      <title>Declaration on Generative AI</title>
      <p>During the preparation of this work, we used GPT-4 and Grammarly in order to: check grammer,
spelling, and edit the content for clarity and coherence. After using these tools, we reviewed and edited
the content as needed and take full responsibility for the publication’s content.
[4] N. Recharla, P. Bolimera, Y. Gupta, A. K. Madasamy, Exploring depression symptoms through
similarity methods in social media posts., in: CLEF (Working Notes), 2023, pp. 763–772.
[5] A.-M. Bucur, Utilizing chatgpt generated data to retrieve depression symptoms from social media,
arXiv preprint arXiv:2307.02313 (2023).
[6] A. Barachanou, F. Tsalakanidou, S. Papadopoulos, Rebecca at erisk 2024: search for symptoms of
depression using sentence embeddings and prompt-based filtering, Working Notes of CLEF (2024)
9–12.
[7] A. M. Mármol-Romero, A. Moreno-Muñoz, P. Álvarez-Ojeda, K. M. Valencia-Segura, E.
MartínezCámara, M. García-Vega, A. Montejo-Ráez, Sinai at erisk@ clef 2024: Approaching the search for
symptoms of depression and early detection of anorexia signs using natural language processing,
Working Notes of CLEF (2024) 9–12.
[8] D. Guecha, A. Potdar, A. Miyaguchi, Ds@ gt erisk 2024: Sentence transformers for social media
risk assessment, arXiv preprint arXiv:2407.08008 (2024).
[9] A. Bascuñana, I. S. Bedmar, Apb-uc3m at erisk 2024: natural language processing and deep learning
for the early detection of mental disorders, Working Notes of CLEF (2024) 9–12.
[10] B. H. Ang, S. D. Gollapalli, S.-K. Ng, Nus-ids@ erisk2024: ranking sentences for depression
symptoms using early maladaptive schemas and ensembles, Working Notes of CLEF (2024) 9–12.
[11] N. Reimers, I. Gurevych, Sentence-bert: Sentence embeddings using siamese bert-networks, 2019.</p>
      <p>URL: https://arxiv.org/abs/1908.10084. arXiv:1908.10084.
[12] S. Xiao, Z. Liu, P. Zhang, N. Muennighof, C-pack: Packaged resources to advance general chinese
embedding, 2023. arXiv:2309.07597.
[13] J. Parapar, A. Perez, X. Wang, F. Crestani, Overview of erisk 2025: Early risk prediction on the
internet (extended overview), in: Working Notes of the Conference and Labs of the Evaluation
Forum (CLEF 2025), Madrid, Spain, 9-12 September, 2025, volume To be published of CEUR
Workshop Proceedings, CEUR-WS.org, 2025.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>J.</given-names>
            <surname>Parapar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Perez</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Crestani</surname>
          </string-name>
          , Overview of erisk 2025:
          <article-title>Early risk prediction on the internet, in: Experimental IR Meets Multilinguality</article-title>
          , Multimodality, and Interaction - 16th
          <source>International Conference of the CLEF Association, CLEF</source>
          <year>2025</year>
          , Madrid, Spain, September 9-
          <issue>12</issue>
          ,
          <year>2025</year>
          , Proceedings,
          <string-name>
            <surname>Part</surname>
            <given-names>II</given-names>
          </string-name>
          , volume To be
          <source>published of Lecture Notes in Computer Science</source>
          , Springer,
          <year>2025</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>J.</given-names>
            <surname>Parapar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Martín-Rodilla</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D. E.</given-names>
            <surname>Losada</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Crestani</surname>
          </string-name>
          , Overview of erisk 2023:
          <article-title>Early risk prediction on the internet</article-title>
          ,
          <source>in: International Conference of the Cross-Language Evaluation Forum for European Languages</source>
          , Springer,
          <year>2023</year>
          , pp.
          <fpage>294</fpage>
          -
          <lpage>315</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>A. T.</given-names>
            <surname>Beck</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C. H.</given-names>
            <surname>Ward</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Mendelson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Mock</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Erbaugh</surname>
          </string-name>
          ,
          <article-title>An inventory for measuring depression</article-title>
          ,
          <source>Archives of General Psychiatry</source>
          <volume>4</volume>
          (
          <year>1961</year>
          )
          <fpage>561</fpage>
          -
          <lpage>571</lpage>
          . doi:
          <volume>10</volume>
          .1001/archpsyc.
          <year>1961</year>
          .
          <volume>01710120031004</volume>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>