<!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>Improving Transformer by Instance Packaging for Mental Illnesses Identification</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>María de-Jesús-García-Santiago</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Fernando Sánchez-Vega</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>Adrián Pastor López-Monroy</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Consejo Nacional de Ciencia y Tecnología (CONACYT)</institution>
          ,
          <addr-line>Av. de los Insurgentes Sur 1582, Benito Juárez, 03940, CDMX</addr-line>
          ,
          <country country="MX">México</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Mathematics Research Center</institution>
          ,
          <addr-line>Jalisco S/N Valenciana, 36023 Guanajuato, GTO</addr-line>
          <country country="MX">México</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>This work is an overview of the CIMAT-NLP submission at the shared tasks of MentalRiskES at IberLEF 2023, which consisted of three diferent tasks related to the detection of mental illness on social media text in Spanish: detection of eating disorders, depression, and an unknown disorder. In this work, we proposed using models based on RoBERTuito using two ideas for their training and evaluation. The main idea of our work is to make packages of messages text to create new instances with more information, as the messages provided in the training data are small in length words. Our proposed models were first on precision metrics in Task 1b and fifth in RSME on same subtask. In depression Task 3a our model placen iffth in Macro-F1 and second on ERDE30.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;mental disorder detection</kwd>
        <kwd>depression</kwd>
        <kwd>eating disorders</kwd>
        <kwd>natural language processing</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        A mental illness (or mental disorder) is a disease that involves diferent alterations in thinking,
