<!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>Text Classification For Early Detection of Eating Disorders and Depression in Spanish</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Pablo Turón</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>David Cabestany</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Naiara Pérez</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Montse Cuadros</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Vicomtech, Member of BRTA</institution>
          ,
          <addr-line>Mikeletegi Pasealekua, 57, 20009 Donostia-San Sebastián</addr-line>
          ,
          <country country="ES">Spain</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>This paper presents the participation of the Vicomtech NLP team in the MentalRiskES shared task about the early detection of mental disorders in Spanish comments from Telegram users. We participate in two tasks: Task 1a, related to eating disorders, and Task 2a related to depression. For both tasks we propose a set of approaches based on supervised text classifiers using Transformers. We prioritise our experimentation in building low resource demand systems with the minimum low carbon footprint. With those highlighted features, our systems are developed to detect disorders as early as possible, involving an initial phase that automatically projects stream labels at message level, since not all messages contained in a stream are equally representative of the stream class. We obtain the best ERDE5 result in depression detection (0.27) and second-best in eating disorders (0.17).</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;BERT</kwd>
        <kwd>Mental Disorders</kwd>
        <kwd>Disorders Detection</kwd>
        <kwd>Early Risk</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>requiring participants to identify potential risks as early as possible within a continuous stream
of data. That is, participants were presented with user messages sequentially and required to
emit a prediction at each step, thus emulating the dynamics of real-time analysis. Accordingly,
systems were evaluated both for their risk detection correctness and speed.</p>
      <p>This paper describes the approach developed by the Vicomtech NLP team to address two
tasks of the MentalRiskES challenge:
• Binary classification of eating disorders (Task 1a) : the goal of this task was to detect
as soon as possible whether users sufer from anorexia or bulimia.
• Binary classification of depression (Task 2a) : the goal of this task was to detect as
soon as possible whether users sufer from depression.</p>
      <p>
        Our team participated in these tasks with supervised Transformer-based [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] text classifiers,
with which we obtained the best ERDE5 results in depression detection (0.27) and second-best
in eating disorders (0.17). The novelty of our proposal lies in the preprocessing of the training
data, whereby we automatically labelled streams at message level. As will become clearer
in subsequent sections, this preprocessing step was motivated by the observation that the
training data came labelled at stream level, but not all messages within a stream are equally
representative of the corresponding stream category.
      </p>
      <p>The remainder of the paper is structured as follows: Section 2 provides a brief overview of
the related work; Section 3 introduces the challenge data; Section 4 presents our approach to the
tasks, including a detailed explanation of the aforementioned data preprocessing methodology;
Section 5 reports and analyses the obtained results, both in the development phase and in the
oficial evaluation; finally, Section 6 concludes the paper by summarising the key findings and
suggesting avenues for future research.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Related work</title>
      <p>
        Many eforts have been made to detect diferent mental disorders through written messages
on the internet, based on a text classification problem [
        <xref ref-type="bibr" rid="ref4 ref5 ref6 ref7">4, 5, 6, 7</xref>
        ]. Initiatives like the
CrossLingual Evaluation Forum (CLEF) have been promoting the Early-Risk Identification task
by analysing social media posts [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] to detect diferent disorders in English since 2017. This
motivated the MentalRiskES organisers to create, to the best of our knowledge, the first
EarlyRisk Identification task in the Spanish language.
      </p>
      <p>
        The solutions that have been developed by the CLEF participants cover a wide range of
