<!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>
      <journal-title-group>
        <journal-title>IDDM-</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>mental and physical health states analysis based on user text input</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Artem Bashtovyi</string-name>
          <email>artem.bashtovyi.mpz.2020@lpnu.ua</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Andriy Fechan</string-name>
          <email>andrii.v.fechan@lpnu.ua</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Vitaliy Yakovyna</string-name>
          <email>yakovyna@matman.uwm.edu.pl</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Lviv Polytechnic National University</institution>
          ,
          <addr-line>12 Bandera str., Lviv, 79013</addr-line>
          ,
          <country country="UA">Ukraine</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>University of Warmia and Mazury in Olsztyn</institution>
          ,
          <addr-line>2 Michała Oczapowskiego str., Olsztyn, 10-719</addr-line>
          ,
          <country country="PL">Poland</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2021</year>
      </pub-date>
      <volume>4</volume>
      <fpage>19</fpage>
      <lpage>21</lpage>
      <abstract>
        <p>Given the pandemic situation around the world, mental and physical wellbeing become a crucial part of our lives, having said that health support is one of the most popular topics nowadays. In order to keep mental stability, we have to feel when the actual help is needed. Sometimes it's extremely hard to analyze our mental and physical health and the time when we need to ask for help. In this work, we built the module for mental illness classification, which can identify mental states based on human text input. The module is part of a platform for physical and mental state identification based on user journaling. The platform will allow daily journaling and automatically identify user mental and physical states based on the texts. BERT, physical state. Natural language processing, classification, multiclass analysis, mental health, journaling,</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>Human health on of the most important factors for longevity and happy life. Nowadays most a lot
of people neglect the importance of mental health as far as mental issues are not always related to
physical symptoms. Usually, people reach out to doctors for additional help and treatment, albeit
problems
with the</p>
      <p>mental issues are related to the physical state, sometimes it’s not that
straightforward to identify them. Furthermore, the question of supporting mental health is crucial
during the pandemic, when the lockdown affects our social life. The COVID-19 pandemic has a
negative impact on people’s mental well-being, this even provoked the term “covid depression”. With
an appropriate treatment and care method, many individuals are able to quickly identify the issues and
work on them as long as they elaborate with specialists. Some people may resist going to the
specialists out of fear, embarrassment, lack of support, and resources. At the same time usage of
IT(information technologies) can help with basic identification of mental state, thus creating a first
step to the treatment. One of the examples could be the application that would help to analyze mental
state without a specialist’s help, just sitting at home.</p>
      <p>Information technologies help us identify health problems more easily, for instance, usage of
image and motion recognition, IoT sensors for physical human health, and potential diagnostic. In
addition, one of the approaches which do not require additional equipment and sensors - text analysis
of human-written texts, including the texts published on the internet. In this work, we worked on the
model for multi-class text classification, which will be one of the components of a web application for
identifying mental and physical states based on user text input. The main purpose is to provide an
effective self-analysis platform for people who want to support their mental and physical well-being.</p>
      <p>2021 Copyright for this paper by its authors.
The platform will allow classifying user’s mental state(anxiety, depression, happiness, etc) and
physical state(fatigue, pain, energy).</p>
    </sec>
    <sec id="sec-2">
      <title>2. Machine learning and medicine</title>
      <p>
        Numerous innovations and new tech solutions are already on the market of healthcare, it’s hard to
imagine modern medicine without computer-supported information systems. Machine learning(ML)
algorithms are specifically useful for analyzing human health[
        <xref ref-type="bibr" rid="ref1 ref2 ref3">1,2,3</xref>
        ] and pandemic affect
