<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.0 20040830//EN" "http://dtd.nlm.nih.gov/publishing/2.0/journalpublishing.dtd">
<article article-type="research-article" dtd-version="2.0" xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-id journal-id-type="publisher-id">JMU</journal-id>
      <journal-id journal-id-type="nlm-ta">JMIR Mhealth Uhealth</journal-id>
      <journal-title>JMIR mHealth and uHealth</journal-title>
      <issn pub-type="epub">2291-5222</issn>
      <publisher>
        <publisher-name>JMIR Publications</publisher-name>
        <publisher-loc>Toronto, Canada</publisher-loc>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="publisher-id">v12i1e55094</article-id>
      <article-id pub-id-type="pmid">39018100</article-id>
      <article-id pub-id-type="doi">10.2196/55094</article-id>
      <article-categories>
        <subj-group subj-group-type="heading">
          <subject>Original Paper</subject>
        </subj-group>
        <subj-group subj-group-type="article-type">
          <subject>Original Paper</subject>
        </subj-group>
      </article-categories>
      <title-group>
        <article-title>Wearable Data From Subjects Playing Super Mario, Taking University Exams, or Performing Physical Exercise Help Detect Acute Mood Disorder Episodes via Self-Supervised Learning: Prospective, Exploratory, Observational Study</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="editor">
          <name>
            <surname>Buis</surname>
            <given-names>Lorraine</given-names>
          </name>
        </contrib>
      </contrib-group>
      <contrib-group>
        <contrib contrib-type="reviewer">
          <name>
            <surname>Zulueta</surname>
            <given-names>John</given-names>
          </name>
        </contrib>
        <contrib contrib-type="reviewer">
          <name>
            <surname>Montezano</surname>
            <given-names>Bruno</given-names>
          </name>
        </contrib>
        <contrib contrib-type="reviewer">
          <name>
            <surname>Speier</surname>
            <given-names>William</given-names>
          </name>
        </contrib>
      </contrib-group>
      <contrib-group>
        <contrib id="contrib1" contrib-type="author" corresp="yes">
          <name name-style="western">
            <surname>Corponi</surname>
            <given-names>Filippo</given-names>
          </name>
          <degrees>MSc, MD</degrees>
          <xref rid="aff1" ref-type="aff">1</xref>
          <address>
            <institution>School of Informatics</institution>
            <institution>University of Edinburgh</institution>
            <addr-line>Informatics Forum, 10 Crichton St, Newington</addr-line>
            <addr-line>Edinburgh, EH89AB</addr-line>
            <country>United Kingdom</country>
            <phone>44 131 651 5661</phone>
            <email>filippo.corponi@ed.ac.uk</email>
          </address>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0002-6807-0617</ext-link>
        </contrib>
        <contrib id="contrib2" contrib-type="author">
          <name name-style="western">
            <surname>Li</surname>
            <given-names>Bryan M</given-names>
          </name>
          <degrees>MSc</degrees>
          <xref rid="aff1" ref-type="aff">1</xref>
          <xref rid="aff2" ref-type="aff">2</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0003-3144-4838</ext-link>
        </contrib>
        <contrib id="contrib3" contrib-type="author">
          <name name-style="western">
            <surname>Anmella</surname>
            <given-names>Gerard</given-names>
          </name>
          <degrees>MD, PhD</degrees>
          <xref rid="aff3" ref-type="aff">3</xref>
          <xref rid="aff4" ref-type="aff">4</xref>
          <xref rid="aff5" ref-type="aff">5</xref>
          <xref rid="aff6" ref-type="aff">6</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0002-6798-4054</ext-link>
        </contrib>
        <contrib id="contrib4" contrib-type="author">
          <name name-style="western">
            <surname>Valenzuela-Pascual</surname>
            <given-names>Clàudia</given-names>
          </name>
          <degrees>MSc</degrees>
          <xref rid="aff3" ref-type="aff">3</xref>
          <xref rid="aff4" ref-type="aff">4</xref>
          <xref rid="aff5" ref-type="aff">5</xref>
          <xref rid="aff6" ref-type="aff">6</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0009-0002-0495-7793</ext-link>
        </contrib>
        <contrib id="contrib5" contrib-type="author">
          <name name-style="western">
            <surname>Mas</surname>
            <given-names>Ariadna</given-names>
          </name>
          <degrees>MSc</degrees>
          <xref rid="aff3" ref-type="aff">3</xref>
          <xref rid="aff4" ref-type="aff">4</xref>
          <xref rid="aff5" ref-type="aff">5</xref>
          <xref rid="aff6" ref-type="aff">6</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0002-8738-8655</ext-link>
        </contrib>
        <contrib id="contrib6" contrib-type="author">
          <name name-style="western">
            <surname>Pacchiarotti</surname>
            <given-names>Isabella</given-names>
          </name>
          <degrees>MD, PhD</degrees>
          <xref rid="aff3" ref-type="aff">3</xref>
          <xref rid="aff4" ref-type="aff">4</xref>
          <xref rid="aff5" ref-type="aff">5</xref>
          <xref rid="aff6" ref-type="aff">6</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0002-7822-0367</ext-link>
        </contrib>
        <contrib id="contrib7" contrib-type="author">
          <name name-style="western">
            <surname>Valentí</surname>
            <given-names>Marc</given-names>
          </name>
          <degrees>MD, PhD</degrees>
          <xref rid="aff3" ref-type="aff">3</xref>
          <xref rid="aff4" ref-type="aff">4</xref>
          <xref rid="aff5" ref-type="aff">5</xref>
          <xref rid="aff6" ref-type="aff">6</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0002-9783-6220</ext-link>
        </contrib>
        <contrib id="contrib8" contrib-type="author">
          <name name-style="western">
            <surname>Grande</surname>
            <given-names>Iria</given-names>
          </name>
          <degrees>MD, PhD</degrees>
          <xref rid="aff3" ref-type="aff">3</xref>
          <xref rid="aff4" ref-type="aff">4</xref>
          <xref rid="aff5" ref-type="aff">5</xref>
          <xref rid="aff6" ref-type="aff">6</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0002-0137-0666</ext-link>
        </contrib>
        <contrib id="contrib9" contrib-type="author">
          <name name-style="western">
            <surname>Benabarre</surname>
            <given-names>Antoni</given-names>
          </name>
          <degrees>MD, PhD</degrees>
          <xref rid="aff3" ref-type="aff">3</xref>
          <xref rid="aff4" ref-type="aff">4</xref>
          <xref rid="aff5" ref-type="aff">5</xref>
          <xref rid="aff6" ref-type="aff">6</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0001-8814-2246</ext-link>
        </contrib>
        <contrib id="contrib10" contrib-type="author">
          <name name-style="western">
            <surname>Garriga</surname>
            <given-names>Marina</given-names>
          </name>
          <degrees>MD, PhD</degrees>
          <xref rid="aff3" ref-type="aff">3</xref>
          <xref rid="aff4" ref-type="aff">4</xref>
          <xref rid="aff5" ref-type="aff">5</xref>
          <xref rid="aff6" ref-type="aff">6</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0001-7312-4969</ext-link>
        </contrib>
        <contrib id="contrib11" contrib-type="author">
          <name name-style="western">
            <surname>Vieta</surname>
            <given-names>Eduard</given-names>
          </name>
          <degrees>MD, PhD</degrees>
          <xref rid="aff3" ref-type="aff">3</xref>
          <xref rid="aff4" ref-type="aff">4</xref>
          <xref rid="aff5" ref-type="aff">5</xref>
          <xref rid="aff6" ref-type="aff">6</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0002-0548-0053</ext-link>
        </contrib>
        <contrib id="contrib12" contrib-type="author">
          <name name-style="western">
            <surname>Young</surname>
            <given-names>Allan H</given-names>
          </name>
          <degrees>MD, PhD</degrees>
          <xref rid="aff7" ref-type="aff">7</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0003-2291-6952</ext-link>
        </contrib>
        <contrib id="contrib13" contrib-type="author">
          <name name-style="western">
            <surname>Lawrie</surname>
            <given-names>Stephen M</given-names>
          </name>
          <degrees>MD</degrees>
          <xref rid="aff8" ref-type="aff">8</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0002-2444-5675</ext-link>
        </contrib>
        <contrib id="contrib14" contrib-type="author">
          <name name-style="western">
            <surname>Whalley</surname>
            <given-names>Heather C</given-names>
          </name>
          <degrees>PhD</degrees>
          <xref rid="aff8" ref-type="aff">8</xref>
          <xref rid="aff9" ref-type="aff">9</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0002-4505-8869</ext-link>
        </contrib>
        <contrib id="contrib15" contrib-type="author" equal-contrib="yes">
          <name name-style="western">
            <surname>Hidalgo-Mazzei</surname>
            <given-names>Diego</given-names>
          </name>
          <degrees>MD, PhD</degrees>
          <xref rid="aff3" ref-type="aff">3</xref>
          <xref rid="aff4" ref-type="aff">4</xref>
          <xref rid="aff5" ref-type="aff">5</xref>
          <xref rid="aff6" ref-type="aff">6</xref>
          <xref rid="aff7" ref-type="aff">7</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0002-2693-6849</ext-link>
        </contrib>
        <contrib id="contrib16" contrib-type="author" equal-contrib="yes">
          <name name-style="western">
            <surname>Vergari</surname>
            <given-names>Antonio</given-names>
          </name>
          <degrees>PhD</degrees>
          <xref rid="aff1" ref-type="aff">1</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0003-0036-5678</ext-link>
        </contrib>
      </contrib-group>
      <aff id="aff1">
        <label>1</label>
        <institution>School of Informatics</institution>
        <institution>University of Edinburgh</institution>
        <addr-line>Edinburgh</addr-line>
        <country>United Kingdom</country>
      </aff>
      <aff id="aff2">
        <label>2</label>
        <institution>The Alan Turing Institute</institution>
        <addr-line>London</addr-line>
        <country>United Kingdom</country>
      </aff>
      <aff id="aff3">
        <label>3</label>
        <institution>Bipolar and Depressive Disorders Unit</institution>
        <institution>Department of Psychiatry and Psychology</institution>
        <institution>Hospital Clínic de Barcelona</institution>
        <addr-line>Barcelona</addr-line>
        <country>Spain</country>
      </aff>
      <aff id="aff4">
        <label>4</label>
        <institution>Institut d’Investigacions Biomèdiques August Pi i Sunyer</institution>
        <addr-line>Barcelona</addr-line>
        <country>Spain</country>
      </aff>
      <aff id="aff5">
        <label>5</label>
        <institution>Centro de Investigación Biomédica en Red de Salud Mental</institution>
        <institution>Instituto de Salud Carlos III</institution>
        <addr-line>Madrid</addr-line>
        <country>Spain</country>
      </aff>
      <aff id="aff6">
        <label>6</label>
        <institution>Departament de Medicina</institution>
        <institution>Facultat de Medicina i Ciències de la Salut</institution>
        <institution>Universitat de Barcelona</institution>
        <addr-line>Barcelona</addr-line>
        <country>Spain</country>
      </aff>
      <aff id="aff7">
        <label>7</label>
        <institution>Institute of Psychiatry, Psychology and Neuroscience</institution>
        <institution>King's College London</institution>
        <addr-line>London</addr-line>
        <country>United Kingdom</country>
      </aff>
      <aff id="aff8">
        <label>8</label>
        <institution>Division of Psychiatry</institution>
        <institution>Centre for Clinical Brain Sciences</institution>
        <institution>University of Edinburgh</institution>
        <addr-line>Edinburgh</addr-line>
        <country>United Kingdom</country>
      </aff>
      <aff id="aff9">
        <label>9</label>
        <institution>Generation Scotland</institution>
        <institution>Institute for Genetics and Cancer</institution>
        <institution>University of Edinburgh</institution>
        <addr-line>Edinburgh</addr-line>
        <country>United Kingdom</country>
      </aff>
      <author-notes>
        <corresp>Corresponding Author: Filippo Corponi <email>filippo.corponi@ed.ac.uk</email></corresp>
      </author-notes>
      <pub-date pub-type="collection">
        <year>2024</year>
      </pub-date>
      <pub-date pub-type="epub">
        <day>17</day>
        <month>7</month>
        <year>2024</year>
      </pub-date>
      <volume>12</volume>
      <elocation-id>e55094</elocation-id>
      <history>
        <date date-type="received">
          <day>2</day>
          <month>12</month>
          <year>2023</year>
        </date>
        <date date-type="rev-request">
          <day>29</day>
          <month>2</month>
          <year>2024</year>
        </date>
        <date date-type="rev-recd">
          <day>14</day>
          <month>4</month>
          <year>2024</year>
        </date>
        <date date-type="accepted">
          <day>24</day>
          <month>5</month>
          <year>2024</year>
        </date>
      </history>
      <copyright-statement>©Filippo Corponi, Bryan M Li, Gerard Anmella, Clàudia Valenzuela-Pascual, Ariadna Mas, Isabella Pacchiarotti, Marc Valentí, Iria Grande, Antoni Benabarre, Marina Garriga, Eduard Vieta, Allan H Young, Stephen M Lawrie, Heather C Whalley, Diego Hidalgo-Mazzei, Antonio Vergari. Originally published in JMIR mHealth and uHealth (https://mhealth.jmir.org), 17.07.2024.</copyright-statement>
      <copyright-year>2024</copyright-year>
      <license license-type="open-access" xlink:href="https://creativecommons.org/licenses/by/4.0/">
        <p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in JMIR mHealth and uHealth, is properly cited. The complete bibliographic information, a link to the original publication on https://mhealth.jmir.org/, as well as this copyright and license information must be included.</p>
      </license>
      <self-uri xlink:href="https://mhealth.jmir.org/2024/1/e55094" xlink:type="simple"/>
      <abstract>
        <sec sec-type="background">
          <title>Background</title>
          <p>Personal sensing, leveraging data passively and near-continuously collected with wearables from patients in their ecological environment, is a promising paradigm to monitor mood disorders (MDs), a major determinant of the worldwide disease burden. However, collecting and annotating wearable data is resource intensive. Studies of this kind can thus typically afford to recruit only a few dozen patients. This constitutes one of the major obstacles to applying modern supervised machine learning techniques to MD detection.</p>
        </sec>
        <sec sec-type="objective">
          <title>Objective</title>
          <p>In this paper, we overcame this data bottleneck and advanced the detection of acute MD episodes from wearables’ data on the back of recent advances in self-supervised learning (SSL). This approach leverages unlabeled data to learn representations during pretraining, subsequently exploited for a supervised task.</p>
        </sec>
        <sec sec-type="methods">
          <title>Methods</title>
          <p>We collected open access data sets recording with the Empatica E4 wristband spanning different, unrelated to MD monitoring, personal sensing tasks—from emotion recognition in Super Mario players to stress detection in undergraduates—and devised a preprocessing pipeline performing on-/off-body detection, sleep/wake detection, segmentation, and (optionally) feature extraction. With 161 E4-recorded subjects, we introduced E4SelfLearning, the largest-to-date open access collection, and its preprocessing pipeline. We developed a novel E4-tailored transformer (E4mer) architecture, serving as the blueprint for both SSL and fully supervised learning; we assessed whether and under which conditions self-supervised pretraining led to an improvement over fully supervised baselines (ie, the fully supervised E4mer and pre–deep learning algorithms) in detecting acute MD episodes from recording segments taken in 64 (n=32, 50%, acute, n=32, 50%, stable) patients.</p>
        </sec>
        <sec sec-type="results">
          <title>Results</title>
          <p>SSL significantly outperformed fully supervised pipelines using either our novel E4mer or extreme gradient boosting (XGBoost): n=3353 (81.23%) against n=3110 (75.35%; E4mer) and n=2973 (72.02%; XGBoost) correctly classified recording segments from a total of 4128 segments. SSL performance was strongly associated with the specific surrogate task used for pretraining, as well as with unlabeled data availability.</p>
        </sec>
        <sec sec-type="conclusions">
          <title>Conclusions</title>
          <p>We showed that SSL, a paradigm where a model is pretrained on unlabeled data with no need for human annotations before deployment on the supervised target task of interest, helps overcome the annotation bottleneck; the choice of the pretraining surrogate task and the size of unlabeled data for pretraining are key determinants of SSL success. We introduced E4mer, which can be used for SSL, and shared the E4SelfLearning collection, along with its preprocessing pipeline, which can foster and expedite future research into SSL for personal sensing.</p>
        </sec>
      </abstract>
      <kwd-group>
        <kwd>mood disorder</kwd>
        <kwd>time-series classification</kwd>
        <kwd>wearable</kwd>
        <kwd>personal sensing</kwd>
        <kwd>deep learning</kwd>
        <kwd>self-supervised learning</kwd>
        <kwd>transformer</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec sec-type="introduction">
      <title>Introduction</title>
      <p>Mood disorders (MDs) are a group of mental health conditions in the <italic>Diagnostic and Statistical Manual, Fifth Edition</italic> (DSM-5) classification system [<xref ref-type="bibr" rid="ref1">1</xref>]. They are chronic, recurrent disorders featuring disturbances in emotions, energy, and thought, standing out as a leading cause of worldwide disability [<xref ref-type="bibr" rid="ref2">2</xref>,<xref ref-type="bibr" rid="ref3">3</xref>] and suicidality [<xref ref-type="bibr" rid="ref4">4</xref>]. Timely recognition of MD episodes is critical toward better outcomes [<xref ref-type="bibr" rid="ref5">5</xref>]. However, this is challenging due to generally limited patient insight [<xref ref-type="bibr" rid="ref6">6</xref>], compounded with the low availability of specialized care for MDs, with rising demand straining current capacity [<xref ref-type="bibr" rid="ref7">7</xref>,<xref ref-type="bibr" rid="ref8">8</xref>].</p>
      <p>Personal sensing, involving the use of machine learning (ML) to harness data passively and near-continuously collected with wearable devices from patients in their ecological environment, has been attracting interest as a promising paradigm to address this gap [<xref ref-type="bibr" rid="ref9">9</xref>]. Indeed, some of the core MD clinical features (eg, disturbance in mood and energy levels) translate into changes in physiological parameters measurable with wearable devices [<xref ref-type="bibr" rid="ref10">10</xref>-<xref ref-type="bibr" rid="ref12">12</xref>]. A major barrier to the development of clinical decision support systems featuring personal sensing has been the scarcity of labeled data, that is, data with annotations by clinicians about the MD state (eg, diagnosis, disease phase, symptom severity). Collecting and annotating data for personal sensing in MDs is, indeed, an expensive and time-consuming enterprise; thus, studies typically use samples running into only a few dozen patients [<xref ref-type="bibr" rid="ref13">13</xref>-<xref ref-type="bibr" rid="ref20">20</xref>].</p>
      <p>In this work, we took a different perspective and leveraged <italic>unlabeled</italic> data collected with the Empatica E4 (hereafter E4) wristband [<xref ref-type="bibr" rid="ref21">21</xref>], a popular research-grade device for personal sensing studies [<xref ref-type="bibr" rid="ref22">22</xref>], as well as recent advancements in self-supervised learning (SSL) techniques that can learn meaningful representations from such unlabeled data. Specifically, we took advantage of open access data sets that record physiological data with the E4 across different settings but do not address MDs and therefore do not provide information about the mood state of the subjects involved. Although each such data set has only a limited number of subjects, our aggregated and preprocessed data set E4SelfLearning can break the labeled data bottleneck for personal sensing in MDs (<xref rid="figure1" ref-type="fig">Figure 1</xref>) [<xref ref-type="bibr" rid="ref23">23</xref>-<xref ref-type="bibr" rid="ref33">33</xref>].</p>
      <p>Fully supervised systems require vast amounts of data to train, thus limiting their application in different fields, such as health care, where amassing large, high-quality data sets is demanding in terms of time and human resources [<xref ref-type="bibr" rid="ref34">34</xref>]. Although previous studies on personal sensing for MDs have investigated different tasks, including acute MD episode detection [<xref ref-type="bibr" rid="ref13">13</xref>-<xref ref-type="bibr" rid="ref16">16</xref>], regression of a psychometric scale total score [<xref ref-type="bibr" rid="ref17">17</xref>-<xref ref-type="bibr" rid="ref19">19</xref>], and, more recently, multitask inference of all items in 2 commonly used psychometric scales [<xref ref-type="bibr" rid="ref35">35</xref>], they all developed their models in a fully supervised fashion (ie, they were trained on samples for which ground-truth labels were available). As a result, considering that obtaining clinical annotations from patients, especially when on an acute MD episode, is a challenging and expensive enterprise, the sample size is generally modest (eg, N=52 in Côté-Allard et al [<xref ref-type="bibr" rid="ref15">15</xref>], N=45 in Tazawa et al [<xref ref-type="bibr" rid="ref13">13</xref>], and N=31 in Pedrelli et al [<xref ref-type="bibr" rid="ref18">18</xref>]).</p>
      <p>SSL, in contrast, is a framework where the model creates proxy supervisory signals within the data themselves, therefore alleviating the annotation bottleneck and allowing us to repurpose existing unlabeled data sets [<xref ref-type="bibr" rid="ref36">36</xref>]. Specifically, SSL derives supervisory signals from the data themselves, thanks to pretext tasks, which are new supervised challenges, for example, imputing occluded parts of the input data. Through such preparatory pretext tasks, not requiring expert annotation, the model learns useful representations, partial solutions to the downstream target task of interest, for which only a comparatively small amount of annotated data are available [<xref ref-type="bibr" rid="ref37">37</xref>]. On the back of the great success of SSL in computer vision (CV) [<xref ref-type="bibr" rid="ref37">37</xref>] and natural language processing (NLP) [<xref ref-type="bibr" rid="ref38">38</xref>], and with encouraging findings in other health care applications [<xref ref-type="bibr" rid="ref39">39</xref>], we extended pioneering SSL works on multivariate time series [<xref ref-type="bibr" rid="ref40">40</xref>-<xref ref-type="bibr" rid="ref42">42</xref>] to personal sensing in MDs.</p>
      <p>In this work, we made the following contributions:</p>
      <list list-type="bullet">
        <list-item>
          <p>We gathered 11 open access data sets recording physiological data with an E4 wristband and developed a pipeline for preprocessing such data that performed on-/off-body detection, sleep/wake detection, segmentation, and (optionally) feature extraction. We made the preprocessing pipeline and the preprocessed data publicly available. This collection (E4SelfLearning), with 161 subjects, is the biggest open access data set to date. We believe that this effort can stimulate future research into SSL with multivariate time-series sensory data by removing 2 barriers, preprocessing and data availability.</p>
        </list-item>
        <list-item>
          <p>We proposed a novel E4-tailored transformer (E4mer) architecture (<xref rid="figure2" ref-type="fig">Figure 2</xref>) [<xref ref-type="bibr" rid="ref43">43</xref>] and showed that SSL is a viable paradigm, outperforming both fully supervised E4mer and classical machine learning (CML) models using handcrafted features in distinguishing acute MD episodes from clinical stability (euthymia in psychiatric parlance), that is, a time-series (binary) classification task.</p>
        </list-item>
        <list-item>
          <p>We investigated what makes SSL successful. Specifically, we compared 2 main pretext task designs (ie, masked prediction [MP] and transformation prediction [TP]) [<xref ref-type="bibr" rid="ref44">44</xref>], and for the best-performing routine, we studied its sensitivity to the unlabeled data availability in ablation analyses. We inspected learned embeddings and showed that they capture meaningful semantics about the underlying context (ie, sleep/wake status) and symptom severity.</p>
        </list-item>
      </list>
      <fig id="figure1" position="float">
        <label>Figure 1</label>
        <caption>
          <p>A total of ∼6254 hours (261 days) of unlabeled recordings from 252 subjects while awake were used for self-supervised pretraining. Unlabeled data comprised a collection of 11 open access data sets, whose aggregation we make publicly available (E4SelfLearning), along with part of the TIMEBASE/INTREPIBD study that was not relevant for the target task under investigation (ie, acute episode vs euthymia classification). Unlabeled data were passed through a model consisting of an encoder and a transform head for self-supervised pretraining; the pretrained encoder block was then retained for the target task, while the transform head was replaced with a new, randomly initialized classification head. ∗The target task (labeled) training set from the TIMEBASE/INTREPIBD study was also used during self-supervised pretraining. Further details on the data sets used in this study are available in Table S1 in Multimedia Appendix 1. ADARP: Alcohol and Drug Abuse Research Program; PGG-DaLia: PPG Dataset for Motion Compensation and Heart Rate Estimation in Daily Life Activities; TIMEBASE/INTREPIBD: Identifying Digital Biomarkers of Illness Activity in Bipolar Disorder/Identifying Digital Biomarkers of Illness Activity and Treatment Response in Bipolar Disorder; UE4W: Unlabeled Empatica E4 Wristband; WEEE: Wearable Human Energy Expenditure Estimation; WESAD: Wearable Stress and Affect Detection; WESD: Wearable Exam Stress Dataset.</p>
        </caption>
        <graphic xlink:href="mhealth_v12i1e55094_fig1.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
      </fig>
      <fig id="figure2" position="float">
        <label>Figure 2</label>
        <caption>
          <p>E4mer is a transformer model tailored to the Empatica E4 input data. E4mer consists of 3 sequential modules: (1) channel embeddings set in parallel, 1 for each Empatica E4 raw input channel (ie, acceleration<sub>x</sub>, acceleration<sub>y</sub>, acceleration<sub>z</sub>, BVP, EDA, TEMP), extracting features and mapping channels to tensors of dimensionality (B=batch size, N=time steps, F=number of filters) so that they can be conveniently concatenated along dimension F; (2) RM learning contextual representations of the input time steps within the input segment, thanks to the multihead self-attention mechanism; (3) classification head outputting probabilities for the 2 target classes (ie, acute MD episode and euthymia). SSL models used in our experiments featured the same E4mer architecture described before, where, however, the classification head was replaced with a transform head projecting onto a label space compatible with the pretext task at hand. BVP: blood volume pressure; E4mer: E4-tailored transformer; EDA: electrodermal activity; MD: mood disorder; MLP: multilayer perceptron; RM: representation module; SSL: self-supervised learning; TEMP: temperature.</p>
        </caption>
        <graphic xlink:href="mhealth_v12i1e55094_fig2.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
      </fig>
    </sec>
    <sec sec-type="methods">
      <title>Methods</title>
      <sec>
        <title>Study Sample</title>
        <sec>
          <title>The TIMEBASE/INTREPIBD Cohort</title>
          <p>Our target task was to distinguish acute MD episodes from euthymia using wearable data. We started from a data set for which we had labeled samples, the TIMEBASE/INTREPIBD (Identifying Digital Biomarkers of Illness Activity in Bipolar Disorder/Identifying Digital Biomarkers of Illness Activity and Treatment Response in Bipolar Disorder) cohort [<xref ref-type="bibr" rid="ref45">45</xref>]. A detailed description of the data collection campaign was given by Anmella et al [<xref ref-type="bibr" rid="ref45">45</xref>]. In brief, this was a prospective, exploratory, observational study conducted at the Hospital Clìnic, Barcelona, Spain. Patients with a DSM-5 diagnosis of either major depressive disorder (MDD) or bipolar disorder (BD) were enrolled either in the acute affective episode group (defined according to the “Structured Clinical Interview” for DSM-5 disorder criteria) or in the euthymia group (score≤7 on the Hamilton Depression Rating Scale-17 [<xref ref-type="bibr" rid="ref46">46</xref>] and the Young Mania Rating Scale [<xref ref-type="bibr" rid="ref47">47</xref>] for at least 8 weeks [<xref ref-type="bibr" rid="ref48">48</xref>], as confirmed with weekly ambulatory assessments). The former group had post–acute-phase follow-ups, which were, however, excluded from all analyses presented here. At the time of conducting this study, a total of 64 patients were available for the target task, half in the acute affective episode group and half in the euthymia group. Additionally, an extra 91 subjects (including healthy controls, subjects with schizophrenia, and subjects with a substance abuse disorder), whose status was not relevant to the target task, were available from the TIMEBASE/INTREPIBD cohort for self-supervised pretraining.</p>
          <p>Patients were interviewed by a psychiatrist collecting clinical demographics (<xref ref-type="table" rid="table1">Table 1</xref> and Table S2 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>) and were required to wear on their nondominant wrist an E4 wristband until the battery ran out (~48 hours). The E4 records 3D acceleration (sampling rate 32 Hz), blood volume pressure (BVP, sampling rate 64 Hz), electrodermal activity (EDA, sampling rate 4 Hz), heart rate (HR, sampling rate 1 Hz), interbeat interval (IBI, ie, the time between 2 consecutive heart ventricular contractions), and skin temperature (TEMP, sampling rate 1 Hz).</p>
          <p>As shown in <xref ref-type="table" rid="table1">Table 1</xref>, MD episodes clinically lie on a spectrum, with depression on one end and mania on the other; mixed episodes, featuring symptoms from both polarities, are a bridge between the 2 spectrum extremes. In this study, we considered acute MD episodes of any polarity, and similarly, we considered euthymia as a unique class, whether in the context of a BD or an MDD diagnosis. Medication classes administered to the cohort are shown in Table S2 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>; Bonferroni-corrected chi-square tests found no significant association between treatment status (being on a given drug class or not) and target class (acute affective episode vs euthymia).</p>
          <table-wrap position="float" id="table1">
            <label>Table 1</label>
            <caption>
              <p>Clinical-demographic features of the target task (acute affective episode vs euthymia classification) population (N=64).</p>
            </caption>
            <table width="1000" cellpadding="5" cellspacing="0" border="1" rules="groups" frame="hsides">
              <col width="30"/>
              <col width="460"/>
              <col width="280"/>
              <col width="230"/>
              <thead>
                <tr valign="top">
                  <td colspan="2">Features</td>
                  <td>Acute affective episode group (n=32)</td>
                  <td>Euthymia group (n=32)</td>
                </tr>
              </thead>
              <tbody>
                <tr valign="top">
                  <td colspan="2">Age (years), means (SD)</td>
                  <td>50.56 (13.05)</td>
                  <td>47.22 (16.06)</td>
                </tr>
                <tr valign="top">
                  <td colspan="2">Females, n (%)</td>
                  <td>15 (46.9%)</td>
                  <td>14 (43.8%)</td>
                </tr>
                <tr valign="top">
                  <td colspan="4">
                    <bold>MDE-BD<sup>a</sup></bold>
                  </td>
                </tr>
                <tr valign="top">
                  <td>
                    <break/>
                  </td>
                  <td>Patients, n (%)</td>
                  <td>9 (28.1)</td>
                  <td>—<sup>b</sup></td>
                </tr>
                <tr valign="top">
                  <td>
                    <break/>
                  </td>
                  <td>HDRS<sup>c</sup> score, mean (SD)</td>
                  <td>20.22 (6.34)</td>
                  <td>—</td>
                </tr>
                <tr valign="top">
                  <td>
                    <break/>
                  </td>
                  <td>YMRS<sup>d</sup> score, mean (SD)</td>
                  <td>2.56 (3.94)</td>
                  <td>—</td>
                </tr>
                <tr valign="top">
                  <td colspan="4">
                    <bold>MDE-MDD<sup>e</sup></bold>
                  </td>
                </tr>
                <tr valign="top">
                  <td>
                    <break/>
                  </td>
                  <td>Patients, n (%)</td>
                  <td>7 (21.9)</td>
                  <td>—</td>
                </tr>
                <tr valign="top">
                  <td>
                    <break/>
                  </td>
                  <td>HDRS score, mean (SD)</td>
                  <td>25.14 (4.78)</td>
                  <td>—</td>
                </tr>
                <tr valign="top">
                  <td>
                    <break/>
                  </td>
                  <td>YMRS score, mean (SD)</td>
                  <td>1.86 (2.41)</td>
                  <td>—</td>
                </tr>
                <tr valign="top">
                  <td colspan="4">
                    <bold>ME<sup>f</sup></bold>
                  </td>
                </tr>
                <tr valign="top">
                  <td>
                    <break/>
                  </td>
                  <td>Patients, n (%)</td>
                  <td>14 (43.8)</td>
                  <td>—</td>
                </tr>
                <tr valign="top">
                  <td>
                    <break/>
                  </td>
                  <td>HDRS score, mean (SD)</td>
                  <td>5.67 (4.37)</td>
                  <td>—</td>
                </tr>
                <tr valign="top">
                  <td>
                    <break/>
                  </td>
                  <td>YMRS score, mean (SD)</td>
                  <td>20.13 (6.28)</td>
                  <td>—</td>
                </tr>
                <tr valign="top">
                  <td colspan="4">
                    <bold>MX<sup>g</sup></bold>
                  </td>
                </tr>
                <tr valign="top">
                  <td>
                    <break/>
                  </td>
                  <td>Patients, n (%)</td>
                  <td>2 (6.2)</td>
                  <td>—</td>
                </tr>
                <tr valign="top">
                  <td>
                    <break/>
                  </td>
                  <td>HDRS score, mean (SD)</td>
                  <td>16 (4.24)</td>
                  <td>—</td>
                </tr>
                <tr valign="top">
                  <td>
                    <break/>
                  </td>
                  <td>YMRS score, mean (SD)</td>
                  <td>13.5 (4.95)</td>
                  <td>—</td>
                </tr>
                <tr valign="top">
                  <td colspan="4">
                    <bold>BD<sup>h</sup></bold>
                  </td>
                </tr>
                <tr valign="top">
                  <td>
                    <break/>
                  </td>
                  <td>Patients, n (%)</td>
                  <td>—</td>
                  <td>26 (81.3)</td>
                </tr>
                <tr valign="top">
                  <td>
                    <break/>
                  </td>
                  <td>HDRS score, mean (SD)</td>
                  <td>—</td>
                  <td>2.93 (1.73)</td>
                </tr>
                <tr valign="top">
                  <td>
                    <break/>
                  </td>
                  <td>YMRS score, mean (SD)</td>
                  <td>—</td>
                  <td>1.3 (1.61)</td>
                </tr>
                <tr valign="top">
                  <td colspan="4">
                    <bold>MDD<sup>i</sup></bold>
                  </td>
                </tr>
                <tr valign="top">
                  <td>
                    <break/>
                  </td>
                  <td>Patients, n (%)</td>
                  <td>—</td>
                  <td>6 (18.7)</td>
                </tr>
                <tr valign="top">
                  <td>
                    <break/>
                  </td>
                  <td>HDRS score, mean (SD)</td>
                  <td>—</td>
                  <td>3.14 (1.95)</td>
                </tr>
                <tr valign="top">
                  <td>
                    <break/>
                  </td>
                  <td>YMRS score, mean (SD)</td>
                  <td>—</td>
                  <td>0.29 (0.76)</td>
                </tr>
              </tbody>
            </table>
            <table-wrap-foot>
              <fn id="table1fn1">
                <p><sup>a</sup>MDE-BD: major depressive episode in bipolar disorder.</p>
              </fn>
              <fn id="table1fn2">
                <p><sup>b</sup>Not applicable.</p>
              </fn>
              <fn id="table1fn3">
                <p><sup>c</sup>HDRS: Hamilton Depression Rating Scale-17.</p>
              </fn>
              <fn id="table1fn4">
                <p><sup>d</sup>YMRS: Young Mania Rating Scale.</p>
              </fn>
              <fn id="table1fn5">
                <p><sup>e</sup>MDE-MDD: major depressive episode in major depressive disorder.</p>
              </fn>
              <fn id="table1fn6">
                <p><sup>f</sup>ME: manic episode.</p>
              </fn>
              <fn id="table1fn7">
                <p><sup>g</sup>MX: mixed episode.</p>
              </fn>
              <fn id="table1fn8">
                <p><sup>h</sup>BD: bipolar disorder.</p>
              </fn>
              <fn id="table1fn9">
                <p><sup>i</sup>HDRS: Hamilton Depression Rating Scale-17.</p>
              </fn>
            </table-wrap-foot>
          </table-wrap>
        </sec>
        <sec>
          <title>E4SelfLearning</title>
          <p>For self-supervised pretraining, we gathered 11 open access data sets recording with an E4 [<xref ref-type="bibr" rid="ref23">23</xref>-<xref ref-type="bibr" rid="ref33">33</xref>]. Although they all used the same hardware, software, and firmware, such data sets could differ substantially for population, recording setting, and task: from students taking exams [<xref ref-type="bibr" rid="ref29">29</xref>] or attending classes [<xref ref-type="bibr" rid="ref31">31</xref>] to nurses carrying out their duty [<xref ref-type="bibr" rid="ref30">30</xref>] and subjects performing different physical activities [<xref ref-type="bibr" rid="ref28">28</xref>] or playing Super Mario [<xref ref-type="bibr" rid="ref27">27</xref>]. Subjects that were not part of the target classes from the TIMEBASE/INTREPIBD study were also included in the unlabeled data for SSL.</p>
        </sec>
      </sec>
      <sec>
        <title>Data Preprocessing</title>
        <p>Our preprocessing encompassed the following sequential stages: on-/off-body detection, sleep/wake detection, segmentation, and (when preparing data for CML models) feature extraction.</p>
        <p>During free-living wear, subjects might remove their device or contact with the wrist might be suboptimal. As a result, off-body periods can be erroneously mistaken for periods of sleep or sedentary behavior, due to the shared feature of an absence of movement. Signal discontinuity in biopotentials, such as EDA, due to a lack of skin contact can be reliably leveraged to detect nonwear periods. As shown by Vieluf et al [<xref ref-type="bibr" rid="ref49">49</xref>] and Nasseri et al [<xref ref-type="bibr" rid="ref50">50</xref>], we considered measurements less than 0.05 µS as indicative of off-body status. Furthermore, as we noticed occurrences of values greater than the EDA sensor range (ie, 100 µS [<xref ref-type="bibr" rid="ref51">51</xref>]), as well as instances of TEMP values outside the physiological range (30°C-40°C), we set both to off-body.</p>
        <p>As physiological data vary wildly across sleep and wake statuses, we used sleep/wake detection as a form of data cleaning to reduce the variance in the signal and considered only the wake time in our analyses, especially as most publicly available data sets are recorded in wake conditions. We opted for the algorithm developed by Van Hees et al (<italic>Van Hees</italic>) [<xref ref-type="bibr" rid="ref52">52</xref>], which was reported as the best-performing algorithm in a recent benchmark study on sleep/wake detection (average <italic>F</italic><sub>1</sub>-score=79.1) [<xref ref-type="bibr" rid="ref53">53</xref>]. Like most nonproprietary algorithms, Van Hees uses triaxial acceleration and, specifically, relies on a simple heuristic defining sleep with the absence of a change in the arm angle &gt;5° for 5 minutes or more. To accommodate this rule, wherever on-body sampling cycles did not constitute unbroken sequences of at least a 5-minute duration, all the measurements in that period were considered as off-body and discarded from further analysis.</p>
        <p>The wake time from each recording was then segmented with a sliding window, whose segment length (ω) and step size (∆ω) were set to 512 and 128 seconds, respectively. This approach, also referred to as window slicing [<xref ref-type="bibr" rid="ref54">54</xref>], is a common form of data augmentation in time-series classification as multiple segments are produced from a single recording, each one marked with the same label, and is common in personal sensing for MDs. Previous relevant works [<xref ref-type="bibr" rid="ref15">15</xref>,<xref ref-type="bibr" rid="ref18">18</xref>,<xref ref-type="bibr" rid="ref55">55</xref>] have defined ω (∆ω) based on clinical intuition and convenience concerning the available data. Another work [<xref ref-type="bibr" rid="ref35">35</xref>] investigating the regression of HDRS and the YMRS items found the optimal ω through tuning, a computationally expensive approach in our setting; however, it showed that ω was not among the most important hyperparameters for the task at hand. Here, we opted for 512 seconds (~8.5 minutes, conveniently a power of 2 for computational efficiency in binary computers), similar to the 5-minute intervals used by Panagiotou et al [<xref ref-type="bibr" rid="ref55">55</xref>] for training neural autoencoder architectures on anomaly detection by reconstruction error estimation. Our choice was a trade-off between clinical insight and technical constraints. Clinical intuition suggests that too small a value of ω may be ill suited to capture enough information toward acute affective episode versus euthymia discrimination. However, unlabeled data sets used for self-supervised pretraining recorded relatively short sessions (eg 1 hour [<xref ref-type="bibr" rid="ref26">26</xref>]). As both CML and deep learning models are trained on individual segments and too long a segment length equates to fewer training data points, a 512-second-long segment allowed us to have enough data for developing ML models [<xref ref-type="bibr" rid="ref55">55</xref>].</p>
        <p>Recording segments constituted our basic unit of analysis, and for the target task, segments from the same recording all shared the same ground-truth label (ie, either acute affective episode or euthymia). When fed to deep learning models, segments were channel-wise standardized by subtracting the mean and dividing by the SD. Such statistics were learned from the target task training set or, in the case of SSL, its aggregation with unlabeled data. Acceleration, the BVP, EDA, and TEMP were considered in deep learning models, while the HR and the IBI, as features derived from the BVP through a proprietary algorithm, were excluded from the deep learning experiments shown here (see <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>). However, when using CML, handcrafted features were extracted from segments using <italic>FLIRT</italic> [<xref ref-type="bibr" rid="ref56">56</xref>], a popular open access feature extraction toolkit for the E4. Note that a single row of features per segment was extracted; in other words, the window size parameter in FLIRT was set equal to ω. We used all features available through this package, derived with the <italic>flirt.acc.get_acc_features</italic> (eg, acceleration entropy), <italic>flirt.eda.get_eda_features</italic> (eg, tonic and phasic EDA components), and <italic>flirt.hrv.get_hrv_features</italic> (eg, HR and HR variability measures) functions. As FLIRT does provide built-in functions for TEMP, we also extracted the segment mean (SD) for this channel. Any missing value was handled with mean imputation. The percentage rate of missing values had a range of 0-37.31, with a mean of 10.44 (SD 16.78).</p>
      </sec>
      <sec>
        <title>Data Splits and Metrics</title>
        <p>In SSL experiments, we split unlabeled data in a ratio of 85:15 into train and validation sets, partitioning recordings across the 2 sets. For the target task, we investigated a time-split scenario, therefore splitting each recording into train, validation, and test sets again in a ratio of 70:15:15 along the recording time, thus testing generalization across future time points. We made sure that segments with overlapping motifs at the border between target task splits (resulting from using a sliding window with ∆ω&lt;ω) were confined to 1 split only, thus ultimately producing 18896, 3904, and 4128 segments for the train, validation, and test sets. The target task validation set doubled as a test set for estimating generalization performance on the SSL pretext task. The time-split scenario is common in personal sensing for MDs (eg, [<xref ref-type="bibr" rid="ref18">18</xref>,<xref ref-type="bibr" rid="ref35">35</xref>]), and indeed, despite efforts toward learning subject-invariant representations [<xref ref-type="bibr" rid="ref57">57</xref>,<xref ref-type="bibr" rid="ref58">58</xref>], cross-subject generalization remains an unsolved challenge, so personal sensing systems typically require access to each subject’s physiological data distribution at training time [<xref ref-type="bibr" rid="ref59">59</xref>].</p>
        <p>The target task was a time-series binary classification. As expected in free-living wear, the total wear time and the off-body and wake times varies across subjects (and, as a result, so did the number of segments). Two-tailed <italic>t</italic> tests were performed to verify significant mean differences in off-body and wake times across individuals from the 2 target classes (acute affective episode and euthymia) but yielded a Bonferroni-corrected P value of &gt;.05 (P=.56 for off-body time and P=.82 for wake time). An equal number of segments from each class was extracted for the target task. To that end, we found the pairing of euthymia and acute affective episode recordings that minimized the pairwise difference between the number of segments available per participant; next, within each pair, the first n segments were retained, where n is the number of segments of the shortest recording in the pair. We optimized models on the target task for segment-level accuracy (ACC<sub>segment</sub>). Second, to provide a subject-level perspective, we reported the subject ACC:</p>
        <disp-formula>
          <graphic xlink:href="mhealth_v12i1e55094_fig6.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </disp-formula>
        <p>where y<sub>s</sub> is the ground-truth mood state of the s-th subject, which is constant across all the s-th subject’s recording segments, and <inline-graphic xlink:href="mhealth_v12i1e55094_fig7.png" xlink:type="simple" mimetype="image"/> is a majority vote on the s-th subject, corresponding to the majority predicted class across the s-th subject’s recording segments.</p>
      </sec>
      <sec>
        <title>Machine Learning Models</title>
        <p>We developed 2 types of baselines for the target task: (1) an E4-tailored deep learning pipeline inputting raw recording segments (E4mer) and (2) CML models using handcrafted features extracted with FLIRT from recording segments. We then assessed what boost in performance, if any, a self-supervised pretraining phase might deliver, where the SSL models shared the same building blocks as E4mer.</p>
        <sec>
          <title>Baseline Models</title>
          <sec>
            <title>E4-Tailored Transformer</title>
            <p>E4mer is an artificial neural network discriminative classifier modeling the probability of an acute MD episode, given a recording segment. As shown in <xref rid="figure2" ref-type="fig">Figure 2</xref>, E4mer has 3 sequential blocks: (1) channel embeddings (CEs) set in parallel, consisting of the same 1D convolutions with a kernel size equal to the channel sampling frequency, followed by Gaussian error linear unit (Gelu) activation, 1D BatchNorm, and 1D MaxPooling using the channel sampling frequency as both kernel size and step size, so each CE output has the same dimensionality and can be conveniently concatenated with the others before being passed onto (2) a transformer [<xref ref-type="bibr" rid="ref43">43</xref>] representation module (RM), and (3) a multilayer perceptron (MLP) classification head (H<sub>sl</sub>). The CEs extract features from the input E4 channels and are designed to handle channels sampled at different frequencies; the RM, powered by multihead self-attention, learns contextual representations of the input tokens (timestamps in our case) within a recording segment; lastly, the H<sub>sl</sub> maps such representations onto a label space appropriate for a binary classification. E4mer was trained to minimize the binary cross-entropy (BCE) loss between acute affective episode/euthymia predictions and the corresponding ground truth.</p>
          </sec>
          <sec>
            <title>Classical Machine Learning</title>
            <p>We experimented with the following algorithms, given their popularity and state-of-the-art performance in biomedical applications [<xref ref-type="bibr" rid="ref60">60</xref>], including personal sensing [<xref ref-type="bibr" rid="ref13">13</xref>,<xref ref-type="bibr" rid="ref14">14</xref>]: elastic net logistic regression (ENET), K-nearest neighbor (KNN), support vector machine (SVM), and extreme gradient boosting (XGBoost).</p>
          </sec>
        </sec>
      </sec>
      <sec>
        <title>Self-Supervised Learning Schemes</title>
        <p>SSL schemes rely on devising a pretext task, for which a (relatively) large amount of unlabeled data is available, conducive to learning, during a pretraining phase, representations useful to solve the downstream target task [<xref ref-type="bibr" rid="ref44">44</xref>]. What defines an SSL paradigm is thus its pretext task, consisting of a process, P, to generate pseudo labels and an objective to guide the pretraining. An SSL model typically consists of (1) an encoder EN(x;θ): X-&gt;V, learning a mapping from input views <inline-graphic xlink:href="mhealth_v12i1e55094_fig8.png" xlink:type="simple" mimetype="image"/> to a representation vector <inline-graphic xlink:href="mhealth_v12i1e55094_fig9.png" xlink:type="simple" mimetype="image"/>, and (2) a transform head H<sub>ssl</sub>(υ;ξ): V-&gt; Z, projecting the feature embedding into a label space <inline-graphic xlink:href="mhealth_v12i1e55094_fig10.png" xlink:type="simple" mimetype="image"/> compatible with the pretext task at hand. When solving the target task, the pretrained encoder EN is retained as a partial solution to the target problem, whereas the pretrained transform head H<sub>ssl</sub> is discarded and replaced with a new one, H<sub>sl</sub>. Next, EN’s parameter θ may be kept fixed and only H<sub>sl</sub>’s parameters may be learned on the target task. This approach, often referred to as <italic>linear readout</italic> (LR), amounts to treating EN as a frozen feature extractor. Alternatively, instead of just training a new head, the entire network may be retrained on the target task, initializing EN’s parameter θ to the values learned during self-supervised pretraining, a paradigm known as <italic>fine-tuning</italic> (FT). Our SSL models used the same architecture as E4mer, that is, an encoder EN, consisting of convolutional CEs, followed by a transformer RM, and an MLP for the transform head H<sub>ssl</sub>. The success of SSL methods largely comes from designing appropriate pretext tasks that produce representations useful for the downstream target task. This usually involves domain knowledge of the target task. We investigated how different pretext tasks affected downstream performance, experimenting with 2 popular SSL routines that have shown success in other applications: MP and TP.</p>
        <sec>
          <title>Masked Prediction</title>
          <p>This family of SSL methods is characterized by training the model to impute data that have been removed or corrupted by P. It relies on the assumption that context can be used to infer some types of missing information in the data if the domain is well modeled. This strategy was popularized by the huge success of bidirectional encoder representations from transformers (BERT) [<xref ref-type="bibr" rid="ref38">38</xref>] in NLP applications, and 1 of the first adaptations to multivariate time-series classification was proposed by Zerveas et al [<xref ref-type="bibr" rid="ref41">41</xref>]. Similar to their implementation, for each segment channel, we sampled a Boolean mask where the sequences of 0s and 1s were sampled from geometric distributions with means of l<sub>0</sub> and l<sub>1</sub>, respectively, with:</p>
          <disp-formula>
            <graphic xlink:href="mhealth_v12i1e55094_fig11.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
          </disp-formula>
          <p>where r is the masking ratio. As shown by Zerveas et al [<xref ref-type="bibr" rid="ref41">41</xref>], the average length of the 0 sequences (l<sub>m</sub>) and the proportion of masked values (r) were set to 3 seconds and 0.15, respectively. Each segment channel was then multiplied by its corresponding mask, effectively setting to 0 some of the channel-recorded measurements, and inputted to a model that was tasked to recover the original channel values. This was done by minimizing the root mean square error (RMSE) between the masked original value x(t, c) and its reconstruction outputted by the network <inline-graphic xlink:href="mhealth_v12i1e55094_fig12.png" xlink:type="simple" mimetype="image"/>:</p>
          <disp-formula>
            <graphic xlink:href="mhealth_v12i1e55094_fig13.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
          </disp-formula>
          <p>where c and t, respectively, index the channels, and the timestamps of the 0 values in the masks M and |M| are the total number of 0s sampled (ie, the masks’ cardinality).</p>
        </sec>
        <sec>
          <title>Transformation Prediction</title>
          <p>We followed the implementation shown by Wu et al [<xref ref-type="bibr" rid="ref42">42</xref>], which used SSL for a target task of emotion recognition with E4 recordings. In brief, for each channel, 1 of 6 transformations (ie, identity, Gaussian noise addition, magnitude warping, permutation, time warping, and cropping) was sampled uniformly at random and then applied. The transformed segment was then inputted into a model, which was tasked to guess, for each channel, which of the 6 transformations was applied. This amounted to a multitask, multiclass classification, where the model was trained to minimize channel average categorical cross-entropy (CCE):</p>
          <disp-formula>
            <graphic xlink:href="mhealth_v12i1e55094_fig14.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
          </disp-formula>
          <p>where c indexes the channels and j the transformations, 1<sub>i,j</sub> is an indicator taking value 1 when j is the correct transformation for channel c and 0 otherwise, and p<sub>c,j</sub> denotes the predicted probability that transformation j was applied to channel c. By solving this task, Wu et al [<xref ref-type="bibr" rid="ref42">42</xref>] argued that the model learns representations robust to disturbances in the magnitude and time domains.</p>
        </sec>
      </sec>
      <sec>
        <title>Tuning</title>
        <p>A hyperparameter search for all models was carried out with hyperband Bayesian optimization [<xref ref-type="bibr" rid="ref61">61</xref>]. For the target task, we selected the setting yielding the highest ACC<sub>segment</sub> in the validation set, whereas in self-supervised pretraining, we selected hyperparameters associated with the lowest relevant loss in the validation pretraining set. <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref> shows the hyperparameter search space and the best configuration across all models. Deep learning models were trained with the AdamW optimizer for a maximum of 300 epochs, with a batch size of 256. Moreover, to speed up the training and search procedure, we used an early stopping learning rate scheduler: we reduced the learning rate α<sub>LR</sub> by a factor of 0.3 if the model did not improve in its validation performance after 10 consecutive epochs, and we terminated the training procedure if the model did not improve after 2 learning rate reductions. Dropout [<xref ref-type="bibr" rid="ref62">62</xref>] and weight decay were added to prevent overfitting.</p>
      </sec>
      <sec>
        <title>Post hoc Analyses</title>
        <p>Toward elucidating key contributors to the viability of SSL, in addition to comparing different pretext task designs, we studied how (1) progressively downsampling unlabeled data sets or (2) removing each data set in turn from the unlabeled collection might impact the performance of our best SSL model. Thus, using the most performative self-supervised scheme, we retrained the SSL model from scratch under configurations (1) and (2) and then tested it on the target task. Note that in both settings, the entire target task training set was kept for pretraining; this is because pretraining on the training set can be always performed at no extra cost in terms of data acquisition. Lastly, we conducted statistical tests to better appreciate how the self-supervised E4mer compared against its fully supervised counterpart and the best-performing CML algorithm and how it was affected by different ablations. Based on whether we considered either (1) recording segments or (2) subjects as our basic analysis units, we had 2 different hypotheses. In (1), we used a linear mixed effects (LME) model to analyze the difference in correct class probabilities between the SSL model and each comparator, considering subjects as a random effect. This accounted for the nested structure of the data, where segments were sampled from individual subjects. A fixed effects intercept was included to test a 0 mean difference between the classifiers at the population level. Additionally, as the ML models we implemented, like most state-of-the-art algorithms [<xref ref-type="bibr" rid="ref63">63</xref>], effectively treat segments as independent and identically distributed, we used a 2-tailed paired <italic>t</italic> test to assess whether a 0 mean difference in the probability assigned to the correct class was 0. In (2), we checked with a 2-tailed paired <italic>t</italic> test whether the between-classifiers mean difference in the ACC<sub>segment</sub> by subject was different from 0. To account for multiple testing, within both (1) and (2), a Bonferroni correction was applied. The number of tests was 19, that is, 17 different ablation settings plus 2 tests comparing the best baselines (fully supervised E4mer and the best CML) to SSL.</p>
      </sec>
      <sec>
        <title>Code Used</title>
        <p>Python 3.10 programming language was used where deep learning and CML models were implemented in PyTorch [<xref ref-type="bibr" rid="ref64">64</xref>] and Scikit-learn [<xref ref-type="bibr" rid="ref65">65</xref>]/XGBoost [<xref ref-type="bibr" rid="ref66">66</xref>] respectively, while hyperparameter tuning was performed in both cases with weights and biases [<xref ref-type="bibr" rid="ref67">67</xref>]. The best hyperparameter setting found during tuning for each model is reported in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>. All deep learning models were trained on a single Nvidia A100 graphical processing unit (GPU).</p>
      </sec>
      <sec>
        <title>Ethical Considerations</title>
        <p>The TIMEBASE/INTREPIBD study was conducted in accordance with the ethical principles of the Declaration of Helsinki and Good Clinical Practice and the Hospital Clinic Ethics and Research Board (HCB/2021/104). All participants provided written informed consent prior to their inclusion in the study. All data were collected anonymously and stored encrypted in servers complying with the General Data Protection Regulation (GDPR) and the Health Insurance Portability and Accountability Act (HIPAA). Regarding other studies included in this work, we referred to relevant publications.</p>
      </sec>
    </sec>
    <sec sec-type="results">
      <title>Results</title>
      <sec>
        <title>Surrogate Tasks Used in Self-Supervised Pretraining</title>
        <p>The same model, using the E4mer architecture (<xref rid="figure2" ref-type="fig">Figure 2</xref>), was used across different pretext tasks. <xref rid="figure3" ref-type="fig">Figure 3</xref> illustrates the surrogate tasks we experimented with. In MP (<xref rid="figure3" ref-type="fig">Figure 3</xref>a), parts of the input segments were zeroed out by multiplication with a Boolean mask sampled, as shown by Zerveas et al [<xref ref-type="bibr" rid="ref41">41</xref>], and the model was trained to recover the original input segments. Although the model output entire segments, only the masked values were considered toward the loss computation, that is, the RMSE. The assumption was that the model acquires good representations of the underlying structure of the data when learning to solve this task. Our best model had an error of 0.1347 on the test set (notice that input segments were channel-wise standardized).</p>
        <p>In TP (<xref rid="figure3" ref-type="fig">Figure 3</xref>b), 1 transformation was sampled from a set and applied to each channel independently, and the model learned which transformation each channel underwent, minimizing the channel average CCE. We used the same transformations as Wu et al [<xref ref-type="bibr" rid="ref42">42</xref>], who experimented with an E4 for a downstream task of emotion recognition. The rationale was to encourage robustness against signal disturbances introduced with the transformations. The test loss of the selected model was 0.5000.</p>
        <fig id="figure3" position="float">
          <label>Figure 3</label>
          <caption>
            <p/>
          </caption>
          <graphic xlink:href="mhealth_v12i1e55094_fig3.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </fig>
      </sec>
      <sec>
        <title>Target Task Performance Comparison</title>
        <p><xref ref-type="table" rid="table2">Table 2</xref> illustrates the performance under each model we developed. Although they were all optimized for segment ACC, we also reported subject ACC since in a clinical scenario, a decision needs to be made at the subject level. Note that although ACC was a suitable metric in our use case as data were perfectly balanced, we also provided complementary metrics (precision, recall, <italic>F</italic><sub>1</sub>-score, and area under the receiver operating characteristic curve [AUROC]), both at the segment and at the patient level. At the subject level, the predicted class was the result of a majority vote over that subject’s segments, while the predicted probabilities under each class were derived by summing segments’ predicted probabilities for that subject and normalizing by the corresponding segment number. MP self-supervised pretraining comfortably outperformed end-to-end SSL, while also surpassing other self-supervised approaches.</p>
        <table-wrap position="float" id="table2">
          <label>Table 2</label>
          <caption>
            <p>Performance in differentiating an acute MD<sup>a</sup> episode from euthymia across different models.</p>
          </caption>
          <table width="1000" cellpadding="5" cellspacing="0" border="1" rules="groups" frame="hsides">
            <col width="30"/>
            <col width="170"/>
            <col width="80"/>
            <col width="80"/>
            <col width="0"/>
            <col width="80"/>
            <col width="80"/>
            <col width="0"/>
            <col width="80"/>
            <col width="80"/>
            <col width="0"/>
            <col width="80"/>
            <col width="80"/>
            <col width="0"/>
            <col width="80"/>
            <col width="80"/>
            <thead>
              <tr valign="top">
                <td rowspan="2" colspan="2">Model</td>
                <td colspan="3">ACC<sup>b</sup></td>
                <td colspan="3">Precision</td>
                <td colspan="3">Recall</td>
                <td colspan="3"><italic>F</italic><sub>1</sub> score</td>
                <td colspan="2">AUROC<sup>c</sup></td>
              </tr>
              <tr valign="top">
                <td>Segment</td>
                <td>Subject</td>
                <td colspan="2">Segment</td>
                <td>Subject</td>
                <td colspan="2">Segment</td>
                <td>Subject</td>
                <td colspan="2">Segment</td>
                <td>Subject</td>
                <td colspan="2">Segment</td>
                <td>Subject</td>
              </tr>
            </thead>
            <tbody>
              <tr valign="top">
                <td colspan="16">
                  <bold>SL<sup>d</sup></bold>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>ENET<sup>e</sup></td>
                <td>66.38</td>
                <td>71.88</td>
                <td colspan="2">66.22</td>
                <td>75</td>
                <td colspan="2">66.86</td>
                <td>65.63</td>
                <td colspan="2">66.54</td>
                <td>70</td>
                <td colspan="2">72.24</td>
                <td>82.25</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>KNN<sup>f</sup></td>
                <td>70.37</td>
                <td>82.81</td>
                <td colspan="2">69.09</td>
                <td>80</td>
                <td colspan="2">73.74</td>
                <td>81.2</td>
                <td colspan="2">71.34</td>
                <td>80.6</td>
                <td colspan="2">73.27</td>
                <td>83.26</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>SVM<sup>g</sup></td>
                <td>71.25</td>
                <td>81.25</td>
                <td colspan="2">71.87</td>
                <td>80</td>
                <td colspan="2">71.40</td>
                <td>77.65</td>
                <td colspan="2">71.63</td>
                <td>78.81</td>
                <td colspan="2">73.44</td>
                <td>83.21</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>XGBoost<sup>h</sup></td>
                <td>72.02</td>
                <td>82.81</td>
                <td colspan="2">71.33</td>
                <td>83</td>
                <td colspan="2">72.11</td>
                <td>81.1</td>
                <td colspan="2">71.72</td>
                <td>82.03</td>
                <td colspan="2">72.44</td>
                <td>83.17</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>E4mer<sup>i</sup></td>
                <td>75.35</td>
                <td>81.25</td>
                <td colspan="2">73.46</td>
                <td>80.55</td>
                <td colspan="2">75.34</td>
                <td>82.14</td>
                <td colspan="2">74.39</td>
                <td>81.33</td>
                <td colspan="2">75.68</td>
                <td>82.22</td>
              </tr>
              <tr valign="top">
                <td colspan="16">
                  <bold>SSL<sup>j</sup></bold>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>MP<sup>k</sup> (LR<sup>l</sup>)</td>
                <td>77.53</td>
                <td>87.5</td>
                <td colspan="2">78.34</td>
                <td>88.6</td>
                <td colspan="2">77.41</td>
                <td>88</td>
                <td colspan="2">77.87</td>
                <td>88.3</td>
                <td colspan="2">78.02</td>
                <td>89.2</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>MP (FT<sup>m</sup>)</td>
                <td>81.23<sup>n</sup></td>
                <td>90.63<sup>n</sup></td>
                <td colspan="2">80.91<sup>n</sup></td>
                <td>90.11<sup>n</sup></td>
                <td colspan="2">82.00<sup>n</sup></td>
                <td>92.87<sup>n</sup></td>
                <td colspan="2">81.45<sup>n</sup></td>
                <td>91.47<sup>n</sup></td>
                <td colspan="2">82.02<sup>n</sup></td>
                <td>93.11<sup>n</sup></td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>TP<sup>o</sup> (LR)</td>
                <td>71.16</td>
                <td>81.25</td>
                <td colspan="2">72.12</td>
                <td>82.44</td>
                <td colspan="2">72.01</td>
                <td>82.31</td>
                <td colspan="2">72.06</td>
                <td>82.37</td>
                <td colspan="2">71.89</td>
                <td>84.12</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>TP (FT)</td>
                <td>75.69</td>
                <td>84.38</td>
                <td colspan="2">75.41</td>
                <td>82.11</td>
                <td colspan="2">74.79</td>
                <td>83.9</td>
                <td colspan="2">75.1</td>
                <td>83</td>
                <td colspan="2">75.21</td>
                <td>84.23</td>
              </tr>
            </tbody>
          </table>
          <table-wrap-foot>
            <fn id="table2fn1">
              <p><sup>a</sup>MD: mood disorder.</p>
            </fn>
            <fn id="table2fn2">
              <p><sup>b</sup>ACC: accuracy.</p>
            </fn>
            <fn id="table2fn3">
              <p><sup>c</sup>AUROC: area under the receiver operating characteristic curve.</p>
            </fn>
            <fn id="table2fn4">
              <p><sup>d</sup>SL: supervised learning.</p>
            </fn>
            <fn id="table2fn5">
              <p><sup>e</sup>ENET: elastic net logistic regression.</p>
            </fn>
            <fn id="table2fn6">
              <p><sup>f</sup>KNN: K-nearest neighbor.</p>
            </fn>
            <fn id="table2fn7">
              <p><sup>g</sup>SVM: support vector machine.</p>
            </fn>
            <fn id="table2fn8">
              <p><sup>h</sup>XGBoost: extreme gradient boosting.</p>
            </fn>
            <fn id="table2fn9">
              <p><sup>i</sup>E4mer: E4-tailored transformer.</p>
            </fn>
            <fn id="table2fn10">
              <p><sup>j</sup>SSL: self-supervised learning</p>
            </fn>
            <fn id="table2fn11">
              <p><sup>k</sup>MP: masked prediction.</p>
            </fn>
            <fn id="table2fn12">
              <p><sup>l</sup>LR: linear readout.</p>
            </fn>
            <fn id="table2fn13">
              <p><sup>m</sup>FT: fine-tuning.</p>
            </fn>
            <fn id="table2fn14">
              <p><sup>n</sup>The best results.</p>
            </fn>
            <fn id="table2fn15">
              <p><sup>o</sup>TP: transformation prediction.</p>
            </fn>
          </table-wrap-foot>
        </table-wrap>
        <p>The E4mer and CML baselines performed to a similar level: although E4mer was superior to XGBoost in terms of ACC<sub>segment</sub> (75.35 vs 72.02), it was trumped by CML on ACC<sub>subject</sub> (82.81 vs 81.25). Other CML baselines fared worse than XGBoost. MP pretraining led to a target task performance, substantially higher than the baselines, under both metrics. Although both LR and FT dominated over supervised learning (SL), the latter scored the highest performance with ACC<sub>segment</sub> and ACC<sub>subject</sub> of 0.8123 and 0.9063, respectively. However, TP led to only modest improvement over E4mer. Statistical tests comparing the best SSL scheme (ie, MP with FT) against the fully supervised E4mer and XGBoost were significant at both the segment and the subject level. In particular, comparison with E4mer yielded <italic>P</italic><sub>Bonferroni</sub> values of .03 for the LME model and &lt;.001 and .02 for the <italic>t</italic> test at the segment and the subject level, respectively. For XGBoost, <italic>P</italic><sub>Bonferroni</sub> values were .04 for the LME model and &lt;.01 and .01 for the <italic>t</italic> test at the segment and the subject level, respectively.</p>
        <p>Comparison of the best SSL with its SL counterpart in terms of ACC<sub>segment</sub> by subject (<xref rid="figure4" ref-type="fig">Figure 4</xref>) suggested that only 2 (3.1%) patients with euthymia were misclassified by SSL but correctly classified by the supervised E4mer. However, SL mispredicted 8 (12.5%) individuals that SSL got right. Patients on an acute MD episode are shown as dots with a color gradient proportional to their total score on the HDRS [<xref ref-type="bibr" rid="ref46">46</xref>] (left half) and the YMRS [<xref ref-type="bibr" rid="ref47">47</xref>] (right half), 2 clinician-administered questionnaires tracking depression and mania severity, respectively. Subjects on an acute MD episode misclassified by SL included patients with severe depressive (or manic) symptomatology. Notably, both SSL and SL failed in the case of 4 (6.3%) subjects, including 3 (75%) patients on an acute MD episode with relatively moderate severity.</p>
        <fig id="figure4" position="float">
          <label>Figure 4</label>
          <caption>
            <p>SSL beats SL by 4 (9.4%) more correctly classified subjects. ACCsegment under SSL and SL (E4mer) within each subject’s test segments: subjects in the euthymia group are represented as triangles, while subjects on an acute affective episode are shown as circles with the left half colored in blue and the right half in red, with a gradient proportional to the total sum on the HDRS and the YMRS, respectively. Subjects’ position on the x and y axes corresponds to their proportion of recording segments correctly classified by SL and SSL, respectively. Note that a subject’s majority vote over their segments is in agreement with the subject’s true mood state when the proportion of correctly classified segments from that subject is greater than 0.5. The HDRS and the YMRS range shown on the color bar refer to values scored in the TIMEBASE/INTREPIBD sample, while the total score, in general, range is 0-52 and 0-60, respectively. ACCsegment: segment accuracy; E4mer: E4-tailored transformer; HDRS: Hamilton Depression Rating Scale-17; SL: supervised learning; SSL: self-supervised learning; TIMEBASE/INTREPIBD: Identifying Digital Biomarkers of Illness Activity in Bipolar Disorder/Identifying Digital Biomarkers of Illness Activity and Treatment Response in Bipolar Disorder.</p>
          </caption>
          <graphic xlink:href="mhealth_v12i1e55094_fig4.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </fig>
      </sec>
      <sec>
        <title>Ablation Analyses and Learned Representations</title>
        <p><xref ref-type="table" rid="table3">Tables 3</xref> and <xref ref-type="table" rid="table4">4</xref> show the difference in the target task ACC<sub>segment</sub> and ACC<sub>subject</sub> resulting from pretraining the best SSL on parts of the unlabeled data collection and then FT it onto the target task. Ablation analyses showed a positive trend between unlabeled data availability and target task performance, but data set–specific unobserved factors likely played a role. The difference in ACC<sub>segment</sub> and ACC<sub>subject</sub> from pretraining on just parts of the entire unlabeled data collection is shown in the tables. An LME model and a 2-tailed paired <italic>t</italic> test assessed whether the mean difference in predicted probabilities for the segment’s correct class differed from 0, with the former correcting for subjects as a random effect. A 2-tailed paired <italic>t</italic> test assessed whether the mean difference in the number of correctly classified segments by subject differed from 0. In each test, the comparator was the best-performing self-supervised model. P values are corrected with Bonferroni’s method. Note that a majority vote over a subject’s segments was used to issue subject-level predictions, and ACC<sub>subject</sub> was simply the fraction of correct majority votes in the test set. ACC<sub>subject</sub>, therefore, did not consider the proportion of votes over a subject’s segments in favor of the subject’s correct class but just whether a majority, no matter how small or large, was reached in agreement with the correct class. However, the <italic>t</italic> test (subject) assessed a 0 mean difference in the proportion of votes, within subjects, for the correct class. As shown in <xref ref-type="table" rid="table3">Table 3</xref>, self-supervised pretraining, preceding FT on the target task, therefore used only a fraction of the total unlabeled collection. A resampling ratio of 0% meant that self-supervised pretraining was performed on the target training set only.</p>
        <p>The Pearson correlation coefficient (PCC) between unlabeled data downsampling ratios and the difference in ACC<sub>segment</sub> and ACC<sub>subject</sub> was 0.9401 and 0.9449, respectively, indicating a strong dependence between performance and unlabeled data availability. Similarly, excluding individual data sets from pretraining impacted ACC<sub>segment</sub> and ACC<sub>subject</sub> proportionally to their relative size (PCC=–0.8185 and –0.4083, respectively). Notably, however, TIMEBASE/INTREPIBD, despite being collected at the same site as the target task data and making up the largest share of the unlabeled data collection, did not leave the largest dent in performance when excluded from training. Furthermore, excluding some data sets resulted in performance improvement. Differences in ACC<sub>segment</sub> and ACC<sub>subject</sub> did not always have the same sign because of the way they were defined. Indeed, it is, for example, possible that the absolute number of correctly classified segments decreased but enough previously misclassified segments within a subject were now correctly classified so that the majority vote for that subject flipped. Statistical analyses showed that the ablation of a single data set was associated with nonsignificantly different performance in terms of correctly classified segments within subjects. At the level of the probability assigned to the correct class for each segment, LME results were significant only for a data set, whereas results were mixed for <italic>t</italic> tests. Stratified resampling gave positive results, but the significance for LME was reached only at lower downsampling ratios.</p>
        <p>Lastly, we visualized the representations learned by the encoder, EN, part of our best-performing models to gain further insights. As EN’s output had dimensionality (B=number of segments, N=number of timestamps, D=transformer’s model dimension), for visualization purposes, we averaged out the D axis and then used Uniform Manifold Approximation and Projection (UMAP) [<xref ref-type="bibr" rid="ref68">68</xref>], a powerful nonlinear dimensionality reduction technique, to embed the resulting N-dimensional data points into 3 dimensions. The top-left plot of <xref rid="figure5" ref-type="fig">Figure 5</xref> shows the representations learned during self-supervised pretraining with MP. The segments shown are the target task test segments, along with an equal number of segments belonging to the same sessions but taken from the sleep state, which the SSL model was never exposed to during training. Wake and sleep segments have different embeddings, suggesting that the model captured this structure in the physiological data: a Gaussian mixture model, indeed, recovered 2 clusters, one with predominantly sleep segments (n=4081, 82.66%) and the other with the majority of wake segments (n=3272, 95.58%). It should be noted that sleep and wake naturally have quite different semantics with respect to physiological data, and the algorithm we used for sleep/wake differentiation (Van Hees [<xref ref-type="bibr" rid="ref52">52</xref>]) uses a simple heuristic defining sleep as a sustained lack of significant changes in the acceleration angle. The top-right and bottom plots of <xref rid="figure5" ref-type="fig">Figure 5</xref> illustrate the representations from the SSL model upon FT on the target task. The top-right scatter plot displays the target task test segments, as well as pretraining validation set segments (except for the pretraining segments from the TIMEBASE/INTREPIBD collection). The latter group of segments we assumed as being taken from subjects without an acute MD episode and, arguably, most even without any historical MD diagnosis, since the open access data sets we found did not select for patients with an MD. The plot shows 3 clusters whose composition, as recovered with a Gaussian mixture model, was as follows: (1) n=1464 (79.26%) acute MD episode and n=383 (20.7%) euthymia; (2) n=1120 (74.16%) euthymia and n=390 (25.84%) acute MD episode; and (3) n=7801 (91.01%) unlabeled segments, n=683 (7.96%) euthymia, and n=88 (1.02%) acute MD episode. The bottom plots in <xref rid="figure5" ref-type="fig">Figure 5</xref> show target task segments test segments only (no unlabeled segment), colored with a gradient proportional to symptoms’ severity, as assessed with the HDRS [<xref ref-type="bibr" rid="ref46">46</xref>] and the YMRS [<xref ref-type="bibr" rid="ref47">47</xref>]. Embeddings would seem to suggest a progression in symptoms’ severity across the 2 clusters of segments on the right of the scatter plot.</p>
        <table-wrap position="float" id="table3">
          <label>Table 3</label>
          <caption>
            <p>Ablation analyses results: the unlabeled collection was downsampled, stratifying by data sets.</p>
          </caption>
          <table width="1000" cellpadding="5" cellspacing="0" border="1" rules="groups" frame="hsides">
            <col width="250"/>
            <col width="150"/>
            <col width="150"/>
            <col width="150"/>
            <col width="150"/>
            <col width="150"/>
            <thead>
              <tr valign="top">
                <td>Resampling ratio</td>
                <td>80%</td>
                <td>60%</td>
                <td>40%</td>
                <td>20%</td>
                <td>0%</td>
              </tr>
            </thead>
            <tbody>
              <tr valign="top">
                <td>ACC<sup>a</sup><sub>segment</sub> difference</td>
                <td>–0.23<sup>b</sup></td>
                <td>–2.14<sup>b</sup></td>
                <td>–6.07<sup>b</sup></td>
                <td>–6.35<sup>b</sup></td>
                <td>–7.07<sup>b</sup></td>
              </tr>
              <tr valign="top">
                <td>ACC<sub>subject</sub> difference</td>
                <td>–1.57<sup>b</sup></td>
                <td>–1.57<sup>b</sup></td>
                <td>–4.70<sup>b</sup></td>
                <td>–4.70<sup>b</sup></td>
                <td>–7.82<sup>b</sup></td>
              </tr>
              <tr valign="top">
                <td>LME<sup>c</sup> <italic>P</italic> value</td>
                <td>.09</td>
                <td>.07</td>
                <td>.06</td>
                <td>.05</td>
                <td>.04</td>
              </tr>
              <tr valign="top">
                <td><italic>t</italic> Test (segment) <italic>P</italic> value</td>
                <td>&lt;.001</td>
                <td>&lt;.001</td>
                <td>&lt;.001</td>
                <td>&lt;.001</td>
                <td>&lt;.001</td>
              </tr>
              <tr valign="top">
                <td><italic>t</italic> Test (subject) <italic>P</italic> value</td>
                <td>.001</td>
                <td>.001</td>
                <td>.001</td>
                <td>.001</td>
                <td>.001</td>
              </tr>
            </tbody>
          </table>
          <table-wrap-foot>
            <fn id="table3fn1">
              <p><sup>a</sup>ACC: accuracy.</p>
            </fn>
            <fn id="table3fn2">
              <p><sup>b</sup>Deterioration in performance upon retraining on the ablated unlabeled data collection.</p>
            </fn>
            <fn id="table3fn3">
              <p><sup>c</sup>LME: linear mixed effects.</p>
            </fn>
          </table-wrap-foot>
        </table-wrap>
        <table-wrap position="float" id="table4">
          <label>Table 4</label>
          <caption>
            <p>Ablation analyses results: self-supervised pretraining was conducted, leaving out each data set in turn from the unlabeled collection.</p>
          </caption>
          <table width="1000" cellpadding="5" cellspacing="0" border="1" rules="groups" frame="hsides">
            <col width="340"/>
            <col width="100"/>
            <col width="100"/>
            <col width="100"/>
            <col width="120"/>
            <col width="120"/>
            <col width="120"/>
            <thead>
              <tr valign="top">
                <td>Data set</td>
                <td>Relative size</td>
                <td>ACC<sup>a</sup><sub>segment</sub> difference</td>
                <td>ACC<sub>subject</sub> difference</td>
                <td>LME<sup>b</sup> <italic>P</italic> value</td>
                <td><italic>t</italic> Test (segment) <italic>P</italic> value</td>
                <td><italic>t</italic> Test (subject) <italic>P</italic> value</td>
              </tr>
            </thead>
            <tbody>
              <tr valign="top">
                <td>Alcohol and Drug Abuse Research Program (ADARP)</td>
                <td>12.34</td>
                <td>–2.44<sup>c</sup></td>
                <td>–1.57<sup>c</sup></td>
                <td>.01</td>
                <td>&lt;.001</td>
                <td>.99</td>
              </tr>
              <tr valign="top">
                <td>Stress Predict</td>
                <td>0.30</td>
                <td>–0.21<sup>c</sup></td>
                <td>–1.57<sup>c</sup></td>
                <td>.23</td>
                <td>.99</td>
                <td>.99</td>
              </tr>
              <tr valign="top">
                <td>Toadstool</td>
                <td>0.04</td>
                <td>0.52<sup>d</sup></td>
                <td>–3.13<sup>c</sup></td>
                <td>.99</td>
                <td>.99</td>
                <td>.99</td>
              </tr>
              <tr valign="top">
                <td>Unlabeled Empatica E4 Wristband (UE4W)</td>
                <td>2.32</td>
                <td>–1.93<sup>c</sup></td>
                <td>–4.70<sup>c</sup></td>
                <td>.99</td>
                <td>.003</td>
                <td>.99</td>
              </tr>
              <tr valign="top">
                <td>Wearable Human Energy Expenditure Estimation (WEEE)</td>
                <td>0.18</td>
                <td>1.19<sup>d</sup></td>
                <td>1.57<sup>d</sup></td>
                <td>.99</td>
                <td>.90</td>
                <td>.99</td>
              </tr>
              <tr valign="top">
                <td>Wearable Stress and Affect Detection (WESAD)</td>
                <td>0.42</td>
                <td>–0.51<sup>c</sup></td>
                <td>–1.57<sup>c</sup></td>
                <td>.99</td>
                <td>.99</td>
                <td>.99</td>
              </tr>
              <tr valign="top">
                <td>Wearable Exam Stress Dataset (WESD)</td>
                <td>0.72</td>
                <td>1.90<sup>d</sup></td>
                <td>1.57<sup>d</sup></td>
                <td>.06</td>
                <td>.05</td>
                <td>.99</td>
              </tr>
              <tr valign="top">
                <td>In-GaugeEn-Gage</td>
                <td>17.55</td>
                <td>–4.44<sup>c</sup></td>
                <td>–4.70<sup>c</sup></td>
                <td>.99</td>
                <td>&lt;.001</td>
                <td>.63</td>
              </tr>
              <tr valign="top">
                <td>Nurse Stress Detection</td>
                <td>11.82</td>
                <td>–0.81<sup>c</sup></td>
                <td>–1.57<sup>c</sup></td>
                <td>.99</td>
                <td>.99</td>
                <td>.99</td>
              </tr>
              <tr valign="top">
                <td>BIG IDEAs Lab</td>
                <td>19.38</td>
                <td>–2.09<sup>c</sup></td>
                <td>–1.57<sup>c</sup></td>
                <td>.99</td>
                <td>.08</td>
                <td>.99</td>
              </tr>
              <tr valign="top">
                <td>PPG Dataset for Motion Compensation and Heart Rate Estimation in Daily Life Activities (PPG-DaLiA)</td>
                <td>0.69</td>
                <td>1.93<sup>d</sup></td>
                <td>4.70<sup>d</sup></td>
                <td>.53</td>
                <td>&lt;.001</td>
                <td>.99</td>
              </tr>
              <tr valign="top">
                <td>TIMEBASE/INTREPIBD<sup>e</sup></td>
                <td>34.24</td>
                <td>–4.32<sup>c</sup></td>
                <td>–3.13<sup>c</sup></td>
                <td>.99</td>
                <td>.99</td>
                <td>.38</td>
              </tr>
            </tbody>
          </table>
          <table-wrap-foot>
            <fn id="table4fn1">
              <p><sup>a</sup>ACC: accuracy.</p>
            </fn>
            <fn id="table4fn2">
              <p><sup>b</sup>LME: linear mixed effects.</p>
            </fn>
            <fn id="table4fn3">
              <p><sup>c</sup>Deterioration in performance upon retraining on the ablated unlabeled data collection.</p>
            </fn>
            <fn id="table4fn4">
              <p><sup>d</sup>Improvement in performance upon retraining on the ablated unlabeled data collection.</p>
            </fn>
            <fn id="table4fn5">
              <p><sup>e</sup>TIMEBASE/INTREPIBD: Identifying Digital Biomarkers of Illness Activity in Bipolar Disorder/Identifying Digital Biomarkers of Illness Activity and Treatment Response in Bipolar Disorder.</p>
            </fn>
          </table-wrap-foot>
        </table-wrap>
        <fig id="figure5" position="float">
          <label>Figure 5</label>
          <caption>
            <p>Reassuringly, the learned embeddings seem to have captured meaningful semantics about the underlying context. (Top left) Embeddings from the encoder pretrained on MP map sleep and wake segments to different parts of the latent space. (Top right) Embeddings from the encoder FT on the target task show that segments from the unlabeled open access data sets, which presumably do not contain subjects on an acute MD episode, tend to cluster with part of the segments from patients in euthymia. Embeddings from the fine-tuned encoder show a gradient in symptoms’ severity across target task segments, as revealed by (bottom left) the HDRS and (bottom right) the YMRS total score. Note that unlabeled segments are not shown in the bottom left or right plot and that the HDRS and YMRS ranges shown on the color bar refer to values scored in the TIMEBASE/INTREPIBD sample, while the total score range, in general, can be 0-52 and 0-60, respectively. FT: fine-tuning; HDRS: Hamilton Depression Rating Scale-17; MD: mood disorder; MP: masked prediction; TIMEBASE/INTREPIBD: Identifying Digital Biomarkers of Illness Activity in Bipolar Disorder/Identifying Digital Biomarkers of Illness Activity and Treatment Response in Bipolar Disorder; YMRS: Young Mania Rating Scale.</p>
          </caption>
          <graphic xlink:href="mhealth_v12i1e55094_fig5.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </fig>
      </sec>
    </sec>
    <sec sec-type="discussion">
      <title>Discussion</title>
      <sec>
        <title>Principal Findings</title>
        <p>Personal sensing is likely to play a key role in health care supply, creating unprecedented opportunities for patient monitoring and just-in-time adaptive interventions [<xref ref-type="bibr" rid="ref69">69</xref>]. Toward delivering on this promise, expert annotation is a major obstacle; this is especially the case with MDs, wherein data annotation is particularly challenging and time-consuming, considering the nature of the disorders.</p>
        <p>To the best of our knowledge, we are the first to show that SSL is a viable paradigm in personal sensing for MDs, mitigating the annotation bottleneck, thanks to the repurposing of existing unlabeled data collected in settings as different as subjects playing Super Mario [<xref ref-type="bibr" rid="ref27">27</xref>], taking university exams [<xref ref-type="bibr" rid="ref29">29</xref>], or performing physical exercise [<xref ref-type="bibr" rid="ref28">28</xref>].</p>
        <p>We took on a straightforward yet fundamental task, that is, to distinguish acute MD episodes from euthymia. Timely recognition of an impending MD episode in someone with a historical MD diagnosis regardless of the episode polarity (depressive, manic, or mixed) may, indeed, enable preemptive interventions and better outcomes [<xref ref-type="bibr" rid="ref5">5</xref>]. Our results suggest that with a sample size on the order of magnitude that is typical of studies into personal sensing for MDs, a modern deep learning fully supervised pipeline (E4mer) may offer no substantial improvements over simpler CML algorithms (eg, XGBoost), despite higher development and computational costs. However, the accumulation and repurposing of existing unlabeled data sets for an SSL pretraining phase leads to a confident margin of improvement: ACC<sub>segment</sub> and ACC<sub>subject</sub> improve by 7.8% and 11.54%, respectively, relative to the fully supervised E4mer, with 6 (9.4%) of 64 more subjects correctly classified.</p>
        <p>Our findings further show that careful choice of the pretext task, as well documented in the literature on SSL [<xref ref-type="bibr" rid="ref40">40</xref>], is key toward learning useful representations for the downstream target task. Unlike MP, improvement, if any at all, from TP was only modest. This is not to say that such a pretext task may in general fail to deliver on acute MD episode versus euthymia differentiation. Indeed, the specific transformations we implemented, borrowed from Wu et al [<xref ref-type="bibr" rid="ref42">42</xref>], may have been suboptimal for our downstream task, pointing to the importance of domain knowledge (including clinical expertise) in pretext task design. Lastly, although SSL relaxes dependence on large, annotated data sets, our results indicate that its success relies on the size of unlabeled data. Ablation analyses, indeed, showed a positive correlation between target task performance and the size of the corpus available for pretraining. Data set–idiosyncratic factors accounting for the nonperfect correlation between the relative size and impact on target task performance may be present. Speculatively, these may include noise in the data, (dis)similarity of recording conditions, or (ir)relevance for the target task of the representations learned modeling the domain of the unlabeled data set.</p>
        <p>Statistical analyses showed that excluding from pretraining any of the individual unlabeled data sets, while keeping all others, is not associated with a significant change in performance on the proportion of correctly classified segments within subjects. The lack of a significant effect in either direction (improvement or deterioration), along with a significantly superior performance of SSL over fully supervised schemes, indicate that pretraining on big data collections leads to higher performance than taking on the target task from scratch. Of importance, adding data sets for pretraining from domains not immediately related to the target task did not undermine the model. Pretraining under progressively lower downsampling ratios lent further support to the importance of data size. This is consistent with the deep learning recipe where the bigger the pretraining corpus, the better the results [<xref ref-type="bibr" rid="ref70">70</xref>]. Results from tests at the level of segment-predicted probabilities are consistent with this view. Of the data sets comprising less than 1% of the entire unlabeled collection, only 1 reached statistical significance. LME has more flexibility to explain the data since rather than pooling all segments together in a unique (bigger) population, it treats them as embedded within subjects. This explains the lack of statistical significance relative to the <italic>t</italic> tests under various data ablation regimes.</p>
      </sec>
      <sec>
        <title>Limitations</title>
        <p>We acknowledge the following limitations of this study. We deliberately chose the simplest task that has clinical relevance in personal sensing for MDs since our focus was on SSL; however, we appreciate that a more fine-grained MD description, beyond a simple acute MD episode versus euthymia binary classification, may add further clinical value [<xref ref-type="bibr" rid="ref35">35</xref>]. As the literature on SSL is expanding at a fast pace, a thorough search of different approaches was beyond the scope of this work. We acknowledge that other pretext tasks can be deployed, and although the architectural choice may have an impact on SSL, we settled for just 1 reasonable, modern model design with a transformer [<xref ref-type="bibr" rid="ref43">43</xref>] as a workhorse for representation learning. Lastly, given the naturalist design of the study, reflective of the intended use of personal sensing in a clinical setting, we could not exclude the effect of confounders, including medications, on the physiological variables. However, we reported medication classes administered in the cohort and verified a lack of any significant association between target classes (euthymia vs acute MD episode) and being on a given medication class.</p>
      </sec>
      <sec>
        <title>Future Directions</title>
        <p>As our findings indicate that the choice of the pretext task has a significant impact on target task performance, further efforts should be put into pretext task design. Indeed, although MP is a general-purpose strategy inspired by the great success of BERT [<xref ref-type="bibr" rid="ref38">38</xref>] in NLP, the literature on SSL [<xref ref-type="bibr" rid="ref40">40</xref>] suggests that domain knowledge may help tailor the pretext task to the specific use case. A promising approach we did not explore is contrastive learning [<xref ref-type="bibr" rid="ref71">71</xref>], which, indeed, relies on domain knowledge of how augmented views of the input are created, especially since most experience today is in computer vision and NLP, while physiological multivariate time series are relatively unexplored.</p>
      </sec>
      <sec>
        <title>Conclusion</title>
        <p>This work shows that SSL is a promising paradigm for mitigating the annotation bottleneck, 1 of the major barriers to the development of artificial intelligence–powered clinical decision support systems using personal sensing to help monitor MDs, thus enabling early intervention. The collection and preprocessing of open access unlabeled data sets that we curated (E4SelfLearning) can foster future research into SSL, therefore advancing the translation of personal sensing into clinical practice.</p>
      </sec>
    </sec>
  </body>
  <back>
    <app-group>
      <supplementary-material id="app1">
        <label>Multimedia Appendix 1</label>
        <p>Supplementary material.</p>
        <media xlink:href="mhealth_v12i1e55094_app1.doc" xlink:title="DOC File , 138 KB"/>
      </supplementary-material>
    </app-group>
    <glossary>
      <title>Abbreviations</title>
      <def-list>
        <def-item>
          <term id="abb1">ACC</term>
          <def>
            <p>accuracy</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb2">AUROC</term>
          <def>
            <p>area under the receiver operating characteristic curve</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb3">BD</term>
          <def>
            <p>bipolar disorder</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb4">BVP</term>
          <def>
            <p>blood volume pressure</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb5">CCE</term>
          <def>
            <p>categorical cross-entropy</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb6">CE</term>
          <def>
            <p>channel embedding</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb7">CML</term>
          <def>
            <p>classical machine learning</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb8">DSM-5</term>
          <def>
            <p>Diagnostic and Statistical Manual, Fifth Edition</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb9">E4mer</term>
          <def>
            <p>E4-tailored transformer</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb10">EDA</term>
          <def>
            <p>electrodermal activity</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb11">ENET</term>
          <def>
            <p>elastic net logistic regression</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb12">FT</term>
          <def>
            <p>fine-tuning</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb13">HDRS</term>
          <def>
            <p>Hamilton Depression Rating Scale-17</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb14">HR</term>
          <def>
            <p>heart rate</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb15">IBI</term>
          <def>
            <p>interbeat interval</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb16">KNN</term>
          <def>
            <p>K-nearest neighbor</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb17">LME</term>
          <def>
            <p>linear mixed effects</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb18">LR</term>
          <def>
            <p>linear readout</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb19">MD</term>
          <def>
            <p>mood disorder</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb20">MDD</term>
          <def>
            <p>major depressive disorder</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb21">ML</term>
          <def>
            <p>machine learning</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb22">MLP</term>
          <def>
            <p>multilayer perceptron</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb23">MP</term>
          <def>
            <p>masked prediction</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb24">NLP</term>
          <def>
            <p>natural language processing</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb25">PCC</term>
          <def>
            <p>Pearson correlation coefficient</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb26">RM</term>
          <def>
            <p>representation module</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb27">RMSE</term>
          <def>
            <p>root mean square error</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb28">SL</term>
          <def>
            <p>supervised learning</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb29">SSL</term>
          <def>
            <p>self-supervised learning</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb30">SVM</term>
          <def>
            <p>support vector machine</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb31">TEMP</term>
          <def>
            <p>skin temperature</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb32">TIMEBASE/INTREPIBD</term>
          <def>
            <p>Identifying Digital Biomarkers of Illness Activity in Bipolar Disorder/Identifying Digital Biomarkers of Illness Activity and Treatment Response in Bipolar Disorder</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb33">TP</term>
          <def>
            <p>transformation prediction</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb34">XGBoost</term>
          <def>
            <p>extreme gradient boosting</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb35">YMRS</term>
          <def>
            <p>Young Mania Rating Scale</p>
          </def>
        </def-item>
      </def-list>
    </glossary>
    <ack>
      <p>We acknowledge the contribution of all the participants of the study.</p>
      <p>FC and BML were supported by the United Kingdom Research and Innovation (UKRI; grant EP/S02431X/1), UKRI Centre for Doctoral Training in Biomedical AI at the University of Edinburgh, School of Informatics. For the purpose of open access, the author applied a Creative Commons Attribution (CC BY) license to any author-accepted manuscript version arising from this submission.</p>
      <p>GA was supported by a Rio Hortega 2021 grant (CM21/00017) and an M-AES mobility fellowship (MV22/00058) from the Spanish Ministry of Health financed by the Instituto de Salud Carlos III (ISCIII) and cofinanced by the Fondo Social Europeo Plus (FSE+).</p>
      <p>IG thanks the support of the Spanish Ministry of Science and Innovation (MCIN; PI23/00822) integrated into the Plan Nacional de I+D+I and cofinanced by the ISCIII-Subdirección General de Evaluación y confinanciado por la Unión Europea (FEDER, FSE, Next Generation EU/Plan de Recu- peración Transformación y Resiliencia PRTR); the Instituto de Salud Carlos III; the CIBER of Mental Health (CIBERSAM); the Secretaria d’Universitats i Recerca del Departament d’Economia i Coneixement (2021 SGR 01358), CERCA Programme/Generalitat de Catalunya; and the Fundació Clínic per la Recerca Biomèdica (Pons Bartran 2022-FRCB PB1 2022).</p>
      <p>AHY’s independent research was funded by the National Institute for Health and Care Research (NIHR) Maudsley Biomedical Research Centre at South London and Maudsley NHS Foundation Trust and King’s College London. The views expressed are those of the author and not necessarily those of the NIHR or the Department of Health and Social Care. For the purposes of open access, the author applied a Creative Commons Attribution (CC BY) license to any accepted author manuscript version arising from this submission.</p>
      <p>DHM was supported by a Juan Rodés grant (JR18/00021) by the ISCIII. AV was supported by the UNREAL project (EP/Y023838/1) selected by the European Research Council and funded by the UKRI Engineering and Physical Sciences Research Council.</p>
    </ack>
    <notes>
      <sec>
        <title>Data Availability</title>
        <p>The E4SelfLearning collection is available at Reference [<xref ref-type="bibr" rid="ref72">72</xref>], and the codebase is available at Reference [<xref ref-type="bibr" rid="ref73">73</xref>]. Data in deidentified form from the Identifying Digital Biomarkers of Illness Activity in Bipolar Disorder/Identifying Digital Biomarkers of Illness Activity and Treatment Response in Bipolar Disorder study may be made available from the corresponding author upon reasonable request.</p>
      </sec>
    </notes>
    <fn-group>
      <fn fn-type="con">
        <p>FC conceived of the study, proposed the methodology, developed the software codebase for the analyses, prepared the manuscript, and curated data collection. BML contributed to codebase development and manuscript writing. GA, CVP, AM, IP, MV, IGF, AB, and MG collected the data for the TIMEBASE/INTREPIBD (Identifying Digital Biomarkers of Illness Activity in Bipolar Disorder/Identifying Digital Biomarkers of Illness Activity and Treatment Response in Bipolar Disorder) study. EV, AHY, SL, and HW critically reviewed the manuscript and provided feedback on the clinical side. DHM is the coordinator of the TIMEBASE/INTREPIBD study and critically reviewed the manuscript. AV supervised this study and contributed to the study design, methodology development, and manuscript writing.</p>
      </fn>
      <fn fn-type="conflict">
        <p>GA has received continuing medical education–related honoraria, or consulting fees from the Janssen-Cilag, Lundbeck, Lundbeck/Otsuka, and Angelini, with no financial or other relationship relevant to the subject of this paper. IG has received grants and served as a consultant, advisor, or CME speaker for the following identities: ADAMED, Angelini, Casen Recordati, Esteve, Ferrer, Gedeon Richter, Janssen-Cilag, Lundbeck, Lundbeck-Otsuka, Luye, SEI Healthcare, and Viatris outside the submitted work. She also receives royalties from Oxford University Press, Elsevier, and the Editorial Médica Panamericana. All authors report no financial or other relationship relevant to the subject of this paper.</p>
      </fn>
    </fn-group>
    <ref-list>
      <ref id="ref1">
        <label>1</label>
        <nlm-citation citation-type="book">
          <person-group person-group-type="author">
            <collab>American Psychiatric Association</collab>
          </person-group>
          <source>Diagnostic and Statistical Manual of Mental Disorders, Fifth Edition</source>
          <year>2013</year>
          <publisher-loc>Washington, DC</publisher-loc>
          <publisher-name>American Psychiatric Association</publisher-name>
        </nlm-citation>
      </ref>
      <ref id="ref2">
        <label>2</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Santomauro</surname>
              <given-names>DF</given-names>
            </name>
            <name name-style="western">
              <surname>Mantilla Herrera</surname>
              <given-names>AM</given-names>
            </name>
            <name name-style="western">
              <surname>Shadid</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Zheng</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Ashbaugh</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Pigott</surname>
              <given-names>DM</given-names>
            </name>
            <name name-style="western">
              <surname>Abbafati</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Adolph</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Amlag</surname>
              <given-names>JO</given-names>
            </name>
            <name name-style="western">
              <surname>Aravkin</surname>
              <given-names>AY</given-names>
            </name>
            <name name-style="western">
              <surname>Bang-Jensen</surname>
              <given-names>BL</given-names>
            </name>
            <name name-style="western">
              <surname>Bertolacci</surname>
              <given-names>GJ</given-names>
            </name>
            <name name-style="western">
              <surname>Bloom</surname>
              <given-names>SS</given-names>
            </name>
            <name name-style="western">
              <surname>Castellano</surname>
              <given-names>R</given-names>
            </name>
            <name name-style="western">
              <surname>Castro</surname>
              <given-names>E</given-names>
            </name>
            <name name-style="western">
              <surname>Chakrabarti</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Chattopadhyay</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Cogen</surname>
              <given-names>RM</given-names>
            </name>
            <name name-style="western">
              <surname>Collins</surname>
              <given-names>JK</given-names>
            </name>
            <name name-style="western">
              <surname>Dai</surname>
              <given-names>X</given-names>
            </name>
            <name name-style="western">
              <surname>Dangel</surname>
              <given-names>WJ</given-names>
            </name>
            <name name-style="western">
              <surname>Dapper</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Deen</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Erickson</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Ewald</surname>
              <given-names>SB</given-names>
            </name>
            <name name-style="western">
              <surname>Flaxman</surname>
              <given-names>AD</given-names>
            </name>
            <name name-style="western">
              <surname>Frostad</surname>
              <given-names>JJ</given-names>
            </name>
            <name name-style="western">
              <surname>Fullman</surname>
              <given-names>N</given-names>
            </name>
            <name name-style="western">
              <surname>Giles</surname>
              <given-names>JR</given-names>
            </name>
            <name name-style="western">
              <surname>Giref</surname>
              <given-names>AZ</given-names>
            </name>
            <name name-style="western">
              <surname>Guo</surname>
              <given-names>G</given-names>
            </name>
            <name name-style="western">
              <surname>He</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Helak</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Hulland</surname>
              <given-names>EN</given-names>
            </name>
            <name name-style="western">
              <surname>Idrisov</surname>
              <given-names>B</given-names>
            </name>
            <name name-style="western">
              <surname>Lindstrom</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Linebarger</surname>
              <given-names>E</given-names>
            </name>
            <name name-style="western">
              <surname>Lotufo</surname>
              <given-names>PA</given-names>
            </name>
            <name name-style="western">
              <surname>Lozano</surname>
              <given-names>R</given-names>
            </name>
            <name name-style="western">
              <surname>Magistro</surname>
              <given-names>B</given-names>
            </name>
            <name name-style="western">
              <surname>Malta</surname>
              <given-names>DC</given-names>
            </name>
            <name name-style="western">
              <surname>Månsson</surname>
              <given-names>JC</given-names>
            </name>
            <name name-style="western">
              <surname>Marinho</surname>
              <given-names>F</given-names>
            </name>
            <name name-style="western">
              <surname>Mokdad</surname>
              <given-names>AH</given-names>
            </name>
            <name name-style="western">
              <surname>Monasta</surname>
              <given-names>L</given-names>
            </name>
            <name name-style="western">
              <surname>Naik</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Nomura</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>O'Halloran</surname>
              <given-names>JK</given-names>
            </name>
            <name name-style="western">
              <surname>Ostroff</surname>
              <given-names>SM</given-names>
            </name>
            <name name-style="western">
              <surname>Pasovic</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Penberthy</surname>
              <given-names>L</given-names>
            </name>
            <name name-style="western">
              <surname>Reiner Jr</surname>
              <given-names>RC</given-names>
            </name>
            <name name-style="western">
              <surname>Reinke</surname>
              <given-names>G</given-names>
            </name>
            <name name-style="western">
              <surname>Ribeiro</surname>
              <given-names>ALP</given-names>
            </name>
            <name name-style="western">
              <surname>Sholokhov</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Sorensen</surname>
              <given-names>RJD</given-names>
            </name>
            <name name-style="western">
              <surname>Varavikova</surname>
              <given-names>E</given-names>
            </name>
            <name name-style="western">
              <surname>Vo</surname>
              <given-names>AT</given-names>
            </name>
            <name name-style="western">
              <surname>Walcott</surname>
              <given-names>R</given-names>
            </name>
            <name name-style="western">
              <surname>Watson</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Wiysonge</surname>
              <given-names>CS</given-names>
            </name>
            <name name-style="western">
              <surname>Zigler</surname>
              <given-names>B</given-names>
            </name>
            <name name-style="western">
              <surname>Hay</surname>
              <given-names>SI</given-names>
            </name>
            <name name-style="western">
              <surname>Vos</surname>
              <given-names>T</given-names>
            </name>
            <name name-style="western">
              <surname>Murray</surname>
              <given-names>CJL</given-names>
            </name>
            <name name-style="western">
              <surname>Whiteford</surname>
              <given-names>HA</given-names>
            </name>
            <name name-style="western">
              <surname>Ferrari</surname>
              <given-names>AJ</given-names>
            </name>
          </person-group>
          <article-title>Global prevalence and burden of depressive and anxiety disorders in 204 countries and territories in 2020 due to the COVID-19 pandemic</article-title>
          <source>Lancet</source>
          <year>2021</year>
          <month>11</month>
          <volume>398</volume>
          <issue>10312</issue>
          <fpage>1700</fpage>
          <lpage>1712</lpage>
          <pub-id pub-id-type="doi">10.1016/s0140-6736(21)02143-7</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref3">
        <label>3</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Greenberg</surname>
              <given-names>PE</given-names>
            </name>
            <name name-style="western">
              <surname>Fournier</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Sisitsky</surname>
              <given-names>T</given-names>
            </name>
            <name name-style="western">
              <surname>Simes</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Berman</surname>
              <given-names>R</given-names>
            </name>
            <name name-style="western">
              <surname>Koenigsberg</surname>
              <given-names>SH</given-names>
            </name>
            <name name-style="western">
              <surname>Kessler</surname>
              <given-names>RC</given-names>
            </name>
          </person-group>
          <article-title>The economic burden of adults with major depressive disorder in the United States (2010 and 2018)</article-title>
          <source>Pharmacoeconomics</source>
          <year>2021</year>
          <month>06</month>
          <day>05</day>
          <volume>39</volume>
          <issue>6</issue>
          <fpage>653</fpage>
          <lpage>665</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://europepmc.org/abstract/MED/33950419"/>
          </comment>
          <pub-id pub-id-type="doi">10.1007/s40273-021-01019-4</pub-id>
          <pub-id pub-id-type="medline">33950419</pub-id>
          <pub-id pub-id-type="pii">10.1007/s40273-021-01019-4</pub-id>
          <pub-id pub-id-type="pmcid">PMC8097130</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref4">
        <label>4</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Brådvik</surname>
              <given-names>L</given-names>
            </name>
          </person-group>
          <article-title>Suicide risk and mental disorders</article-title>
          <source>Int J Environ Res Public Health</source>
          <year>2018</year>
          <month>09</month>
          <day>17</day>
          <volume>15</volume>
          <issue>9</issue>
          <fpage>2028</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://www.mdpi.com/resolver?pii=ijerph15092028"/>
          </comment>
          <pub-id pub-id-type="doi">10.3390/ijerph15092028</pub-id>
          <pub-id pub-id-type="medline">30227658</pub-id>
          <pub-id pub-id-type="pii">ijerph15092028</pub-id>
          <pub-id pub-id-type="pmcid">PMC6165520</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref5">
        <label>5</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Joyce</surname>
              <given-names>K</given-names>
            </name>
            <name name-style="western">
              <surname>Thompson</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Marwaha</surname>
              <given-names>S</given-names>
            </name>
          </person-group>
          <article-title>Is treatment for bipolar disorder more effective earlier in illness course? A comprehensive literature review</article-title>
          <source>Int J Bipolar Disord</source>
          <year>2016</year>
          <month>12</month>
          <day>9</day>
          <volume>4</volume>
          <issue>1</issue>
          <fpage>19</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://europepmc.org/abstract/MED/27613276"/>
          </comment>
          <pub-id pub-id-type="doi">10.1186/s40345-016-0060-6</pub-id>
          <pub-id pub-id-type="medline">27613276</pub-id>
          <pub-id pub-id-type="pii">10.1186/s40345-016-0060-6</pub-id>
          <pub-id pub-id-type="pmcid">PMC5017982</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref6">
        <label>6</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Buchman-Wildbaum</surname>
              <given-names>T</given-names>
            </name>
            <name name-style="western">
              <surname>Váradi</surname>
              <given-names>E</given-names>
            </name>
            <name name-style="western">
              <surname>Schmelowszky</surname>
              <given-names>Á</given-names>
            </name>
            <name name-style="western">
              <surname>Griffiths</surname>
              <given-names>MD</given-names>
            </name>
            <name name-style="western">
              <surname>Demetrovics</surname>
              <given-names>Z</given-names>
            </name>
            <name name-style="western">
              <surname>Urbán</surname>
              <given-names>R</given-names>
            </name>
          </person-group>
          <article-title>The paradoxical role of insight in mental illness: the experience of stigma and shame in schizophrenia, mood disorders, and anxiety disorders</article-title>
          <source>Arch Psychiatr Nurs</source>
          <year>2020</year>
          <month>12</month>
          <volume>34</volume>
          <issue>6</issue>
          <fpage>449</fpage>
          <lpage>457</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://linkinghub.elsevier.com/retrieve/pii/S0883-9417(19)30391-7"/>
          </comment>
          <pub-id pub-id-type="doi">10.1016/j.apnu.2020.07.009</pub-id>
          <pub-id pub-id-type="medline">33280665</pub-id>
          <pub-id pub-id-type="pii">S0883-9417(19)30391-7</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref7">
        <label>7</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Rimmer</surname>
              <given-names>A</given-names>
            </name>
          </person-group>
          <article-title>Mental health: staff shortages are causing distressingly long waits for treatment, college warns</article-title>
          <source>BMJ</source>
          <year>2021</year>
          <month>10</month>
          <day>07</day>
          <volume>375</volume>
          <fpage>n2439</fpage>
          <pub-id pub-id-type="doi">10.1136/bmj.n2439</pub-id>
          <pub-id pub-id-type="medline">34620691</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref8">
        <label>8</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Satiani</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Niedermier</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Satiani</surname>
              <given-names>B</given-names>
            </name>
            <name name-style="western">
              <surname>Svendsen</surname>
              <given-names>DP</given-names>
            </name>
          </person-group>
          <article-title>Projected workforce of psychiatrists in the United States: a population analysis</article-title>
          <source>Psychiatr Serv</source>
          <year>2018</year>
          <month>06</month>
          <day>01</day>
          <volume>69</volume>
          <issue>6</issue>
          <fpage>710</fpage>
          <lpage>713</lpage>
          <pub-id pub-id-type="doi">10.1176/appi.ps.201700344</pub-id>
          <pub-id pub-id-type="medline">29540118</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref9">
        <label>9</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Mohr</surname>
              <given-names>DC</given-names>
            </name>
            <name name-style="western">
              <surname>Zhang</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Schueller</surname>
              <given-names>SM</given-names>
            </name>
          </person-group>
          <article-title>Personal sensing: understanding mental health using ubiquitous sensors and machine learning</article-title>
          <source>Annu Rev Clin Psychol</source>
          <year>2017</year>
          <month>05</month>
          <day>08</day>
          <volume>13</volume>
          <issue>1</issue>
          <fpage>23</fpage>
          <lpage>47</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://europepmc.org/abstract/MED/28375728"/>
          </comment>
          <pub-id pub-id-type="doi">10.1146/annurev-clinpsy-032816-044949</pub-id>
          <pub-id pub-id-type="medline">28375728</pub-id>
          <pub-id pub-id-type="pmcid">PMC6902121</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref10">
        <label>10</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Faurholt-Jepsen</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Brage</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Kessing</surname>
              <given-names>LV</given-names>
            </name>
            <name name-style="western">
              <surname>Munkholm</surname>
              <given-names>K</given-names>
            </name>
          </person-group>
          <article-title>State-related differences in heart rate variability in bipolar disorder</article-title>
          <source>J Psychiatr Res</source>
          <year>2017</year>
          <month>01</month>
          <volume>84</volume>
          <fpage>169</fpage>
          <lpage>173</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://europepmc.org/abstract/MED/27743529"/>
          </comment>
          <pub-id pub-id-type="doi">10.1016/j.jpsychires.2016.10.005</pub-id>
          <pub-id pub-id-type="medline">27743529</pub-id>
          <pub-id pub-id-type="pii">S0022-3956(16)30485-X</pub-id>
          <pub-id pub-id-type="pmcid">PMC6200128</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref11">
        <label>11</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Sarchiapone</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Gramaglia</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Iosue</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Carli</surname>
              <given-names>V</given-names>
            </name>
            <name name-style="western">
              <surname>Mandelli</surname>
              <given-names>L</given-names>
            </name>
            <name name-style="western">
              <surname>Serretti</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Marangon</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Zeppegno</surname>
              <given-names>P</given-names>
            </name>
          </person-group>
          <article-title>The association between electrodermal activity (EDA), depression and suicidal behaviour: a systematic review and narrative synthesis</article-title>
          <source>BMC Psychiatry</source>
          <year>2018</year>
          <month>01</month>
          <day>25</day>
          <volume>18</volume>
          <issue>1</issue>
          <fpage>22</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://bmcpsychiatry.biomedcentral.com/articles/10.1186/s12888-017-1551-4"/>
          </comment>
          <pub-id pub-id-type="doi">10.1186/s12888-017-1551-4</pub-id>
          <pub-id pub-id-type="medline">29370787</pub-id>
          <pub-id pub-id-type="pii">10.1186/s12888-017-1551-4</pub-id>
          <pub-id pub-id-type="pmcid">PMC5785904</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref12">
        <label>12</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Tazawa</surname>
              <given-names>Y</given-names>
            </name>
            <name name-style="western">
              <surname>Wada</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Mitsukura</surname>
              <given-names>Y</given-names>
            </name>
            <name name-style="western">
              <surname>Takamiya</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Kitazawa</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Yoshimura</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Mimura</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Kishimoto</surname>
              <given-names>T</given-names>
            </name>
          </person-group>
          <article-title>Actigraphy for evaluation of mood disorders: a systematic review and meta-analysis</article-title>
          <source>J Affect Disord</source>
          <year>2019</year>
          <month>06</month>
          <day>15</day>
          <volume>253</volume>
          <fpage>257</fpage>
          <lpage>269</lpage>
          <pub-id pub-id-type="doi">10.1016/j.jad.2019.04.087</pub-id>
          <pub-id pub-id-type="medline">31060012</pub-id>
          <pub-id pub-id-type="pii">S0165-0327(19)30356-8</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref13">
        <label>13</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Tazawa</surname>
              <given-names>Y</given-names>
            </name>
            <name name-style="western">
              <surname>Liang</surname>
              <given-names>K</given-names>
            </name>
            <name name-style="western">
              <surname>Yoshimura</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Kitazawa</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Kaise</surname>
              <given-names>Y</given-names>
            </name>
            <name name-style="western">
              <surname>Takamiya</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Kishi</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Horigome</surname>
              <given-names>T</given-names>
            </name>
            <name name-style="western">
              <surname>Mitsukura</surname>
              <given-names>Y</given-names>
            </name>
            <name name-style="western">
              <surname>Mimura</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Kishimoto</surname>
              <given-names>T</given-names>
            </name>
          </person-group>
          <article-title>Evaluating depression with multimodal wristband-type wearable device: screening and assessing patient severity utilizing machine-learning</article-title>
          <source>Heliyon</source>
          <year>2020</year>
          <month>02</month>
          <volume>6</volume>
          <issue>2</issue>
          <fpage>e03274</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://linkinghub.elsevier.com/retrieve/pii/S2405-8440(20)30119-5"/>
          </comment>
          <pub-id pub-id-type="doi">10.1016/j.heliyon.2020.e03274</pub-id>
          <pub-id pub-id-type="medline">32055728</pub-id>
          <pub-id pub-id-type="pii">S2405-8440(20)30119-5</pub-id>
          <pub-id pub-id-type="pmcid">PMC7005437</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref14">
        <label>14</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Jacobson</surname>
              <given-names>NC</given-names>
            </name>
            <name name-style="western">
              <surname>Weingarden</surname>
              <given-names>H</given-names>
            </name>
            <name name-style="western">
              <surname>Wilhelm</surname>
              <given-names>S</given-names>
            </name>
          </person-group>
          <article-title>Digital biomarkers of mood disorders and symptom change</article-title>
          <source>NPJ Digit Med</source>
          <year>2019</year>
          <month>02</month>
          <day>01</day>
          <volume>2</volume>
          <issue>1</issue>
          <fpage>3</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://doi.org/10.1038/s41746-019-0078-0"/>
          </comment>
          <pub-id pub-id-type="doi">10.1038/s41746-019-0078-0</pub-id>
          <pub-id pub-id-type="medline">31304353</pub-id>
          <pub-id pub-id-type="pii">78</pub-id>
          <pub-id pub-id-type="pmcid">PMC6550284</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref15">
        <label>15</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Cote-Allard</surname>
              <given-names>U</given-names>
            </name>
            <name name-style="western">
              <surname>Jakobsen</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Stautland</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Nordgreen</surname>
              <given-names>T</given-names>
            </name>
            <name name-style="western">
              <surname>Fasmer</surname>
              <given-names>OB</given-names>
            </name>
            <name name-style="western">
              <surname>Oedegaard</surname>
              <given-names>KJ</given-names>
            </name>
            <name name-style="western">
              <surname>Torresen</surname>
              <given-names>J</given-names>
            </name>
          </person-group>
          <article-title>Long–short ensemble network for bipolar manic-euthymic state recognition based on wrist-worn sensors</article-title>
          <source>IEEE Pervasive Comput</source>
          <year>2022</year>
          <month>4</month>
          <day>1</day>
          <volume>21</volume>
          <issue>2</issue>
          <fpage>20</fpage>
          <lpage>31</lpage>
          <pub-id pub-id-type="doi">10.1109/mprv.2022.3155728</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref16">
        <label>16</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Nguyen</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Chan</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Li</surname>
              <given-names>AA</given-names>
            </name>
            <name name-style="western">
              <surname>Phan</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Lan</surname>
              <given-names>C</given-names>
            </name>
          </person-group>
          <article-title>Decision support system for the differentiation of schizophrenia and mood disorders using multiple deep learning models on wearable devices data</article-title>
          <source>Health Informatics J</source>
          <year>2022</year>
          <month>11</month>
          <day>01</day>
          <volume>28</volume>
          <issue>4</issue>
          <fpage>14604582221137537</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://journals.sagepub.com/doi/abs/10.1177/14604582221137537?url_ver=Z39.88-2003&amp;rfr_id=ori:rid:crossref.org&amp;rfr_dat=cr_pub  0pubmed"/>
          </comment>
          <pub-id pub-id-type="doi">10.1177/14604582221137537</pub-id>
          <pub-id pub-id-type="medline">36317536</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref17">
        <label>17</label>
        <nlm-citation citation-type="confproc">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Ghandeharioun</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Fedor</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Sangermano</surname>
              <given-names>L</given-names>
            </name>
            <name name-style="western">
              <surname>Ionescu</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Alpert</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Dale</surname>
              <given-names>C</given-names>
            </name>
          </person-group>
          <article-title>Objective assessment of depressive symptoms with machine learning and wearable sensors data</article-title>
          <year>2017</year>
          <conf-name>ACII 2017: Seventh International Conference on Affective Computing and Intelligent Interaction</conf-name>
          <conf-date>October 23-26, 2017</conf-date>
          <conf-loc>San Antonio, TX</conf-loc>
          <pub-id pub-id-type="doi">10.1109/acii.2017.8273620</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref18">
        <label>18</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Pedrelli</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Fedor</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Ghandeharioun</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Howe</surname>
              <given-names>E</given-names>
            </name>
            <name name-style="western">
              <surname>Ionescu</surname>
              <given-names>DF</given-names>
            </name>
            <name name-style="western">
              <surname>Bhathena</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Fisher</surname>
              <given-names>LB</given-names>
            </name>
            <name name-style="western">
              <surname>Cusin</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Nyer</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Yeung</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Sangermano</surname>
              <given-names>L</given-names>
            </name>
            <name name-style="western">
              <surname>Mischoulon</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Alpert</surname>
              <given-names>JE</given-names>
            </name>
            <name name-style="western">
              <surname>Picard</surname>
              <given-names>RW</given-names>
            </name>
          </person-group>
          <article-title>Monitoring changes in depression severity using wearable and mobile sensors</article-title>
          <source>Front Psychiatry</source>
          <year>2020</year>
          <month>12</month>
          <day>18</day>
          <volume>11</volume>
          <fpage>584711</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://europepmc.org/abstract/MED/33391050"/>
          </comment>
          <pub-id pub-id-type="doi">10.3389/fpsyt.2020.584711</pub-id>
          <pub-id pub-id-type="medline">33391050</pub-id>
          <pub-id pub-id-type="pmcid">PMC7775362</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref19">
        <label>19</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Lee</surname>
              <given-names>H</given-names>
            </name>
            <name name-style="western">
              <surname>Cho</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Lee</surname>
              <given-names>T</given-names>
            </name>
            <name name-style="western">
              <surname>Jeong</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Yeom</surname>
              <given-names>JW</given-names>
            </name>
            <name name-style="western">
              <surname>Kim</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Jeon</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Seo</surname>
              <given-names>JY</given-names>
            </name>
            <name name-style="western">
              <surname>Moon</surname>
              <given-names>E</given-names>
            </name>
            <name name-style="western">
              <surname>Baek</surname>
              <given-names>JH</given-names>
            </name>
            <name name-style="western">
              <surname>Park</surname>
              <given-names>DY</given-names>
            </name>
            <name name-style="western">
              <surname>Kim</surname>
              <given-names>SJ</given-names>
            </name>
            <name name-style="western">
              <surname>Ha</surname>
              <given-names>TH</given-names>
            </name>
            <name name-style="western">
              <surname>Cha</surname>
              <given-names>B</given-names>
            </name>
            <name name-style="western">
              <surname>Kang</surname>
              <given-names>H</given-names>
            </name>
            <name name-style="western">
              <surname>Ahn</surname>
              <given-names>Y</given-names>
            </name>
            <name name-style="western">
              <surname>Lee</surname>
              <given-names>Y</given-names>
            </name>
            <name name-style="western">
              <surname>Lee</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Kim</surname>
              <given-names>L</given-names>
            </name>
          </person-group>
          <article-title>Prediction of impending mood episode recurrence using real-time digital phenotypes in major depression and bipolar disorders in South Korea: a prospective nationwide cohort study</article-title>
          <source>Psychol Med</source>
          <year>2023</year>
          <month>09</month>
          <volume>53</volume>
          <issue>12</issue>
          <fpage>5636</fpage>
          <lpage>5644</lpage>
          <pub-id pub-id-type="doi">10.1017/S0033291722002847</pub-id>
          <pub-id pub-id-type="medline">36146953</pub-id>
          <pub-id pub-id-type="pii">S0033291722002847</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref20">
        <label>20</label>
        <nlm-citation citation-type="confproc">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Li</surname>
              <given-names>BM</given-names>
            </name>
            <name name-style="western">
              <surname>Corponi</surname>
              <given-names>F</given-names>
            </name>
            <name name-style="western">
              <surname>Anmella</surname>
              <given-names>G</given-names>
            </name>
            <name name-style="western">
              <surname>Mas</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Sanabra</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Hidalgo-Mazzei</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Vergari</surname>
              <given-names>A</given-names>
            </name>
          </person-group>
          <article-title>Inferring mood disorder symptoms from multivariate time-series sensory data</article-title>
          <year>2024</year>
          <month>03</month>
          <day>26</day>
          <conf-name>NeurIPS 2022 Workshop on Learning from Time Series for Health</conf-name>
          <conf-date>December 2, 2022</conf-date>
          <conf-loc>New Orleans, LA</conf-loc>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://openreview.net/forum?id=awjU8fCDZjS"/>
          </comment>
          <pub-id pub-id-type="doi">10.1038/s41398-024-02876-1</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref21">
        <label>21</label>
        <nlm-citation citation-type="web">
          <article-title>E4 wristband technical specifications</article-title>
          <source>Empatica</source>
          <access-date>2024-06-24</access-date>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://support.empatica.com/hc/en-us/articles/202581999-E4-wristband-technical-specifications">https://support.empatica.com/hc/en-us/articles/202581999-E4-wristband-technical-specifications</ext-link>
          </comment>
        </nlm-citation>
      </ref>
      <ref id="ref22">
        <label>22</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Ronca</surname>
              <given-names>V</given-names>
            </name>
            <name name-style="western">
              <surname>Martinez-Levy</surname>
              <given-names>AC</given-names>
            </name>
            <name name-style="western">
              <surname>Vozzi</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Giorgi</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Aricò</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Capotorto</surname>
              <given-names>R</given-names>
            </name>
            <name name-style="western">
              <surname>Borghini</surname>
              <given-names>G</given-names>
            </name>
            <name name-style="western">
              <surname>Babiloni</surname>
              <given-names>F</given-names>
            </name>
            <name name-style="western">
              <surname>Di Flumeri</surname>
              <given-names>G</given-names>
            </name>
          </person-group>
          <article-title>Wearable technologies for electrodermal and cardiac activity measurements: a comparison between Fitbit Sense, Empatica E4 and Shimmer GSR3</article-title>
          <source>Sensors (Basel)</source>
          <year>2023</year>
          <month>06</month>
          <day>23</day>
          <volume>23</volume>
          <issue>13</issue>
          <fpage>5847</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://www.mdpi.com/resolver?pii=s23135847"/>
          </comment>
          <pub-id pub-id-type="doi">10.3390/s23135847</pub-id>
          <pub-id pub-id-type="medline">37447697</pub-id>
          <pub-id pub-id-type="pii">s23135847</pub-id>
          <pub-id pub-id-type="pmcid">PMC10346781</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref23">
        <label>23</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Reiss</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Indlekofer</surname>
              <given-names>I</given-names>
            </name>
            <name name-style="western">
              <surname>Schmidt</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Van Laerhoven</surname>
              <given-names>K</given-names>
            </name>
          </person-group>
          <article-title>Deep PPG: large-scale heart rate estimation with convolutional neural networks</article-title>
          <source>Sensors (Basel)</source>
          <year>2019</year>
          <month>07</month>
          <day>12</day>
          <volume>19</volume>
          <issue>14</issue>
          <fpage>3079</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://www.mdpi.com/resolver?pii=s19143079"/>
          </comment>
          <pub-id pub-id-type="doi">10.3390/s19143079</pub-id>
          <pub-id pub-id-type="medline">31336894</pub-id>
          <pub-id pub-id-type="pii">s19143079</pub-id>
          <pub-id pub-id-type="pmcid">PMC6679242</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref24">
        <label>24</label>
        <nlm-citation citation-type="confproc">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Sah</surname>
              <given-names>RK</given-names>
            </name>
            <name name-style="western">
              <surname>McDonell</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Pendry</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Parent</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Ghasemzadeh</surname>
              <given-names>H</given-names>
            </name>
            <name name-style="western">
              <surname>Cleveland</surname>
              <given-names>M</given-names>
            </name>
          </person-group>
          <article-title>ADARP: a multi modal dataset for stress and alcohol relapse quantification in real life setting</article-title>
          <year>2022</year>
          <conf-name>2022 IEEE-EMBS International Conference on Wearable and Implantable Body Sensor Networks (BSN)</conf-name>
          <conf-date>September 27-30, 2022</conf-date>
          <conf-loc>Ioannina Greece</conf-loc>
          <pub-id pub-id-type="doi">10.1109/bsn56160.2022.9928495</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref25">
        <label>25</label>
        <nlm-citation citation-type="confproc">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Schmidt</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Reiss</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Duerichen</surname>
              <given-names>R</given-names>
            </name>
            <name name-style="western">
              <surname>Marberger</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Van</surname>
              <given-names>LK</given-names>
            </name>
          </person-group>
          <article-title>Introducing WESAD, a multimodal dataset for wearable stress and affect detection</article-title>
          <year>2018</year>
          <conf-name>20th ACM International Conference on Multimodal Interaction</conf-name>
          <conf-date>October 16-20, 2018</conf-date>
          <conf-loc>Boulder, CO</conf-loc>
          <pub-id pub-id-type="doi">10.1145/3242969.3242985</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref26">
        <label>26</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Iqbal</surname>
              <given-names>T</given-names>
            </name>
            <name name-style="western">
              <surname>Simpkin</surname>
              <given-names>AJ</given-names>
            </name>
            <name name-style="western">
              <surname>Roshan</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Glynn</surname>
              <given-names>N</given-names>
            </name>
            <name name-style="western">
              <surname>Killilea</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Walsh</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Molloy</surname>
              <given-names>G</given-names>
            </name>
            <name name-style="western">
              <surname>Ganly</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Ryman</surname>
              <given-names>H</given-names>
            </name>
            <name name-style="western">
              <surname>Coen</surname>
              <given-names>E</given-names>
            </name>
            <name name-style="western">
              <surname>Elahi</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Wijns</surname>
              <given-names>W</given-names>
            </name>
            <name name-style="western">
              <surname>Shahzad</surname>
              <given-names>A</given-names>
            </name>
          </person-group>
          <article-title>Stress monitoring using wearable sensors: a pilot study and stress-predict dataset</article-title>
          <source>Sensors (Basel)</source>
          <year>2022</year>
          <month>10</month>
          <day>24</day>
          <volume>22</volume>
          <issue>21</issue>
          <fpage>8135</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://www.mdpi.com/resolver?pii=s22218135"/>
          </comment>
          <pub-id pub-id-type="doi">10.3390/s22218135</pub-id>
          <pub-id pub-id-type="medline">36365837</pub-id>
          <pub-id pub-id-type="pii">s22218135</pub-id>
          <pub-id pub-id-type="pmcid">PMC9654418</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref27">
        <label>27</label>
        <nlm-citation citation-type="confproc">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Svoren</surname>
              <given-names>H</given-names>
            </name>
            <name name-style="western">
              <surname>Thambawita</surname>
              <given-names>V</given-names>
            </name>
            <name name-style="western">
              <surname>Halvorsen</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Jakobsen</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Garcia-Ceja</surname>
              <given-names>E</given-names>
            </name>
            <name name-style="western">
              <surname>Noori</surname>
              <given-names>F</given-names>
            </name>
          </person-group>
          <article-title>Toadstool: a dataset for training emotional intelligent machines playing Super Mario Bros</article-title>
          <year>2020</year>
          <conf-name>MMSys '20: 11th ACM Multimedia Systems Conference</conf-name>
          <conf-date>June 8-11, 2020</conf-date>
          <conf-loc>Istanbul Turkey</conf-loc>
          <pub-id pub-id-type="doi">10.1145/3339825.3394939</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref28">
        <label>28</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Gashi</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Min</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Montanari</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Santini</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Kawsar</surname>
              <given-names>F</given-names>
            </name>
          </person-group>
          <article-title>A multidevice and multimodal dataset for human energy expenditure estimation using wearable devices</article-title>
          <source>Sci Data</source>
          <year>2022</year>
          <month>09</month>
          <day>01</day>
          <volume>9</volume>
          <issue>1</issue>
          <fpage>537</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://doi.org/10.1038/s41597-022-01643-5"/>
          </comment>
          <pub-id pub-id-type="doi">10.1038/s41597-022-01643-5</pub-id>
          <pub-id pub-id-type="medline">36050312</pub-id>
          <pub-id pub-id-type="pii">10.1038/s41597-022-01643-5</pub-id>
          <pub-id pub-id-type="pmcid">PMC9436988</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref29">
        <label>29</label>
        <nlm-citation citation-type="confproc">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Amin</surname>
              <given-names>MR</given-names>
            </name>
            <name name-style="western">
              <surname>Wickramasuriya</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Faghih</surname>
              <given-names>R</given-names>
            </name>
          </person-group>
          <article-title>A wearable exam stress dataset for predicting grades using physiological signals</article-title>
          <year>2022</year>
          <conf-name>2022 IEEE Healthcare Innovations and Point of Care Technologies (HI-POCT)</conf-name>
          <conf-date>March 10-11, 2022</conf-date>
          <conf-loc>Houston, TX</conf-loc>
          <pub-id pub-id-type="doi">10.1109/hi-poct54491.2022.9744065</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref30">
        <label>30</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Hosseini</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Gottumukkala</surname>
              <given-names>R</given-names>
            </name>
            <name name-style="western">
              <surname>Katragadda</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Bhupatiraju</surname>
              <given-names>RT</given-names>
            </name>
            <name name-style="western">
              <surname>Ashkar</surname>
              <given-names>Z</given-names>
            </name>
            <name name-style="western">
              <surname>Borst</surname>
              <given-names>CW</given-names>
            </name>
            <name name-style="western">
              <surname>Cochran</surname>
              <given-names>K</given-names>
            </name>
          </person-group>
          <article-title>A multimodal sensor dataset for continuous stress detection of nurses in a hospital</article-title>
          <source>Sci Data</source>
          <year>2022</year>
          <month>06</month>
          <day>01</day>
          <volume>9</volume>
          <issue>1</issue>
          <fpage>255</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://doi.org/10.1038/s41597-022-01361-y"/>
          </comment>
          <pub-id pub-id-type="doi">10.1038/s41597-022-01361-y</pub-id>
          <pub-id pub-id-type="medline">35650267</pub-id>
          <pub-id pub-id-type="pii">10.1038/s41597-022-01361-y</pub-id>
          <pub-id pub-id-type="pmcid">PMC9159985</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref31">
        <label>31</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Gao</surname>
              <given-names>N</given-names>
            </name>
            <name name-style="western">
              <surname>Marschall</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Burry</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Watkins</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Salim</surname>
              <given-names>FD</given-names>
            </name>
          </person-group>
          <article-title>Understanding occupants' behaviour, engagement, emotion, and comfort indoors with heterogeneous sensors and wearables</article-title>
          <source>Sci Data</source>
          <year>2022</year>
          <month>06</month>
          <day>02</day>
          <volume>9</volume>
          <issue>1</issue>
          <fpage>261</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://doi.org/10.1038/s41597-022-01347-w"/>
          </comment>
          <pub-id pub-id-type="doi">10.1038/s41597-022-01347-w</pub-id>
          <pub-id pub-id-type="medline">35654857</pub-id>
          <pub-id pub-id-type="pii">10.1038/s41597-022-01347-w</pub-id>
          <pub-id pub-id-type="pmcid">PMC9163042</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref32">
        <label>32</label>
        <nlm-citation citation-type="web">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Hinkle</surname>
              <given-names>LB</given-names>
            </name>
            <name name-style="western">
              <surname>Metsis</surname>
              <given-names>V</given-names>
            </name>
          </person-group>
          <article-title>Unlabeled Empatica E4 Wristband Data (UE4W) dataset</article-title>
          <source>Zenodo</source>
          <year>2022</year>
          <month>7</month>
          <day>25</day>
          <access-date>2024-06-24</access-date>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://zenodo.org/records/6898244">https://zenodo.org/records/6898244</ext-link>
          </comment>
        </nlm-citation>
      </ref>
      <ref id="ref33">
        <label>33</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Bent</surname>
              <given-names>B</given-names>
            </name>
            <name name-style="western">
              <surname>Cho</surname>
              <given-names>PJ</given-names>
            </name>
            <name name-style="western">
              <surname>Henriquez</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Wittmann</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Thacker</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Feinglos</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Crowley</surname>
              <given-names>MJ</given-names>
            </name>
            <name name-style="western">
              <surname>Dunn</surname>
              <given-names>JP</given-names>
            </name>
          </person-group>
          <article-title>Engineering digital biomarkers of interstitial glucose from noninvasive smartwatches</article-title>
          <source>NPJ Digit Med</source>
          <year>2021</year>
          <month>06</month>
          <day>02</day>
          <volume>4</volume>
          <issue>1</issue>
          <fpage>89</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://doi.org/10.1038/s41746-021-00465-w"/>
          </comment>
          <pub-id pub-id-type="doi">10.1038/s41746-021-00465-w</pub-id>
          <pub-id pub-id-type="medline">34079049</pub-id>
          <pub-id pub-id-type="pii">10.1038/s41746-021-00465-w</pub-id>
          <pub-id pub-id-type="pmcid">PMC8172541</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref34">
        <label>34</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Shani</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Zarecki</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Shahaf</surname>
              <given-names>D</given-names>
            </name>
          </person-group>
          <article-title>The lean data scientist: recent advances toward overcoming the data bottleneck</article-title>
          <source>Commun ACM</source>
          <year>2023</year>
          <month>01</month>
          <day>20</day>
          <volume>66</volume>
          <issue>2</issue>
          <fpage>92</fpage>
          <lpage>102</lpage>
          <pub-id pub-id-type="doi">10.1145/3551635</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref35">
        <label>35</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Corponi</surname>
              <given-names>F</given-names>
            </name>
            <name name-style="western">
              <surname>Li</surname>
              <given-names>BM</given-names>
            </name>
            <name name-style="western">
              <surname>Anmella</surname>
              <given-names>G</given-names>
            </name>
            <name name-style="western">
              <surname>Mas</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Pacchiarotti</surname>
              <given-names>I</given-names>
            </name>
            <name name-style="western">
              <surname>Valentí</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Grande</surname>
              <given-names>I</given-names>
            </name>
            <name name-style="western">
              <surname>Benabarre</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Garriga</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Vieta</surname>
              <given-names>E</given-names>
            </name>
            <name name-style="western">
              <surname>Lawrie</surname>
              <given-names>SM</given-names>
            </name>
            <name name-style="western">
              <surname>Whalley</surname>
              <given-names>HC</given-names>
            </name>
            <name name-style="western">
              <surname>Hidalgo-Mazzei</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Vergari</surname>
              <given-names>A</given-names>
            </name>
          </person-group>
          <article-title>Automated mood disorder symptoms monitoring from multivariate time-series sensory data: getting the full picture beyond a single number</article-title>
          <source>Transl Psychiatry</source>
          <year>2024</year>
          <month>03</month>
          <day>26</day>
          <volume>14</volume>
          <issue>1</issue>
          <fpage>161</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://doi.org/10.1038/s41398-024-02876-1"/>
          </comment>
          <pub-id pub-id-type="doi">10.1038/s41398-024-02876-1</pub-id>
          <pub-id pub-id-type="medline">38531865</pub-id>
          <pub-id pub-id-type="pii">10.1038/s41398-024-02876-1</pub-id>
          <pub-id pub-id-type="pmcid">PMC10965916</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref36">
        <label>36</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Rani</surname>
              <given-names>V</given-names>
            </name>
            <name name-style="western">
              <surname>Nabi</surname>
              <given-names>ST</given-names>
            </name>
            <name name-style="western">
              <surname>Kumar</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Mittal</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Kumar</surname>
              <given-names>K</given-names>
            </name>
          </person-group>
          <article-title>Self-supervised learning: a succinct review</article-title>
          <source>Arch Comput Methods Eng</source>
          <year>2023</year>
          <month>01</month>
          <day>20</day>
          <volume>30</volume>
          <issue>4</issue>
          <fpage>2761</fpage>
          <lpage>2775</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://europepmc.org/abstract/MED/36713767"/>
          </comment>
          <pub-id pub-id-type="doi">10.1007/s11831-023-09884-2</pub-id>
          <pub-id pub-id-type="medline">36713767</pub-id>
          <pub-id pub-id-type="pii">9884</pub-id>
          <pub-id pub-id-type="pmcid">PMC9857922</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref37">
        <label>37</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Ohri</surname>
              <given-names>K</given-names>
            </name>
            <name name-style="western">
              <surname>Kumar</surname>
              <given-names>M</given-names>
            </name>
          </person-group>
          <article-title>Review on self-supervised image recognition using deep neural networks</article-title>
          <source>Knowl-Based Syst</source>
          <year>2021</year>
          <month>07</month>
          <volume>224</volume>
          <fpage>107090</fpage>
          <pub-id pub-id-type="doi">10.1016/j.knosys.2021.107090</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref38">
        <label>38</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Devlin</surname>
              <given-names>DJ</given-names>
            </name>
            <name name-style="western">
              <surname>Chang</surname>
              <given-names>M-W</given-names>
            </name>
            <name name-style="western">
              <surname>Lee</surname>
              <given-names>K</given-names>
            </name>
            <name name-style="western">
              <surname>Toutanova</surname>
              <given-names>K</given-names>
            </name>
          </person-group>
          <article-title>BERT: pre-training of deep bidirectional transformers for language understanding</article-title>
          <source>arXiv preprint posted online 2018. [doi: 10.48550/arXiv.1810.04805]</source>
          <year>2021</year>
          <pub-id pub-id-type="doi">10.48550/arXiv.1810.04805</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref39">
        <label>39</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Huang</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Pareek</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Jensen</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Lungren</surname>
              <given-names>MP</given-names>
            </name>
            <name name-style="western">
              <surname>Yeung</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Chaudhari</surname>
              <given-names>AS</given-names>
            </name>
          </person-group>
          <article-title>Self-supervised learning for medical image classification: a systematic review and implementation guidelines</article-title>
          <source>NPJ Digit Med</source>
          <year>2023</year>
          <month>04</month>
          <day>26</day>
          <volume>6</volume>
          <issue>1</issue>
          <fpage>74</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://doi.org/10.1038/s41746-023-00811-0"/>
          </comment>
          <pub-id pub-id-type="doi">10.1038/s41746-023-00811-0</pub-id>
          <pub-id pub-id-type="medline">37100953</pub-id>
          <pub-id pub-id-type="pii">10.1038/s41746-023-00811-0</pub-id>
          <pub-id pub-id-type="pmcid">PMC10131505</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref40">
        <label>40</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Zhang</surname>
              <given-names>K</given-names>
            </name>
            <name name-style="western">
              <surname>Wen</surname>
              <given-names>Q</given-names>
            </name>
            <name name-style="western">
              <surname>Zhang</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Cai</surname>
              <given-names>R</given-names>
            </name>
            <name name-style="western">
              <surname>Jin</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Liu</surname>
              <given-names>Y</given-names>
            </name>
            <name name-style="western">
              <surname>Zhang</surname>
              <given-names>JY</given-names>
            </name>
            <name name-style="western">
              <surname>Liang</surname>
              <given-names>Y</given-names>
            </name>
            <name name-style="western">
              <surname>Pang</surname>
              <given-names>G</given-names>
            </name>
            <name name-style="western">
              <surname>Song</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Pan</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Zhang</surname>
              <given-names>K</given-names>
            </name>
          </person-group>
          <article-title>Self-supervised learning for time series analysis: taxonomy, progress, and prospects</article-title>
          <source>arXiv preprint posted online 2023. [doi: 10.48550/arXiv.2306.10125]</source>
          <year>2021</year>
          <pub-id pub-id-type="doi">10.48550/arXiv.2306.10125</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref41">
        <label>41</label>
        <nlm-citation citation-type="confproc">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Zerveas</surname>
              <given-names>G</given-names>
            </name>
            <name name-style="western">
              <surname>Jayaraman</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Patel</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Bhamidipaty</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Eickhoff</surname>
              <given-names>C</given-names>
            </name>
          </person-group>
          <article-title>A transformer-based framework for multivariate time series representation learning</article-title>
          <year>2021</year>
          <conf-name>27th ACM SIGKDD Conference on Knowledge Discovery &amp; Data Mining</conf-name>
          <conf-date>August 14-18, 2021</conf-date>
          <conf-loc>Virtual</conf-loc>
          <pub-id pub-id-type="doi">10.1145/3447548.3467401</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref42">
        <label>42</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Wu</surname>
              <given-names>Y</given-names>
            </name>
            <name name-style="western">
              <surname>Daoudi</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Amad</surname>
              <given-names>A</given-names>
            </name>
          </person-group>
          <article-title>Transformer-based self-supervised multimodal representation learning for wearable emotion recognition</article-title>
          <source>IEEE Trans Affective Comput</source>
          <year>2024</year>
          <month>1</month>
          <volume>15</volume>
          <issue>1</issue>
          <fpage>157</fpage>
          <lpage>172</lpage>
          <pub-id pub-id-type="doi">10.1109/taffc.2023.3263907</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref43">
        <label>43</label>
        <nlm-citation citation-type="confproc">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Vaswani</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Shazeer</surname>
              <given-names>N</given-names>
            </name>
            <name name-style="western">
              <surname>Parmar</surname>
              <given-names>N</given-names>
            </name>
            <name name-style="western">
              <surname>Uszkoreit</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Jones</surname>
              <given-names>L</given-names>
            </name>
            <name name-style="western">
              <surname>Gomez</surname>
              <given-names>A</given-names>
            </name>
          </person-group>
          <article-title>Attention is all you need</article-title>
          <year>2017</year>
          <conf-name>NIPS 2017: Advances in Neural Information Processing Systems 30</conf-name>
          <conf-date>December 4-9, 2017</conf-date>
          <conf-loc>Long Beach, CA</conf-loc>
        </nlm-citation>
      </ref>
      <ref id="ref44">
        <label>44</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Ericsson</surname>
              <given-names>L</given-names>
            </name>
            <name name-style="western">
              <surname>Gouk</surname>
              <given-names>H</given-names>
            </name>
            <name name-style="western">
              <surname>Loy</surname>
              <given-names>CC</given-names>
            </name>
            <name name-style="western">
              <surname>Hospedales</surname>
              <given-names>TM</given-names>
            </name>
          </person-group>
          <article-title>Self-supervised representation learning: introduction, advances, and challenges</article-title>
          <source>IEEE Signal Process Mag</source>
          <year>2022</year>
          <month>5</month>
          <volume>39</volume>
          <issue>3</issue>
          <fpage>42</fpage>
          <lpage>62</lpage>
          <pub-id pub-id-type="doi">10.1109/msp.2021.3134634</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref45">
        <label>45</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Anmella</surname>
              <given-names>G</given-names>
            </name>
            <name name-style="western">
              <surname>Corponi</surname>
              <given-names>F</given-names>
            </name>
            <name name-style="western">
              <surname>Li</surname>
              <given-names>BM</given-names>
            </name>
            <name name-style="western">
              <surname>Mas</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Sanabra</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Pacchiarotti</surname>
              <given-names>I</given-names>
            </name>
            <name name-style="western">
              <surname>Valentí</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Grande</surname>
              <given-names>I</given-names>
            </name>
            <name name-style="western">
              <surname>Benabarre</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Giménez-Palomo</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Garriga</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Agasi</surname>
              <given-names>I</given-names>
            </name>
            <name name-style="western">
              <surname>Bastidas</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Cavero</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Fernández-Plaza</surname>
              <given-names>T</given-names>
            </name>
            <name name-style="western">
              <surname>Arbelo</surname>
              <given-names>N</given-names>
            </name>
            <name name-style="western">
              <surname>Bioque</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>García-Rizo</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Verdolini</surname>
              <given-names>N</given-names>
            </name>
            <name name-style="western">
              <surname>Madero</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Murru</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Amoretti</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Martínez-Aran</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Ruiz</surname>
              <given-names>V</given-names>
            </name>
            <name name-style="western">
              <surname>Fico</surname>
              <given-names>G</given-names>
            </name>
            <name name-style="western">
              <surname>De Prisco</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Oliva</surname>
              <given-names>V</given-names>
            </name>
            <name name-style="western">
              <surname>Solanes</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Radua</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Samalin</surname>
              <given-names>L</given-names>
            </name>
            <name name-style="western">
              <surname>Young</surname>
              <given-names>AH</given-names>
            </name>
            <name name-style="western">
              <surname>Vieta</surname>
              <given-names>E</given-names>
            </name>
            <name name-style="western">
              <surname>Vergari</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Hidalgo-Mazzei</surname>
              <given-names>D</given-names>
            </name>
          </person-group>
          <article-title>Exploring digital biomarkers of illness activity in mood episodes: hypotheses generating and model development study</article-title>
          <source>JMIR Mhealth Uhealth</source>
          <year>2023</year>
          <month>05</month>
          <day>04</day>
          <volume>11</volume>
          <fpage>e45405</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://mhealth.jmir.org/2023//e45405/"/>
          </comment>
          <pub-id pub-id-type="doi">10.2196/45405</pub-id>
          <pub-id pub-id-type="medline">36939345</pub-id>
          <pub-id pub-id-type="pii">v11i1e45405</pub-id>
          <pub-id pub-id-type="pmcid">PMC10196899</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref46">
        <label>46</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Hamilton</surname>
              <given-names>M</given-names>
            </name>
          </person-group>
          <article-title>A rating scale for depression</article-title>
          <source>J Neurol Neurosurg Psychiatry</source>
          <year>1960</year>
          <month>02</month>
          <day>01</day>
          <volume>23</volume>
          <issue>1</issue>
          <fpage>56</fpage>
          <lpage>62</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://jnnp.bmj.com/lookup/pmidlookup?view=long&amp;pmid=14399272"/>
          </comment>
          <pub-id pub-id-type="doi">10.1136/jnnp.23.1.56</pub-id>
          <pub-id pub-id-type="medline">14399272</pub-id>
          <pub-id pub-id-type="pmcid">PMC495331</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref47">
        <label>47</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Young</surname>
              <given-names>RC</given-names>
            </name>
            <name name-style="western">
              <surname>Biggs</surname>
              <given-names>JT</given-names>
            </name>
            <name name-style="western">
              <surname>Ziegler</surname>
              <given-names>VE</given-names>
            </name>
            <name name-style="western">
              <surname>Meyer</surname>
              <given-names>DA</given-names>
            </name>
          </person-group>
          <article-title>A rating scale for mania: reliability, validity and sensitivity</article-title>
          <source>Br J Psychiatry</source>
          <year>1978</year>
          <month>11</month>
          <day>29</day>
          <volume>133</volume>
          <issue>5</issue>
          <fpage>429</fpage>
          <lpage>435</lpage>
          <pub-id pub-id-type="doi">10.1192/bjp.133.5.429</pub-id>
          <pub-id pub-id-type="medline">728692</pub-id>
          <pub-id pub-id-type="pii">S0007125000198551</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref48">
        <label>48</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Tohen</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Frank</surname>
              <given-names>E</given-names>
            </name>
            <name name-style="western">
              <surname>Bowden</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Colom</surname>
              <given-names>F</given-names>
            </name>
            <name name-style="western">
              <surname>Ghaemi</surname>
              <given-names>N</given-names>
            </name>
            <name name-style="western">
              <surname>Yatham</surname>
              <given-names>L</given-names>
            </name>
          </person-group>
          <article-title>The International Society of Bipolar Disorders (ISBD) task force on the nomenclature of course and outcome in bipolar disorders</article-title>
          <source>J Affect Disord</source>
          <year>2010</year>
          <month>04</month>
          <volume>122</volume>
          <fpage>S15</fpage>
          <pub-id pub-id-type="doi">10.1016/j.jad.2010.01.030</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref49">
        <label>49</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Vieluf</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Amengual-Gual</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Zhang</surname>
              <given-names>B</given-names>
            </name>
            <name name-style="western">
              <surname>El Atrache</surname>
              <given-names>R</given-names>
            </name>
            <name name-style="western">
              <surname>Ufongene</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Jackson</surname>
              <given-names>MC</given-names>
            </name>
            <name name-style="western">
              <surname>Branch</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Reinsberger</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Loddenkemper</surname>
              <given-names>T</given-names>
            </name>
          </person-group>
          <article-title>Twenty-four-hour patterns in electrodermal activity recordings of patients with and without epileptic seizures</article-title>
          <source>Epilepsia</source>
          <year>2021</year>
          <month>04</month>
          <day>23</day>
          <volume>62</volume>
          <issue>4</issue>
          <fpage>960</fpage>
          <lpage>972</lpage>
          <pub-id pub-id-type="doi">10.1111/epi.16843</pub-id>
          <pub-id pub-id-type="medline">33619751</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref50">
        <label>50</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Nasseri</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Nurse</surname>
              <given-names>E</given-names>
            </name>
            <name name-style="western">
              <surname>Glasstetter</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Böttcher</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Gregg</surname>
              <given-names>NM</given-names>
            </name>
            <name name-style="western">
              <surname>Laks Nandakumar</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Joseph</surname>
              <given-names>B</given-names>
            </name>
            <name name-style="western">
              <surname>Pal Attia</surname>
              <given-names>T</given-names>
            </name>
            <name name-style="western">
              <surname>Viana</surname>
              <given-names>PF</given-names>
            </name>
            <name name-style="western">
              <surname>Bruno</surname>
              <given-names>E</given-names>
            </name>
            <name name-style="western">
              <surname>Biondi</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Cook</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Worrell</surname>
              <given-names>GA</given-names>
            </name>
            <name name-style="western">
              <surname>Schulze-Bonhage</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Dümpelmann</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Freestone</surname>
              <given-names>DR</given-names>
            </name>
            <name name-style="western">
              <surname>Richardson</surname>
              <given-names>MP</given-names>
            </name>
            <name name-style="western">
              <surname>Brinkmann</surname>
              <given-names>BH</given-names>
            </name>
          </person-group>
          <article-title>Signal quality and patient experience with wearable devices for epilepsy management</article-title>
          <source>Epilepsia</source>
          <year>2020</year>
          <month>11</month>
          <day>04</day>
          <volume>61 Suppl 1</volume>
          <issue>S1</issue>
          <fpage>S25</fpage>
          <lpage>S35</lpage>
          <pub-id pub-id-type="doi">10.1111/epi.16527</pub-id>
          <pub-id pub-id-type="medline">32497269</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref51">
        <label>51</label>
        <nlm-citation citation-type="web">
          <article-title>Emaptics user manual</article-title>
          <source>ETH Zurich</source>
          <access-date>2024-06-24</access-date>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://archive.arch.ethz.ch/esum/downloads/manuals/emaptics.pdf">https://archive.arch.ethz.ch/esum/downloads/manuals/emaptics.pdf</ext-link>
          </comment>
        </nlm-citation>
      </ref>
      <ref id="ref52">
        <label>52</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>van Hees</surname>
              <given-names>VT</given-names>
            </name>
            <name name-style="western">
              <surname>Sabia</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Anderson</surname>
              <given-names>KN</given-names>
            </name>
            <name name-style="western">
              <surname>Denton</surname>
              <given-names>SJ</given-names>
            </name>
            <name name-style="western">
              <surname>Oliver</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Catt</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Abell</surname>
              <given-names>JG</given-names>
            </name>
            <name name-style="western">
              <surname>Kivimäki</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Trenell</surname>
              <given-names>MI</given-names>
            </name>
            <name name-style="western">
              <surname>Singh-Manoux</surname>
              <given-names>A</given-names>
            </name>
          </person-group>
          <article-title>A novel, open access method to assess sleep duration using a wrist-worn accelerometer</article-title>
          <source>PLoS One</source>
          <year>2015</year>
          <month>11</month>
          <day>16</day>
          <volume>10</volume>
          <issue>11</issue>
          <fpage>e0142533</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://dx.plos.org/10.1371/journal.pone.0142533"/>
          </comment>
          <pub-id pub-id-type="doi">10.1371/journal.pone.0142533</pub-id>
          <pub-id pub-id-type="medline">26569414</pub-id>
          <pub-id pub-id-type="pii">PONE-D-15-37118</pub-id>
          <pub-id pub-id-type="pmcid">PMC4646630</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref53">
        <label>53</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Patterson</surname>
              <given-names>MR</given-names>
            </name>
            <name name-style="western">
              <surname>Nunes</surname>
              <given-names>AAS</given-names>
            </name>
            <name name-style="western">
              <surname>Gerstel</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Pilkar</surname>
              <given-names>R</given-names>
            </name>
            <name name-style="western">
              <surname>Guthrie</surname>
              <given-names>T</given-names>
            </name>
            <name name-style="western">
              <surname>Neishabouri</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Guo</surname>
              <given-names>CC</given-names>
            </name>
          </person-group>
          <article-title>40 years of actigraphy in sleep medicine and current state of the art algorithms</article-title>
          <source>NPJ Digit Med</source>
          <year>2023</year>
          <month>03</month>
          <day>24</day>
          <volume>6</volume>
          <issue>1</issue>
          <fpage>51</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://doi.org/10.1038/s41746-023-00802-1"/>
          </comment>
          <pub-id pub-id-type="doi">10.1038/s41746-023-00802-1</pub-id>
          <pub-id pub-id-type="medline">36964203</pub-id>
          <pub-id pub-id-type="pii">10.1038/s41746-023-00802-1</pub-id>
          <pub-id pub-id-type="pmcid">PMC10039037</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref54">
        <label>54</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Cui</surname>
              <given-names>Z</given-names>
            </name>
            <name name-style="western">
              <surname>Chen</surname>
              <given-names>W</given-names>
            </name>
            <name name-style="western">
              <surname>Chen</surname>
              <given-names>Y</given-names>
            </name>
          </person-group>
          <article-title>Multi-scale convolutional neural networks for time series classification</article-title>
          <source>arXiv preprint posted online 2016. [doi: 10.48550/arXiv.1603.06995]</source>
          <year>2021</year>
          <pub-id pub-id-type="doi">10.48550/arXiv.1603.06995</pub-id>
          <pub-id pub-id-type="pii">S0893-6080(21)00001-0</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref55">
        <label>55</label>
        <nlm-citation citation-type="confproc">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>55</surname>
              <given-names>PM</given-names>
            </name>
            <name name-style="western">
              <surname>Zlatintsi</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Filntisis</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Roumeliotis</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Efthymiou</surname>
              <given-names>N</given-names>
            </name>
            <name name-style="western">
              <surname>Maragos</surname>
              <given-names>P</given-names>
            </name>
          </person-group>
          <article-title>A comparative study of autoencoder architectures for mental health analysis using wearable sensors data</article-title>
          <year>2022</year>
          <conf-name>EUSIPCO 2022: 30th European Signal Processing Conference</conf-name>
          <conf-date>August 29-September 2, 2022</conf-date>
          <conf-loc>Belgrade, Serbia</conf-loc>
          <pub-id pub-id-type="doi">10.23919/eusipco55093.2022.9909697</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref56">
        <label>56</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Föll</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Maritsch</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Spinola</surname>
              <given-names>F</given-names>
            </name>
            <name name-style="western">
              <surname>Mishra</surname>
              <given-names>V</given-names>
            </name>
            <name name-style="western">
              <surname>Barata</surname>
              <given-names>F</given-names>
            </name>
            <name name-style="western">
              <surname>Kowatsch</surname>
              <given-names>T</given-names>
            </name>
            <name name-style="western">
              <surname>Fleisch</surname>
              <given-names>E</given-names>
            </name>
            <name name-style="western">
              <surname>Wortmann</surname>
              <given-names>F</given-names>
            </name>
          </person-group>
          <article-title>FLIRT: a feature generation toolkit for wearable data</article-title>
          <source>Comput Methods Programs Biomed</source>
          <year>2021</year>
          <month>11</month>
          <volume>212</volume>
          <fpage>106461</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://linkinghub.elsevier.com/retrieve/pii/S0169-2607(21)00535-6"/>
          </comment>
          <pub-id pub-id-type="doi">10.1016/j.cmpb.2021.106461</pub-id>
          <pub-id pub-id-type="medline">34736174</pub-id>
          <pub-id pub-id-type="pii">S0169-2607(21)00535-6</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref57">
        <label>57</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Özdenizci</surname>
              <given-names>O</given-names>
            </name>
            <name name-style="western">
              <surname>Wang</surname>
              <given-names>Y</given-names>
            </name>
            <name name-style="western">
              <surname>Koike-Akino</surname>
              <given-names>T</given-names>
            </name>
            <name name-style="western">
              <surname>ErdoĞmuŞ</surname>
              <given-names>D</given-names>
            </name>
          </person-group>
          <article-title>Learning invariant representations from EEG via adversarial inference</article-title>
          <source>IEEE Access</source>
          <year>2020</year>
          <volume>8</volume>
          <fpage>27074</fpage>
          <lpage>27085</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://europepmc.org/abstract/MED/33747669"/>
          </comment>
          <pub-id pub-id-type="doi">10.1109/access.2020.2971600</pub-id>
          <pub-id pub-id-type="medline">33747669</pub-id>
          <pub-id pub-id-type="pmcid">PMC7971154</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref58">
        <label>58</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Cheng</surname>
              <given-names>JY</given-names>
            </name>
            <name name-style="western">
              <surname>Goh</surname>
              <given-names>H</given-names>
            </name>
            <name name-style="western">
              <surname>Dogrusoz</surname>
              <given-names>K</given-names>
            </name>
            <name name-style="western">
              <surname>Tuzel</surname>
              <given-names>O</given-names>
            </name>
            <name name-style="western">
              <surname>Azemi</surname>
              <given-names>E</given-names>
            </name>
          </person-group>
          <article-title>Subject-aware contrastive learning for biosignals</article-title>
          <source>arXiv preprint posted online 2020. [doi: 10.48550/arXiv.2007.04871]</source>
          <year>2021</year>
          <pub-id pub-id-type="doi">10.48550/arXiv.2007.04871</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref59">
        <label>59</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Sabry</surname>
              <given-names>F</given-names>
            </name>
            <name name-style="western">
              <surname>Eltaras</surname>
              <given-names>T</given-names>
            </name>
            <name name-style="western">
              <surname>Labda</surname>
              <given-names>W</given-names>
            </name>
            <name name-style="western">
              <surname>Alzoubi</surname>
              <given-names>K</given-names>
            </name>
            <name name-style="western">
              <surname>Malluhi</surname>
              <given-names>Q</given-names>
            </name>
          </person-group>
          <article-title>Machine learning for healthcare wearable devices: the big picture</article-title>
          <source>J Healthc Eng</source>
          <year>2022</year>
          <volume>2022</volume>
          <fpage>4653923</fpage>
          <pub-id pub-id-type="doi">10.1155/2022/4653923</pub-id>
          <pub-id pub-id-type="medline">35480146</pub-id>
          <pub-id pub-id-type="pmcid">PMC9038375</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref60">
        <label>60</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Strzelecki</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Badura</surname>
              <given-names>P</given-names>
            </name>
          </person-group>
          <article-title>Machine learning for biomedical application</article-title>
          <source>Appl Sci</source>
          <year>2022</year>
          <month>02</month>
          <day>15</day>
          <volume>12</volume>
          <issue>4</issue>
          <fpage>2022</fpage>
          <pub-id pub-id-type="doi">10.3390/app12042022</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref61">
        <label>61</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Li</surname>
              <given-names>L</given-names>
            </name>
            <name name-style="western">
              <surname>Jamieson</surname>
              <given-names>K</given-names>
            </name>
            <name name-style="western">
              <surname>DeSalvo</surname>
              <given-names>G</given-names>
            </name>
            <name name-style="western">
              <surname>Rostamizadeh</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Talwalkar</surname>
              <given-names>A</given-names>
            </name>
          </person-group>
          <article-title>Hyperband: a novel bandit-based approach to hyperparameter optimization</article-title>
          <source>J Mach Learn Res</source>
          <year>2017</year>
          <volume>18</volume>
          <fpage>6765</fpage>
          <lpage>6816</lpage>
          <pub-id pub-id-type="doi">10.1007/978-1-4899-7687-1_100200</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref62">
        <label>62</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Srivastava</surname>
              <given-names>N</given-names>
            </name>
            <name name-style="western">
              <surname>Hinton</surname>
              <given-names>G</given-names>
            </name>
            <name name-style="western">
              <surname>Krizhevsky</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Sutskever</surname>
              <given-names>I</given-names>
            </name>
            <name name-style="western">
              <surname>Salakhutdinov</surname>
              <given-names>R</given-names>
            </name>
          </person-group>
          <article-title>Dropout: a simple way to prevent neural networks from overfitting</article-title>
          <source>J Mach Learn Res</source>
          <year>2014</year>
          <volume>15</volume>
          <issue>56</issue>
          <fpage>1929</fpage>
          <lpage>1958</lpage>
        </nlm-citation>
      </ref>
      <ref id="ref63">
        <label>63</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Ismail Fawaz</surname>
              <given-names>H</given-names>
            </name>
            <name name-style="western">
              <surname>Forestier</surname>
              <given-names>G</given-names>
            </name>
            <name name-style="western">
              <surname>Weber</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Idoumghar</surname>
              <given-names>L</given-names>
            </name>
            <name name-style="western">
              <surname>Muller</surname>
              <given-names>P</given-names>
            </name>
          </person-group>
          <article-title>Deep learning for time series classification: a review</article-title>
          <source>Data Min Knowl Disc</source>
          <year>2019</year>
          <month>03</month>
          <day>02</day>
          <volume>33</volume>
          <issue>4</issue>
          <fpage>917</fpage>
          <lpage>963</lpage>
          <pub-id pub-id-type="doi">10.1007/s10618-019-00619-1</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref64">
        <label>64</label>
        <nlm-citation citation-type="confproc">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Paszke</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Gross</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Massa</surname>
              <given-names>F</given-names>
            </name>
            <name name-style="western">
              <surname>Lerer</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Bradbury</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Chanan</surname>
              <given-names>G</given-names>
            </name>
          </person-group>
          <article-title>PyTorch: an imperative style, high-performance deep learning library</article-title>
          <year>2019</year>
          <conf-name>NeurIPS 2019: 33rd Conference on Neural Information Processing Systems</conf-name>
          <conf-date>December 8-14, 2019</conf-date>
          <conf-loc>Vancouver, Canada</conf-loc>
          <fpage>8024</fpage>
          <lpage>8035</lpage>
          <pub-id pub-id-type="doi">10.7551/mitpress/11474.003.0014</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref65">
        <label>65</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Pedregosa</surname>
              <given-names>F</given-names>
            </name>
            <name name-style="western">
              <surname>Varoquaux</surname>
              <given-names>G</given-names>
            </name>
            <name name-style="western">
              <surname>Gramfort</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Michel</surname>
              <given-names>V</given-names>
            </name>
            <name name-style="western">
              <surname>Thirion</surname>
              <given-names>B</given-names>
            </name>
            <name name-style="western">
              <surname>Grisel</surname>
              <given-names>O</given-names>
            </name>
            <name name-style="western">
              <surname>Blondel</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Prettenhofer</surname>
              <given-names>P</given-names>
            </name>
          </person-group>
          <article-title>Scikit-learn: machine learning in Python</article-title>
          <source>J Mach Learn Res</source>
          <year>2011</year>
          <volume>12</volume>
          <issue>85</issue>
          <fpage>2825</fpage>
          <lpage>2830</lpage>
        </nlm-citation>
      </ref>
      <ref id="ref66">
        <label>66</label>
        <nlm-citation citation-type="confproc">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Chen</surname>
              <given-names>T</given-names>
            </name>
            <name name-style="western">
              <surname>Guestrin</surname>
              <given-names>C</given-names>
            </name>
          </person-group>
          <article-title>XGBoost: a scalable tree boosting system</article-title>
          <year>2016</year>
          <conf-name>KDD '16: 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining</conf-name>
          <conf-date>August 13-17, 2016</conf-date>
          <conf-loc>San Francisco, CA</conf-loc>
          <pub-id pub-id-type="doi">10.1145/2939672.2939785</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref67">
        <label>67</label>
        <nlm-citation citation-type="web">
          <article-title>Experiment tracking: the system of record for your model training</article-title>
          <source>Weights &amp; Biases</source>
          <access-date>2024-06-24</access-date>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://wandb.ai/site/experiment-tracking">https://wandb.ai/site/experiment-tracking</ext-link>
          </comment>
        </nlm-citation>
      </ref>
      <ref id="ref68">
        <label>68</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>McInnes</surname>
              <given-names>L</given-names>
            </name>
            <name name-style="western">
              <surname>Healy</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Melville</surname>
              <given-names>J</given-names>
            </name>
          </person-group>
          <article-title>UMAP: uniform manifold approximation and projection for dimension reduction</article-title>
          <source>arXiv oreprint posted online 2018. [doi: 10.48550/arXiv.1802.03426]</source>
          <year>2021</year>
          <pub-id pub-id-type="doi">10.48550/arXiv.1802.03426</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref69">
        <label>69</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Birk</surname>
              <given-names>RH</given-names>
            </name>
            <name name-style="western">
              <surname>Samuel</surname>
              <given-names>G</given-names>
            </name>
          </person-group>
          <article-title>Digital phenotyping for mental health: reviewing the challenges of using data to monitor and predict mental health problems</article-title>
          <source>Curr Psychiatry Rep</source>
          <year>2022</year>
          <month>10</month>
          <day>24</day>
          <volume>24</volume>
          <issue>10</issue>
          <fpage>523</fpage>
          <lpage>528</lpage>
          <pub-id pub-id-type="doi">10.1007/s11920-022-01358-9</pub-id>
          <pub-id pub-id-type="medline">36001220</pub-id>
          <pub-id pub-id-type="pii">10.1007/s11920-022-01358-9</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref70">
        <label>70</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>El-Nouby</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Izacard</surname>
              <given-names>G</given-names>
            </name>
            <name name-style="western">
              <surname>Touvron</surname>
              <given-names>H</given-names>
            </name>
            <name name-style="western">
              <surname>Laptev</surname>
              <given-names>I</given-names>
            </name>
            <name name-style="western">
              <surname>Jegou</surname>
              <given-names>H</given-names>
            </name>
            <name name-style="western">
              <surname>Grave</surname>
              <given-names>E</given-names>
            </name>
          </person-group>
          <article-title>Are large-scale datasets necessary for self-supervised pre-training</article-title>
          <source>arXiv preprint posted online 2021. [doi: 10.48550/arXiv.2112.10740]</source>
          <year>2021</year>
          <pub-id pub-id-type="doi">10.48550/arXiv.2112.10740</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref71">
        <label>71</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Kumar</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Rawat</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Chauhan</surname>
              <given-names>S</given-names>
            </name>
          </person-group>
          <article-title>Contrastive self-supervised learning: review, progress, challenges and future research directions</article-title>
          <source>Int J Multimed Info Retr</source>
          <year>2022</year>
          <month>08</month>
          <day>05</day>
          <volume>11</volume>
          <issue>4</issue>
          <fpage>461</fpage>
          <lpage>488</lpage>
          <pub-id pub-id-type="doi">10.1007/s13735-022-00245-6</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref72">
        <label>72</label>
        <nlm-citation citation-type="web">
          <article-title>FcmC / E4SelfLearning</article-title>
          <source>Hugging Face</source>
          <access-date>2024-07-02</access-date>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://huggingface.co/datasets/FcmC/E4SelfLearning">https://huggingface.co/datasets/FcmC/E4SelfLearning</ext-link>
          </comment>
        </nlm-citation>
      </ref>
      <ref id="ref73">
        <label>73</label>
        <nlm-citation citation-type="web">
          <article-title>april-tools / e4selflearning</article-title>
          <source>GitHub</source>
          <access-date>2024-07-02</access-date>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://github.com/april-tools/e4selflearning">https://github.com/april-tools/e4selflearning</ext-link>
          </comment>
        </nlm-citation>
      </ref>
    </ref-list>
  </back>
</article>
