<!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>Early Detection of Signs of Pathological Gambling, Self-Harm and Depression through Topic Extraction and Neural Networks</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Diego Maupomé</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Maxime D. Armstrong</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Fanny Rancourt</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Thomas Soulas</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Marie - Jean Meurs</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Université du Québec à Montréal</institution>
          ,
          <addr-line>Montréal, QC</addr-line>
          ,
          <country country="CA">Canada</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>The eRisk track at CLEF 2021 comprised tasks on the detection of problem gambling and self-harm, and the assessment of the symptoms of depression. RELAI participated in these tasks through the use of topic extraction algorithms and neural networks. These approaches achieved strong results in the ranking-based evaluation of the pathological gambling and self-harm tasks as well as in the depression symptomatology task.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Mental Health</kwd>
        <kwd>Natural Language Processing</kwd>
        <kwd>Topic Modeling</kwd>
        <kwd>Word Embeddings</kwd>
        <kwd>Neural Networks</kwd>
        <kwd>Nearest Neighbors</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
    </sec>
    <sec id="sec-2">
      <title>2. Task 1: Early Detection of Signs of Pathological Gambling</title>
      <p>
        Pathological gambling is a public health issue with prevalence rate between 0.2% and 2.1% [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
Accessing treatment is dificult since general practitioners usually do not screen for this
pathology [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] and, by the time the issue has become evident, the patient has lost control [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
With the rise of online platforms, more data are available for potential detection systems [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ].
Recently there has been research work focused on communications with customer services to
detect whether a subject was at risk of gambling [
        <xref ref-type="bibr" rid="ref4 ref6">6, 4</xref>
        ]. However, to the best of our knowledge,
textual productions from online fora have not yet been used to detect early signs of pathological
gambling.
      </p>
      <sec id="sec-2-1">
        <title>2.1. Task and Data</title>
        <p>As mentioned, the data issue from Reddit users. These subjects have been labeled as either at
risk for pathological gambling (positive) or not (negative). No labeled data were provided for
training models. As such, the following pertains solely to the test data.</p>
        <p>The test data comprised 2348 subjects, 164 of which were positive (6.9%). The test data are
released iteratively, with each step counting at most one writing per subject. These writings are
sorted in chronological order of publication. The first iteration includes writings from all test
subjects. Thereafter, subjects are included as long as they have unseen writings.</p>
        <p>Algorithms are expected to predict both a binary label and a score at each step. The label
can default to negative. However, a positive prediction for a given user is binding, and all label
predictions thereafter are disregarded. Evaluation, which is detailed in the following subsection,
considers the labels and the timeliness of positive predictions, as well as the scores.</p>
      </sec>
      <sec id="sec-2-2">
        <title>2.2. Evaluation</title>
        <p>Performance is measured both on the ultimate decision made on each subject, using binary
classification metrics, and the predicted scores, using ranking metrics. The classification metrics
include standard precision, recall and the associated 1 score, as well as Early Risk Detection
Error (),   ,  and . In addition to accounting for the binary
prediction on a given subject,  seeks to account for the timeliness of that prediction by
counting the number of writings processed by the predicting algorithm before producing a
positive prediction. Given , , respectively the ground truth and predicted labels for a given
subject,  the number of processed writings, and a given threshold , the  is computed
as:
(, , ) =
⎧ 
⎪⎪⎨ 1</p>
        <p>1
⎪⎪⎩ 01+− 
if  ̸=  = 0
if  ̸=  = 1
if  =  = 1
otherwise
Here,  is a constant set to the rate of positive subjects in the test set. This per-subject 
is averaged across the test set, and is to be minimized. Thus, false negatives are counted as errors,
and false positives are counted as a fraction of an error in proportion to the number of positive
subjects. The delay in decision is only considered for true positive prediction, where a standard
sigmoid function counts the number of writings processed, , ofset by the chosen threshold,
. As with the other classification metrics used, true negatives are disregarded.  was
evaluated at  = 5 and  = 50.</p>
        <p>
          Likewise,   measures the median delay in true positive predictions:
  = { :  ∈ ,  =  = 1}
Similarly,  and  [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ] are computed by penalizing this delay albeit in a smoother
manner:
 = 1 −
        </p>
        <p>median {() :  ∈ ,  =  = 1}
The individual penalty is given by a logistic function and depends on a scaling parameter, :
 = 1 · .</p>
        <p>2
() = − 1 + 1 + − − 1</p>
        <p>The scores attached to each subject are used to rank them. This ranking is evaluated by
standard information retrieval metrics:  @10,  @10 and  @100. These are
evaluated after 1, 100, 500 and 1000 writings have been processed.</p>
      </sec>
      <sec id="sec-2-3">
        <title>2.3. Approaches and Training</title>
        <p>Having no annotated training data at hand, data available on the web were exploited for both
training and prediction. Two authorship attribution approaches were put forward for this
task. In both cases, our approaches assess whether a test user belongs to a set of gambling
testimonials using a similarity distance measure between their textual productions. A test user
 is said to be at risk of pathological gambling if the minimal similarity distance   computed
for them is smaller than a threshold  .</p>
        <p>
          Since topic modeling have shown good potential in such authorship attribution task [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ],
it is selected to represent both test users’ textual production and the testimonials. Given the
performances of the Embedding Topic Model (ETM) [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ] in [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ], this model is selected for topic
extraction. Our ETM model is trained on a corpus made from two datasets. The first part is made
from the textual productions from the Subreddits Problem Gambling1 and Gambling Addiction
Support2, ensuring the presence of gambling-related vocabulary in the corpus. The second part
is made up of control subjects from the 2018 eRisk depression dataset, adding general topics to
the corpus. Both gambling-related and control content were added in equal part to this novel
training corpus in order to limit any discrepancies.
        </p>
        <p>
          The ETM is trained following the methodology described in [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ]. Using the trained model, the
test user’s textual productions and the testimonials are mapped to a vector of topic probabilities,
which are then used in our two authorship attribution approaches to compute the similarity.
Here, the similarity is given by computing the Hellinger distance between two vectors of topic
probabilities.
        </p>
        <p>1https://www.reddit.com/r/problemgambling/
2https://www.reddit.com/r/GamblingAddiction/</p>
        <sec id="sec-2-3-1">
          <title>2.3.1. Testimonials</title>
          <p>Our first approach consists in using testimonials found on the Web to assess the pathological
gambling risk of the users from the test data. The testimonials ofered by 199 compulsive
gamblers were found on Gambler’s Help3. These testimonials are considered to be our testimonials
set  = {1, . . . , 199}.</p>
          <p>Here, we aim to find the minimal similarity distance threshold   to be considered at risk
of pathological gambling by using the testimonials set  . Then, every testimonial  ∈  is
compared to the others using a one-against-all cross validation technique, i.e. 1 vs. 198
testimonials, to compute its distance   from every other testimonial. A testimonial  is represented
by its vector of topic probabilities ⃗, which allows to compute the Hellinger distance between
testimonials  and  , as</p>
          <p>, =  (⃗, ⃗ )
By doing so, it is possible to find the maximal similarity distance obtained for a testimonial
compared to all the others, as</p>
          <p>= ({ , , . . . ,  ,− 1 })
Assuming that every testimonials has to be part of the testimonial set, the maximal similarity
distance obtained across the evaluation is then the minimal threshold to be part of the set, as
  = ({ 1, . . . ,  })
  =  
Thus, predicting if a test user pertains to the testimonial set is given by computing the similarity
distance of its vector of topic probabilities against the vector of every testimonial. For a given
test user, if the minimal similarity distance computed is lower than the threshold, then it is
decided that the test user is part of the testimonial set.</p>
          <p>= ({ ,1 , . . . ,  , })
( ,  ) =
{︃1
0
if   ≤  
ℎ
One potential issue with the use of these testimonials is that their language might difer from
that used in Reddit fora. Nonetheless, topic models should smooth over the particulars by
grouping word co-occurrences.</p>
        </sec>
        <sec id="sec-2-3-2">
          <title>2.3.2. Questionnaire</title>
          <p>Our second approach makes use of a self-evaluation questionnaire in addition to the set of
testimonials. The self-evaluation questionnaire, which is often ofered by resources for compulsive
gamblers, was found on several websites, including Gamblers Anonymous Montreal4. This one
is composed of 20 questions answerable by yes or no. An individual scoring 7 or more positive
answers from this questionnaire is considered at risk of a pathological gambling problem.
3https://gamblershelp.com.au/
4http://gamontreal.ca/</p>
          <p>Comparably to the testimonial approach, we aim to find the minimal similarity distance
threshold   to be considered at risk of pathological gambling. Here, this threshold is
computed using the self-evaluation questionnaire and the testimonial set  . Given the questionnaire
 and its vector of topic probabilities ⃗, a testimonial  is said close enough to the questionnaire
to be considered at risk of pathological gambling if the Hellinger distance between ⃗ and ⃗ is
less or equal to the threshold  . Thus, the idea is to find the maximal similarity distance
  to define this threshold, as
  = ({ ,1 , . . . ,  , })
  =  
Then, predicting if a test user is at risk of pathological gambling can be made using its distance
from the self-evaluation questionnaire, such as
( ,,  ) =
{︃1</p>
          <p>if  , ≤  
0 ℎ</p>
        </sec>
      </sec>
      <sec id="sec-2-4">
        <title>2.4. Results</title>
        <p>
          The results are presented in Tables 1 and 2. Our best model was Run 0, outperforming
our other approaches on both precision and F-measure. While showing a limited precision, it
obtained the best 5 across every other system presented for this task.
The task was introduced in 2019, and teams did not have access to any training data, producing
modest results [
          <xref ref-type="bibr" rid="ref11">11</xref>
          ]. The following year, Transformer-based approaches were the most prolific,
achieving the best precision, 1-score, s and latency-weighted 1. XLM-RoBERTa
models were trained on texts from the Pushshift Reddit Dataset [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ], and predicted whether a
user was at risk of self-harm or not by averaging on all their known posts. Each of their runs
targeted a specific evaluation metric for the fine-tuning. As noted by [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ], most runs had a near
perfect recall and also a very low precision. Of those, NLP-UNED (runs 3 &amp; 4) [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ] seemed to
gather the best overall performances. Their systems used a combination of textual features and
sentiment analysis from the entire user’s historic to predict whether they were at risk. The best
results are presented in Table 3.
        </p>
      </sec>
      <sec id="sec-2-5">
        <title>3.1. Task and Data</title>
        <p>The task objective and evaluation process are identical to that of Task 1, including the iterative
evaluation of models and the metrics. The key diference, however, is that a training set was
provided. The training set counted 145 positive subjects out of 763 (19.0%), while the test set
counted 152 positive out of 1448 (10.5%).</p>
      </sec>
      <sec id="sec-2-6">
        <title>3.2. Approaches</title>
        <sec id="sec-2-6-1">
          <title>3.2.1. Contextualizer</title>
          <p>
            For this task, two approaches based on neural networks were tested. One is based on the
Contextualizer encoder [
            <xref ref-type="bibr" rid="ref16">16</xref>
            ], while the other is based on RoBERTa embeddings [
            <xref ref-type="bibr" rid="ref17">17</xref>
            ].
Following [
            <xref ref-type="bibr" rid="ref18">18</xref>
            ], two modes aggregating the diferent writings in a subject’s history were used.
The first, nested aggregation, uses one Contextualizer encoder to encode the writings separately
into single vector representation and another Contextualizer encoder to aggregate writings
together. The second mode, flat aggregation, performs both these steps at once by providing
positional information to each word about its writing and within-writing position. For both of
these approaches, the positional information about writings is not the chronological order but
the time diference with respect to the most recent writing.
          </p>
          <p>¯ = 1 ∑︁</p>
          <p>=1

 = ∑︁   * ¯</p>
          <p>=1
^ =  (⊤),</p>
        </sec>
        <sec id="sec-2-6-2">
          <title>3.2.2. RoBERTa embeddings</title>
          <p>
            A Transformer model was trained using RoBERTa [
            <xref ref-type="bibr" rid="ref17">17</xref>
            ]. This training was carried out on Reddit
data by masked language modeling. This approach tokenizes writings into character n-grams
based on their frequency in the source corpus. Once the Transformer was trained, the writings in
the training set were transformed into token embeddings. These token embeddings constituting
a writing, 1, . . . , , are averaged together into a single document vector:
In order to combine these document representations into a single vector per subject, we posit
that writings farther in the past should be given less importance than more recent ones. Given a
set of  documents, {(¯ ,  )}=1, where  ∈ R denotes the diference in hours from the -th
document to the most recent one, the document vectors are aggregated into a single vector:
Here,  is a vector of learned parameters and the exponentiation and multiplication, * , are
applied element-wise. This allows for each feature to decay at an independent rate. Thereafter,
the predicted probability of having observed a positive instance is given by:
where  denotes the standard sigmoid function and  is a vector of learned parameters.
          </p>
        </sec>
        <sec id="sec-2-6-3">
          <title>3.2.3. Training</title>
          <p>
            All models are trained by gradient descent with a binary cross entropy minimization objective
using the Adam algorithm [
            <xref ref-type="bibr" rid="ref19">19</xref>
            ]. To compensate for possible discrepancies between the
proportions of labels between the training and test sets, a balanced validation set was built taking half
of the positive subjects and a number of negative subjects to match. In addition, a stratified
validation set was also tested. In training, subjects were inversely weighted in the loss function
to account for the imbalance. For both approaches, diferent contiguous samples of writings
from each subject are taken at each epoch. The size of such samples was chosen to allow models
to make early decisions without requiring a long history of writings. In validation, however,
the most recent documents for each subject are taken. Model selection was based on the area
under the precision-recall curve, which is equivalent to the average precision. The selected
models are presented in Table 4. Except for Run 5, all of the chosen models were validated on
the balanced validation set.
          </p>
        </sec>
      </sec>
      <sec id="sec-2-7">
        <title>3.3. Results</title>
        <p>Classification and ranking-based results are presented in Tables 5 and 6, respectively. Label
decisions were fairly quick and favored positive decisions, resulting in low   (2 to 5).
Run 2 notwithstanding, recall was high (&gt;.85), resulting in low precision (&lt;.25) and modest 1
(&lt;.34) for those runs. This is partly due to the smaller proportion of positive subjects in the
test set. Run 2 achieved much higher precision than our other runs (.488) but at the price of
low recall (.276) resulting in a comparable 1 (.353). However, Run 2 seemed to outperform our
other runs in ranking-based evaluation and achieving perfect  @10 and  @10 with 500
and 1000 writings processed. Its  @100 was also high, indicating an adjustment to the
decision policy might benefit classification. Overall, as per the ranking-based metrics, the scores
produced by our models seemed to improve from 100 to 1000 writings, with the exception of
Run 1, which remained low throughout.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>4. Task 3: Measuring the severity of the signs of depression</title>
      <p>
        As described by [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ], the task consists in mapping a subject’s writings to a well-known tool for
the assessment of depression symptoms, the Beck Depression Inventory (BDI) [
        <xref ref-type="bibr" rid="ref20">20</xref>
        ]. In 2019, the
two approaches that gathered the best performances leveraged the dependency between the
severity of depression categories and the severity of the signs. The first aimed to predict the
severity category and then deduce the severity of each sign of depression [
        <xref ref-type="bibr" rid="ref21">21</xref>
        ], achieving the
most precise predicted answers to the BDI questionnaire. The second system leveraged textual
similarity between the user’s productions and the questions from the BDI questionnaire to fill
it. By combining those answers, the best results regarding the prediction of depression severity
were obtained [
        <xref ref-type="bibr" rid="ref22">22</xref>
        ]. The results are presented in Table 7. A description of each evaluation metric
is provided at Section 4.2.
      </p>
      <p>
        For the second iteration of this task in eRisk 2020, the best performances remained similar to
those observed in the previous year. The approaches achieving the best results were based on
psycholinguistic features [
        <xref ref-type="bibr" rid="ref23">23</xref>
        ], pre-trained Transformers [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ], LDA-based authorship
attribution [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ], or combining a support vector machine with a radial basis kernel [24]. The 2020 best
results are presented in Table 8.
      </p>
      <sec id="sec-3-1">
        <title>4.1. Task and Data</title>
        <p>As with Tasks 1 and 2 the dataset comprises a history of writings per subject. However, instead
of a binary label, each subject is associated with a set of 21 labels corresponding to the answers
they gave to each item of the BDI. Furthermore, evaluation did not include a temporal aspect:
the entire history of writings for the test subjects was made available at once. As shown in
Fig. 1 the BDI scores are overall higher in the test set, with the median and median absolute
deviation for the training and test set being (20.0, 9.5) and (27.0, 10.0) respectively.</p>
      </sec>
      <sec id="sec-3-2">
        <title>4.2. Evaluation</title>
        <p>
          In order to evaluate BDI predictions against the true BDI answers associated with a set of subjects,
[
          <xref ref-type="bibr" rid="ref13">13</xref>
          ] propose four metrics. The Average Hit Rate (AHR) is the rate of exactly correct predictions
averaged across the 21 items of the BDI and across subjects. In contrast, the Average Closeness
Rate (ACR) measures the proximity in value ([
          <xref ref-type="bibr" rid="ref3">0,3</xref>
          ]) between the predicted and true answer when
compared to the maximum possible diference (3). Similarly, the Average Diference in Overall
Depression Levels (ADODL) compares the total score of the predicted BDI to the true total score,
once again normalized by the maximum (63). Finally, the Depression Category Hit Rate (DCHR)
is the accuracy in the depression categorization resulting from the predicted BDIs of subjects.
        </p>
      </sec>
      <sec id="sec-3-3">
        <title>4.3. Approaches</title>
        <p>
          Following [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ], we opt for predicting the BDI items based on the similarities of the writings of
the test subjects to those of the training subjects. These similarities are computed on learned
representations of the textual production of subjects. These representations were based on
topic modeling or neural encoders trained on authorship decision. In addition to the categorical
prediction of BDI items proposed by [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ], a regression approach (Reg.) based on the values of the
answers was also tested, with the values being multiplied by the relevant similarity score. There
is a high variance in answers even among subjects in the same depression category. To address
this in the regression approach, each training subject’s answer to each question is smoothed to
the average answer in their depression category by a hyperparameter,  ∈ [
          <xref ref-type="bibr" rid="ref1">0, 1</xref>
          ],
 ←  *  + (1 −  ) * ¯
Here,  denotes the answer selected by the -th training subject to a given item in the BDI
and ¯ , the average answer selected by the subjects in the depression category that said subject
belongs too.
        </p>
        <p>Variance aside, this approach is still potentially highly sensitive to the particular distribution
of BDI scores in the training set. To address this, a nearest-neighbors approach was tested
wherein a set number of neighbors was to be drawn from each of the four depression categories.
This approach is denoted k’NN, and can be applied in both the regression and categorical
settings.</p>
        <sec id="sec-3-3-1">
          <title>4.3.1. Topic Modeling</title>
          <p>
            Topic modeling consists in inferring probability distributions over a vocabulary of words, such
that the documents, the subjects’ histories in our case, constitute a mixture of such distributions.
As a baseline, we selected the well-known Latent Dirichlet Allocation (LDA) algorithm. Further,
another topic model, operating on word embeddings rather than symbolic word representations
like LDA, ETM [
            <xref ref-type="bibr" rid="ref9">9</xref>
            ], was also tested. Models were trained on a depression-detection dataset also
issuing from Reddit [25]. This training was carried out considering the entire history of writings
from each subject as a single document. For the LDA approach, two tokenization schemes were
tested: character trigrams and word stems. In contrast, only stemming was tested for the ETM
model for interpretability purposes.
          </p>
        </sec>
        <sec id="sec-3-3-2">
          <title>4.3.2. Authorship decision</title>
          <p>
            Deep Averaging Networks (DANs) were trained to discern whether two sets of writings were
authored by the same person. This can induce a representation relevant to depression
symptoms [
            <xref ref-type="bibr" rid="ref8">8</xref>
            ]. As with topics models, these models were trained on the eRisk 2018 Depression
dataset, using alternately character trigrams and word stems. The training procedure consists
in sampling non-overlapping sets of writings from subjects and pairing them together. Pairs
of samples issuing from the same subject constitute positive examples and pairs issuing from
diferent subjects, negative ones.
          </p>
        </sec>
        <sec id="sec-3-3-3">
          <title>4.3.3. Model selection</title>
          <p>
            As previously mentioned, this approach is potentially highly sensitive to the distribution of
BDI scores in the training set. In order to mitigate this, the validation set selected contained
24 subjects equally divided among the four depression categories defined by the BDI. The
hyper-parameter values tested were borrowed from [
            <xref ref-type="bibr" rid="ref8">8</xref>
            ].
          </p>
          <p>
            Models were selected based on the performance on all four metrics. Indeed, selecting the top
performers for each metric separately might exclude models performing well overall. However,
in order to combine all four metrics into a single quantity by which to select models requires
consideration. Although the metrics are valued in the unit interval, they have diferent scales
in practice. Therefore, combining the performance for each metric for all models and
hyperparameter values, the z-score for each one was computed. Then, the average z-score across all
metrics was used to select the models. The selected models are shown in Table 9. As in [
            <xref ref-type="bibr" rid="ref8">8</xref>
            ], 
denotes the number of neighbors considered, while  is the consensus parameter of DMkNN. 
and  denote the size of the writing history partition and the number of parcel pairs considered.
Results (%) on the test set of Task 3 for our models and the best models per metric
          </p>
        </sec>
      </sec>
      <sec id="sec-3-4">
        <title>4.4. Results</title>
        <p>The results are shown in Table 10. Our best model was Run 2, outperforming the rest of our
models on each metric. Overall, the total BDI scores predicted were low, with Run 0 having the
highest median of 18 and Run 3 having the lowest of 8. Predictions were quite tight within each
run, with Run 1 having the highest median absolute deviation of 6. Furthermore predictions
were consistent among runs, with Run 1 and 4 agreeing the least, on only 44% of answers
globally. Interestingly, although Run 0 agreed the most with Run 2 (64%), it achieved much
weaker results, especially in terms of DCHR.</p>
        <p>Overall, the approach remains sensitive to the particulars of the training set where neighbors
are sourced. This is perhaps due to text alone not eliciting, by unsupervised learning alone,
similarity that pertains to depression symptoms. Future work could include integrating manual
annotation or prior knowledge in the training of the similarity models, authorship and topic
alike. Moreover, in order for the overall approach to be efective in the 21-way prediction at
hand, similarity could be handled separately by component or groups of components of the
subject representation.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>5. Conclusion</title>
      <p>RELAI participated in all three eRisk 2021 shared tasks. Task 1, Early Detection of the Signs of
Pathological Gambling, proved an interesting challenge in the lack of training data. Nonetheless,
the use of testimonials and self-assessment questionnaires constitutes a promising avenue in such
a context. The Early Detection of the Signs of Self-Harm, Task 2, was a more conventional one. The
favoring of early decisions resulted in high recall but poor precision overall. Nonetheless, some
of the proposed approaches produced good ranking-based results. Finally, Task 3, Measuring
the Severity of the Signs of Depression, remains thoroughly dificult. However, in predicting BDI
scores based on similarity, restricting the number of neighbors per depression category proved
an interesting option to address uncertain distributions of BDI scores.</p>
      <p>The source code of the proposed systems is licensed under the GNU GPLv3. The datasets are
provided on demand by the eRisk organizers.</p>
    </sec>
    <sec id="sec-5">
      <title>Acknowledgments</title>
      <p>This research was enabled by support provided by Calcul Québec and Compute Canada. MJM
acknowledges the support of the Natural Sciences and Engineering Research Council of Canada
[NSERC Grant number 06487-2017] and the Government of Canada’s New Frontiers in Research
Fund (NFRF), [NFRFE-2018-00484].
psycholinguistics features and machine learning for the classification and quantification
of mental diseases, in: Working Notes of the Conference and Labs of the Evaluation
Forum-CEUR Workshop Proceedings, volume 2696, 2020.
[24] A.-S. Uban, P. Rosso, Deep learning architectures and strategies for early detection of
self-harm and depression level prediction, in: Working Notes of the Conference and Labs
of the Evaluation Forum-CEUR Workshop Proceedings, volume 2696, 2020.
[25] D. E. Losada, F. Crestani, J. Parapar, Overview of eRisk: Early risk prediction on the
internet, in: International Conference of the Cross-Language Evaluation Forum for
European Languages, Springer, 2018, pp. 343–361.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>J.</given-names>
            <surname>Parapar</surname>
          </string-name>
          ,
          <string-name>
            <surname>M.-R. Patricia</surname>
            ,
            <given-names>D. E.</given-names>
          </string-name>
          <string-name>
            <surname>Losada</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          <string-name>
            <surname>Crestani</surname>
          </string-name>
          , Overview of eRisk 2021:
          <article-title>Early Risk Prediction on the Internet, in: International Conference of the Cross-Language Evaluation Forum for European Languages</article-title>
          ,
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>M. W.</given-names>
            <surname>Abbott</surname>
          </string-name>
          ,
          <article-title>The changing epidemiology of gambling disorder and gambling-related harm: Public health implications, Public health (</article-title>
          <year>2020</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>S.</given-names>
            <surname>Achab</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Chatton</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Khan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Thorens</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Penzenstadler</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Zullino</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Khazaal</surname>
          </string-name>
          ,
          <article-title>Early detection of pathological gambling: betting on GPs' beliefs and attitudes</article-title>
          , BioMed research international
          <year>2014</year>
          (
          <year>2014</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>J.</given-names>
            <surname>Haefeli</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Lischer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Schwarz</surname>
          </string-name>
          ,
          <article-title>Early detection items and responsible gambling features for online gambling</article-title>
          ,
          <source>International Gambling Studies</source>
          <volume>11</volume>
          (
          <year>2011</year>
          )
          <fpage>273</fpage>
          -
          <lpage>288</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>J.</given-names>
            <surname>Braverman</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Laplante</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Nelson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Shafer</surname>
          </string-name>
          ,
          <article-title>Using cross-game behavioral markers for early identification of high-risk internet gamblers</article-title>
          ,
          <source>Psychology of addictive behaviors : journal of the Society of Psychologists in Addictive Behaviors</source>
          <volume>27</volume>
          (
          <year>2013</year>
          )
          <fpage>868</fpage>
          -
          <lpage>77</lpage>
          . doi:
          <volume>10</volume>
          . 1037/a0032818.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>J.</given-names>
            <surname>Haefeli</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Lischer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Haeusler</surname>
          </string-name>
          ,
          <article-title>Communications-based early detection of gamblingrelated problems in online gambling</article-title>
          ,
          <source>International Gambling Studies</source>
          <volume>15</volume>
          (
          <year>2015</year>
          )
          <fpage>23</fpage>
          -
          <lpage>38</lpage>
          . URL: https://doi.org/10.1080/14459795.
          <year>2014</year>
          .
          <volume>980297</volume>
          . doi:
          <volume>10</volume>
          .1080/14459795.
          <year>2014</year>
          .
          <volume>980297</volume>
          . arXiv:https://doi.org/10.1080/14459795.
          <year>2014</year>
          .
          <volume>980297</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>F.</given-names>
            <surname>Sadeque</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Xu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Bethard</surname>
          </string-name>
          ,
          <article-title>Measuring the latency of depression detection in social media</article-title>
          ,
          <source>in: Proceedings of the Eleventh ACM International Conference on Web Search and Data Mining</source>
          ,
          <year>2018</year>
          , pp.
          <fpage>495</fpage>
          -
          <lpage>503</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>D.</given-names>
            <surname>Maupomé</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. D.</given-names>
            <surname>Armstrong</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Rancourt</surname>
          </string-name>
          ,
          <string-name>
            <surname>M.-J. Meurs</surname>
          </string-name>
          ,
          <article-title>Leveraging textual similarity to predict beck depression inventory answers</article-title>
          ,
          <source>Proceedings of the Canadian Conference on Artificial Intelligence</source>
          (
          <year>2021</year>
          ). URL: https://caiac.pubpub.org/pub/pkzbt8x2. doi:
          <volume>10</volume>
          .21428/ 594757db.5c753c3d, https://caiac.pubpub.org/pub/pkzbt8x2.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>A. B.</given-names>
            <surname>Dieng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F. J.</given-names>
            <surname>Ruiz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D. M.</given-names>
            <surname>Blei</surname>
          </string-name>
          , Topic Modeling in Embedding Spaces,
          <article-title>Transactions of the Association for Computational Linguistics (</article-title>
          <year>2020</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>M. D. Armstrong</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          <string-name>
            <surname>Maupomé</surname>
          </string-name>
          ,
          <string-name>
            <surname>M.-J. Meurs</surname>
          </string-name>
          ,
          <article-title>Topic modeling in embedding spaces for depression assessment</article-title>
          ,
          <source>Proceedings of the Canadian Conference on Artificial Intelligence</source>
          (
          <year>2021</year>
          ). URL: https://caiac.pubpub.org/pub/b6tk9kak. doi:
          <volume>10</volume>
          .21428/594757db. 9e67a9f0, https://caiac.pubpub.org/pub/b6tk9kak.
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <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>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Parapar</surname>
          </string-name>
          , Overview of eRisk 2019:
          <article-title>Early Risk Prediction on the Internet, in: International Conference of the Cross-Language Evaluation Forum for European Languages</article-title>
          , Springer,
          <year>2019</year>
          , pp.
          <fpage>340</fpage>
          -
          <lpage>357</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>J.</given-names>
            <surname>Baumgartner</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Zannettou</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Keegan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Squire</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Blackburn</surname>
          </string-name>
          , The Pushshift Reddit Dataset,
          <source>in: Proceedings of the International AAAI Conference on Web and Social Media</source>
          , volume
          <volume>14</volume>
          ,
          <year>2020</year>
          , pp.
          <fpage>830</fpage>
          -
          <lpage>839</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <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>
          , J. Parapar, eRisk
          <year>2020</year>
          :
          <article-title>Self-harm and depression challenges</article-title>
          ,
          <source>in: European Conference on Information Retrieval</source>
          , Springer,
          <year>2020</year>
          , pp.
          <fpage>557</fpage>
          -
          <lpage>563</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>E. C.</given-names>
            <surname>Ageitos</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Martínez-Romo</surname>
          </string-name>
          , L. Araujo, NLP-UNED at eRisk 2020:
          <article-title>Self-harm Early Risk Detection with Sentiment Analysis and Linguistic Features</article-title>
          ,
          <source>in: Working Notes of the Conference and Labs of the Evaluation Forum-CEUR Workshop Proceedings</source>
          , volume
          <volume>2696</volume>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <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>Early risk detection of self-harm and depression severity using BERT-based transformers: iLab at CLEF eRisk 2020</article-title>
          ,
          <source>in: Working Notes of the Conference and Labs of the Evaluation Forum-CEUR Workshop Proceedings</source>
          , volume
          <volume>2696</volume>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>D.</given-names>
            <surname>Maupomé</surname>
          </string-name>
          ,
          <string-name>
            <surname>M.-J. Meurs</surname>
          </string-name>
          ,
          <article-title>An Iterative Contextualization Algorithm with Second-Order Attention</article-title>
          ,
          <source>arXiv preprint arXiv:2103.02190</source>
          (
          <year>2021</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Liu</surname>
          </string-name>
          , M. O. andhttps://latex.ikb.info.uqam.ca/project/600f60b981c0730096ee0382 Naman Goyal,
          <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>
          , arXiv preprint
          <year>1907</year>
          .11692 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="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>D.</given-names>
            <surname>Maupomé</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. D.</given-names>
            <surname>Armstrong</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Belbahar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Alezot</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Balassiano</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Queudot</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Mosser</surname>
          </string-name>
          ,
          <string-name>
            <surname>M.-J. Meurs</surname>
          </string-name>
          ,
          <article-title>Early Mental Health Risk Assessment through Writing Styles, Topics and Neural Models</article-title>
          ,
          <source>in: Working Notes of the Conference and Labs of the Evaluation ForumCEUR Workshop Proceedings</source>
          , volume
          <volume>2696</volume>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <given-names>D. P.</given-names>
            <surname>Kingma</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Ba</surname>
          </string-name>
          ,
          <article-title>Adam: A Method for Stochastic Optimization</article-title>
          ,
          <source>CoRR abs/1412</source>
          .6980 (
          <year>2014</year>
          ). URL: http://arxiv.org/abs/1412.6980. arXiv:
          <volume>1412</volume>
          .
          <fpage>6980</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          [20]
          <string-name>
            <given-names>A. T.</given-names>
            <surname>Beck</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C. H.</given-names>
            <surname>Ward</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Mendelson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Mock</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Erbaugh</surname>
          </string-name>
          ,
          <article-title>An Inventory for Measuring Depression</article-title>
          ,
          <source>Archives of General Psychiatry</source>
          <volume>4</volume>
          (
          <year>1961</year>
          )
          <fpage>561</fpage>
          -
          <lpage>571</lpage>
          . doi:
          <volume>10</volume>
          .1001/archpsyc.
          <year>1961</year>
          .
          <volume>01710120031004</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          [21]
          <string-name>
            <given-names>S. G.</given-names>
            <surname>Burdisso</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Errecalde</surname>
          </string-name>
          , M. Montes y Gómez,
          <source>UNSL at eRisk</source>
          <year>2019</year>
          :
          <article-title>a unified approach for anorexia, self-harm and depression detection in social media</article-title>
          ,
          <source>in: Working Notes of the Conference and Labs of the Evaluation Forum-CEUR Workshop Proceedings</source>
          , volume
          <volume>2380</volume>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          [22]
          <string-name>
            <given-names>P.</given-names>
            <surname>Abed-Esfahani</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Howard</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Maslej</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Patel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Mann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Goegan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>French</surname>
          </string-name>
          ,
          <article-title>Transfer Learning for Depression: Early Detection and Severity Prediction from Social Media Postings</article-title>
          ,
          <source>in: Working Notes of the Conference and Labs of the Evaluation Forum-CEUR Workshop Proceedings</source>
          , volume
          <volume>2380</volume>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          [23]
          <string-name>
            <given-names>A.</given-names>
            <surname>Trifan</surname>
          </string-name>
          , L. Salgado, Pedro aand Oliveira, BioInfo@ UAVR at eRisk 2020:
          <article-title>on the use of</article-title>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>