diferent approaches. For example, the UNSL team at eRisk 2022 [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] developed a system that
split the solution in two diferent problems: i) classifying partial information, and ii) deciding
the moment of classification. For the development of their system, they exploited feature
engineering schemas (bag of words, TF-iDF) to train both classic models (such as support vector
machines, regression classifiers, etc.) and models based on Transformers [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. Other solutions,
like Bucur et al. [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], relied on massive data crawling to train a BERT [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] model and apply a
high threshold when classifying.
      </p>
      <p>
        A diferent solution, which inspired our work, was the on proposed by the UNED-NLP team
[
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] in the eRisk 2022 shared task. They proposed the use of Approximated Nearest Neighbours
(ANN) to tag the entire corpus to a message level. This process was performed adjusting text
embeddings with ANN algorithms, where they start assuming that all the messages from a
negative stream are negative, and all the messages from a positive stream are positive. Once
they adjust their first model, they repeat the process iteratively until convergence, considering
that a message is positive only if its 20 nearest neighbours are positive. Once the model has
been adjusted, they would use the same criteria with the last ANN model to consider a message
as positive.
      </p>
    </sec>
    <sec id="sec-3">
      <title>3. Data</title>
      <p>
        The MentalRiskES dataset is a novel collection of content sourced from public groups on the
messaging platform Telegram. Each training example consists of a sequence of messages or
stream from one Telegram user, and the corresponding mental disorder risk label. Specifically, the
streams were labelled as suffer or control by 10 annotators, suffer being the positive class; the
ifnal label for each stream is suffer if 5 or more annotators voted thus, and control otherwise.
Streams vary in length, containing typically 20 to 40 messages, although many of them consist
of up to 100 messages. We refer the reader to the challenge overview article [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] for further
details about the dataset and its curation process.
      </p>
      <p>The organisers provided 175 training examples and 10 trial examples for each task. Guided
by early experiment results and data analysis, we preprocessed these datasets as follows:
1. Resample the available data in order to obtain two development sets, with 15% and 10%
of the available examples each—one for development purposes proper (Dev), and the
other for testing purposes (Dev), respectively.
2. Filter out streams with 4, 5 or 6 votes from the resulting training set, as such
controversial examples could introduce noise in the learning process. Consequently, we
discarded 18 and 27 examples from Task 1 and Task 2 data respectively.
3. Detect and erase verbalised forms of emojis from the messages. As part of the data
curation process, some emojis had apparently been transformed to their verbalised form
(see examples in Table 7, Appendix A), which rendered some messages ungrammatical or
even nonsensical. This preprocessing step was only applied to depression data (Task 2),
seeing as the problem seemed to occur more often in that case.</p>
      <p>No additional data was used other than that provided by the organisers. Thus, the final example
distribution is as shown in Table 1, which also includes the oficial test. All references to train
and/or development data should be hereafter interpreted as referring to these samples.</p>
      <p>As can be seen, MentalRiskES is challenging in many respects, namely, the reduced size of
the dataset and its imbalanced class distribution, but also the subjectivity of the problem, as
evidenced by the spread-out annotator vote distribution.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Methodology</title>
      <p>While the provided challenge data comes annotated at stream level, early risk detection systems
must be able to emit predictions at each step, that is, by having seen only partial stream
sequences. Intuitively, then, a classifier trained with complete streams could have a hard time
emitting correct predictions for partial streams, given that not all messages in a stream are
bound to be equally representative of the stream category (e.g., some messages in positive
streams could deal with topics unrelated to the target mental disorders).</p>
      <p>In accordance with this premise, our approach to MentalRiskES has consisted of two distinct
phases: first, automatically annotating streams at message level as suffer or control; second,
exploiting the resulting silver corpus to train early detection systems. These phases are illustrated
in Figure 1 and explained in detail in subsequent sections (4.1 and 4.2 respectively).</p>
      <p>
        Both phases involve training BERT-like text classification models based on DiagTrast-Berto
[
        <xref ref-type="bibr" rid="ref13">13</xref>
        ], a BETO [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ] model post-trained on the synthetic corpus about mental disorders DiagTrast
[
        <xref ref-type="bibr" rid="ref15">15</xref>
        ]. The architecture and hyperparameters are the same for both, as described in Section 4.3,
the training setup difering only on the data used in each case.
      </p>
      <sec id="sec-4-1">
        <title>4.1. Message-level annotation</title>
        <p>The goal of this phase was to automatically detect the most representative messages of the
suffer class in suffer training streams, and assign the control label to all other messages. That
is, did not involve control streams, whose messages were directly assigned the control label.
This phase corresponds to the leftmost box of Figure 1. In what follows, we introduce the key
concepts of our proposal, namely, the average confidence Δ (ACΔ) and its threshold.</p>
        <p>Train
Dev</p>
        <p>Message-Level Anotation
5 folds</p>
        <p>Average confidence Δ</p>
        <p>Average confidence Δ</p>
        <p>Stream
BERT classifier</p>
        <p>Message-level
annotation</p>
        <p>Train</p>
        <p>Dev
x5 different
annotation logics</p>
        <p>Partial Stream</p>
        <p>Sampling</p>
        <p>Message
BERT classifier</p>
        <sec id="sec-4-1-1">
          <title>4.1.1. Average confidence Δ (ACΔ)</title>
          <p>Our proposal builds on the intuition that, given an early risk classification model and an input
message stream, if the confidence of the model for the suffer category is markedly higher with
a particular message in the stream than without it, then it is sound to assume that the message
must be representative of the suffer class.</p>
          <p>Here, model confidence is defined as the result of applying a sigmoid function to the
output logits of a BERT-like binary classification model, so that a value of 1 corresponds to a
100% suffer stream, and 0 to a 100% control stream. The confidence Δ of a message or
messages is then the diference between the confidence of the model for the entire stream
and the confidence of the model for the stream without said message(s), whereby a positive
confidence Δ would imply that the message(s) contributed towards the suffer class. That is,
the confidence Δ of a message is always relative to the stream it occurs in.</p>
          <p>Figure 2 illustrates the confidence Δ scores of each message in a real stream of Task 1, eating
disorders. The peaking messages are as follows (translations to English are given below each
message; the whole stream can be consulted in Appendix A):
(1) Ana Peso actual: 68 Peso meta: 50 Edad: 20
(9) Es posible vomitar las calorías?</p>
          <p>Is it possible to vomit the calories?
(15) Tips para bajar de peso en 3 días por favor urgente</p>
          <p>Tips to lose weight in 3 days please urgent
(19) Estoy tan gorda que hice reventar una falda Me siento muy mal</p>
          <p>I’m so fat that I burst a skirt I feel so bad
(23) Sabes que no tienes hambre y simplemente comes porque te sientes estresad@</p>
          <p>You know you are not hungry and you just eat because you feel stressed
(24) No puedes detenerte ni aunque pienses en qué vas a engordar y te verás horrible</p>
          <p>You can’t stop even if you think you’re going to get fat and look awful</p>
          <p>The confidence Δ scores of training set messages were computed in a k-fold validation
fashion: the training dataset was divided into 5 folds with approximately the same number of
streams; then, the messages of each held-out fold were processed with the confidence scores
given by binary classification models trained on the other 4 folds. More specifically, we trained
5 models per fold with diferent seeds, for a total of 25 models, which allowed us to calculate an
average confidence Δ (ACΔ) per message. The ACΔ of the development set messages (Dev)
were obtained by averaging the scores of all the 25 models. Details about model architecture
and training setup can be consulted in Section 4.3 and Appendix C.</p>
        </sec>
        <sec id="sec-4-1-2">
          <title>4.1.2. ACΔ threshold</title>
          <p>Given a stream of messages and their ACΔ scores, we annotated messages as suffer if their
score surpassed a given threshold, and control otherwise. In this work, we designed and tested
multiple types of thresholds:
Naive A message is considered suffer if its ACΔ is positive.</p>
          <p>Unigram Local Maximum (LocMax1) A message is considered suffer if its ACΔ is greater
than 20% of the maximum ACΔ of the stream.</p>
          <p>N-gram Local Maximum (LocMax) A message is considered suffer if LocMax1 applies
or if its dropping alongside  consecutive messages (2 or 3) yields an ACΔ that is greater
than 22% of the maximum ACΔ of the stream, in which case all the involved messages
are tagged as suffer.</p>
          <p>Unigram Global Maximum (GloMax1) A message is considered suffer if its ACΔ is
greater than 20% of the average maximum ACΔ of all the streams.</p>
          <p>N-gram Global Maximum (GloMax) A message is considered suffer if GloMax1 applies
or if its dropping alongside  consecutive messages (2 or 3) yields an ACΔ that is greater
than 22% of the average maximum ACΔ of all the streams, in which case all the involved
messages are tagged as suffer.</p>
          <p>The ACΔ ratios (20% and 22%) we set empirically, along with a general minimum threshold of
0.004 (except for the naive approach).</p>
          <p>Statistics about the resulting silver corpora (one per threshold strategy) can be found in Table
8 of Appendix B. Overall, less than 5% of the messages in each stream were labelled as suffer by
the diferent annotation strategies, the first message labelled as suffer being on average in the
third or fourth position. Appendix A includes a complete example of a stream annotated at
message level.</p>
        </sec>
      </sec>
      <sec id="sec-4-2">
        <title>4.2. Early risk detection</title>
        <p>In the second phase of the experimentation, we trained binary classification models that are
able to recognise suffer cases of the target disorder seeing as few messages as possible. To
that end, we sampled partial stream training and development sequences from suffer and
control streams, leveraging our message-level annotations, in order to emulate the actual
inference scenario of the challenge. This phase is represented in the rightmost box of Figure 1.</p>
        <sec id="sec-4-2-1">
          <title>4.2.1. Partial stream sampling (PSS)</title>
          <p>The goal of partial stream sampling (PSS) is to obtain sub-sequences or partial streams of each
stream, with the label for a sub-sequence being suffer if any of the messages in it is suffer,
and control otherwise. The process difers depending on the type of stream being sampled.</p>
          <p>On the one hand, control streams only yield control samples. In this case, we extracted
samples semi-randomly, assigning more likelihood to shorter stream lengths. In 10% and 5% of
the cases, we sampled 2 and 3 sub-sequences respectively instead of just one.</p>
          <p>On the other hand, suffer streams yield both suffer and control samples:
• suffer samples extend from the beginning of the stream up to and including a
suffer message. We extracted one sample per stream from the beginning of the stream up
to the first suffer message. Additionally, we generated samples that extend up to the
second or third suffer message in 20% of the streams, so as to maximise classifier recall.
• control samples extend up to but excluding the first suffer message. These samples are
meant to maximise classifier precision and were generated from 10% of the suffer streams.
This process was applied once per stream, obtained what we will henceforth refer to as “1-time
sample” or 1s datasets. By definition, 1s datasets only include content from the start of each
stream. Furthermore, we applied the sampling method iteratively in a sliding-windows fashion
(“exhaustive sampling” or ∀s), efectively obtaining more training and development samples.</p>
          <p>These two sampling techniques, paired with the five message-level annotation versions (see
Section 4.1) produced a total of ten dataset versions for early risk detection training, the sizes of
which are reported in Table 9 (Appendix B).</p>
        </sec>
        <sec id="sec-4-2-2">
          <title>4.2.2. Early risk detection models</title>
          <p>In order to measure the impact of the diferent AC Δ thresholds and partial stream sampling
methods, we trained and tested early risk detection models using the ten dataset versions
(Table 9). Specifically, we trained 5 models per dataset with diferent random seeds. Then, their
averaged results were studied to select the final models for submission to the challenge.</p>
          <p>We also implemented baseline systems consisting of binary classification models trained
directly on entire streams (i.e., on the kickof Train and Dev partitions described initially in
Section 3). These baselines allowed us to measure the gains of our proposed method about
automatically labelling streams at message level.</p>
          <p>Details about model architecture and training setup can be consulted in Section 4.3 and
Appendix C. Section 5 reports and analyses the results of all these models in our development
test partition (Dev in Table 1), as well as the results in the oficial test set ( Test) of the models
selected for submission.</p>
        </sec>
      </sec>
      <sec id="sec-4-3">
        <title>4.3. Classifier architecture and input handling</title>
        <p>All the classifiers implemented throughout our reported experiments consist of BERT-based
binary classifiers. We followed the standard layer stack recipe: a BERT encoder, whose output
for the token [CLS] is pooled and fed to a dropout layer, followed by a dense linear layer that
produces the logits for the target categories—namely, suffer and control. During training,
the cross-entropy loss is back-propagated to fine-tune the models. In inference, the final label
for the given input is simply the most probable one.</p>
        <p>Streams were fed to the encoder by joining all the messages through the special token
[SEP] and passing this text through the corresponding BERT tokeniser. The cases where
the resulting subword sequence surpassed the maximum allowed length of the encoder were
handled diferently in each of the experimentation phases:
• For message-level annotation models (Section 4.1.1), we simply truncated the stream to
the maximum allowed length. Given the observation that suffer streams usually contain
relevant information for the class already in initial messages, we considered this a good
compromise between implementation simplicity and expected performance.
• In the case of early risk detection models (Section 4.2.2), on the other hand, the most
important message of the input sequence is by design the latest one—as the classifier
receives messages from a live stream incrementally, it is the latest message that contains
new information to consider. Thus, if necessary, the input sequences were truncated from
the left, that is, discarding older content. Of note, the maximum input length was limited
to 130 tokens during training and 512 in inference, as this setting produced better results
in our preliminary experiments.</p>
        <p>
          All the models are fine-tuned versions of DiagTrast-Berto [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ], a Spanish BERT (a.k.a.,
BETO) [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ] post-trained on the synthetic corpus about mental disorders DiagTrast [
          <xref ref-type="bibr" rid="ref15">15</xref>
          ]. This
base model was chosen during early experiments, where it obtained better results than BETO
itself, Multilingual BERT [
          <xref ref-type="bibr" rid="ref16">16</xref>
          ] and a Spanish Longformer [
          <xref ref-type="bibr" rid="ref17">17</xref>
          ].
        </p>
        <p>This decision was also conditioned by concerns related to eficiency, as MentalRiskES
organisers encouraged participants to implement systems with low resource demand and carbon
footprint. For this reason, we did not consider experimenting with larger Transformer-based
models, despite their potential superior performance.</p>
        <p>Specific model hyperparameters and training setup can be consulted in Appendix C.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>5. Results</title>
      <p>In this section, we will describe the results obtained in our development experiments and in the
oficial challenge evaluation. It must be noted that despite our eforts to replicate the organisers’
evaluation methodology, we have not been able to obtain exactly the same metrics as those
oficially reported on the test set. That is, the results obtained in our local experiments do not
represent exactly the same metrics used in the final evaluation.</p>
      <sec id="sec-5-1">
        <title>5.1. Development results</title>
        <p>The results obtained by our models on the development test (Dev) are reported in Tables 2 and
3, for Task 1 (eating disorders) and Task 2 (depression) respectively. It must be noted that the
reported results correspond in each case to the average of 5 models.</p>
        <p>As can be seen, many of our models manage to surpass the simpler baselines trained on entire
streams. With our proposed stream preprocessing method, we have managed to gain 11 and
15 F1-score points in Task 1a and Task 2a, respectively, despite the fact that the message-level
datasets were labelled automatically, while the baselines are trained on gold labels.</p>
        <p>Furthermore, it can be observed that models trained with the exhaustive datasets (∀s) managed
to obtain better results than those of the 1-step datasets (1s) in almost all the cases. This
observation applies both to binary classification metrics and, to a lesser extent, to early detection
metrics. This is despite the fact that ∀s datasets contain information that was not sampled
exclusively from the initial parts of the streams; on the other hand, it should be noted that
∀s datasets do contain many more training and development examples than 1s.</p>
        <p>No such general remark can be made with respect to the impact of the diferent threshold
heuristics. Although our models obtained the best results in both tasks with the GloMax1
threshold and ∀s dataset, the diferences are not particularly significant nor systematic. It is possible
that a bigger test dataset is needed to measure the real impact of the diferent thresholds.</p>
        <p>These results led us to submit the following models for oficial evaluation:
Task 1a (eating disorders)</p>
        <p>Task 2a (depression)
• Run 0: ∀s + GloMax1
• Run 1: ∀s + GloMax
• Run 2: ∀s + LocMax</p>
      </sec>
      <sec id="sec-5-2">
        <title>5.2. Oficial results</title>
        <p>• Run 0: Baseline
• Run 1: 1s + GloMax1
• Run 2: ∀s + LocMax
The oficial results of our 3 runs per task can be consulted in Tables 4 and 5 for Task 1a and 2a
respectively. For benchmarking purposes, these tables also report the results of the organisers’
baselines and those of the best participants in terms of F1-score and/or F1 . Carbon footprint
measurements have been compiled in Appendix D.</p>
        <p>These results reveal that our systems are among the fastest of the participants, with some
of the best trade-ofs between F1-score and speed of the entire task. We obtained the
secondbest ERDE5 value in Task 1a, having only been slightly outperformed by the Roberta
baseline (a model with double the parameters than ours). We also obtained the second-best
F1 value. The best F1 value was achieved by the team CIMAT-NLP-GTO, who have a
remarkably better F1-score but double our latency. On a minor note, it should be reported that
we encountered a problem upon submitting the predictions of the first round, which afected
our speed-related metrics.</p>
        <p>The trends are similar for Task 2a, although the absolute metrics are overall worse than for
Task 1a, in line with our development results. We hypothesise that this task may have been
more challenging for all participants because the problem being modelled is more subjective or
ambiguous, as the annotator votes in Table 1 suggest.</p>
        <p>In general, our ERDE30 and F1-score values suggest that our systems are relatively premature
in the classification. Other participants obtained better F1-score and ERDE 30 values than us by
consuming more messages, which, in return, allowed them to be more accurate. However, most
of our errors were committed in streams with a greater disagreement than average between the
annotators, as we explain in the next section.</p>
      </sec>
      <sec id="sec-5-3">
        <title>5.3. Error analysis</title>
        <p>The false positive (FP) and false negative (FN) error counts on the Test are reported by task and
run in Table 6. Run 0 (∀s + GloMax1) and Run 1 (∀s + GloMax) are quite balanced in Task 1a,
but Run 2 (∀s + LocMax) makes twice FPs than FNs. This behaviour could be explained by
the fact that LocMax is a laxer threshold than the former two. The error types are much more
imbalanced in Task 2a, where our systems have made more than 50 FP errors each. As explained
before, this task turned out to be markedly more challenging for all the task participants.</p>
        <p>Interestingly, the errors committed by the diferent systems involve to a great extent the same
set of streams. Having manually analysed them, we observed that many of the repetitive FP
errors were triggered by messages that mentioned words or phrases related to eating disorders
(example E1) or depression (E2), but that do not necessarily imply that the user themselves is at
risk of sufering those. In contrast, the FN errors generally involve streams that clearly convey
mental health risk but were outright missed by the systems (e.g., E3 and E4).</p>
        <p>E1) Que opinan sobre hacer ayuno para bajar de peso</p>
        <p>What do you think about fasting to lose weight
