<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.3 20070202//EN" "journalpublishing.dtd">
<article xml:lang="EN" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Sleep</journal-id>
<journal-title>Frontiers in Sleep</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Sleep</abbrev-journal-title>
<issn pub-type="epub">2813-2890</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.3389/frsle.2023.1127697</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Sleep</subject>
<subj-group>
<subject>Original Research</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>Using the electrodermal activity signal and machine learning for diagnosing sleep</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="yes">
<name><surname>Piccini</surname> <given-names>Jacopo</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<xref ref-type="corresp" rid="c001"><sup>&#x0002A;</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/2051627/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>August</surname> <given-names>Elias</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/2146385/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>&#x000D3;skarsd&#x000F3;ttir</surname> <given-names>Mar&#x000ED;a</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="aff" rid="aff3"><sup>3</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/818919/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Arnard&#x000F3;ttir</surname> <given-names>Erna Sif</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<xref ref-type="aff" rid="aff3"><sup>3</sup></xref>
<xref ref-type="aff" rid="aff4"><sup>4</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/2166593/overview"/>
</contrib>
</contrib-group>
<aff id="aff1"><sup>1</sup><institution>Reykjavik University Sleep Institute, School of Technology, Reykjavik University</institution>, <addr-line>Reykjavik</addr-line>, <country>Iceland</country></aff>
<aff id="aff2"><sup>2</sup><institution>Department of Engineering, Reykjavik University</institution>, <addr-line>Reykjavik</addr-line>, <country>Iceland</country></aff>
<aff id="aff3"><sup>3</sup><institution>Department of Computer Science, Reykjavik University</institution>, <addr-line>Reykjavik</addr-line>, <country>Iceland</country></aff>
<aff id="aff4"><sup>4</sup><institution>Landspitali&#x02013;The National University Hospital of Iceland</institution>, <addr-line>Reykjavik</addr-line>, <country>Iceland</country></aff>
<author-notes>
<fn fn-type="edited-by"><p>Edited by: Ding Zou, University of Gothenburg, Sweden</p></fn>
<fn fn-type="edited-by"><p>Reviewed by: Johan A. Verbraecken, Antwerp University Hospital, Belgium; Martin O. Mendez, Universidad Aut&#x000F3;noma de San Luis Potos&#x000ED;, Mexico</p></fn>
<corresp id="c001">&#x0002A;Correspondence: Jacopo Piccini <email>jacopop&#x00040;ru.is</email></corresp>
<fn fn-type="other" id="fn001"><p>This article was submitted to Precision Sleep Medicine, a section of the journal Frontiers in Sleep</p></fn></author-notes>
<pub-date pub-type="epub">
<day>02</day>
<month>03</month>
<year>2023</year>
</pub-date>
<pub-date pub-type="collection">
<year>2023</year>
</pub-date>
<volume>2</volume>
<elocation-id>1127697</elocation-id>
<history>
<date date-type="received">
<day>19</day>
<month>12</month>
<year>2022</year>
</date>
<date date-type="accepted">
<day>14</day>
<month>02</month>
<year>2023</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#x000A9; 2023 Piccini, August, &#x000D3;skarsd&#x000F3;ttir and Arnard&#x000F3;ttir.</copyright-statement>
<copyright-year>2023</copyright-year>
<copyright-holder>Piccini, August, &#x000D3;skarsd&#x000F3;ttir and Arnard&#x000F3;ttir</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/"><p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.</p></license>
</permissions>
<abstract>
<sec>
<title>Introduction</title>
<p>The use of the electrodermal activity (EDA) signal for health diagnostics is becoming increasingly popular. The increase is due to advances in computational methods such as machine learning (ML) and the availability of wearable devices capable of better measuring EDA signals. One field where work on EDA has significantly increased is sleep research, as changes in EDA are related to different aspects of sleep and sleep health such as sleep stages and sleep-disordered breathing; for example, obstructive sleep apnoea (OSA).</p>
</sec>
<sec>
<title>Methods</title>
<p>In this work, we used supervised machine learning, particularly the extreme gradient boosting (XGBoost) algorithm, to develop models for detecting sleep stages and OSA. We considered clinical knowledge of EDA during particular sleep stages and OSA occurrences, complementing a standard statistical feature set with EDA-specific variables.</p>
</sec>
<sec>
<title>Results</title>
<p>We obtained an average macro F1-score of 57.5% and 66.6%, depending on whether we considered five or four sleep stages, respectively. When detecting OSA, regardless of the severity, the model reached an accuracy of 83.7% or 78.4%, depending on the measure used to classify the participant&#x00027;s sleep health status.</p>
</sec>
<sec>
<title>Conclusion</title>
<p>The research work presented here provides further evidence that, in the future, most sleep health diagnostics might well do without complete polysomnography (PSG) studies, as wearables can detect well the EDA signal.</p>
</sec></abstract>
<kwd-group>
<kwd>sleep</kwd>
<kwd>electrodermal activity</kwd>
<kwd>sleep stages</kwd>
<kwd>obstructive sleep apnea</kwd>
<kwd>machine learning</kwd>
</kwd-group>
<contract-sponsor id="cn001">HORIZON EUROPE Framework Programme<named-content content-type="fundref-id">10.13039/100018693</named-content></contract-sponsor>
<counts>
<fig-count count="8"/>
<table-count count="6"/>
<equation-count count="0"/>
<ref-count count="49"/>
<page-count count="12"/>
<word-count count="7079"/>
</counts>
</article-meta>
</front>
<body>
<sec sec-type="intro" id="s1">
<title>1. Introduction</title>
<p>Electrodermal activity (EDA) is one of the longest-known and most accessible physiological signals (Boucsein, <xref ref-type="bibr" rid="B9">2012</xref>). Electrodermal activity reflects changes in skin potential due to sweating, which, during sleep, has a thermoregulatory function. Eccrine sweat glands, the sweat glands that are activated during sleep (Boucsein, <xref ref-type="bibr" rid="B9">2012</xref>), are innervated by the sympathetic nervous system (SNS) only, with no parasympathetic input (Baker, <xref ref-type="bibr" rid="B7">2019</xref>). Despite this direct connection between EDA and the SNS during the night, the signal has been so far mostly used in studies of diurnal phenomena. For instance, it has been used for detecting stress (Zontone et al., <xref ref-type="bibr" rid="B49">2019</xref>), epileptic seizures (Poh et al., <xref ref-type="bibr" rid="B38">2010</xref>), and students&#x00027; emotional engagement in classrooms (Di Lascio et al., <xref ref-type="bibr" rid="B18">2018</xref>).</p>
<p>One of the main reasons for neglecting EDA in sleep studies is the complexity of the recorded signals. Long-term EDA recordings are susceptible to noise from various sources that cause artifacts in the signals, that is, sudden out-of-scale spikes; the most prominent sources of noise are body movements and poor skin-to-electrode connection. While in laboratory-controlled settings it is possible to log the patient&#x00027;s movements and to discard those signal segments when analyzing data, in free-living conditions, it is more difficult to do so. Because removing artifacts is important, much of the research on EDA signals has focused on automating their detection. Various methods have been proposed, often using supervised or unsupervised machine learning (ML) algorithms (Taylor et al., <xref ref-type="bibr" rid="B45">2015</xref>; Hossain et al., <xref ref-type="bibr" rid="B24">2022</xref>; Subramanian et al., <xref ref-type="bibr" rid="B44">2022</xref>). Electrodermal activity has been only scarcely and only recently used for sleep staging or to infer sleep quality (Anusha et al., <xref ref-type="bibr" rid="B2">2022</xref>; Gashi et al., <xref ref-type="bibr" rid="B19">2022</xref>).</p>
<p>Abnormal sweating patterns may indicate the presence of various sleep disorders (Broman and Hetta, <xref ref-type="bibr" rid="B11">1994</xref>; Idiaquez et al., <xref ref-type="bibr" rid="B25">2022</xref>). In this work, we focused on sleep-breathing disorders, particularly obstructive sleep apnoea (OSA) (Jordan et al., <xref ref-type="bibr" rid="B26">2014</xref>). Obstructive sleep apnoea causes unexpected SNS activity, resulting in frequent nocturnal sweating (Arnardottir et al., <xref ref-type="bibr" rid="B5">2013</xref>). Despite the relationships between EDA and OSA has been studied (Lajos, <xref ref-type="bibr" rid="B28">2004</xref>; Arnardottir et al., <xref ref-type="bibr" rid="B6">2010</xref>), there is still a need for a quantitative model relating EDA and OSA.</p>
<p>In this paper, we applied supervised ML to EDA data to predict sleep stages and the presence of OSA. Currently, diagnosing it requires performing a full polysomnography (PSG) study in a laboratory setting, followed by manual scoring of the recordings. This procedure is time-consuming and can lead to atypical sleep patterns because of the differences between sleeping in a controlled environment, such as a sleep lab, and sleeping at home (Arnard&#x000F3;ttir et al., <xref ref-type="bibr" rid="B3">2021</xref>). We present an ML-based approach that uses features extracted from the EDA signal, recorded in a home-setting, to automatically detect sleep stages and OSA.</p>
</sec>
<sec sec-type="materials and methods" id="s2">
<title>2. Materials and methods</title>
<p>We used a set of 60 full-night PSG recordings from participants in the Sleep Revolution Project (Arnardottir et al., <xref ref-type="bibr" rid="B4">2022</xref>). We describe the cohort in detail in <xref ref-type="table" rid="T1">Table 1</xref>. The consent of the National Bioethics Committee and the Data Protection Authority of Iceland was granted for this study (VSN-21-070). All participants received and signed an informed consent for study participation.</p>
<table-wrap position="float" id="T1">
<label>Table 1</label>
<caption><p>Dataset content according to the apnoea-hypopnoea index (AHI) or the oxygen desaturation index (ODI).</p></caption>
<table frame="box" rules="all">
<thead>
<tr style="background-color:&#x00023;919498;color:&#x00023;ffffff">
<th/>
<th valign="top" align="center"><bold>Non-OSA</bold></th>
<th valign="top" align="center"><bold>Mild OSA</bold></th>
<th valign="top" align="center"><bold>Moderate to severe OSA</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left">Number of participants (AHI)</td>
<td valign="top" align="center">19</td>
<td valign="top" align="center">24</td>
<td valign="top" align="center">17</td>
</tr>
<tr>
<td valign="top" align="left">Female participants (AHI)</td>
<td valign="top" align="center">47.4%</td>
<td valign="top" align="center">67.0%</td>
<td valign="top" align="center">29.4%</td>
</tr>
<tr>
<td valign="top" align="left">AHI</td>
<td valign="top" align="center">2.8 &#x000B1; 1.3</td>
<td valign="top" align="center">10.0 &#x000B1; 2.8</td>
<td valign="top" align="center">24.9 &#x000B1; 10.5</td>
</tr>
<tr>
<td valign="top" align="left">BMI</td>
<td valign="top" align="center">25.8 &#x000B1; 3.6</td>
<td valign="top" align="center">26.0 &#x000B1; 3.6</td>
<td valign="top" align="center">25.8 &#x000B1; 3.8</td>
</tr>
<tr>
<td valign="top" align="left">Age</td>
<td valign="top" align="center">36.2 &#x000B1; 10.4</td>
<td valign="top" align="center">49.6 &#x000B1; 14.7</td>
<td valign="top" align="center">52.0 &#x000B1; 14.4</td>
</tr>
<tr>
<td valign="top" align="left">Percentage of epochs (AHI)</td>
<td valign="top" align="center">32.1%</td>
<td valign="top" align="center">39.0%</td>
<td valign="top" align="center">28.9%</td>
</tr>
<tr>
<td valign="top" align="left">Number of participants (ODI)</td>
<td valign="top" align="center">21</td>
<td valign="top" align="center">26</td>
<td valign="top" align="center">13</td>
</tr>
<tr>
<td valign="top" align="left">Female participants (ODI)</td>
<td valign="top" align="center">42.9%</td>
<td valign="top" align="center">61.5%</td>
<td valign="top" align="center">38.5%</td>
</tr>
<tr>
<td valign="top" align="left">ODI</td>
<td valign="top" align="center">1.5 &#x000B1; 2.5</td>
<td valign="top" align="center">9.0 &#x000B1; 2.5</td>
<td valign="top" align="center">24.1 &#x000B1; 7.7</td>
</tr>
<tr>
<td valign="top" align="left">BMI</td>
<td valign="top" align="center">25.8 &#x000B1; 3.8</td>
<td valign="top" align="center">27.7 &#x000B1; 4.5</td>
<td valign="top" align="center">29.2 &#x000B1; 2.8</td>
</tr>
<tr>
<td valign="top" align="left">Age</td>
<td valign="top" align="center">38.4 &#x000B1; 12.4</td>
<td valign="top" align="center">48.2 &#x000B1; 14.8</td>
<td valign="top" align="center">53.9 &#x000B1; 14.0</td>
</tr>
<tr>
<td valign="top" align="left">Percentage of epochs (ODI)</td>
<td valign="top" align="center">33.9%</td>
<td valign="top" align="center">44.7%</td>
<td valign="top" align="center">21.4%</td>
</tr>
</tbody>
</table>
</table-wrap>
<sec>
<title>2.1. Instrumentation</title>
<p>Polysomnography (PSG) studies were recorded using A1 devices from Nox Medical (Reykjavik, Iceland). As the traditional PSG setup does not include EDA recordings, we added a channel for the EDA signal. A1 devices measured EDA at a sampling frequency of 200 Hz. For the measurement of the EDA signal, we used the same technique as in Arnardottir et al. (<xref ref-type="bibr" rid="B6">2010</xref>).</p>
</sec>
<sec>
<title>2.2. Sleep stage labeling</title>
<p>Sleep experts manually scored the electroencephalogram (EEG) and determined the sleep stage: wake (W), rapid eye movement (REM) sleep, sleep stage 1 (N1), sleep stage 2 (N2), and sleep stage 3 (N3). The scoring procedure was performed according to the American Academy of Sleep Medicine guidelines (Berry et al., <xref ref-type="bibr" rid="B8">2020</xref>), using the Noxturnal software (Nox Medical, Reykjavik, Iceland). In this work, for detection, we considered both the above mentioned five stages or only four stages, by merging the N1 and N2 stages and relabeling them as light sleep. Additionally, we relabeled the N3 stage as deep sleep. The stages that we considered are then W, light sleep, deep sleep, and REM sleep, as is often done in the literature (Genzel et al., <xref ref-type="bibr" rid="B20">2014</xref>). We report the distribution of sleep stages in <xref ref-type="table" rid="T2">Table 2</xref>.</p>
<table-wrap position="float" id="T2">
<label>Table 2</label>
<caption><p>Distribution of sleep stages for 4 and 5 stages architectures.</p></caption>
<table frame="box" rules="all">
<thead>
<tr style="background-color:&#x00023;919498;color:&#x00023;ffffff">
<th valign="top" align="left"><bold>Wake</bold></th>
<th valign="top" align="center"><bold>N1</bold></th>
<th valign="top" align="center"><bold>N2</bold></th>
<th valign="top" align="center"><bold>N3</bold></th>
<th valign="top" align="center"><bold>REM</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left">12.2% &#x000B1; 0.1</td>
<td valign="top" align="center">16.5% &#x000B1; 0.1</td>
<td valign="top" align="center">32.5% &#x000B1; 0.1</td>
<td valign="top" align="center">18.2% &#x000B1; 0.1</td>
<td valign="top" align="center">20.6% &#x000B1; 0.1</td>
</tr>
<tr>
<td valign="top" align="left">Wake</td>
<td valign="top" align="center" colspan="2">Light</td>
<td valign="top" align="center">Deep</td>
<td valign="top" align="center">REM</td>
</tr>
<tr>
<td valign="top" align="left">12.2% &#x000B1; 0.1</td>
<td valign="top" align="center" colspan="2">49.0% &#x000B1; 0.1</td>
<td valign="top" align="center">18.2% &#x000B1; 0.1</td>
<td valign="top" align="center">20.6% &#x000B1; 0.1</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<p>We report mean values and standard deviations.</p>
</table-wrap-foot>
</table-wrap>
</sec>
<sec>
<title>2.3. Obstructive sleep apnoea labeling</title>
<p>Currently, OSA detection requires either manual scoring of a full PSG study or a home sleep apnoea testing, and the evaluation of two parameters: the apnoea&#x02013;hypopnoea index (AHI) and the oxygen desaturation index (ODI) per hour of sleep (Berry et al., <xref ref-type="bibr" rid="B8">2020</xref>). A shortcoming of the AHI is that it does not quantify one of the main consequences of OSA, which is oxygen desaturation. For this reason, sleep experts have defined the ODI value as the number of oxygen desaturation events &#x02265;3% or &#x02265;4% divided by the total sleep time (Chung et al., <xref ref-type="bibr" rid="B16">2012</xref>; Berry et al., <xref ref-type="bibr" rid="B8">2020</xref>). In this work, the sleep experts used 3% as threshold value.</p>
<p>We obtained a participant&#x00027;s OSA status from the manual scoring of PSG. We merged the moderate and severe OSA conditions to obtain three classes. To define them, we used the following modified version of the standard guidelines (AASM, <xref ref-type="bibr" rid="B1">1999</xref>):</p>
<list list-type="bullet">
<list-item><p>Non-OSA: AHI &#x0003C;5,</p></list-item>
<list-item><p>Mild OSA: 5 &#x02264; AHI &#x0003C;15,</p></list-item>
<list-item><p>Moderate to severe OSA: AHI&#x02265;15.</p></list-item>
</list>
<p>We also classified the samples based on the ODI and computed the correlation between the two indexes and the EDA signal. Note that the ranges used for the ODI-based classification are the same as the ones for the AHI classification (Chung et al., <xref ref-type="bibr" rid="B16">2012</xref>). Each epoch in an individual&#x00027;s data sample was labeled as either belonging to a non-OSA participant, one with mild OSA, or one with moderate to severe OSA. By epoch, we refer to a 30 s signal window. We adopted this time length to be consistent with the epochs&#x00027; length used by sleep experts during manual scoring. Note that only seven samples were classified differently depending on whether we used the AHI or the ODI. Finally, we present the distribution of non-OSA, mild OSA, and moderate to severe OSA epochs in <xref ref-type="table" rid="T1">Table 1</xref>.</p>
</sec>
<sec>
<title>2.4. Signal pre-processing</title>
<p>From the Noxturnal software environment, we exported EDA signals using the EDF file format and imported them in MATLAB<sup>&#x000AE;</sup> (MATLAB, <xref ref-type="bibr" rid="B32">2022</xref>) for pre-processing and feature extraction. We down-sampled the original signal from 200 to 35 Hz to reduce the computational burden, following the guidelines presented in Braithwaite et al. (<xref ref-type="bibr" rid="B10">2013</xref>). We then pre-processed the original signal to obtain different kinds of data required by our detection algorithm.</p>
<p>First, because individual sweating patterns lead to significantly different-looking EDA signals (Boucsein, <xref ref-type="bibr" rid="B9">2012</xref>), we computed the second-order polynomial best approximating the raw signal and subtracted it from the raw signal. Second, we applied a seventh-order Savitzky-Golay filter (Schafer, <xref ref-type="bibr" rid="B42">2011</xref>) to the original signal to eliminate high-frequency contributions. We also applied a discrete wavelet transform (DWT) to the original signal. We computed the approximate and detailed discrete wavelet coefficients and soft thresholded the detail coefficients to remove possible recording noise (Coifman and Donoho, <xref ref-type="bibr" rid="B17">1995</xref>). We then subtracted the Savitzky-Golay filtered signal from the discrete wavelet filtered signal; we referred to it as diffEDA.</p>
<p>Third, we computed the first and second-order derivatives of previously described three signals using a differentiator finite impulse response (FIR) filter. We used this method rather than a finite-differences scheme to prevent noise propagation. Particularly, we used a 50th-order filter with a passband frequency of 10 Hz and a stop-band frequency of 12.5 Hz. We disregarded the transient to avoid including artificial oscillations caused by applying the filter by discarding <italic>N</italic> = 50 samples. Note that, we denoted time derivatives by placing &#x02202;<sub><italic>t</italic></sub> or <inline-formula><mml:math id="M3"><mml:msubsup><mml:mrow><mml:mi>&#x02202;</mml:mi></mml:mrow><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula> before the signal of interest; for example, we referred to the second time derivative of the de-trended signal as <inline-formula><mml:math id="M4"><mml:msubsup><mml:mrow><mml:mi>&#x02202;</mml:mi></mml:mrow><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula>detEDA.</p>
<p><xref ref-type="fig" rid="F1">Figure 1</xref> shows the complexity of the EDA signal. We show 5-min time windows of continuous N3 and REM sleep in <xref ref-type="fig" rid="F1">Figures 1A</xref>, <xref ref-type="fig" rid="F1">B</xref>, respectively. We then highlight EDA events in <xref ref-type="fig" rid="F1">Figure 1C</xref>. Finally, we show the EDA signal during an OSA occurrence in <xref ref-type="fig" rid="F1">Figure 1D</xref>.</p>
<fig id="F1" position="float">
<label>Figure 1</label>
<caption><p>Different segments of the electrodermal activity (EDA) signal and of the Savitzky-Golay filtered signal from key phases of sleep. <bold>(A)</bold> Five minutes of raw and filtered signal during sleep stage 3 (N3). <bold>(B)</bold> Five minutes of raw and filtered signal during rapid eye movement sleep (REM). <bold>(C)</bold> EDA events (raw signal). <bold>(D)</bold> EDA during an obstructive sleep apnoea occurrence.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="frsle-02-1127697-g0001.tif"/>
</fig>
</sec>
<sec>
<title>2.5. Feature extraction and selection</title>
<p>We defined a feature set in the time-domain, frequency-domain, as well as time-frequency domain (these are wavelet-related variables) in a process called feature engineering (Verdonck et al., <xref ref-type="bibr" rid="B46">2021</xref>). In addition to standard statistical features, we used number and energy content of EDA events and storms, as they are known to differ for different sleep stages (Sano et al., <xref ref-type="bibr" rid="B41">2014</xref>) and OSA severity (Arnardottir et al., <xref ref-type="bibr" rid="B6">2010</xref>). Electrodermal activity events are oscillations of the skin voltage of defined amplitudes and frequencies. We are particularly interested in the following three types of oscillations: positive/negative monophasic, biphasic, and triphasic. Electrodermal activity storms are time windows with high concentrations of events. The definition of storms has changed through time (Burch, <xref ref-type="bibr" rid="B12">1965</xref>; Sano et al., <xref ref-type="bibr" rid="B41">2014</xref>), we used an equivalent definition to the one given by Sano and colleagues, that is, a timespan of at least 1 min with a minimum of two EDA events. Particularly, we used the algorithm developed in Piccini et al. (<xref ref-type="bibr" rid="B37">2023</xref>) to detect EDA events and storms. Thereafter, we computed the normalized number of samples within either an EDA event or storm, together with their Euclidean norms. Additionally, we added sex as a categorical feature to complete the set of variables and normalized the features across individuals. The full feature set is shown in <xref ref-type="table" rid="T3">Table 3</xref>.</p>
<table-wrap position="float" id="T3">
<label>Table 3</label>
<caption><p>Set of variables extracted from the electrodermal activity (EDA) signal.</p></caption>
<table frame="box" rules="all">
<thead>
<tr style="background-color:&#x00023;919498;color:&#x00023;ffffff">
<th valign="top" align="left"><bold>Index</bold></th>
<th valign="top" align="left"><bold>Signal</bold></th>
<th valign="top" align="left"><bold>Computed features</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left">1&#x02013;18</td>
<td valign="top" align="left">EDA detEDA</td>
<td valign="top" align="left">Mode, median, maximum of absolute value, line length, 10<sup>th</sup> quantile, 75<sup>th</sup> quantile, singular value decomposition (SVD) entropy, non-linear energy, Shannon entropy</td>
</tr>
<tr>
<td valign="top" align="left">19&#x02013;34</td>
<td valign="top" align="left">&#x02202;<sub><italic>t</italic></sub>EDA, <inline-formula><mml:math id="M1"><mml:msubsup><mml:mrow><mml:mi>&#x02202;</mml:mi></mml:mrow><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula>EDA &#x02202;<sub><italic>t</italic></sub>detEDA, <inline-formula><mml:math id="M2"><mml:msubsup><mml:mrow><mml:mi>&#x02202;</mml:mi></mml:mrow><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula>detEDA</td>
<td valign="top" align="left">Mean value, variance, median value, numbers above zero</td>
</tr>
<tr>
<td valign="top" align="left">35&#x02013;40</td>
<td valign="top" align="left">EDA detEDA</td>
<td valign="top" align="left">Maximum power spectral density (PSD) estimate, frequency of the maximum PSD estimate, Fisher&#x00027;s g (Posada-Quintero et al., <xref ref-type="bibr" rid="B39">2016</xref>)</td>
</tr>
<tr>
<td valign="top" align="left">41&#x02013;64</td>
<td valign="top" align="left">EDA detail coefficients decomposition levels (DL) 1&#x02014;4</td>
<td valign="top" align="left">Maximum, mean, standard deviation, median, Euclidian norm, normalized numbers above zero</td>
</tr>
<tr>
<td valign="top" align="left">65&#x02013;70</td>
<td valign="top" align="left">EDA detEDA</td>
<td valign="top" align="left">Lyapunov exponent, maximum value of the upper envelope, minimum value of the lower envelope</td>
</tr>
<tr>
<td valign="top" align="left">71&#x02013;72</td>
<td valign="top" align="left">diffEDA</td>
<td valign="top" align="left">Sum of cross-correlation, maximum convolution value</td>
</tr>
<tr>
<td valign="top" align="left">73&#x02013;76</td>
<td valign="top" align="left">EDA</td>
<td valign="top" align="left">Normalized number of event samples, normalized event energy, normalized number of storm samples, normalized storm energy</td>
</tr>
<tr>
<td valign="top" align="left">77</td>
<td valign="top" align="left">Individual</td>
<td valign="top" align="left">Sex</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>Finally, after training and testing the model on the complete variable set, we investigated whether we could reduce the feature set dimension by analyzing intra-variable correlation. We identified correlated features by computing the pairwise Pearson correlation coefficient <italic>r</italic>. We then reduced the dimension of the feature set by retaining only one of the correlated variables. We looked at the correlation matrix to identify the threshold value <italic>r</italic><sub><italic>th</italic></sub>.</p>
</sec>
<sec>
<title>2.6. Training procedure</title>
<p>Sleep stages are not equally distributed during the night, this asymmetry caused a significant imbalance in our dataset and affected model performance. To reduce the negative impact of this effect, we performed synthetic minority oversampling (SMOTE) (Chawla et al., <xref ref-type="bibr" rid="B14">2002</xref>), that is, we generated artificial samples for the minority classes to alleviate the bias toward the most dominant class. We then trained models using the extreme gradient boosting (XGBoost) algorithm (Chen and Guestrin, <xref ref-type="bibr" rid="B15">2016</xref>), since a gradient boosting algorithm was recently used in a similar application with promising results (Gashi et al., <xref ref-type="bibr" rid="B19">2022</xref>).</p>
<p>We applied different validation methods. We either used leave-one-subject-out (LOSO) validation (Hastie et al., <xref ref-type="bibr" rid="B23">2009</xref>), where we alternately left out one sample and used the other 59 samples as training data, or we did as previously and in addition, we trained the model using randomly selected 25% of the epochs from the left-out subject&#x00027;s night (Personalized). We always used the same seed for reproducibility. After this random sampling, we applied the SMOTE algorithm to the training data. We evaluated the OSA model only by means of the LOSO scheme. We did so, because of the way that we labeled the data for OSA detection, see Section 2.3.</p>
</sec>
<sec>
<title>2.7. Evaluation metrics</title>
<p>We computed different measures to evaluate the models&#x00027; performances. All indices were obtained using scikit-learn (Pedregosa et al., <xref ref-type="bibr" rid="B36">2011</xref>). F1 and recall scores were used to evaluate the sleep staging performances. While F1-score is a commonly used measure in ML applications, we used the recall score to account for the significant class imbalance (Gashi et al., <xref ref-type="bibr" rid="B19">2022</xref>). Recall score is the ratio between true positives and the sum of true positives and false negatives and, thus, a measure for the number of relevant objects detected by the algorithm. The F1-score is the harmonic mean of precision and recall scores and is used in classification problems with imbalanced datasets, as the precision score on its own may be misleading. As we dealt with a multi-class classification problem, we used the macro version of both parameters; the macro F1-score is the average of all F1-scores, and the macro recall is the average of all recalls. For the remainder of the paper, we referred to the macro F1-score and macro recall value simply as F1-score and recall.</p>
<p>For the OSA model, we used the F1-score and accuracy values. Accuracy is the ratio between the number of correctly identified epochs and the total amount of epochs. In addition to these two measures, we evaluated the three-class algorithm&#x00027;s ability to distinguish between non-OSA participants and those with OSA. To do this, we considered all OSA epochs as equivalent, which made the classification problem a binary one; we then computed the accuracy score and referred to it as the adjusted accuracy score. We did not include the recall for OSA models&#x00027; evaluations, as it deals with all misclassifications in the same way. Particularly, misclassifications between severe and mild OSA conditions and between non-OSA and OSA conditions have different clinical meanings.</p>
</sec>
<sec>
<title>2.8. SHapley Additive exPlanations</title>
<p>To evaluate the contribution of each training variable, we used SHapley Additive exPlanations (SHAP) (Lundberg and Lee, <xref ref-type="bibr" rid="B30">2017</xref>). The technique was developed in game theory and only recently adapted to ML interpretability applications (Lundberg et al., <xref ref-type="bibr" rid="B29">2018</xref>). To find the SHAP value of the <italic>i</italic>-th variable, we computed the predictions for all possible feature combinations with and without the <italic>i</italic>-th variable. The SHAP value is then the average of the contributions of the <italic>i</italic>-th variable to each prediction (Molnar, <xref ref-type="bibr" rid="B33">2022</xref>).</p>
</sec>
</sec>
<sec id="s3">
<title>3. Results and discussion</title>
<sec>
<title>3.1. Feature reduction</title>
<p>Before presenting the models&#x00027; performances, we offer an analysis of the feature set reduction process; for the sake of notation, we refer to variables by index, as in <xref ref-type="table" rid="T3">Table 3</xref>. We identified three main clusters of correlated variables by looking at the graphical representation of the correlation matrix (<xref ref-type="fig" rid="F2">Figure 2</xref>). The first one involves features 1&#x02013;15, which are statistical measures, in the time domain, of EDA and detEDA signals. The second one is a large cluster encompassing features 41&#x02013;64, variables obtained in the time-frequency domain. Finally, non-linear features 65&#x02013;70 also show meaningful correlation patterns.</p>
<fig id="F2" position="float">
<label>Figure 2</label>
<caption><p>Representation of the lower triangular feature correlation matrix. We denoted the variables by index, as in <xref ref-type="table" rid="T3">Table 3</xref>.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="frsle-02-1127697-g0002.tif"/>
</fig>
<p>After setting <italic>r</italic><sub><italic>th</italic></sub> &#x0003D; 0.8, we reduced the number of correlated variables. We decided which feature to eliminate as follows: first, we computed the correlation coefficients between the <italic>i</italic>-th feature and the remaining ones, then we eliminated the <italic>j</italic>-th feature, if <italic>r</italic><sub><italic>i,j</italic></sub>&#x0003E;<italic>r</italic><sub><italic>th</italic></sub>, where <italic>r</italic><sub><italic>i,j</italic></sub> is the Pearson correlation coefficient between the <italic>i</italic>-th and the <italic>j</italic>-th variables and <italic>j</italic>&#x0003E;1. We started at <italic>i</italic> &#x0003D; 1. In this way, we obtained a reduced set of 40 features, which we present in <xref ref-type="table" rid="T4">Table 4</xref>. We opted not to decrease further the <italic>r</italic><sub><italic>th</italic></sub>-value, as the resulting feature set did not present any significant clusters, see <xref ref-type="fig" rid="F3">Figure 3</xref>. Also, lower values of <italic>r</italic><sub><italic>th</italic></sub> may result in worse classification performances.</p>
<table-wrap position="float" id="T4">
<label>Table 4</label>
<caption><p>Optimized feature set for the sleep staging models, <italic>r</italic><sub><italic>th</italic></sub> &#x0003D; 0.8.</p></caption>
<table frame="box" rules="all">
<thead>
<tr style="background-color:&#x00023;919498;color:&#x00023;ffffff">
<th valign="top" align="left"><bold>Signal</bold></th>
<th valign="top" align="left"><bold>Computed features</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left">EDA</td>
<td valign="top" align="left">Mode, maximum of absolute value, line length, singular value decomposition (SVD) entropy, non-linear energy, Lyapunov exponent, maximum power spectral density (PSD) estimate, frequency of the maximum PSD estimate, Fisher&#x00027;s g (Posada-Quintero et al., <xref ref-type="bibr" rid="B39">2016</xref>)</td>
</tr>
<tr>
<td valign="top" align="left">detEDA</td>
<td valign="top" align="left">Mode, maximum of absolute value, line length, singular value decomposition (SVD) entropy, non-linear energy, Lyapunov exponent, requency of the maximum PSD estimate, Fisher&#x00027;s g (Posada-Quintero et al., <xref ref-type="bibr" rid="B39">2016</xref>)</td>
</tr>
<tr>
<td valign="top" align="left">&#x02202;<sub><italic>t</italic></sub>EDA</td>
<td valign="top" align="left">Mean, variance, median, number above zero</td>
</tr>
<tr>
<td valign="top" align="left"><inline-formula><mml:math id="M5"><mml:msubsup><mml:mrow><mml:mi>&#x02202;</mml:mi></mml:mrow><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula>EDA</td>
<td valign="top" align="left">Mean, median</td>
</tr>
<tr>
<td valign="top" align="left">&#x02202;<sub><italic>t</italic></sub>detEDA</td>
<td valign="top" align="left">Mean, median</td>
</tr>
<tr>
<td valign="top" align="left"><inline-formula><mml:math id="M6"><mml:msubsup><mml:mrow><mml:mi>&#x02202;</mml:mi></mml:mrow><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula>detEDA</td>
<td valign="top" align="left">Median</td>
</tr>
<tr>
<td valign="top" align="left">EDA detail coefficients decomposition levels (DL) 1&#x02013;4</td>
<td valign="top" align="left">Median, normalized numbers above zero</td>
</tr>
<tr>
<td valign="top" align="left">diffEDA</td>
<td valign="top" align="left">Sum of cross-correlation, maximum convolution value</td>
</tr>
<tr>
<td valign="top" align="left">EDA</td>
<td valign="top" align="left">Normalized number of event samples, normalized event energy, normalized number of storm samples, normalized storm energy</td>
</tr>
<tr>
<td valign="top" align="left">Individual</td>
<td valign="top" align="left">Sex</td>
</tr>
</tbody>
</table>
</table-wrap>
<fig id="F3" position="float">
<label>Figure 3</label>
<caption><p>Correlation matrix for the reduced feature set. Variables are denoted by index, as in <xref ref-type="table" rid="T3">Table 3</xref>.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="frsle-02-1127697-g0003.tif"/>
</fig>
</sec>
<sec>
<title>3.2. Interpretation of sleep staging</title>
<p>We summarized the models&#x00027; performances in <xref ref-type="table" rid="T5">Table 5</xref>, where the F1-scores and recall values are reported. Our results suggest a need for personalized models (&#x000D3;skarsd&#x000F3;ttir et al., <xref ref-type="bibr" rid="B35">2022</xref>). A possible explanation for the relatively poor performance is that different brain regions can be in different sleep stages at the same time. For instance, sweat glands&#x00027; activation signals and, thus, EDA, are generated in the hypothalamus (Rothhaas and Chung, <xref ref-type="bibr" rid="B40">2021</xref>), while the EEG, used to manually label sleep stages, measures neocortex activity, and it is known that the two brain areas can be in different sleep stages (Guthrie et al., <xref ref-type="bibr" rid="B22">2022</xref>). However, personalizing the LOSO-based model with a small number of epochs from the left-out sample dramatically improves the algorithm, see also <xref ref-type="fig" rid="F4">Figures 4</xref>, <xref ref-type="fig" rid="F5">5</xref>, which show confusion matrices normalized such that the sum of each row equals one.</p>
<table-wrap position="float" id="T5">
<label>Table 5</label>
<caption><p>Summary of sleep staging performance for, both, four stages, and five stages classification.</p></caption>
<table frame="box" rules="all">
<thead>
<tr style="background-color:&#x00023;919498;color:&#x00023;ffffff">
<th valign="top" align="left"><bold>No. stages</bold></th>
<th valign="top" align="center"><bold>r<italic>th</italic></bold></th>
<th valign="top" align="center" style="border-bottom: thin solid #000000;" colspan="2"><bold>Leave-one-subject-out</bold></th>
<th valign="top" align="center" style="border-bottom: thin solid #000000;" colspan="2"><bold>Personalized</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td/>
<td/>
<td valign="top" align="center"><bold>Macro F1-score</bold></td>
<td valign="top" align="center"><bold>Macro recall score</bold></td>
<td valign="top" align="center"><bold>Macro F1-score</bold></td>
<td valign="top" align="center"><bold>Macro recall score</bold></td>
</tr>
<tr>
<td valign="top" align="left">Five stages</td>
<td valign="top" align="center">0.8</td>
<td valign="top" align="center">27.3%</td>
<td valign="top" align="center">32.4%</td>
<td valign="top" align="center">57.5%</td>
<td valign="top" align="center">58.0%</td>
</tr>
<tr>
<td valign="top" align="left">Four stages</td>
<td valign="top" align="center">0.8</td>
<td valign="top" align="center">32.8%</td>
<td valign="top" align="center">39.7%</td>
<td valign="top" align="center">66.6%</td>
<td valign="top" align="center">66.9%</td>
</tr>
</tbody>
</table>
</table-wrap>
<fig id="F4" position="float">
<label>Figure 4</label>
<caption><p>Normalized confusion matrices when we consider five sleep stages and use the reduced feature set. <bold>(A)</bold> Leave-one-subject-out (LOSO). We trained the algorithm without including data from the left out participant. <bold>(B)</bold> Personalized model. In addition to the 59 participants training set, we used randomly picked 25% epochs of the test participants.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="frsle-02-1127697-g0004.tif"/>
</fig>
<fig id="F5" position="float">
<label>Figure 5</label>
<caption><p>Normalized confusion matrices when we consider four sleep stages and use the reduced feature set <bold>(A)</bold> Leave-one-subject-out (LOSO). We trained the algorithm without including data from the left out participant. <bold>(B)</bold> Personalized model. In addition to the 59 participants training set, we used randomly picked 25% epochs of the test participants.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="frsle-02-1127697-g0005.tif"/>
</fig>
<p>By looking at the confusion matrix in <xref ref-type="fig" rid="F4">Figure 4B</xref>, we concluded that the personalized model cannot characterize the N1 sleep stage using only EDA. Furthermore, N1 detection appeared to be a cumbersome task even when other ML methods and other signals were used, such as EEGs, electrooculograms (EOGs), and electromyograms (EMGs) (Chambon et al., <xref ref-type="bibr" rid="B13">2018</xref>; Korkalainen et al., <xref ref-type="bibr" rid="B27">2019</xref>). A similar disagreement in determining the sleep stage was also found when comparing different manual scorings (Magalang et al., <xref ref-type="bibr" rid="B31">2013</xref>). However, the detection of slow wave sleep (SWS) phases, that is, deep sleep and N3 stage, and REM sleep phases worked well for both models. This was expected, since these are the phases with the most distinct EDA patterns. Notably, by looking at <xref ref-type="fig" rid="F4">Figure 4B</xref>, we can conclude that, based on EDA, the N3 stage is more similar to the N2 stage than any other sleep stage.</p>
<p>Finally, we offer a graphical interpretation of the sleep staging model, trained on the reduced dataset, through the SHAP values of the 20 most influential variables, see <xref ref-type="fig" rid="F6">Figure 6</xref>. It is worth noting that both models considered the number of EDA events to be highly relevant for N3 stage, see <xref ref-type="fig" rid="F6">Figure 6</xref>. The models also predict a significant relationship between EDA storms and REM sleep. Indeed, it is known that EDA activity increases in the third cycle of REM sleep (Boucsein, <xref ref-type="bibr" rid="B9">2012</xref>).</p>
<fig id="F6" position="float">
<label>Figure 6</label>
<caption><p>SHapley Additive exPlanations (SHAP) values of the sleep staging model trained using the leave-one-subject-out (LOSO) scheme and the reduced feature set. <bold>(A)</bold> Four sleep stages: wake (W), light sleep, deep sleep, rapid eye movement (REM) sleep. <bold>(B)</bold> Five sleep stages: wake (W), sleep stage 1 (N1), sleep stage 2 (N2), sleep stage 3 (N3), rapid eye movement (REM) sleep.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="frsle-02-1127697-g0006.tif"/>
</fig>
</sec>
<sec>
<title>3.3. The need for personalization in sleep staging</title>
<p>Several physiological considerations support the need for personalization in EDA-based sleep staging. Nocturnal sweat, the principal cause of changes in skin electrical properties, is secreted to lower the core body temperature (CBT) (Baker, <xref ref-type="bibr" rid="B7">2019</xref>). However, the thermoregulation process depends on a large number of factors, for example, age, BMI, sex, skin hydration, eccrine sweat gland concentration, and environmental conditions (Speakman, <xref ref-type="bibr" rid="B43">2018</xref>; Grosiak et al., <xref ref-type="bibr" rid="B21">2020</xref>; Yanovich et al., <xref ref-type="bibr" rid="B48">2020</xref>). All the factors mentioned significantly impact sweat and, consequently, the EDA signal. Furthermore, the latter is also affected by subject-dependent brain dynamics.</p>
<p>It is not straightforward to decide which personal subset of epochs to choose, as different EDA patterns arise in different parts of the night; for example, EDA events are more frequent in REM sleep during the last sleep cycle (Boucsein, <xref ref-type="bibr" rid="B9">2012</xref>), while rarer in other REM sleep periods. Furthermore, differences in sleep cycle duration caused by age and OSA condition, among other factors, may hinder the beneficial effect of the algorithm&#x00027;s personalisation. Because of this, we opted for a fixed-seed random-pick approach.</p>
</sec>
<sec>
<title>3.4. Interpretation of the OSA model</title>
<p>To evaluate the models&#x00027; ability to distinguish between non-OSA persons and those with either mild or moderate to severe OSA, we used average values of the accuracy score, the F1-score, and the adjusted accuracy score. We also evaluated a binary classification problem, where participants either had OSA or not, for which we refrained from calculating the adjusted accuracy score. We present the results as we did for the sleep staging models in <xref ref-type="table" rid="T6">Table 6</xref>. They show that OSA severity determined through the EDA signal rather follows the classification obtained by using the ODI rather than the AHI. A possible explanation for this behavior is how the ODI value divides the participants. Looking at <xref ref-type="table" rid="T1">Table 1</xref>, we observed that while both the indexes found the mean age to increase with the OSA severity, in ODI classification BMI values also increased with OSA severity. Lower BMI values have been associated with lower mean temperature values, (Waalen and Buxbaum, <xref ref-type="bibr" rid="B47">2011</xref>), which may result in less need for thermoregulation. Consequently, simpler sweating patterns may be observed, which are better learned by the algorithm.</p>
<table-wrap position="float" id="T6">
<label>Table 6</label>
<caption><p>Results for obstructive sleep apnoea (OSA) detection, based on the apnoea-hypopnoea index (AHI) or on the oxygen desaturation index (ODI).</p></caption>
<table frame="box" rules="all">
<thead>
<tr style="background-color:&#x00023;919498;color:&#x00023;ffffff">
<th valign="top" align="left"><bold>OSA structure</bold></th>
<th valign="top" align="center"><bold>r<sub><italic>th</italic></sub></bold></th>
<th valign="top" align="center"><bold>Mean accuracy score</bold></th>
<th valign="top" align="center"><bold>Macro F1-score</bold></th>
<th valign="top" align="center"><bold>Adj. accuracy score</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left">AHI&#x02014;non-OSA vs. OSA</td>
<td valign="top" align="center">0.8</td>
<td valign="top" align="center">75.7%</td>
<td valign="top" align="center">65.6%</td>
<td valign="top" align="center">&#x02013;</td>
</tr>
<tr>
<td valign="top" align="left">ODI&#x02014;non-OSA vs. OSA</td>
<td valign="top" align="center">0.8</td>
<td valign="top" align="center">82.0%</td>
<td valign="top" align="center">67.7%</td>
<td valign="top" align="center">&#x02013;</td>
</tr>
<tr>
<td valign="top" align="left">AHI&#x02014;Three groups</td>
<td valign="top" align="center">0.8</td>
<td valign="top" align="center">54.8%</td>
<td valign="top" align="center">32.9%</td>
<td valign="top" align="center">78.4%</td>
</tr>
<tr>
<td valign="top" align="left">ODI&#x02014;Three groups</td>
<td valign="top" align="center">0.8</td>
<td valign="top" align="center">54.8%</td>
<td valign="top" align="center">32.9%</td>
<td valign="top" align="center">83.7%</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>In <xref ref-type="fig" rid="F7">Figures 7</xref>, <xref ref-type="fig" rid="F8">8</xref>, we used the SHAP values to present the effect of each variables on the different classification problem. Both three-class models choose normalized storm samples as one of the most significant variables, which relates well to the literature (Arnardottir et al., <xref ref-type="bibr" rid="B6">2010</xref>).</p>
<fig id="F7" position="float">
<label>Figure 7</label>
<caption><p>SHapley Additive exPlanations (SHAP) values of the obstructive sleep apnoea (OSA) detection model based on apnoea-hypopnea index (AHI) values and the reduced feature set. <bold>(A)</bold> Three-class classification problem: participants with no, mild, or moderate to severe OSA. <bold>(B)</bold> Binary classification problem: non-OSA participants and those with OSA.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="frsle-02-1127697-g0007.tif"/>
</fig>
<fig id="F8" position="float">
<label>Figure 8</label>
<caption><p>SHapley Additive exPlanations (SHAP) values of the obstructive sleep apnoea (OSA) detection model based on oxygen desaturation index (ODI) values and the reduced feature set. <bold>(A)</bold> Three-class classification problem: participants with no, mild, or moderate to severe OSA. <bold>(B)</bold> Binary classification problem: non-OSA participants and those with OSA.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="frsle-02-1127697-g0008.tif"/>
</fig>
</sec>
<sec>
<title>3.5. Feature selections comparison</title>
<p>Out of the 77 extracted variables, only eight appear in all models&#x00027; top 20 most important features. They are EDA mode, &#x02202;<sub><italic>t</italic></sub>EDA variance, detEDA mode, EDA maximum power spectral density (PSD) estimate, EDA frequency of the maximum PSD estimate, &#x02202;<sub><italic>t</italic></sub>EDA normalized numbers above zero, detEDA frequency of the maximum PSD estimate, and biological sex. The seven numerical variables are computed from two signals, that is, raw and de-trended EDA and the derivative of the raw signal; this subset is composed of variables spanning multiple domains, particularly time, frequency, and EDA-specific. This variety confirms the need to consider different dynamical behaviors and EDA-related phenomena when using this signal. The most common specific feature is the number of EDA storm samples, which is amongst the top 20 most important features for all models, except for the two-class ODI-based OSA classification problem. However, in the latter problem, normalized storm energy is considered a relevant feature. Works trying to relate EDA and OSA are scarce and based mainly on subjective night sweats reports (Nigro et al., <xref ref-type="bibr" rid="B34">2022</xref>). Although it is well-established that OSA symptomatology includes abnormal sweating episodes (Arnardottir et al., <xref ref-type="bibr" rid="B6">2010</xref>, <xref ref-type="bibr" rid="B5">2013</xref>), there needs to be more understanding of the relationship between OSA and EDA events and storms. Our work concludes that evaluating EDA storms, their lengths or energies, is more decisive in detecting OSA, particularly severe expressions, than evaluating EDA events. This conclusion holds for OSA classifications based on both AHI and ODI severity.</p>
</sec>
</sec>
<sec id="s4">
<title>4. Conclusion and future work</title>
<p>The presented work aimed at detecting sleep stages and OSA severity using only the EDA signal. Recently, Anusha and colleagues presented an ML algorithm for identifying the sleep stage of the hypothalamus, the brain region directly responsible for thermoregulation during sleep (Anusha et al., <xref ref-type="bibr" rid="B2">2022</xref>), while, Gashi and colleagues presented a similar algorithm based on EDA that is able to detect wake/sleep stages and high/low sleep quality (Gashi et al., <xref ref-type="bibr" rid="B19">2022</xref>). Latter algorithms are based on self-reported annotations. Despite these significant results, more research on the relationship between EDA and neocortex activity is needed. Our work is the first one, in which neocortex sleep stages are predicted solely based on EDA. In the first part of this research work, we presented a sleep staging algorithm that is particularly accurate in detecting those sleep stages, where specific EDA patterns are known to occur, which are N3 and REM sleep. In the second part, we focused on OSA detection. By using the EDA signal, we distinguished non-OSA participants from those with OSA with reasonable accuracy.</p>
<p>Our work has three main limitations. The first one is that the raw signal was recorded at 200 Hz, an unattainable sampling frequency for current wearables. However, the signal was significantly downsampled, to 35 Hz, before it was handled. Since EDA events occur in the frequency band [0.25&#x02013;3 Hz] for endosomatic recordings, like the ones used in this study, further downsampling might potentially be performed without a significant loss of information, which we leave for future work. The second limitation is that the sleep staging algorithm requires a certain amount of individual data manually scored by a sleep expert. While this prevents the sleep staging model from being user-independent and, thus, might limit its use in wearables, in clinical studies, requiring only a small part of the signal to be manually scored significantly saves time and cost. Moreover, our work adds to the body of evidence on how crucial it is to include knowledge about sleep processes in ML models. A final limitation is the participants&#x00027; significant ranges in age and BMI within a relatively small sample size. While the participants&#x00027; diversity ensured to obtain general models, it also prevented the algorithm from learning patterns specific to a particular group, for example, individuals of the same biological sex and of similar age. Future studies may overcome this last limitation by using a more selected cohort or by considering the body temperature signal, therefore addressing the differences in mean body temperature due to various aspects such as age, sex, and BMI.</p>
<p>To improve on the reported results, in the future, we will also include additional signals obtainable through wearables, such as acceleration and skin temperature. Doing so might reduce the need for individual tuning of the algorithm and allow it to identify other sleep stages more accurately. More precise sleep staging based on data obtained from wearables will allow the estimation of more advanced sleep parameters used in sleep diagnostics, such as total sleep time and sleep efficiency. Finally, since the algorithm labels each epoch as &#x0201C;non-OSA&#x0201D; or &#x0201C;OSA-prone,&#x0201D; it will be possible to track a potential onset or worsening of sleep-disordered breathing. By adequately characterizing the development of OSA symptoms, it will be possible to define a threshold that will lead to suggesting to seek professional advice when exceeded.</p>
</sec>
<sec sec-type="data-availability" id="s5">
<title>Data availability statement</title>
<p>The datasets used for this study is not publicly available due to General Data Protection Regulation (GDPR) reasons. Requests to access the datasets should be directed to <email>jacopop&#x00040;ru.is</email>.</p>
</sec>
<sec sec-type="ethics-statement" id="s6">
<title>Ethics statement</title>
<p>The study received the approval of the National Bioethics Committee and the Data Protection Authority of Iceland (Sleep Revolution VSN-21-070). The patients/participants provided their written informed consent to participate in this study.</p>
</sec>
<sec sec-type="author-contributions" id="s7">
<title>Author contributions</title>
<p>JP: conceptualization, methodology, software, visualization, and writing. EA and M&#x000D3;: conceptualization, methodology, supervision, reviewing, and editing. ESA: supervision, reviewing, editing, and funding acquisition. All authors contributed to the article and approved the submitted version.</p>
</sec>
</body>
<back>
<sec sec-type="funding-information" id="s8">
<title>Funding</title>
<p>The study was carried out within the Sleep Revolution Project (Arnardottir et al., <xref ref-type="bibr" rid="B4">2022</xref>). This project has received funding from European Union&#x00027;s Horizon 2020 Research and Innovation Programme under grant agreement no. 965417.</p>
</sec>
<ack><p>All authors would like to express their outmost gratitude to Tiina Siilak and Hei&#x000F0;ur Gr&#x000E9;tarsd&#x000F3;ttir, expert sleep technologists, who painstakingly scored all sleep-related signals used in this work.</p>
</ack>
<sec sec-type="COI-statement" id="conf1">
<title>Conflict of interest</title>
<p>ESA discloses lecture fees from Nox Medical, Philips, ResMed, Jazz Pharmaceuticals, Linde Healthcare, Alcoa-Fjardaral, and Wink Sleep. ESA is also a member of the Philips Sleep Medicine and Innovation Medical Advisory Board. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p>
</sec>
<sec sec-type="disclaimer" id="s9">
<title>Publisher&#x00027;s note</title>
<p>All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.</p>
</sec>
<ref-list>
<title>References</title>
<ref id="B1">
<citation citation-type="journal"><person-group person-group-type="author"><collab>AASM</collab></person-group> (<year>1999</year>). <article-title>Sleep-related breathing disorders in adults: recommendations for syndrome definition and measurement techniques in clinical research. The report of an American Academy of Sleep Medicine Task Force</article-title>. <source>Sleep</source> <volume>22</volume>, <fpage>667</fpage>&#x02013;<lpage>89</lpage>.</citation>
</ref>
<ref id="B2">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Anusha</surname> <given-names>A. S.</given-names></name> <name><surname>Preejith</surname> <given-names>S. P.</given-names></name> <name><surname>Akl</surname> <given-names>T. J.</given-names></name> <name><surname>Sivaprakasam</surname> <given-names>M.</given-names></name></person-group> (<year>2022</year>). <article-title>Electrodermal activity based autonomic sleep staging using wrist wearable</article-title>. <source>Biomed. Signal Process. Control</source> <volume>75</volume>, <fpage>103562</fpage>. <pub-id pub-id-type="doi">10.1016/j.bspc.2022.103562</pub-id></citation>
</ref>
<ref id="B3">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Arnard&#x000F3;ttir</surname> <given-names>E. S.</given-names></name> <name><surname>Islind</surname> <given-names>A. S.</given-names></name> <name><surname>&#x000D3;skarsd&#x000F3;ttir</surname> <given-names>M.</given-names></name></person-group> (<year>2021</year>). <article-title>The future of sleep measurements: a review and perspective</article-title>. <source>Sleep Med. Clin.</source> <volume>16</volume>, <fpage>447</fpage>&#x02013;<lpage>464</lpage>. <pub-id pub-id-type="doi">10.1016/j.jsmc.2021.05.004</pub-id><pub-id pub-id-type="pmid">34325822</pub-id></citation></ref>
<ref id="B4">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Arnardottir</surname> <given-names>E. S.</given-names></name> <name><surname>Islind</surname> <given-names>A. S.</given-names></name> <name><surname>&#x000D3;skarsd&#x000F3;ttir</surname> <given-names>M.</given-names></name> <name><surname>&#x000D3;lafsd&#x000F3;ttir</surname> <given-names>K. A.</given-names></name> <name><surname>August</surname> <given-names>E.</given-names></name> <name><surname>J&#x000F3;nasd&#x000F3;ttir</surname> <given-names>L.</given-names></name> <etal/></person-group>. (<year>2022</year>). <article-title>The sleep revolution project: the concept and objectives</article-title>. <source>J. Sleep Res.</source> <volume>31</volume>, <fpage>e13630</fpage>. <pub-id pub-id-type="doi">10.1111/jsr.13630</pub-id><pub-id pub-id-type="pmid">35770626</pub-id></citation></ref>
<ref id="B5">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Arnardottir</surname> <given-names>E. S.</given-names></name> <name><surname>Janson</surname> <given-names>C.</given-names></name> <name><surname>Bjornsdottir</surname> <given-names>E.</given-names></name> <name><surname>Benediktsdottir</surname> <given-names>B.</given-names></name> <name><surname>Juliusson</surname> <given-names>S.</given-names></name> <name><surname>Kuna</surname> <given-names>S. T.</given-names></name> <etal/></person-group>. (<year>2013</year>). <article-title>Nocturnal sweating&#x02013;a common symptom of obstructive sleep apnoea: the icelandic sleep apnoea cohort</article-title>. <source>BMJ Open</source> <volume>3</volume>, <fpage>e002795</fpage>. <pub-id pub-id-type="doi">10.1136/bmjopen-2013-002795</pub-id><pub-id pub-id-type="pmid">23674447</pub-id></citation></ref>
<ref id="B6">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Arnardottir</surname> <given-names>E. S.</given-names></name> <name><surname>Thorleifsdottir</surname> <given-names>B.</given-names></name> <name><surname>Svanborg</surname> <given-names>E.</given-names></name> <name><surname>Olafsson</surname> <given-names>I.</given-names></name> <name><surname>Gislason</surname> <given-names>T.</given-names></name></person-group> (<year>2010</year>). <article-title>Sleep-related sweating in obstructive sleep apnoea: association with sleep stages and blood pressure</article-title>. <source>J. Sleep Res.</source> <volume>19</volume>(<issue>1 Pt 2</issue>), <fpage>122</fpage>&#x02013;<lpage>130</lpage>. <pub-id pub-id-type="doi">10.1111/j.1365-2869.2009.00743.x</pub-id><pub-id pub-id-type="pmid">19635063</pub-id></citation></ref>
<ref id="B7">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Baker</surname> <given-names>L. B.</given-names></name></person-group> (<year>2019</year>). <article-title>Physiology of sweat gland function: the roles of sweating and sweat composition in human health</article-title>. <source>Temperature</source> <volume>6</volume>, <fpage>211</fpage>&#x02013;<lpage>259</lpage>. <pub-id pub-id-type="doi">10.1080/23328940.2019.1632145</pub-id><pub-id pub-id-type="pmid">31608304</pub-id></citation></ref>
<ref id="B8">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Berry</surname> <given-names>R. B.</given-names></name> <name><surname>Quan</surname> <given-names>S. F.</given-names></name> <name><surname>Abreu</surname> <given-names>A. R.</given-names></name></person-group> (<year>2020</year>). <source>The AASM Manual for the Scoring of Sleep and Associated Events: Rules, Terminology and Technical Specifications. Version 2.6</source>, Vol. 53. Darien, CT: American Academy of Sleep Medicine.</citation>
</ref>
<ref id="B9">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Boucsein</surname> <given-names>W.</given-names></name></person-group> (<year>2012</year>). <source>Electrodermal Activity</source>. <publisher-loc>Boston, MA</publisher-loc>: <publisher-name>Springer US</publisher-name>.</citation>
</ref>
<ref id="B10">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Braithwaite</surname> <given-names>J. J.</given-names></name> <name><surname>Watson</surname> <given-names>D. G.</given-names></name> <name><surname>Jones</surname> <given-names>R.</given-names></name> <name><surname>Rowe</surname> <given-names>M.</given-names></name></person-group> (<year>2013</year>). <source>A Guide for Analysing Electrodermal Activity (EDA) and Skin Conductance Responses (SCRs) for Psychological Experiments.</source> Technical Report, 2nd Version, Selective Attention and Awareness Laboratory (SAAL) Behavioural Brain Sciences Centre, University of Birmingham, UK.</citation>
</ref>
<ref id="B11">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Broman</surname> <given-names>J.-E.</given-names></name> <name><surname>Hetta</surname> <given-names>J.</given-names></name></person-group> (<year>1994</year>). <article-title>Electrodermal activity in patients with persistent insomnia</article-title>. <source>J. Sleep Res.</source> <volume>3</volume>, <fpage>165</fpage>&#x02013;<lpage>170</lpage>. <pub-id pub-id-type="doi">10.1111/j.1365-2869.1994.tb00124.x</pub-id><pub-id pub-id-type="pmid">10607122</pub-id></citation></ref>
<ref id="B12">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Burch</surname> <given-names>N.</given-names></name></person-group> (<year>1965</year>). <article-title>&#x0201C;Data processing of psychophysiological recordings,&#x0201D;</article-title> in <source>Symposium on the Analysis of Central Nervous System Data Using Computer Methods</source>, <fpage>165</fpage>&#x02013;<lpage>180</lpage>.</citation>
</ref>
<ref id="B13">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Chambon</surname> <given-names>S.</given-names></name> <name><surname>Galtier</surname> <given-names>M. N.</given-names></name> <name><surname>Arnal</surname> <given-names>P. J.</given-names></name> <name><surname>Wainrib</surname> <given-names>G.</given-names></name> <name><surname>Gramfort</surname> <given-names>A.</given-names></name></person-group> (<year>2018</year>). <article-title>A deep learning architecture for temporal sleep stage classification using multivariate and multimodal time series</article-title>. <source>IEEE Trans. Neural Syst. Rehabil. Eng.</source> <volume>26</volume>, <fpage>758</fpage>&#x02013;<lpage>769</lpage>. <pub-id pub-id-type="doi">10.1109/TNSRE.2018.2813138</pub-id><pub-id pub-id-type="pmid">29641380</pub-id></citation></ref>
<ref id="B14">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Chawla</surname> <given-names>N. V.</given-names></name> <name><surname>Bowyer</surname> <given-names>K. W.</given-names></name> <name><surname>Hall</surname> <given-names>L. O.</given-names></name> <name><surname>Kegelmeyer</surname> <given-names>W. P.</given-names></name></person-group> (<year>2002</year>). <article-title>Smote: synthetic minority over-sampling technique</article-title>. <source>J. Artif. Intell. Res.</source> <volume>16</volume>, <fpage>321</fpage>&#x02013;<lpage>357</lpage>. <pub-id pub-id-type="doi">10.1613/jair.953</pub-id><pub-id pub-id-type="pmid">24088532</pub-id></citation></ref>
<ref id="B15">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Chen</surname> <given-names>T.</given-names></name> <name><surname>Guestrin</surname> <given-names>C.</given-names></name></person-group> (<year>2016</year>). <article-title>&#x0201C;Xgboost: A scalable tree boosting system,&#x0201D;</article-title> in <source>Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining</source>, KDD &#x00027;16 (New York, NY: Association for Computing Machinery), <fpage>785</fpage>&#x02013;<lpage>794</lpage>. <pub-id pub-id-type="doi">10.1145/2939672.2939785</pub-id></citation>
</ref>
<ref id="B16">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Chung</surname> <given-names>F.</given-names></name> <name><surname>Liao</surname> <given-names>P.</given-names></name> <name><surname>Elsaid</surname> <given-names>H.</given-names></name> <name><surname>Islam</surname> <given-names>S.</given-names></name> <name><surname>Shapiro</surname> <given-names>C. M.</given-names></name> <name><surname>Sun</surname> <given-names>Y.</given-names></name></person-group> (<year>2012</year>). <article-title>Oxygen desaturation index from nocturnal oximetry</article-title>. <source>Anesth. Analg.</source> <volume>114</volume>, <fpage>993</fpage>&#x02013;<lpage>1000</lpage>. <pub-id pub-id-type="doi">10.1213/ANE.0b013e318248f4f5</pub-id><pub-id pub-id-type="pmid">22366847</pub-id></citation></ref>
<ref id="B17">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Coifman</surname> <given-names>R. R.</given-names></name> <name><surname>Donoho</surname> <given-names>D. L.</given-names></name></person-group> (<year>1995</year>). &#x0201C;Translation-invariant de-noising,&#x0201D; <italic>Wavelets and Statistics. Lecture Notes in Statistics, Vol. 103</italic>, eds A. Antoniadis and G. Oppenheim (New York, NY: Springer), <fpage>125</fpage>&#x02013;<lpage>150</lpage>.</citation>
</ref>
<ref id="B18">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Di Lascio</surname> <given-names>E.</given-names></name> <name><surname>Gashi</surname> <given-names>S.</given-names></name> <name><surname>Santini</surname> <given-names>S.</given-names></name></person-group> (<year>2018</year>). <article-title>Unobtrusive assessment of students&#x00027; emotional engagement during lectures using electrodermal activity sensors</article-title>. <source>Proc. ACM Interact. Mob. Wearable Ubiquitous Technol.</source> <volume>2</volume>, <fpage>1</fpage>&#x02013;<lpage>21</lpage>. <pub-id pub-id-type="doi">10.1145/3264913</pub-id></citation>
</ref>
<ref id="B19">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Gashi</surname> <given-names>S.</given-names></name> <name><surname>Alecci</surname> <given-names>L.</given-names></name> <name><surname>Lascio</surname> <given-names>E. D.</given-names></name> <name><surname>Debus</surname> <given-names>M. E.</given-names></name> <name><surname>Gasparini</surname> <given-names>F.</given-names></name> <name><surname>Santini</surname> <given-names>S.</given-names></name></person-group> (<year>2022</year>). <article-title>The role of model personalization for sleep stage and sleep quality recognition using wearables</article-title>. <source>IEEE Pervas. Comput.</source> <volume>21</volume>, <fpage>69</fpage>&#x02013;<lpage>77</lpage>. <pub-id pub-id-type="doi">10.1109/MPRV.2022.3164334</pub-id></citation>
</ref>
<ref id="B20">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Genzel</surname> <given-names>L.</given-names></name> <name><surname>Kroes</surname> <given-names>M. C.</given-names></name> <name><surname>Dresler</surname> <given-names>M.</given-names></name> <name><surname>Battaglia</surname> <given-names>F. P.</given-names></name></person-group> (<year>2014</year>). <article-title>Light sleep vs. slow wave sleep in memory consolidation: a question of global vs. local processes?</article-title> <source>Trends Neurosci.</source> <volume>37</volume>, <fpage>10</fpage>&#x02013;<lpage>19</lpage>. <pub-id pub-id-type="doi">10.1016/j.tins.2013.10.002</pub-id><pub-id pub-id-type="pmid">24210928</pub-id></citation></ref>
<ref id="B21">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Grosiak</surname> <given-names>M.</given-names></name> <name><surname>Koteja</surname> <given-names>P.</given-names></name> <name><surname>Bauchinger</surname> <given-names>U.</given-names></name> <name><surname>Sadowska</surname> <given-names>E. T.</given-names></name></person-group> (<year>2020</year>). <article-title>Age-related changes in the thermoregulatory properties in bank voles from a selection experiment</article-title>. <source>Front. Physiol.</source> <volume>11</volume>, <fpage>576304</fpage>. <pub-id pub-id-type="doi">10.3389/fphys.2020.576304</pub-id><pub-id pub-id-type="pmid">33329026</pub-id></citation></ref>
<ref id="B22">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Guthrie</surname> <given-names>R. S.</given-names></name> <name><surname>Ciliberti</surname> <given-names>D.</given-names></name> <name><surname>Mankin</surname> <given-names>E. A.</given-names></name> <name><surname>Poe</surname> <given-names>G. R.</given-names></name></person-group> (<year>2022</year>). <article-title>Recurrent hippocampo-neocortical sleep-state divergence in humans</article-title>. <source>Proc. Natl. Acad. Sci. U.S.A.</source> <volume>119</volume>, <fpage>e2123427119</fpage>. <pub-id pub-id-type="doi">10.1073/pnas.2123427119</pub-id><pub-id pub-id-type="pmid">36279474</pub-id></citation></ref>
<ref id="B23">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Hastie</surname> <given-names>T.</given-names></name> <name><surname>Tibshirani</surname> <given-names>R.</given-names></name> <name><surname>Friedman</surname> <given-names>J.</given-names></name></person-group> (<year>2009</year>). <source>The Elements of Statistical Learning</source>. <publisher-loc>New York, NY</publisher-loc>: <publisher-name>Springer</publisher-name>.</citation>
</ref>
<ref id="B24">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Hossain</surname> <given-names>M. B.</given-names></name> <name><surname>Posada-Quintero</surname> <given-names>H. F.</given-names></name> <name><surname>Kong</surname> <given-names>Y.</given-names></name> <name><surname>McNaboe</surname> <given-names>R.</given-names></name> <name><surname>Chon</surname> <given-names>K. H.</given-names></name></person-group> (<year>2022</year>). <article-title>Automatic motion artifact detection in electrodermal activity data using machine learning</article-title>. <source>Biomed. Signal Process. Control</source>, 74, 103483. <pub-id pub-id-type="doi">10.1016/j.bspc.2022.103483</pub-id><pub-id pub-id-type="pmid">34892695</pub-id></citation></ref>
<ref id="B25">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Idiaquez</surname> <given-names>J.</given-names></name> <name><surname>Casar</surname> <given-names>J. C.</given-names></name> <name><surname>Arnardottir</surname> <given-names>E. S.</given-names></name> <name><surname>August</surname> <given-names>E.</given-names></name> <name><surname>Santin</surname> <given-names>J.</given-names></name> <name><surname>Iturriaga</surname> <given-names>R.</given-names></name></person-group> (<year>2022</year>). <article-title>Hyperhidrosis in sleep disorders &#x02013; a narrative review of mechanisms and clinical significance</article-title>. <source>J. Sleep Res</source>. 32, e13660. <pub-id pub-id-type="doi">10.1111/jsr.13660</pub-id><pub-id pub-id-type="pmid">35706374</pub-id></citation></ref>
<ref id="B26">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Jordan</surname> <given-names>A. S.</given-names></name> <name><surname>McSharry</surname> <given-names>D. G.</given-names></name> <name><surname>Malhotra</surname> <given-names>A.</given-names></name></person-group> (<year>2014</year>). <article-title>Adult obstructive sleep apnoea</article-title>. <source>Lancet</source> <volume>383</volume>, <fpage>736</fpage>&#x02013;<lpage>747</lpage>. <pub-id pub-id-type="doi">10.1016/S0140-6736(13)60734-5</pub-id><pub-id pub-id-type="pmid">23910433</pub-id></citation></ref>
<ref id="B27">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Korkalainen</surname> <given-names>H.</given-names></name> <name><surname>Leppanen</surname> <given-names>T.</given-names></name> <name><surname>Aakko</surname> <given-names>J.</given-names></name> <name><surname>Nikkonen</surname> <given-names>S.</given-names></name> <name><surname>Kainulainen</surname> <given-names>S.</given-names></name> <name><surname>Leino</surname> <given-names>A.</given-names></name> <etal/></person-group>. (<year>2019</year>). <article-title>Accurate deep learning-based sleep staging in a clinical population with suspected obstructive sleep apnea</article-title>. <source>IEEE J. Biomed. Health Inform.</source> <volume>99</volume>, <fpage>1</fpage>&#x02013;<lpage>1</lpage>. <pub-id pub-id-type="doi">10.1109/JBHI.2019.2951346</pub-id><pub-id pub-id-type="pmid">31869808</pub-id></citation></ref>
<ref id="B28">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Lajos</surname> <given-names>L. E.</given-names></name></person-group> (<year>2004</year>). <source>The Relation Between Electrodermal Activity in Sleep, Negative Affect, and Stress in Patients Referred for Nocturnal Polysomnography</source>. LSU Doctoral dissertations.</citation>
</ref>
<ref id="B29">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Lundberg</surname> <given-names>S. M.</given-names></name> <name><surname>Erion</surname> <given-names>G. G.</given-names></name> <name><surname>Lee</surname> <given-names>S.-I.</given-names></name></person-group> (<year>2018</year>). <article-title>Consistent individualized feature attribution for tree ensembles</article-title>. <source>arXiv Preprints.</source> arXiv, 1802.03888. <pub-id pub-id-type="doi">10.48550/arXiv.1802.03888</pub-id></citation>
</ref>
<ref id="B30">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Lundberg</surname> <given-names>S. M.</given-names></name> <name><surname>Lee</surname> <given-names>S.-I.</given-names></name></person-group> (<year>2017</year>). <article-title>&#x0201C;A unified approach to interpreting model predictions,&#x0201D;</article-title> in <source>Advances in Neural Information Processing Systems 30</source>, eds I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (Red Hook, NY: Curran Associates, Inc.), <fpage>4765</fpage>&#x02013;<lpage>4774</lpage>.</citation>
</ref>
<ref id="B31">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Magalang</surname> <given-names>U. J.</given-names></name> <name><surname>Chen</surname> <given-names>N.-H.</given-names></name> <name><surname>Cistulli</surname> <given-names>P. A.</given-names></name> <name><surname>Fedson</surname> <given-names>A. C.</given-names></name> <name><surname>G&#x000ED;slason</surname> <given-names>T.</given-names></name> <name><surname>Hillman</surname> <given-names>D.</given-names></name> <etal/></person-group>. (<year>2013</year>). <article-title>Agreement in the scoring of respiratory events and sleep among international sleep centers</article-title>. <source>Sleep</source> <volume>36</volume>, <fpage>591</fpage>&#x02013;<lpage>596</lpage>. <pub-id pub-id-type="doi">10.5665/sleep.2552</pub-id><pub-id pub-id-type="pmid">26350603</pub-id></citation></ref>
<ref id="B32">
<citation citation-type="journal"><person-group person-group-type="author"><collab>MATLAB</collab></person-group> (<year>2022</year>). <source>MATLAB version 9.12.0.1884302 (R2022a)</source>. <publisher-loc>Natick, MA</publisher-loc>: <publisher-name>The MathWorks Inc</publisher-name>.</citation>
</ref>
<ref id="B33">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Molnar</surname> <given-names>C.</given-names></name></person-group> (<year>2022</year>). <source>Interpretable Machine Learning</source>. 2nd Edn. Lean Pub.</citation>
</ref>
<ref id="B34">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Nigro</surname> <given-names>C. A.</given-names></name> <name><surname>Bledel</surname> <given-names>I.</given-names></name> <name><surname>Borsini</surname> <given-names>E.</given-names></name></person-group> (<year>2022</year>). <article-title>Independent association between hypoxemia and night sweats in obstructive sleep apnea</article-title>. <source>Sleep Breath</source>. <pub-id pub-id-type="doi">10.1007/s11325-022-02701-3</pub-id><pub-id pub-id-type="pmid">36042066</pub-id></citation></ref>
<ref id="B35">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>&#x000D3;skarsd&#x000F3;ttir</surname> <given-names>M.</given-names></name> <name><surname>Islind</surname> <given-names>A. S.</given-names></name> <name><surname>August</surname> <given-names>E.</given-names></name> <name><surname>Arnard&#x000F3;ttir</surname> <given-names>E. S.</given-names></name> <name><surname>Patou</surname> <given-names>F.</given-names></name> <name><surname>Maier</surname> <given-names>A. M.</given-names></name> <etal/></person-group>. (<year>2022</year>). <article-title>Importance of getting enough sleep and daily activity data to assess variability: longitudinal observational study</article-title>. <source>JMIR Form. Res.</source> <volume>6</volume>, <fpage>e31807</fpage>. <pub-id pub-id-type="doi">10.2196/31807</pub-id><pub-id pub-id-type="pmid">35191850</pub-id></citation></ref>
<ref id="B36">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Pedregosa</surname> <given-names>F.</given-names></name> <name><surname>Varoquaux</surname> <given-names>G.</given-names></name> <name><surname>Gramfort</surname> <given-names>A.</given-names></name> <name><surname>Michel</surname> <given-names>V.</given-names></name> <name><surname>Thirion</surname> <given-names>B.</given-names></name> <name><surname>Grisel</surname> <given-names>O.</given-names></name> <etal/></person-group>. (<year>2011</year>). <article-title>Scikit-learn: Machine learning in Python</article-title>. <source>J. Mach. Learn. Res.</source> <volume>12</volume>, <fpage>2825</fpage>&#x02013;<lpage>2830</lpage>.</citation>
</ref>
<ref id="B37">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Piccini</surname> <given-names>J.</given-names></name> <name><surname>August</surname> <given-names>E.</given-names></name> <name><surname>Noel Aziz Hanna</surname> <given-names>S. L.</given-names></name> <name><surname>Arnard&#x000F3;ttir</surname> <given-names>E. S.</given-names></name></person-group> (<year>2023</year>). <article-title>Automatic detection of electrodermal activity events during sleep</article-title>. <source>Biomed. Signal Process. Control</source>.</citation>
</ref>
<ref id="B38">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Poh</surname> <given-names>M.-Z.</given-names></name> <name><surname>Loddenkemper</surname> <given-names>T.</given-names></name> <name><surname>Swenson</surname> <given-names>N. C.</given-names></name> <name><surname>Goyal</surname> <given-names>S.</given-names></name> <name><surname>Madsen</surname> <given-names>J. R.</given-names></name> <name><surname>Picard</surname> <given-names>R. W.</given-names></name></person-group> (<year>2010</year>). <article-title>Continuous monitoring of electrodermal activity during epileptic seizures using a wearable sensor</article-title>. <source>Annu. Int. Conf. IEEE Eng. Med. Biol. Soc.</source> <volume>2010</volume>, <fpage>4415</fpage>&#x02013;<lpage>4418</lpage>. <pub-id pub-id-type="doi">10.1109/IEMBS.2010.5625988</pub-id><pub-id pub-id-type="pmid">21095760</pub-id></citation></ref>
<ref id="B39">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Posada-Quintero</surname> <given-names>H. F.</given-names></name> <name><surname>Florian</surname> <given-names>J. P.</given-names></name> <name><surname>Orjuela-Ca&#x000F1;&#x000F3;n</surname> <given-names>A. D.</given-names></name> <name><surname>Aljama-Corrales</surname> <given-names>T.</given-names></name> <name><surname>Charleston-Villalobos</surname> <given-names>S.</given-names></name> <name><surname>Chon</surname> <given-names>K. H.</given-names></name></person-group> (<year>2016</year>). <article-title>Power spectral density analysis of electrodermal activity for sympathetic function assessment</article-title>. <source>Ann. Biomed. Eng.</source> <volume>44</volume>, <fpage>3124</fpage>&#x02013;<lpage>3135</lpage>. <pub-id pub-id-type="doi">10.1007/s10439-016-1606-6</pub-id><pub-id pub-id-type="pmid">27059225</pub-id></citation></ref>
<ref id="B40">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Rothhaas</surname> <given-names>R.</given-names></name> <name><surname>Chung</surname> <given-names>S.</given-names></name></person-group> (<year>2021</year>). <article-title>Role of the preoptic area in sleep and thermoregulation</article-title>. <source>Front. Neurosci.</source> <volume>15</volume>, <fpage>664781</fpage>. <pub-id pub-id-type="doi">10.3389/fnins.2021.664781</pub-id><pub-id pub-id-type="pmid">34276287</pub-id></citation></ref>
<ref id="B41">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Sano</surname> <given-names>A.</given-names></name> <name><surname>Picard</surname> <given-names>R. W.</given-names></name> <name><surname>Stickgold</surname> <given-names>R.</given-names></name></person-group> (<year>2014</year>). <article-title>Quantitative analysis of wrist electrodermal activity during sleep</article-title>. <source>Int. J. Psychophysiol.</source> <volume>94</volume>, <fpage>382</fpage>&#x02013;<lpage>389</lpage>. <pub-id pub-id-type="doi">10.1016/j.ijpsycho.2014.09.011</pub-id><pub-id pub-id-type="pmid">25286449</pub-id></citation></ref>
<ref id="B42">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Schafer</surname> <given-names>R.</given-names></name></person-group> (<year>2011</year>). <article-title>What is a savitzky-golay filter?</article-title> <source>IEEE Signal Process. Mag.</source> <volume>28</volume>, <fpage>111</fpage>&#x02013;<lpage>117</lpage>. <pub-id pub-id-type="doi">10.1109/MSP.2011.941097</pub-id></citation>
</ref>
<ref id="B43">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Speakman</surname> <given-names>J. R.</given-names></name></person-group> (<year>2018</year>). <article-title>Obesity and thermoregulation</article-title>. <source>Handb. Clin. Neurol.</source> <volume>156</volume>, <fpage>431</fpage>&#x02013;<lpage>443</lpage>. <pub-id pub-id-type="doi">10.1016/B978-0-444-63912-7.00026-6</pub-id><pub-id pub-id-type="pmid">30454605</pub-id></citation></ref>
<ref id="B44">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Subramanian</surname> <given-names>S.</given-names></name> <name><surname>Tseng</surname> <given-names>B.</given-names></name> <name><surname>Barbieri</surname> <given-names>R.</given-names></name> <name><surname>Brown</surname> <given-names>E. N.</given-names></name></person-group> (<year>2022</year>). <article-title>An unsupervised automated paradigm for artifact removal from electrodermal activity in an uncontrolled clinical setting</article-title>. <source>Physiol. Meas.</source> <volume>3</volume>, <fpage>43</fpage>. <pub-id pub-id-type="doi">10.1088/1361-6579/ac92bd</pub-id><pub-id pub-id-type="pmid">36113446</pub-id></citation></ref>
<ref id="B45">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Taylor</surname> <given-names>S.</given-names></name> <name><surname>Jaques</surname> <given-names>N.</given-names></name> <name><surname>Chen</surname> <given-names>W.</given-names></name> <name><surname>Fedor</surname> <given-names>S.</given-names></name> <name><surname>Sano</surname> <given-names>A.</given-names></name> <name><surname>Picard</surname> <given-names>R.</given-names></name></person-group> (<year>2015</year>). <article-title>Automatic identification of artifacts in electrodermal activity data</article-title>. <source>Annu. Int. Conf. IEEE Eng. Med. Biol. Soc.</source> <volume>2015</volume>, <fpage>1934</fpage>&#x02013;<lpage>1937</lpage>. <pub-id pub-id-type="doi">10.1109/EMBC.2015.7318762</pub-id><pub-id pub-id-type="pmid">26736662</pub-id></citation></ref>
<ref id="B46">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Verdonck</surname> <given-names>T.</given-names></name> <name><surname>Baesens</surname> <given-names>B.</given-names></name> <name><surname>&#x000D3;skarsd&#x000F3;ttir</surname> <given-names>M.</given-names></name> <name><surname>vanden Broucke</surname> <given-names>S.</given-names></name></person-group> (<year>2021</year>). <article-title>Special issue on feature engineering editorial</article-title>. <source>Mach. Learn.</source> <pub-id pub-id-type="doi">10.1007/s10994-021-06042-2</pub-id></citation>
</ref>
<ref id="B47">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Waalen</surname> <given-names>J.</given-names></name> <name><surname>Buxbaum</surname> <given-names>J. N.</given-names></name></person-group> (<year>2011</year>). <article-title>Is older colder or colder older? the association of age with body temperature in 18,630 individuals</article-title>. <source>J. Gerontol. A Biol. Sci. Med. Sci.</source> <volume>66</volume>, <fpage>487</fpage>&#x02013;<lpage>492</lpage>. <pub-id pub-id-type="doi">10.1093/gerona/glr001</pub-id><pub-id pub-id-type="pmid">21324956</pub-id></citation></ref>
<ref id="B48">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Yanovich</surname> <given-names>R.</given-names></name> <name><surname>Ketko</surname> <given-names>I.</given-names></name> <name><surname>Charkoudian</surname> <given-names>N.</given-names></name></person-group> (<year>2020</year>). <article-title>Sex differences in human thermoregulation: relevance for 2020 and beyond</article-title>. <source>Physiology (Bethesda)</source> <volume>35</volume>, <fpage>177</fpage>&#x02013;<lpage>184</lpage>. <pub-id pub-id-type="doi">10.1152/physiol.00035.2019</pub-id><pub-id pub-id-type="pmid">32293229</pub-id></citation></ref>
<ref id="B49">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Zontone</surname> <given-names>P.</given-names></name> <name><surname>Affanni</surname> <given-names>A.</given-names></name> <name><surname>Bernardini</surname> <given-names>R.</given-names></name> <name><surname>Piras</surname> <given-names>A.</given-names></name> <name><surname>Rinaldo</surname> <given-names>R.</given-names></name></person-group> (<year>2019</year>). <article-title>&#x0201C;Stress detection through electrodermal activity (EDA) and electrocardiogram (ECG) analysis in car drivers,&#x0201D;</article-title> in <source>2019 27th European Signal Processing Conference (EUSIPCO)</source> (<publisher-loc>ACoruna</publisher-loc>: <publisher-name>IEEE</publisher-name>), <fpage>1</fpage>&#x02013;<lpage>5</lpage>.</citation>
</ref>
</ref-list> 
</back>
</article>