prediction[
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. Artificial intelligence(AI) is used in healthcare specifically for solving a wide range of
tasks[
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], like the following:
1. Predicting suicide risk at hospitalization via ML algorithms based on social media data.
2. Identifying the correlation between antidepressant usage and deprivation based on
behavior.
      </p>
      <p>3. Data analysis for identifying drugs abuse.</p>
      <p>
        On the whole, AI is becoming more popular for usage in combination with precision medicine,
usage of ML algorithms could potentially help to solve problems that will retrofit the analysis of
patients[
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. As the example in Figure 1, the components potentially could be improved and optimized.
According to the research from Clinical and Translational Science(CTS) AI methods and spread out
the approaches for patient treatment. AI is making medicine easier and more efficient nonetheless,
complete AI integration into healthcare requires solving the issues like data misclassification, external
factors which are not suitable for models training, user privacy.
      </p>
    </sec>
    <sec id="sec-3">
      <title>3. NLP for physical and mental states identification</title>
      <p>
        Natural language processing (NLP) gives us the ability to process the text and extract meaningful
information based on user input. It allows doing the classification (a process of feature selection),
tagging, and parsing data in order to understand the human intention. In fact, NLP has been widely
used in the medical field, specifically for mental and physical health analysis. Clinical data and even
regular data from social media is a great source of useful information for mental illness detection [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ],
in addition, specific data sources like suicide notes can be used for algorithms development [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ].
Classification approaches based on clinical data showed success in predicting mental problems with a
precision of about 71% [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. Recently, the research from the MIT group created a Long short-term
memory (LSTM) based model for depression predisposition by processing user text input and voice
input sequences.
      </p>
      <p>
        Physical health issues classification is a pretty hard task in contrast to mental health issues due to
the specific data processing and huge physical states diversification. Specific models are required for
such issues classification, for example, this research includes specific models for low back pain
detection [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. It includes a comprehensive analysis of data from user medical records, which are
formed by doctors. Such tasks include a lot of effort in terms of data selection. Another research
describes a concrete approach for migraine classification[
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. Physical issues are hard to describe and
detect from the solid user input text, consequently, physical state detection is a complex task that
requires specific data selection and processing.
      </p>
    </sec>
    <sec id="sec-4">
      <title>4. Platform architecture</title>
      <p>The purpose of this work is to create a model for NLP multi-class text analysis. The model is the
main component of the self-analysis platform for mental and physical states detection based on user
input. Figure 2 shows the main component of the platform.</p>
    </sec>
    <sec id="sec-5">
      <title>4.1. Dataset</title>
      <p>
        Choosing the right dataset is crucial for NLP tasks, especially the processing of health-related text
that contains disease or state information. Protecting personal data is very important for medical
companies, the data must be fully confidential, although some of the sources provide open anonymous
user information, finding relevant data is relatively hard. For the sake of simplicity and privacy policy
regulation, the open-source data set from Reddit network was chosen[
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. The dataset contains the
classified mental diseases data that is extracted from respective Reddit topics. It includes 13727
posts(records), the main 5 mental disorders classes are defined: Attention deficit hyperactivity
disorder(adhd), Post-traumatic stress disorder(ptsd), anxiety, depression, bipolar disorder(bipolar).
The additional class undefined(none) is associated with topics that are not connected to the mental
state discussion(music, travel, science, politics). Table 1 shows the distribution of classes within the
dataset.
      </p>
    </sec>
    <sec id="sec-6">
      <title>4.2. Initial model</title>
      <p>
        The classification module is based on BERT BASE[
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] pre-trained model, the neural network
with 12-layers, 768-hidden, 12-heads, 110M parameters, trained on lower-cased English text. BERT
approach is specifically useful for the current task because it has a “fine-tuning” ability for
domainspecific data(in this case mental and physical illness). Having the proper datasets for physical and
mental states gives us the ability to fine-tune the model by applying the softmax function. Python,
Pytorch, Transformers are core technologies used for the classification module.
      </p>
      <p>
        Tokenization plays a crucial role in NLP text processing, BERT model uses a special kind of
tokenizer (BertTokenizer) based on reserved classes. BERT is a sequence-to-sequence model, having
said that it requires a fixed-length input sequence. Based on the conducted experiments it was defined
the number of tokens per sequence - 512. The padding and truncation were used as methods for
proper sequence length generation. After careful data examination and test runs, 10 epochs was the
most relevant value with a learning rate 2e-5. AdamW(one of the fastest algorithms[
        <xref ref-type="bibr" rid="ref14">14</xref>
        ]) served as the
main optimization approach, it’s the combination of AdaGrad and RMSProp algorithms, recently
became popular in the computer vision branch. In order to avoid overfitting, we used dropout
probability as 0.3. Table 2 shows epoch details:
Figure 5 shows the training and validation accuracy difference. The last step shows almost no
difference in training accuracy, thus we decided to stay with base parameters.
Table 3 contains the final results after all training stages, the general model precision is 0.87, which is
a pretty high result dataset based on Reddit topics. The hardest part in multi-class health issues
classification is the high correlation between different classes.
The following approaches are used for precision, recall, F1, and accuracy calculation:
●
●
●
●
      </p>
      <p>Precision - true positives divided by sum of true positives and false positives
Recall - true positives divided by sum of true positives and false negatives
F1 - weighted average of precision and recall</p>
      <p>Accuracy is defined based on the validation dataset with provided targets</p>
      <p>The results from Table 4 gives us precise information about text analysis and specific classes
prediction. We can definitely say that the precision of “none” class classification is high, it gives us
hope that the model is relatively resistant to the false-positive results. Also, we can say that the top
classes from the results are “ptsd” and “adhd” diseases. The worst results are “anxiety” and
“depression”, there are a few reasons for this consequence. Those two classes are highly correlated
with other classes. The “bipolar” class contains around 30% “depression” posts, about 11% “anxiety”
posts, and about 12% posts related to the “depression” in the same manner. Consequently, the
correlation between the classes impairs the precision results, which requires careful dataset
classification. We identified that we can observe text misclassification on the user input due to the
connection of the mental states. The proper base dataset classification, including the interaction with
experts in medical records and diagnosis, will help to improve the situation.</p>
    </sec>
    <sec id="sec-7">
      <title>4.3. Adjusting elements of the model</title>
      <p>
        The pre-trained model that was used for the experiment performed relatively well, since BERT is
based on transformer architecture it has achieved state-of-the-art performance for NLP tasks on the
dataset. In the task described above, we performed fine-tuning of the model for mental disorders
classification that gives us the model for specific tasks. In spite of good model precision, the testing
steps took a lot of resources, specifically the time for processing the test dataset. The module for
mental health state prediction requires constant improvement in the future for experiments with
different states and higher classification precision, having said that we decided to modify the
pretrained model in hope to reduce testing time in the future and change the model size. Fortunately,
there are a lot of approaches[
        <xref ref-type="bibr" rid="ref15">15</xref>
        ] to tune BERT configuration(bertology) and pre-trained model in
order to gain performance, precision boost, reduce the time and size of the transformer-based models.
      </p>
      <p>
        Following studies explored methods and approaches improving the original BERT model for
various tasks. XLNet model research[
        <xref ref-type="bibr" rid="ref16">16</xref>
        ] suggested adding autoaggressive capabilities to BERT,
improving the quality of the original model, though at the cost of extra compute and time
requirements. Well-known RoBERTa model provides higher performance[
        <xref ref-type="bibr" rid="ref17">17</xref>
        ]. The recent studies
explain the “head-pruning” approach to save testing time and model size without sacrificing the
performance too much. This can be useful for tasks that require constant model testing and
finetuning.
      </p>
      <p>
        The approach described in the study[
        <xref ref-type="bibr" rid="ref18">18</xref>
        ] helps prune unimportant heads. Basically, two main
approaches are used during head pruning. First to prune the whole head from the model, the second
prune only least useful heads weights for the given head. The head pruning requires defining the
importance of each head, the following formula suggested in the study and was used:
 ( ) (1)
  ℎ( )
where X - the data distribution, L(x) - loss for sample x
|,
 ℎ =   ~ |
      </p>
      <p>ℎ( )</p>
    </sec>
    <sec id="sec-8">
      <title>4.4. Results from the experiment</title>
      <p>After conducting the experiments with head pruning, we highlighted the best parameters for testing
the configured model. Basically, the least head importance was defined for encoder multi-head
attention(EMHA). Hence the final pruning was performed mostly on EMHA. Figure 6 shows
particular steps in 10% head-pruning and the effect on the precision. Basically, the results we
discovered - the model precision drops drastically only after 38% pruned heads, which gives us a
positive attitude. The precision was reduced by almost 8% for the testing stage at that point, however,
test data validation took about 25% less time. Consequently, the adjusted model configuration for the
given dataset is suitable in terms of testing the model quickly. The final result showed that 8 heads per
layer with total precision of almost 80% and time lesser by almost 24% is the best option for the
selected dataset and model architecture.</p>
      <p>The final decision was to keep parameters for the initial model described in section 4.1, and
perform head pruning based on the final results above. Furthermore, we adjusted the number of
hidden layers respectively with pruned heads.</p>
      <p>The positive results give us the ability to perform the testing stage for different mental issues
records faster. Additionally, we plan to use the approach described above for physical state
classification model tuning and configuration, thereby reducing testing time on physical states dataset.</p>
      <p>The future work is related to the second module development for physical state classification.
Physical diseases dataset requires careful processing, furthermore, the model development includes
constant feedback and collaboration with doctors and medical companies. The final step is to combine
to model into a single text classification model and create the system with a web application for the
full journaling process.</p>
    </sec>
    <sec id="sec-9">
      <title>5. References</title>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Bashtyk</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Campos</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Fechan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Konstantyniv</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Yakovyna</surname>
          </string-name>
          ,
          <article-title>Computer monitoring of physical and chemical parameters of the environment using computer vision systems: Problems and prospects</article-title>
          .
          <source>CEUR Workshop Proceedings</source>
          ,
          <year>2020</year>
          ,
          <volume>2753</volume>
          , pp.
          <fpage>437</fpage>
          -
          <lpage>442</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Mykytyuk</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Fechan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Petryshak</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Barylo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Boyko</surname>
          </string-name>
          ,
          <article-title>Optoelectronic multi-sensor of SO2 and NO2 gases</article-title>
          . Modern Problems of Radio Engineering, Telecommunications and Computer Science,
          <source>Proceedings of the 13th International Conference on TCSET</source>
          <year>2016</year>
          ,
          <year>2016</year>
          , pp.
          <fpage>402</fpage>
          -
          <lpage>405</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>A.</given-names>
            <surname>Kucher</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Boyko</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Ilkanych</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Fechan</surname>
          </string-name>
          ,
          <string-name>
            <surname>N.</surname>
          </string-name>
          <article-title>Shakhovska Retrospective analysis by multifactor regression in the evaluation of the results of fine-needle aspiration biopsy of thyroid nodulesCEUR</article-title>
          <source>Workshop Proceedings</source>
          ,
          <year>2020</year>
          ,
          <volume>2753</volume>
          , pp.
          <fpage>443</fpage>
          -
          <lpage>447</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>V.</given-names>
            <surname>Yakovyna</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Shakhovska</surname>
          </string-name>
          ,
          <article-title>Modelling and predicting the spread of COVID-19 cases depending on restriction policy based on mined recommendation rules</article-title>
          .
          <source>Mathematical Biosciences and Engineering</source>
          <volume>18</volume>
          (
          <issue>3</issue>
          ),
          <year>2021</year>
          2789-
          <fpage>2812</fpage>
          ,.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Ayesha</given-names>
            <surname>Kamran</surname>
          </string-name>
          <article-title>Ul haq</article-title>
          , Amira Khattak, Noreen Jamil,
          <string-name>
            <given-names>M. Asif</given-names>
            <surname>Naeem</surname>
          </string-name>
          , Farhaan Mirza,
          <article-title>"Data Analytics in Mental Healthcare"</article-title>
          ,
          <source>Scientific Programming</source>
          ,
          <year>2020</year>
          , doi:10.1155/
          <year>2020</year>
          /2024160
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>K.B. Johnson</surname>
            ,
            <given-names>W.Q.</given-names>
          </string-name>
          <string-name>
            <surname>Wei</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          <string-name>
            <surname>Weeraratne</surname>
            ,
            <given-names>M.E.</given-names>
          </string-name>
          <string-name>
            <surname>Frisse</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          <string-name>
            <surname>Misulis</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          <string-name>
            <surname>Rhee</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Zhao</surname>
            ,
            <given-names>J.L.</given-names>
          </string-name>
          <string-name>
            <surname>Snowdon</surname>
          </string-name>
          , Precision medicine,
          <source>AI</source>
          , and
          <article-title>the future of personalized health care</article-title>
          ,
          <source>Clin. Trans. Sci.</source>
          ,
          <volume>14</volume>
          ,
          <year>2020</year>
          , doi:10.1111/cts.12884
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>A.</given-names>
            <surname>Le Glaz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Haralambous</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Kim-Dufor</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Lenca</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Billot</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Ryan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Marsh</surname>
          </string-name>
          , J. DeVylder,
          <string-name>
            <given-names>M.</given-names>
            <surname>Walter</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Berrouiguet</surname>
          </string-name>
          ,
          <string-name>
            <surname>Lemey C Machine</surname>
          </string-name>
          <article-title>Learning</article-title>
          and
          <source>Natural Language Processing in Mental Health: Systematic Review J Med Internet, Res</source>
          <year>2021</year>
          , doi: 10.2196/15708
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>R.</given-names>
            <surname>Cavlo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Milne</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Hussain</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Christensen</surname>
          </string-name>
          ,
          <article-title>Natural language processing in mental health applications using non-clinical texts</article-title>
          .
          <source>Natural Language Engineering</source>
          ,
          <year>2017</year>
          23(
          <issue>5</issue>
          ). doi:
          <volume>10</volume>
          .1017/S1351324916000383
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>N.</given-names>
            <surname>Viani</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Botelle</surname>
          </string-name>
          , Kerwin,
          <string-name>
            <surname>J.</surname>
          </string-name>
          et al.
          <article-title>A natural language processing approach for identifying temporal disease onset information from mental healthcare text, 2021</article-title>
          <source>, Sci Rep 11</source>
          ,
          <fpage>757</fpage>
          . https://doi.org/10.1038/s41598-020-80457-0
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>Judd</surname>
            ,
            <given-names>Michael</given-names>
          </string-name>
          &amp; Zulkernine, Farhana &amp; Wolfrom, Brent &amp; Barber, David &amp; Rajaram,
          <source>Akshay Detecting Low Back Pain from Clinical Narratives Using Machine Learning</source>
          ,
          <year>2018</year>
          , doi:10.1007/978-3-
          <fpage>319</fpage>
          -99133-7_
          <fpage>10</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>M.</given-names>
            <surname>Katsuki</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Narita</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Matsumori</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Ishida</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Watanabe</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Cai</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Tominaga</surname>
          </string-name>
          .
          <article-title>Preliminary development of a deep learning-based automated primary headache diagnosis model using Japanese natural language processing of medical questionnaire</article-title>
          ,
          <year>2020</year>
          , doi:10.25259/SNI_827_
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <article-title>Reddit topics classified dataset URL: https://github</article-title>
          .com/amurark/mental-healthclassification
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>[13] https://huggingface.co/bert-base-uncased</mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <article-title>Gentle Introduction to the Adam Optimization Algorithm for Deep Learning URL: https://machinelearningmastery.com/adam-optimization-algorithm-for-deep-learning</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <surname>Rogers</surname>
          </string-name>
          , Anna et al. “
          <article-title>A Primer in BERTology: What We Know About How BERT Works.” Transactions of the Association for Computational Linguistics 8</article-title>
          ,
          <year>2020</year>
          ,:
          <fpage>842</fpage>
          -
          <lpage>866</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <surname>Yang</surname>
          </string-name>
          , Zhilin et al. “
          <article-title>XLNet: Generalized Autoregressive Pretraining for Language Understanding</article-title>
          .”
          <source>NeurIPS</source>
          ,
          <year>2019</year>
          , arXiv:
          <year>1906</year>
          .08237.
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <surname>Liu</surname>
          </string-name>
          , Yinhan et al. “
          <article-title>RoBERTa: A Robustly Optimized BERT Pretraining Approach</article-title>
          .”,
          <year>2019</year>
          ,: n. pag., ArXiv abs/
          <year>1907</year>
          .11692.
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <surname>Michel</surname>
          </string-name>
          , Paul et al. “
          <source>Are Sixteen Heads Really Better than One?” NeurIPS</source>
          ,
          <year>2019</year>
          , arXiv:
          <year>1905</year>
          .10650
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>