E2) Y estoy aquí porqué mi Esposa fue diagnosticada con depresión y ansiedad</p>
        <p>And I’m here because my Wife was diagnosed with depression and anxiety
E3) Yo me siento horrible con el cuerpo que tengo [...] intenté bomitar pero nunca pude</p>
        <p>I feel horrible with the body I have [...] I tried to vomit but I never could
E4) Solo quiero ayudar y que los demás estén más felices [...] ya que yo no puedo [...]</p>
        <p>I just want to help and make others happier [...] since I can’t [...]</p>
        <p>Given the subjective nature of the task, we also analysed the annotator vote distribution
specifically on the instances that induced the errors on our systems. Table 6 includes the average
number of votes received by stream: in the case of FP streams (that is, true control streams),
the annotator agreement is better as the vote average gets closer to 0; conversely, the annotator
agreement for FN streams (that is, true suffer streams) is better as the vote average gets closer
to 10. As we compare these values to the total average votes of the dataset (the bottom row of
the table), we observe that the annotator agreement is somewhat worse, overall, for the streams
that induced errors in our systems. That is, this results suggest that our systems committed
errors on instances that present more dificulties than average even to human annotators.</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>6. Conclusions and future work</title>
      <p>This article described the participation of the Vicomtech NLP team in the MentalRiskES shared