emotions, or behavior, the mental disorders are usually related to stressful events or problems
functioning in social, work, or family activities [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
      </p>
      <p>
        One in eight persons sufered from a mental disease in 2019, where the most common
disorders were depression and anxiety, the number of persons afected by these disorders
incremented during the COVID-19 pandemic [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. Even though mental diseases are common in
the population, persons with these diseases have been stigmatized and discriminated against by
society. Notwithstanding the fact that, mental illness could be prevented and diagnosed on time,
many persons can not access efective treatments and diagnose for their disease; this could be
because lack of information about mental illness, ineficient health systems, economic problems
or help from their near circle [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ].
      </p>
      <p>Automatic detection of mental illness is a complex problem because of diferent factors; the
complexity of the mental illness to detect, the data available for the training of the models, the
tools developed for this task and other factors.</p>
      <p>The problem of automatic detection of mental disorders worsens in Spanish speaking
countries. The predomination of the tools, programs, and models for the task is for the English
language. In response to the absence of automatic systems to detect mental disorders in
Spanish, MentalRiskES is a novel task on early risk identification of mental disorders in Spanish
comments. With this novel task, the teams intended to do an online detecting duty, where the
point was to detect a potential risk as early as possible, by simulating that the systems received
messages like in a normal conversation.</p>
      <p>
        Our proposed work has two main ideas: (1) Packaging of text for training and evaluation
and (2) data augmentation. We used models based on transformers pre-trained in Spanish
social media corpus, which is RoBERTuito [
        <xref ref-type="bibr" rid="ref4 ref5 ref6">4, 5, 6</xref>
        ]. We used the packaging idea for the training
and evaluation of the data, as packages give more context to the model and the performance
increments. In the second proposal, we still use the idea (1), adding the second idea (2) to augment
the training data, as the package makes fewer instances for training. The augmentation of data
is per user; as we make more instances of packages of each of them, the samples of messages in
their records are used to make the packages and then used as training instances.
      </p>
      <p>The rest of this paper is organized as follow: In Section 2 we introduce history about the
detection of mental illness on social media. Section 3 describes the competition and the
distribution of the datasets. In Section 4 we talk about our approaches for the diferent tasks and in
Section 5 we decide the models to use for each task with their results on the competition.In
Section 6, we aboard the ethical issues of the competition and the environmental impact. Finally,
Section 7 contains the conclusion of this work.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Related work</title>
      <p>In mental illness detection, one of the essential workshops is the CLEF eRisk: Early risk
prediction on the Internet. The main objective is to develop automatic systems that alert
depending on the task. Because of the importance of this workshop, most of the world had been
devoted to the English language, but now MentalRiskEs tackles Spanish for the first time.</p>
      <p>
        The majority of the proposals in eRisk since 2017 are Bag of Word-based or Neural Network
based. In more recent editions, such as in 2020, the transformers started being used; one example
in [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] in which the authors used XLM-RoBERTa [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] for the detection of depression and self-harm
and obtained the first place for early detection of self-harm and in the top five for detection of
depression.
      </p>
      <p>
        Other works using transformers models are had been at the top of the Shared task on Detecting
Signs of Depression from Social Media Text (LT-EDI) contest in 2022. The LT-EDI contest focuses
on depression detection without the early detection factor, the works of [
        <xref ref-type="bibr" rid="ref10 ref11 ref12 ref9">9, 10, 11, 12</xref>
        ] that
achieve the better performance at multiclass classification, used diverse transformers based
of models such as as BERT [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ], RoBERTa [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ], DistilBERT [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ], ELECTRA[
        <xref ref-type="bibr" rid="ref16">16</xref>
        ], DeBERTa[
        <xref ref-type="bibr" rid="ref17">17</xref>
        ],
ALBERT[
        <xref ref-type="bibr" rid="ref18">18</xref>
        ], T5[
        <xref ref-type="bibr" rid="ref19">19</xref>
        ]. These works use diferent techniques in order to improve the performance
of their proposed models. The techniques vary from fine-tuning in specific domine, ensembles,
Valence Aware Dictionary for sEntiment Reasoning (VADER), which is used to make VAD scores
and mask words in the training and augmentation data techniques (Back translation as one
example of this).
      </p>
      <p>In MentalRiskEs, the messages have diferent lengths; the majority of these messages could
be considered short messages. The problem is that these messages, as instances, could not be
enough to make decisions about the user; context is essential for model languages as they help
to make a decision based on data. The messages may not contain relevant information and
could mislead the users’ emotional state. Because of the previous ideas, we hypothesize that the
union of several messages to be treated as one would give the necessary context for a better
decision.</p>
      <p>
        An approach to the problem of short messages is in the work of [
        <xref ref-type="bibr" rid="ref20">20</xref>
        ]. This work references
transformer models in Spanish tasks; in their work, they have a novel approach for the Author
Profiling problem by predicting the labels at the tweet level instead of the user level. The tweets
could be only one tweet or three packages for the predictions. We use this idea of packages of
messages in our models proposed in Section 4. We think the packages provide more context to
the transformer as the individual messages are usually short; this lead to a better performance
of the models. One of the transformer’s problems is the need for big datasets for their training,
as mentioned in [
        <xref ref-type="bibr" rid="ref21">21</xref>
        ], where they use a packaging strategy to reduce the training time. Because
the original number of instances was small for all the datasets, we propose an augmentation
data technique using the idea of packages, which uses random messages from the history of
each user.
      </p>
    </sec>
    <sec id="sec-3">
      <title>3. Dataset and taks</title>
      <p>The datasets of MentalRiskES are data consisting of messages from telegram users. The eating
disorder and depression sub-datasets have the same number of users: 10 for trial, 175 for
training, and 150 for testing. The third task only has 150 users for testing, as the organizers
intend that the teams use their subsystems developed in the previous tasks.</p>
      <p>As the primary purpose of the competition is to predict the risk of mental illness the earliest
possible, they have a server where each team communicates to get the test data. Because they
wanted to simulate a conversation in real-time, we have one message per-round and predict the
possibility of each user having a mental illness. In each round, we got a list of users with the
id_messages, names (for example, "subject1"), messages, and dates of the messages.</p>
      <sec id="sec-3-1">
        <title>3.1. Task 1: Eating disorders detection</title>
        <p>The first task intention was to detect if users sufer from bulimia or anorexia. This problem is
sub-divided into two sub-tasks,
a The first subtask was a binary classification: only predicting one of the two labels ("sufer" or
"control").
b The second subtask was simple regression: the probability of sufering the mental illness.</p>
        <p>For the distribution of sufer and control users see Table 1, the same datasets were used for
both subtasks.</p>
        <p>Training
Total users</p>
        <p>Sufer label
Control label</p>
      </sec>
      <sec id="sec-3-2">
        <title>3.2. Task 2: Depression detection</title>
        <p>This problem is sub-divided into four sub-tasks,
a Binary classification: only predicting one of the two labels ("sufer" or "control").
b Simple regression: the probability of sufering the mental illness.
c Multiclass classification, only predicting one of the four classes (“sufer+against”, “sufer+in
favor”, “sufer+other”, “control”).
d Multi-output regression: as simple regression but the probability corresponding to each class.</p>
        <p>Similar to Task 1, the subtasks uses the same dataset for training and test.In Table 2 we
only show the distribution respect if a user has or not the mental illness, because we did not
participate in subtask 2c and 2d.</p>
        <p>Training</p>
        <p>Trial Test
Total users</p>
        <p>Sufer label
Control label</p>
      </sec>
      <sec id="sec-3-3">
        <title>3.3. Task 3: Unknown disorder detection</title>
        <p>The last task was to detect an unknowing disorder (anxiety). Because we did not have a training
corpus and previous knowledge about the disorder to be detected, we used the training corpus
from Task 1 and Task 2 to make a model that detects general mental illness. This task has
identical subtasks to Task 1. In this task, the number of users with the "sufer" label is 93, and
the "control" label is 57.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Method</title>
      <p>
        Because the dataset is a Spanish corpus, we also use transformers pre-trained in this language.
RoBERTuito is a pre-trained model for content in Spanish [
        <xref ref-type="bibr" rid="ref4 ref5 ref6">4, 5, 6</xref>
        ]. The training used for
RoBERTuito was the guidelines of RoBERTa on 500 million tweets with the Whole Word
Masking technique [22].
      </p>
      <p>As RoBERTuito is based on RoBERTa, the range of text length input is a maximum of 768
tokens. The training dataset from MentalRiskEs has messages with small lengths. If we join all
the messages from each user, most users’ complete history has a mean of 500 tokens. Almost
all users’ complete history can be given to RoBERTuito without truncation. The main problem
with this approach is that all the records have diferent lengths. The diference between lengths
could lead to the model specializing in learning a fixed number of the tokens (the more repeated
lengths), and the user’s objective could not be the best approach, as we have small information
in each round.</p>
      <p>
        In our approach, we decided to make packages from joined messages for the training and
validation dataset as in [
        <xref ref-type="bibr" rid="ref20">20</xref>
        ] and then use a voting scheme to predict the label for each user. In
the second subsection, we make augmentation data for more instances to train the transformers
and improve their performance.
      </p>
      <sec id="sec-4-1">
        <title>4.1. Package Approach</title>
        <p>In the training and validation data, a fixed size of messages is joined into packages because
most messages in the competition corpus have a small length. When we merge the messages
into packages, we add more information to the instance. Consequently, the model would be
better for predicting the label for each package in the validation data. The order of the joining
is date order, from the earliest to the latest, as we hypothesize that the temporal information is
helpful as they simulate the user’s mood during their history of messages.</p>
        <p>For the prediction of the users of validation data, even though the predictions are individual,
the user’s decision is made by a voting scheme, which means that if the model predicted more
often "sufer" labels, then the user will be labelled as "sufer," or in another case is labelled as
"control."</p>
        <p>In Fig.1, we have illustrated the packaging strategy described before for one user. First, the
user has  instances, and then taking  subsequent messages, we join them in one package, so
the number of packages will be /.</p>
        <p>Instead of predicting all the messages, the model predicts the / instances created and
ifnally makes one prediction for the user using the voting scheme and the new instances, the
process is represented in Fig. 2.</p>
        <p>
          For the experiment, we tried diferent learning rates and train batch sizes, where the evaluation
dataset is the new validation dataset mentioned before. The size of the packages tried were 3, 5,
and 10 for the training dataset following the same ideas in [
          <xref ref-type="bibr" rid="ref20">20</xref>
          ]. For the new validation dataset,
the sizes were 2, 3,4, 5, and 10 as in the competition, and we do not know the lengths of the
messages for a round. In Table 3, we show the new distribution of instances for the training
and validation data in both tasks using the packages strategy.
        </p>
        <p>One problem that surges with the packaging strategy is the reduction of instances for training.
The number of instances is essential because the transformer models usually perform better
when they have big datasets instead of small ones. To solve this problem, we developed a
technique for augmentation data.</p>
      </sec>
      <sec id="sec-4-2">
        <title>4.2. Augmentation data technique</title>
        <p>For the augmentation data technique, we still used the process of making packages as in the
previous subsection. The new part of this process is to make the packages with random messages
from the same users to make more instances. As in Subsection 4.1, the packages are made
from messages from the same user intending to preserve the user’s writing style, and the new
instances are correctly labelled.</p>
        <p>First, we make the packages in the process mentioned in the Subsection 4.1. Then, the
packages for the augmentation data have messages selected randomly without the date as an
essential factor for the joining to create new instances that are not duplicates and could contain
diferent contexts. The final number of instances per user would be / + (/) * , where
 is the total of messages of the user,  the size of the package and  the number of times we
repeat the process of making "random" packages.</p>
        <p>Our main reason for making augmentation data is to give our model instances which contain
messages that are from diferent moments in the life of the user and help to understand the
patterns of their mood. Another benefit of this technique is that this solves the problem of
working with small data, as the new datasets are more extensive and improve the model’s
performance. The same values used in Subsection 4.1 were used to make the augmentation
datasets for training; the number of instances for these datasets triplicates the original number
of packages shown in the Subsection 4.1; the validation datasets remained the same. Table 4
shows the distribution of the augmented datasets.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>5. Results</title>
      <p>This Section contains two subsections. In the Subsection 5.1, we talk about the results obtained
in the validation datasets created. These results helped us to choose the best hyperparameters
for the models of each task. The Subsection 5.2 shows the results obtained from our proposed
models on the competition.</p>
      <sec id="sec-5-1">
        <title>5.1. Models validation and hyperparameters selection</title>
        <p>The F1-score binary metric for the classification of the users was used to select the best models
for the competition.</p>
        <p>
          Since the size of the trial data is only ten examples, the train and trial data merged into one
and split into validation data with 20% of the data. For the experiments, we used the uncased
version of RoBERTuito [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ].
5.1.1. Task 1
For the detection of eating disorders we made experiments using diferent hyperparameters:
learning rate and batch training size for the RoBERTuito transformer. First, we are going to
        </p>
        <p>Packing size for validation datasets</p>
        <sec id="sec-5-1-1">
          <title>Pack of Pack of 2 Pack of 3 Pack of 4</title>
        </sec>
        <sec id="sec-5-1-2">
          <title>1(Original) Pack of 5 Pack of 10</title>
          <p>3 packages 13228</p>
          <p>16
5 packages 128
32
32
10 packages 32
16
present the best models trained with our approach, and ranking respect F1-score metric. Later,
we present the best models trained with our approach adding the augmentation technique and
raking respect F1-score on validation dataset.</p>
          <p>In Table 5, all the models are RoBERTuito fine tuned in the training datasets mentioned in
Subsection 4.1. The first row present a model which is the only one that was trained with learning
rate 1− 5, the others model are trained with learning rate 5− 5, and the hyper-parameter that
changes is the batch size for training.</p>
          <p>In Table 6, the results of the augmentation data technique are shown. The models’ performance
with this augmentation data is better than the models’ performance only trained with the
package strategy.</p>
          <p>The models chosen were,
• RoBERTuito-T5-B16: with learning rate 5− 5 and batch size 16 trained with packages
of 5.
• RoBERTuito-T5-B16-DA: with learning rate 1− 5 and batch size 16, this model was
trained with augmented data and in packages of 5.</p>
          <p>Because this were the models that had better F1-score in the majority of their validation
datasets, we decide to use packages of 3 for the test dataset in the rounds, as the performance
increase with the use of more information.</p>
          <p>For the Task 1b the logits of the output prediction from the models were used as the prediction
for the subtask.
5.1.2. Task 2
The results of the depression detection task are shown in Tables 7 and 8, as in Task 1 the F1-score
binary was intended to be maximize.</p>
          <p>In the case of depression, most of the learning rate used was 1− 6, contrary to the eating
disorder task. This learning rate could be because the model needed more steps to learn
lr</p>
          <p>5− 5
3 packages 1− 5
1− 5
1− 5
5 packages 5− 5
5− 5
1− 5
10 packages 1− 5
5− 5
1
1
1
• RoBERTuito-T5-B128-DA: with learning rate 1− 6 and batch size 128, this model was
trained with augmented data and in packages of 5.
• RoBERTuito-T5-B32: with learning rate 1− 6 and batch size 32 trained with packages
of 5.</p>
          <p>The reason for choosing the previous models is because the ERDE5 and other metrics that
measure early detection, as the other models, have better performance with packages of information
with more messages, and model the model performs better with packages of 2. Consequently,
lr</p>
          <p>1− 6
3 packages 1− 6
1− 6
1− 5
5 packages 1− 6
1− 6
1− 6
10 packages 1− 6
1− 6
we decide to use packages of 3 for the test dataset in the rounds, as the performance increases
with more information.</p>
          <p>For Task 2b, the logits of the output prediction from the models were used as the prediction
for the subtask.
5.1.3. Task 3
Because Task 3 uses the subsystem of Task 1 and Task 2, the run A is an ensemble of two models:
• RoBERTuito-T3-B16: with learning rate 5− 5 and batch size 16, this model was trained
with augmented data from eating disorders and in packages of 3.
• RoBERTuito-T5-B32 with learning rate 1− 6 and batch size 32, this model was trained
with data from depression in packages of 5.</p>
        </sec>
      </sec>
      <sec id="sec-5-2">
        <title>5.2. Results in the competition</title>
        <p>In this subsection, we show our team’s results in the competition in the diferent subtasks. The
metrics we use for comparison are F1-macro and ERDE30 for binary subtasks and RMSE, p@a,
p@10, and p@20 for regression subtasks.
5.2.1. Task 1
In Task 1 we focused to increment the Macro-F1 for the eating disorders detection.</p>
        <p>The results from model RoBERTuito-T5-B16 are reported; the model RoBERTuito-T5-B16-DA
did not make it top. Table 9 compares with other teams from the oficial overview [ 23]. Team
CIMAT-NLP-GTO and UMUTeam are included because they have the best performance at
Macro-F1 score. Three BaseLine models from the committee organization are included for
comparison.</p>
        <p>For Task 1b, we provided the probability of the user sufering an eating disorder, and then
the Root Mean Squared Error (RMSE) was calculated respecting the truth golden. The rest of
the metrics are the precision of the prediction at 5, 10 and 20 messages, respectively.</p>
        <p>RoBERTuito-T5-B16
1st place
8th place
2nd place
BaseLine-Deberta
BaseLine-Roberta Large
BaseLine-Roberta Base</p>
        <p>Task 1a</p>
        <p>Task 1b</p>
        <p>Even though our model was not the best in the Macro-F1 metric, it has competitive metrics for
Task 1b, surpassing the models proposed as Baseline in almost all the metrics as they obtained
ifrst place on precision metrics. In the RMSE our model placed fifth, lower RMSE means better
performance. Considering the hard baselines our team placed second and fourth in Task 1b.
5.2.2. Task 2
In the depression detection task, we focused too on maximizing the Macro-F1.</p>
        <p>The results from model RoBERTuito-T5-B128-DA were in the top 20 of the results for Task
2, but the model RoBERTuito-T5-B32 was not at this top. Table 10 is shown the comparison
with other teams from the oficial overview [ 23]. Team UMUTeam and UNSL are included
because they have the best performance at the Macro-F1 score. Three BaseLine models from
the committee organization are included for comparison. SINAI-SELA is added because the
ERDE30 metric, CIMAT-NLP-GTO, was added by their performance in Task 2b.</p>
        <p>As we can see, the Macro-F1 score maximum ranges are lower for eating disorders results.
This is because depression detection usually is more dificult for a variety of themes that users
with depression talk about.</p>
        <p>In this case, the model using data augmentation was better that the model without it, we
theorized that this technique is better with depression detection tasks, as they need more
instances to classify correctly and we can note that our model had better performance in the
ERDE30 than the best model in Macro-F1 or competitive results in this metrics in comparision
to models with better Macro-F1.
5.2.3. Task 3
The results from model RoBERTuito-T3-B16 was in the top 15 of the results for Task 3. In
Table 11 is shown the comparison with other teams from the oficial overview [ 23]. Team
RoBERTuito-T5-B128-DA
1st place
2nd place
5th place
15th place
BaseLine-Deberta
BaseLine-Roberta Large
BaseLine-Roberta Base
Macro-F1
0.645
0.737
0.733
0.720
0.621
0.813
0.813
0.694</p>
        <p>CIMAT-NLP-GTO, NLP-UNED, and UPM are included because they have the best performance
at Macro-F1 score and RSME. Three BaseLine models from committee organization are included
for comparison.</p>
        <p>RoBERTuito-T3-B16
3rd place
11th place
1st place
BaseLine-Deberta
BaseLine-Roberta Large
BaseLine-Roberta Base</p>
        <p>Task 3a</p>
        <p>Task 3b</p>
        <p>The model proposed surpasses models with better Macro-F1 scores in task 3b, even though
Macro-F1 is not the best; the model has competitive confidence in its predictions. Considering
hard baselines, our team placed third and fifth in Task 3a, for the Task 3b, we placed on second
place.</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>6. Ethical issues</title>
      <p>The data used to develop systems for the automatic detection of mental illness is vital to
emphasize the anonymity of the users’ identities for whose text is recorded. Even though the
identities are unknown, the labelling process is usually crowd-sourced; this process can not
guarantee the correct labelling for the instances as it depends on the subjective judgment of
the annotators. Furthermore, the data obtained did not consider the users’ permission; these
users could feel as if their privacy is being violated because it is crucial to use the data only to
develop the systems.</p>
      <sec id="sec-6-1">
        <title>6.1. Carbon emissions</title>
        <p>Because of the critical climate change that is afecting the world is vital to make eforts to reduce
the impacts of carbon emissions. The MentalRiskEs workshop implemented the tracking of
the carbon emissions made by the models of the competition. They provided the code carbon
package implemented on Python to track carbon emissions. The principal problem of this
package with our models is that the functions did not track the emissions correctly, as they
count all the GPU in the cluster instead of the only GPU used for the run of the models, and
therefore calculate an incorrect amount of energy and carbon emissions produced. Another
problem is the incompatibility with the version of Python greater than Python 3.8.</p>
      </sec>
    </sec>
    <sec id="sec-7">
      <title>7. Conclusion</title>
      <p>The MentalRiskES competition has been a challenging task concerning the early detection of
mental health issues based on sequences of social media texts in spanish. Our models have
balanced performance along all the metrics; their best performance is in the eating disorder
dataset, which could be because of the nature of this dataset, as they tend to write more about
their food-related issues. The depression dataset is more dificult by the complex writing of
their authors and the need for more information on an excellent classification. We noted that for
eating disorders, the model trained in the augmentation data did not have better performance
than the model trained in the non-augmentation data; this could be because the model could be
overfitting and making more false predictions of "sufering" class.</p>
      <p>However, the depression detection models presented another pattern, the model trained with
augmentation data was better for the task; we think this is because the model needs more
information for depression users as they tend to write about an extended range of topics (not
necessarily talk about their illness) like in eating disorder users.</p>
      <p>For both tasks of linear regression, the models presented the best performances on the metrics
about precision, which means that in the early stages of classification, the probability that the
model assigned to each user is correct.</p>
      <p>In future work, we plan to explore the size of the packages for the training and test datasets for
eating disorder detection; for example, in each round, we could try to mix diferent packages for
the test as we obtain more information or make diferent voting schemes. For the depression task,
the augmentation data worked better than the other model. We plan to use the augmentation
data we proposed to mix diferent package sizes to make new instances or clustering techniques
to ensure that the messages joined have the same topic.</p>
    </sec>
    <sec id="sec-8">
      <title>Acknowledgments</title>
      <p>This research was funded by Consejo Nacional de Humanidades Ciencia y Tecnología
(CONAHCyT) master’s degree grant #1141296. The authors thank to CONACyT, CIMAT and Instituto
Nacional de Astrofísica, Óptica y Electrónica (INAOE) for the computer resources provided
through the INAOE Supercomputing Laboratory’s Deep Learning Platform for Language
Technologies (Plataforma de aprendizaje profundo para tecnologías del lenguaje) and CIMAT Bajio
Supercomputing Laboratory (#300832). Sanchez-Vega acknowledges CONACyT for its support
through the Program “Investigadoras e Investigadores por México” by the project “Desarrollo
de Inteligencia Artificial aplicada a la prevención de violencia y salud mental.” (ID.11989, No.
1311).
abs/2107.02027 (2021). URL: https://arxiv.org/abs/2107.02027. arXiv:2107.02027.
[22] J. M. Pérez, D. A. Furman, L. A. Alemany, F. Luque, Robertuito: a pre-trained language
model for social media text in spanish, CoRR abs/2111.09453 (2021). URL: https://arxiv.
org/abs/2111.09453. arXiv:2111.09453.
[23] A. M. Mármol-Romero, A. Moreno-Muñoz, F. M. Plaza-del-Arco, M. D. Molina-González,
M. T. Martín-Valdivia, L. A. Ureña-López, A. Montejo-Ráez, Overview of MentalriskES at
IberLEF 2023: Early Detection of Mental Disorders Risk in Spanish, Procesamiento del
Lenguaje Natural 71 (2023).</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>APS</surname>
          </string-name>
          , What is mental illness?,
          <year>2022</year>
          . URL: https://www.psychiatry.
          <article-title>org/patients-families/ what-is-mental-illness.</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>W. H.</given-names>
            <surname>Organization</surname>
          </string-name>
          , Mental disorders,
          <year>2022</year>
          . URL: https://www.who.int/news-room/ fact-sheets/detail/mental-disorders.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>National</given-names>
            <surname>Collaborating</surname>
          </string-name>
          <article-title>Centre for Mental Health (UK), Common Mental Health Disorders: Identification and Pathways to Care, number 123 in NICE Clinical Guidelines, British Psychological Society</article-title>
          (UK),
          <source>Leicester (UK)</source>
          ,
          <year>2011</year>
          . URL: https://www.ncbi.nlm.nih.gov/ books/NBK92265/, aCCESS TO HEALTHCARE.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>J. M.</given-names>
            <surname>Pérez</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D. A.</given-names>
            <surname>Furman</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L. Alonso</given-names>
            <surname>Alemany</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F. M.</given-names>
            <surname>Luque</surname>
          </string-name>
          ,
          <article-title>RoBERTuito: a pre-trained language model for social media text in Spanish, in: Proceedings of the Thirteenth Language Resources</article-title>
          and Evaluation Conference, European Language Resources Association, Marseille, France,
          <year>2022</year>
          , pp.
          <fpage>7235</fpage>
          -
          <lpage>7243</lpage>
          . URL: https://aclanthology.org/
          <year>2022</year>
          .lrec-
          <volume>1</volume>
          .
          <fpage>785</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>J. M.</given-names>
            <surname>Pérez</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. C.</given-names>
            <surname>Giudici</surname>
          </string-name>
          ,
          <string-name>
            <surname>F.</surname>
          </string-name>
          <article-title>Luque, pysentimiento: A python toolkit for sentiment analysis</article-title>
          and
          <source>socialnlp tasks</source>
          ,
          <year>2021</year>
          . arXiv:
          <volume>2106</volume>
          .
          <fpage>09462</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>M.</given-names>
            <surname>García-Vega</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Díaz-Galiano</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>García-Cumbreras</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Del Arco</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Montejo-Ráez</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Jiménez-Zafra</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E. Martínez</given-names>
            <surname>Cámara</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Aguilar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Cabezudo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Chiruzzo</surname>
          </string-name>
          , et al.,
          <source>Overview of tass</source>
          <year>2020</year>
          :
          <article-title>Introducing emotion detection</article-title>
          ,
          <source>in: Proceedings of the Iberian Languages Evaluation Forum (IberLEF</source>
          <year>2020</year>
          )
          <article-title>Co-Located with 36th Conference of the Spanish Society for Natural Language Processing (SEPLN</article-title>
          <year>2020</year>
          ), Málaga, Spain,
          <year>2020</year>
          , pp.
          <fpage>163</fpage>
          -
          <lpage>170</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>R.</given-names>
            <surname>Martínez-Castaño</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Htait</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Azzopardi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Moshfeghi</surname>
          </string-name>
          ,
          <article-title>Bert-based transformers for early detection of mental health illnesses, in: Experimental IR Meets Multilinguality</article-title>
          , Multimodality, and
          <source>Interaction: 12th International Conference of the CLEF Association, CLEF</source>
          <year>2021</year>
          ,
          <string-name>
            <given-names>Virtual</given-names>
            <surname>Event</surname>
          </string-name>
          ,
          <source>September 21-24</source>
          ,
          <year>2021</year>
          , Proceedings, Springer-Verlag, Berlin, Heidelberg,
          <year>2021</year>
          , p.
          <fpage>189</fpage>
          -
          <lpage>200</lpage>
          . URL: https://doi.org/10.1007/978-3-
          <fpage>030</fpage>
          -85251-1_
          <fpage>15</fpage>
          . doi:
          <volume>10</volume>
          . 1007/978-3-
          <fpage>030</fpage>
          -85251-1_
          <fpage>15</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>A.</given-names>
            <surname>Conneau</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Khandelwal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Goyal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Chaudhary</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Wenzek</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Guzmán</surname>
          </string-name>
          , E. Grave,
          <string-name>
            <given-names>M.</given-names>
            <surname>Ott</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Zettlemoyer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Stoyanov</surname>
          </string-name>
          ,
          <article-title>Unsupervised cross-lingual representation learning at scale</article-title>
          , CoRR abs/
          <year>1911</year>
          .02116 (
          <year>2019</year>
          ). URL: http://arxiv.org/abs/
          <year>1911</year>
          .02116. arXiv:
          <year>1911</year>
          .02116.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>W.-Y.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.-C.</given-names>
            <surname>Tang</surname>
          </string-name>
          , W.-W. Du, W.-C.
          <article-title>Peng, NYCU_TWD@LT-EDI-ACL2022: Ensemble models with VADER and contrastive learning for detecting signs of depression from social media</article-title>
          ,
          <source>in: Proceedings of the Second Workshop on Language Technology for Equality, Diversity and Inclusion</source>
          , Association for Computational Linguistics, Dublin, Ireland,
          <year>2022</year>
          , pp.
          <fpage>136</fpage>
          -
          <lpage>139</lpage>
          . URL: https://aclanthology.org/
          <year>2022</year>
          .ltedi-
          <volume>1</volume>
          .15. doi:
          <volume>10</volume>
          .18653/ v1/
          <year>2022</year>
          .ltedi-
          <volume>1</volume>
          .
          <fpage>15</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>R.</given-names>
            <surname>Poświata</surname>
          </string-name>
          ,
          <string-name>
            <surname>M.</surname>
          </string-name>
          <article-title>Perełkiewicz, OPI@LT-EDI-ACL2022: Detecting signs of depression from social media text using RoBERTa pre-trained language models</article-title>
          ,
          <source>in: Proceedings of the Second Workshop on Language Technology for Equality, Diversity and Inclusion</source>
          , Association for Computational Linguistics, Dublin, Ireland,
          <year>2022</year>
          , pp.
          <fpage>276</fpage>
          -
          <lpage>282</lpage>
          . URL: https: //aclanthology.org/
          <year>2022</year>
          .ltedi-
          <volume>1</volume>
          .40. doi:
          <volume>10</volume>
          .18653/v1/
          <year>2022</year>
          .ltedi-
          <volume>1</volume>
          .
          <fpage>40</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>M.</given-names>
            <surname>Janatdoust</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Ehsani-Besheli</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Zeinali</surname>
          </string-name>
          ,
          <article-title>KADO@LT-EDI-ACL2022: BERT-based ensembles for detecting signs of depression from social media text</article-title>
          ,
          <source>in: Proceedings of the Second Workshop on Language Technology for Equality, Diversity and Inclusion</source>
          , Association for Computational Linguistics, Dublin, Ireland,
          <year>2022</year>
          , pp.
          <fpage>265</fpage>
          -
          <lpage>269</lpage>
          . URL: https: //aclanthology.org/
          <year>2022</year>
          .ltedi-
          <volume>1</volume>
          .38. doi:
          <volume>10</volume>
          .18653/v1/
          <year>2022</year>
          .ltedi-
          <volume>1</volume>
          .
          <fpage>38</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>X.</given-names>
            <surname>Lin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Fu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Lin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Jiang</surname>
          </string-name>
          , BERT 4EVER@
          <article-title>LT-EDI-ACL2022-detecting signs of depression from social media:detecting depression in social media using prompt-learning and word-emotion cluster</article-title>
          ,
          <source>in: Proceedings of the Second Workshop on Language Technology for Equality, Diversity and Inclusion</source>
          , Association for Computational Linguistics, Dublin, Ireland,
          <year>2022</year>
          , pp.
          <fpage>200</fpage>
          -
          <lpage>205</lpage>
          . URL: https://aclanthology.org/
          <year>2022</year>
          .ltedi-
          <volume>1</volume>
          .27. doi:
          <volume>10</volume>
          .18653/v1/
          <year>2022</year>
          .ltedi-
          <volume>1</volume>
          .
          <fpage>27</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>J.</given-names>
            <surname>Devlin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</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>
          ,
          <article-title>BERT: pre-training of deep bidirectional transformers for language understanding</article-title>
          , CoRR abs/
          <year>1810</year>
          .04805 (
          <year>2018</year>
          ). URL: http://arxiv. org/abs/
          <year>1810</year>
          .04805. arXiv:
          <year>1810</year>
          .04805.
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Ott</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Goyal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Du</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Joshi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Levy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Lewis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Zettlemoyer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Stoyanov</surname>
          </string-name>
          ,
          <article-title>Roberta: A robustly optimized BERT pretraining approach</article-title>
          , CoRR abs/
          <year>1907</year>
          .11692 (
          <year>2019</year>
          ). URL: http://arxiv.org/abs/
          <year>1907</year>
          .11692. arXiv:
          <year>1907</year>
          .11692.
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>V.</given-names>
            <surname>Sanh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Debut</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Chaumond</surname>
          </string-name>
          , T. Wolf,
          <article-title>Distilbert, a distilled version of bert: smaller, faster, cheaper and lighter</article-title>
          , ArXiv abs/
          <year>1910</year>
          .01108 (
          <year>2019</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>K.</given-names>
            <surname>Clark</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Luong</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Q. V.</given-names>
            <surname>Le</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C. D.</given-names>
            <surname>Manning</surname>
          </string-name>
          ,
          <article-title>ELECTRA: pre-training text encoders as discriminators rather than generators</article-title>
          , CoRR abs/
          <year>2003</year>
          .10555 (
          <year>2020</year>
          ). URL: https://arxiv.org/ abs/
          <year>2003</year>
          .10555. arXiv:
          <year>2003</year>
          .10555.
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>P.</given-names>
            <surname>He</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Gao</surname>
          </string-name>
          , W. Chen, Deberta:
          <article-title>Decoding-enhanced BERT with disentangled attention</article-title>
          , CoRR abs/
          <year>2006</year>
          .03654 (
          <year>2020</year>
          ). URL: https://arxiv.org/abs/
          <year>2006</year>
          .03654. arXiv:
          <year>2006</year>
          .03654.
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Lan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Goodman</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Gimpel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Sharma</surname>
          </string-name>
          , R. Soricut,
          <string-name>
            <surname>ALBERT:</surname>
          </string-name>
          <article-title>A lite BERT for self-supervised learning of language representations</article-title>
          , CoRR abs/
          <year>1909</year>
          .11942 (
          <year>2019</year>
          ). URL: http://arxiv.org/abs/
          <year>1909</year>
          .11942. arXiv:
          <year>1909</year>
          .11942.
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <given-names>C.</given-names>
            <surname>Rafel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Shazeer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Roberts</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Narang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Matena</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Zhou</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P. J.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <article-title>Exploring the limits of transfer learning with a unified text-to-text transformer</article-title>
          , CoRR abs/
          <year>1910</year>
          .10683 (
          <year>2019</year>
          ). URL: http://arxiv.org/abs/
          <year>1910</year>
          .10683. arXiv:
          <year>1910</year>
          .10683.
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          [20]
          <string-name>
            <given-names>E.</given-names>
            <surname>Villa-Cueva</surname>
          </string-name>
          ,
          <string-name>
            <given-names>I.</given-names>
            <surname>González-Franco</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Sanchez-Vega</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. P.</given-names>
            <surname>López-Monroy</surname>
          </string-name>
          ,
          <article-title>NLP-CIMAT at PoliticEs 2022: PolitiBETO, a Domain-Adapted Transformer for Multi-class Political Author Profiling</article-title>
          ,
          <source>in: Proceedings of the Iberian Languages Evaluation Forum (IberLEF</source>
          <year>2022</year>
          ), CEUR Workshop Proceedings, CEUR-WS,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          [21]
          <string-name>
            <given-names>M.</given-names>
            <surname>Kosec</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Fu</surname>
          </string-name>
          ,
          <string-name>
            <surname>M. M. Krell</surname>
          </string-name>
          , Packing:
          <article-title>Towards 2x NLP BERT acceleration</article-title>
          , CoRR
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>