task. Specirfically, we have tackled the binary classification task for eating disorders and
depression disorders, proposing Trasnformer-based systems that did not involve training with
any external data nor the use of larger language models. Our proposal includes a novel
messagelevel annotation algorithm based on the variation of confidence when dropping message from
streams, and the training of DiagTrast-Berto models over these message-level annotated datasets.</p>
      <p>Our systems managed to obtain competitive metrics in comparison to the results by other
participants, having achieved the second-best F1 and ERDE5 values in Task 1a, and the
best ERDE5 and the third-best F1 in Task 2a These metrics measure how fast models
recognise the desired pattern. Our systems might have been slightly penalised in terms of
ERDE30 or F1-score since we encouraged our models to be as fast as possible; however, further
error analysis revealed that many of the errors were induced by data that produced notable
disagreement among annotators.</p>
      <p>Further work could focus on modifying our annotation algorithm, obtaining a BERT-like
embedding by message, and looking at the attention layers of a trained a BERT model with a
concatenation of those embeddings. Other studies could be leveraged training our systems with
some external data from diferent sources, exploring diferent threshold heuristics, or modifying
our system to prevent it from making premature classifications.</p>
    </sec>
    <sec id="sec-7">
      <title>Acknowledgments</title>
      <p>We would like to thank Aitor García Pablos for his insightful comments and recommendations.
This work was partially funded by the Basque Business Development Agency, SPRI, under the
ESAN project (grant agreement KK-2021/001179).</p>
    </sec>
    <sec id="sec-8">
      <title>A. Message-level annotation example</title>
    </sec>
    <sec id="sec-9">
      <title>B. Quantification of silver dataset versions</title>
      <p>Table 8 describes the five versions of message-level annotations obtained by applying the
diferent AC Δ thresholds (see Section 4.1) to the original streams. Table 9, in turn, describes the
10 dataset versions obtained after partial stream sampling (PSS) to the message-level annotated
streams (see Section 4.2.1).</p>
    </sec>
    <sec id="sec-10">
      <title>C. Model hyperparameters and training setup</title>
      <p>
        Our models were trained on a NVIDIA GeForce RTX 2080 GPU with 11GB of memory using
the AdamW optimiser [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ] and the hyperparameters listed in Table 10. The models were
implemented in Python 3.9 with torch (version 1.8.0) and Huggingface’s transformers
(version 4.21.2). Any hyperparameter no reported here should be interpreted as being set to the
default values of the aforementioned libraries. The architecture of the models is described in
Section 4.3.
      </p>
    </sec>
    <sec id="sec-11">
      <title>D. Carbon footprint</title>
      <p>
        Table 11 and Table 12 describe the estimated hardware electricity power consumption submitted
by the participants that we cite in Section 5.2 (oficial baselines were excluded from these tables,
as no footprint metrics were provided for those by the organisers) for the eating disorders task
and the depression task, respectively. These metrics were obtained using the Code Carbon
Python library [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ], which estimates the carbon footprint according to the hardware usage,
and the amount of carbon emissions used to produce that amount of energy in the configured
country (see its documentation for more information).
MLA
      </p>
      <p>ERD
Team
∀s + LocMax
∀s + GloMax
∀s + LocMax
CIMAT-NLP-GTO
Team
UMUTeam
SINAI-SELA
∀s + LocMax
1s + GloMax1
Baseline</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>A.</given-names>
            <surname>Haakenstad</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. A.</given-names>
            <surname>Yearwood</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Fullman</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Bintz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Bienhof</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. R.</given-names>
            <surname>Weaver</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Nandakumar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. N.</given-names>
            <surname>Jofe</surname>
          </string-name>
          , K. E. LeGrand,
          <string-name>
            <given-names>M.</given-names>
            <surname>Knight</surname>
          </string-name>
          , et al.,
          <article-title>Assessing Performance of the Healthcare Access and Quality Index, Overall and by Select Age Groups, for 204 Countries</article-title>
          and Territories,
          <fpage>1990</fpage>
          -
          <lpage>2019</lpage>
          :
          <article-title>a Systematic Analysis from the</article-title>
          <source>Global Burden of Disease Study</source>
          <year>2019</year>
          ,
          <source>The Lancet Global Health</source>
          <volume>10</volume>
          (
          <year>2022</year>
          )
          <fpage>e1715</fpage>
          -
          <lpage>e1743</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>A. M.</given-names>
            <surname>Mármol-Romero</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Moreno-Muñoz</surname>
          </string-name>
          ,
          <string-name>
            <surname>F. M.</surname>
          </string-name>
          <article-title>Plaza-del-</article-title>
          <string-name>
            <surname>Arco</surname>
            ,
            <given-names>M. D.</given-names>
          </string-name>
          <string-name>
            <surname>Molina-González</surname>
            ,
            <given-names>M. T.</given-names>
          </string-name>
          <string-name>
            <surname>Martín-Valdivia</surname>
            ,
            <given-names>L. A.</given-names>
          </string-name>
          <string-name>
            <surname>Ureña-López</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Montejo-Ráez</surname>
          </string-name>
          , Overview of MentalriskES at IberLEF 2023:
          <article-title>Early Detection of Mental Disorders Risk in Spanish</article-title>
          ,
          <source>Procesamiento del Lenguaje Natural</source>
          <volume>71</volume>
          (
          <year>2023</year>
          ). TBP.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>A.</given-names>
            <surname>Vaswani</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Shazeer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Parmar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Uszkoreit</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Jones</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. N.</given-names>
            <surname>Gomez</surname>
          </string-name>
          , Ł. Kaiser,
          <string-name>
            <surname>I. Polosukhin</surname>
          </string-name>
          , Attention is All you Need,
          <source>in: Advances in Neural Information Processing Systems 30 (NIPS</source>
          <year>2017</year>
          ), Curran Associates Inc.,
          <year>2017</year>
          , pp.
          <fpage>6000</fpage>
          -
          <lpage>6010</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>M. M. Tadesse</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          <string-name>
            <surname>Lin</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          <string-name>
            <surname>Xu</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          <string-name>
            <surname>Yang</surname>
          </string-name>
          ,
          <article-title>Detection of Depression-Related Posts in Reddit Social Media Forum</article-title>
          ,
          <source>IEEE Access 7</source>
          (
          <year>2019</year>
          )
          <fpage>44883</fpage>
          -
          <lpage>44893</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>A.</given-names>
            <surname>Yates</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Cohan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Goharian</surname>
          </string-name>
          ,
          <article-title>Depression and Self-Harm Risk Assessment in Online Forums</article-title>
          ,
          <source>in: Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, Association for Computational Linguistics</source>
          ,
          <year>2017</year>
          , pp.
          <fpage>2968</fpage>
          -
          <lpage>2978</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>M. J.</given-names>
            <surname>Vioulès</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Moulahi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Azé</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Bringay</surname>
          </string-name>
          ,
          <article-title>Detection of Suicide-Related Posts in Twitter Data Streams</article-title>
          ,
          <source>IBM Journal of Research and Development</source>
          <volume>62</volume>
          (
          <year>2018</year>
          ) 7:
          <fpage>1</fpage>
          -
          <lpage>7</lpage>
          :
          <fpage>12</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>S.</given-names>
            <surname>Ji</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Huang</surname>
          </string-name>
          , E. Cambria,
          <article-title>Suicidal Ideation and Mental Disorder Detection With Attentive Relation Networks</article-title>
          ,
          <source>Neural Computing and Applications</source>
          <volume>34</volume>
          (
          <year>2021</year>
          )
          <fpage>10309</fpage>
          -
          <lpage>10319</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>J.</given-names>
            <surname>Parapar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Martín</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 2022:
          <article-title>Early Risk Prediction on the Internet, in: Experimental IR Meets Multilinguality</article-title>
          , Multimodality, and
          <source>Interaction Proceedings of the Thirteenth International Conference of the CLEF Association (CLEF</source>
          <year>2022</year>
          ), Springer International Publishing,
          <year>2022</year>
          , pp.
          <fpage>233</fpage>
          -
          <lpage>256</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>J. M.</given-names>
            <surname>Loyola</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Thompson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Burdisso</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Errecalde</surname>
          </string-name>
          , UNSL at eRisk 2022:
          <article-title>Decision Policies With History for Early Classification</article-title>
          , in: G. Faggioli,
          <string-name>
            <given-names>N.</given-names>
            <surname>Ferro</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Hanbury</surname>
          </string-name>
          , M. Potthast (Eds.),
          <source>Proceedings of the Working Notes of CLEF 2022 - Conference and Labs of the Evaluation Forum</source>
          , Bologna, Italy, September 5th - to - 8th,
          <year>2022</year>
          , volume
          <volume>3180</volume>
          <source>of CEUR Workshop Proceedings, CEUR-WS.org</source>
          ,
          <year>2022</year>
          , pp.
          <fpage>947</fpage>
          -
          <lpage>960</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>A.-M. Bucur</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Cosma</surname>
          </string-name>
          , L. Dinu,
          <article-title>Early Risk Detection of Pathological Gambling, SelfHarm and Depression Using BERT</article-title>
          ,
          <source>in: Proceedings of the Working Notes of CLEF 2021 - Conference and Labs of the Evaluation Forum</source>
          ,
          <year>2021</year>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>12</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>J.</given-names>
            <surname>Devlin</surname>
          </string-name>
          , M.-
          <string-name>
            <given-names>W.</given-names>
            <surname>Chang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Toutanova</surname>
          </string-name>
          , BERT:
          <article-title>Pre-Training of Deep Bidirectional Transformers for Language Understanding, in: Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT 2019), Volume 1 (Long</article-title>
          and Short Papers),
          <source>Association for Computational Linguistics</source>
          ,
          <year>2019</year>
          , pp.
          <fpage>4171</fpage>
          -
          <lpage>4186</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>H.</given-names>
            <surname>Fabregat</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Duque</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Araujo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Martínez-Romo</surname>
          </string-name>
          , UNED-NLP at eRisk 2022:
          <article-title>Analyzing Gambling Disorders in Social Media using Approximate Nearest Neighbors</article-title>
          ,
          <source>in: Proceedings of the Working Notes of CLEF 2022 - Conference and Labs of the Evaluation Forum</source>
          ,
          <year>2022</year>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>12</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <surname>A. M. Garrido</surname>
            , E. Mencia,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Ángel Solís Orozco</surname>
            ,
            <given-names>J. C. V.</given-names>
          </string-name>
          <string-name>
            <surname>Villegas</surname>
          </string-name>
          , Model Card for “
          <source>DiagTrastBerto”</source>
          ,
          <year>2023</year>
          . URL: https://huggingface.co/hackathon-somos-nlp-2023/DiagTrast-Berto.
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>J.</given-names>
            <surname>Cañete</surname>
          </string-name>
          , G. Chaperon,
          <string-name>
            <given-names>R.</given-names>
            <surname>Fuentes</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.-H.</given-names>
            <surname>Ho</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Kang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Pérez</surname>
          </string-name>
          ,
          <article-title>Spanish Pre-Trained BERT Model and Evaluation Data</article-title>
          ,
          <source>in: PML4DC at ICLR</source>
          <year>2020</year>
          ,
          <year>2020</year>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>9</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <surname>A. M. Garrido</surname>
            , E. Mencia,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Ángel Solís Orozco</surname>
            ,
            <given-names>J. C. V.</given-names>
          </string-name>
          <string-name>
            <surname>Villegas</surname>
          </string-name>
          , Dataset Card for '
          <source>DiagTrast”</source>
          ,
          <year>2023</year>
          . URL: https://huggingface.co/datasets/hackathon-somos-nlp-2023/DiagTrast.
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>J.</given-names>
            <surname>Devlin</surname>
          </string-name>
          , M.-
          <string-name>
            <given-names>W.</given-names>
            <surname>Chang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Toutanova</surname>
          </string-name>
          ,
          <source>Multilingual Models (Google Research - BERT)</source>
          ,
          <year>2019</year>
          . URL: https://github.com/google-research/bert/blob/master/multilingual.md.
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>Text</given-names>
            <surname>Mining</surname>
          </string-name>
          <article-title>Unit (TeMU) at the Barcelona Supercomputing Center, Longformer Base Trained With Data from the National Library of Spain (BNE</article-title>
          ),
          <year>2022</year>
          . URL: https:// huggingface.co/PlanTL-GOB-ES/longformer-base-4096
          <string-name>
            <surname>-</surname>
          </string-name>
          bne-es.
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>I.</given-names>
            <surname>Loshchilov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Hutter</surname>
          </string-name>
          , Decoupled Weight Decay Regularization,
          <source>in: Proceedings of the 7th International Conference on Learning Representations (ICLR</source>
          <year>2019</year>
          ),
          <year>2019</year>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>18</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <surname>Mila</surname>
            ,
            <given-names>DataForGood</given-names>
          </string-name>
          , BCG GAMMA,
          <article-title>Comet</article-title>
          .ml, Haverford College, Codecarbon,
          <year>2021</year>
          . URL: https://pypi.org/project/codecarbon/.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>