<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.3 20070202//EN" "journalpublishing.dtd">
<article article-type="research-article" dtd-version="2.3" xml:lang="EN" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Sig. Proc.</journal-id>
<journal-title>Frontiers in Signal Processing</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Sig. Proc.</abbrev-journal-title>
<issn pub-type="epub">2673-8198</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">1014700</article-id>
<article-id pub-id-type="doi">10.3389/frsip.2022.1014700</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Signal Processing</subject>
<subj-group>
<subject>Original Research</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>Multimodal detection of typical absence seizures in home environment with wearable electrodes</article-title>
<alt-title alt-title-type="left-running-head">Chatzichristos et al.</alt-title>
<alt-title alt-title-type="right-running-head">
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3389/frsip.2022.1014700">10.3389/frsip.2022.1014700</ext-link>
</alt-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="yes">
<name>
<surname>Chatzichristos</surname>
<given-names>Christos</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
<xref ref-type="corresp" rid="c001">&#x2a;</xref>
<uri xlink:href="https://loop.frontiersin.org/people/1083130/overview"/>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Swinnen</surname>
<given-names>Lauren</given-names>
</name>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
<uri xlink:href="https://loop.frontiersin.org/people/1951709/overview"/>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Macea</surname>
<given-names>Jaiver</given-names>
</name>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Bhagubai</surname>
<given-names>Miguel</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Van Paesschen</surname>
<given-names>Wim</given-names>
</name>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
<uri xlink:href="https://loop.frontiersin.org/people/442098/overview"/>
</contrib>
<contrib contrib-type="author">
<name>
<surname>De Vos</surname>
<given-names>Maarten</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="https://loop.frontiersin.org/people/1539398/overview"/>
</contrib>
</contrib-group>
<aff id="aff1">
<sup>1</sup>
<institution>Department of Electrical Engineering</institution>, <institution>STADIUS Center for Dynamical Systems, Signal Processing and Data Analytics</institution>, <institution>KU Leuven</institution>, <addr-line>Leuven</addr-line>, <country>Belgium</country>
</aff>
<aff id="aff2">
<sup>2</sup>
<institution>Laboratory for Epilepsy Research</institution>, <institution>Department of Neurology</institution>, <institution>University Hospitals</institution>, <institution>KU Leuven</institution>, <addr-line>Leuven</addr-line>, <country>Belgium</country>
</aff>
<aff id="aff3">
<sup>3</sup>
<institution>Department Development and Regeneration</institution>, <institution>KU Leuven</institution>, <addr-line>Leuven</addr-line>, <country>Belgium</country>
</aff>
<author-notes>
<fn fn-type="edited-by">
<p>
<bold>Edited by:</bold> <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/473800/overview">Massimo Walter Rivolta</ext-link>, University of Milan, Italy</p>
</fn>
<fn fn-type="edited-by">
<p>
<bold>Reviewed by:</bold> <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/1961647/overview">Stefania Coelli</ext-link>, Politecnico Di Milano, Italy</p>
<p>
<ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/1437969/overview">Ferruccio Panzica</ext-link>, Carlo Besta Neurological Institute Foundation (IRCCS), Italy</p>
</fn>
<corresp id="c001">&#x2a;Correspondence: Christos Chatzichristos, <email>cchatzic@esat.kuleuven.be</email>
</corresp>
<fn fn-type="other">
<p>This article was submitted to Biomedical Signal Processing, a section of the journal Frontiers in Signal Processing</p>
</fn>
</author-notes>
<pub-date pub-type="epub">
<day>17</day>
<month>10</month>
<year>2022</year>
</pub-date>
<pub-date pub-type="collection">
<year>2022</year>
</pub-date>
<volume>2</volume>
<elocation-id>1014700</elocation-id>
<history>
<date date-type="received">
<day>08</day>
<month>08</month>
<year>2022</year>
</date>
<date date-type="accepted">
<day>26</day>
<month>09</month>
<year>2022</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#xa9; 2022 Chatzichristos, Swinnen, Macea, Bhagubai, Van Paesschen and De Vos.</copyright-statement>
<copyright-year>2022</copyright-year>
<copyright-holder>Chatzichristos, Swinnen, Macea, Bhagubai, Van Paesschen and De Vos</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>
<p>Patients with absence epilepsy fail to report almost 90% of their seizures. The clinical gold standard to assess absence seizures is video-electroencephalography (vEEG) recorded in the hospital, an expensive and obtrusive procedure which requires also extended reviewing time. Wearable sensors, which allow the recording of electroencephalography (EEG), accelerometer and gyroscope have been used to monitor epileptic patients in their home environment for the first time. We developed a pipeline for accurate and robust absence seizure detection while reducing the review time of the long recordings. Our results show that multimodal analysis of absence seizures can improve the robustness to false alarms, while retaining a high sensitivity in seizure detection.</p>
</abstract>
<kwd-group>
<kwd>epilepsy</kwd>
<kwd>typical absence seizures</kwd>
<kwd>multimodal</kwd>
<kwd>EEG</kwd>
<kwd>wearables</kwd>
<kwd>home monitoring</kwd>
<kwd>accelerometer</kwd>
<kwd>gyroscope</kwd>
</kwd-group>
</article-meta>
</front>
<body>
<sec id="s1">
<title>1 Introduction</title>
<p>Absence seizures are the main seizure type in various idiopathic generalized epilepsy syndromes, among others, in juvenile absence epilepsy (JAE) (<xref ref-type="bibr" rid="B13">Hirch et al., 2022</xref>). Typical absence seizures are characterized by motor arrest and impaired awareness. On the electroencephalogram (EEG), they are visualized by 3&#x2013;4.5&#xa0;Hz generalized spike-and-wave discharges. In patients with JAE, lifelong treatment with antiseizure medications may be required as relapse after withdrawal is high (83%) (<xref ref-type="bibr" rid="B13">Hirch et al., 2022</xref>). Even patients who are considered to be seizure free under treatment, can still relapse (25%).</p>
<p>It is, therefore, paramount to accurately detect absence seizures in order to improve therapeutic decisions. However, the subtle clinical manifestation of absence seizures hampers the patient&#x2019;s and the caregiver&#x2019;s ability to correctly report the seizure in the seizure diary. In studies with patients with absence seizures, 86%&#x2013;94% of the absences are not reported (<xref ref-type="bibr" rid="B15">Keilson et al., 1987</xref>; <xref ref-type="bibr" rid="B1">Akman et al., 2009</xref>; <xref ref-type="bibr" rid="B19">Swinnen et al., 2021</xref>). As such, the seizure diary is an unreliable method, although commonly used in clinical practice as well as surrogate endpoint in trials for antiseizure medication (<xref ref-type="bibr" rid="B10">Fisher et al., 2012</xref>).</p>
<p>Current diagnostics are based on the clinical history and in-hospital monitoring of seizures with video-EEG (which is considered the gold-standard for seizure detection). Hence, devices that could record the seizures during normal everyday life conditions could facilitate a better logging of the seizure events, as the use of ambulatory EEG is limited due to the complexity of placement and the visibility and constraints in daily life.</p>
<p>An explosion in the capability of monitoring individuals <italic>via</italic> sensors built into smartphones or wearable devices has been taking place. Following the views of the patients, the devices need to be &#x201c;as &#x2018;normal&#x2019; as possible,&#x201d; &#x201c;non-stigmatizing&#x201d; and &#x201c;non-intrusive&#x201d; (<xref ref-type="bibr" rid="B3">Bruno et al., 2018</xref>). Furthermore, the majority of the patients were willing to use a wearable device for long-term seizure tracking, envisaged by the possibility of understanding their condition better. The detection of absence seizures with wearable devices is a very suitable use-case, since the number and location of electrodes is likely to be less important than in focal epilepsies (<xref ref-type="bibr" rid="B8">Duun-Henriksen et al., 2012</xref>).</p>
<p>However, the clinical adoption of wearable EEG remains challenging, since no phase-4 clinical study, proving the feasibility and comfort of the device in a home environment, has yet been conducted. Furthermore, there are challenges regarding the signal quality and the time needed by the neurologists to annotate the data. Hence, research for automated seizure detection algorithms, tailored for wearable EEG, is still in its infancy, especially in wearable detection of absence seizures (<xref ref-type="bibr" rid="B16">Kjaer et al., 2017</xref>; <xref ref-type="bibr" rid="B6">Dan et al., 2020</xref>; <xref ref-type="bibr" rid="B19">Swinnen et al., 2021</xref>; <xref ref-type="bibr" rid="B14">Japaridze et al., 2022</xref>), (semi) automated seizure detection would facilitate the adoption of EEG wearables in clinical practice. Furthermore, even the annotation of wearable EEG data, compared to vEEG, is not trivial (<xref ref-type="bibr" rid="B23">Zhang et al., 2022</xref>).</p>
<p>In a previous paper (<xref ref-type="bibr" rid="B19">Swinnen et al., 2021</xref>), we reported the performance of an EEG-based wearable, CE marked device to detect absence seizures, the Sensor Dot (SD; Byteflies). SD is a discrete, user-friendly wearable that consists of four electrodes, creating two ipsilateral channels. This device was developed during SeizeIT1 (2016&#x2013;2019). The initial results currently reported belong to an extension of SeizeIT1, SeizeIT2 which is a larger multicenter trial with focus on clinical validation of the SD in people with typical absence, focal impaired awareness, and generalized tonic&#x2013;clonic seizures (EIT Health: SeizeIT2, <ext-link ext-link-type="uri" xlink:href="http://clinicaltrials.gov">clinicaltrials.gov</ext-link>: NCT04284072) (<xref ref-type="bibr" rid="B9">EIT Health, 2020</xref>).</p>
<p>In the same paper we proposed a novel automated absence detection algorithm which achieved a mean sensitivity of 0.983 in the detection of absence seizures, with mean False Alarm (FA) per hour equal to 0.9138. The use of the automated algorithm reduced the review time of a 24&#xa0;h recording from 1 to 2&#xa0;h to around 5&#x2013;10&#xa0;min for the neurologists.</p>
<p>Nevertheless, the reported results in (<xref ref-type="bibr" rid="B19">Swinnen et al., 2021</xref>) were obtained from data acquired within the hospital environment. We argued that the first phase of the recording of each patient will consist of routine monitoring in the EMU after which these data can be used to train the algorithm. The obtained classifier can be used to detect seizures from the data acquired when the patient wears the SD at home. Similar assumptions are being made by all of the aforementioned studies with wearable devices and absence seizure detection. Even in the phase-3 clinical trial of Epihunter (<xref ref-type="bibr" rid="B14">Japaridze et al., 2022</xref>), the data were not obtained in an actual home environment [as proposed in (<xref ref-type="bibr" rid="B2">Beniczy and Ryvlin, 2018</xref>)].</p>
<p>As observed from the data obtained from the patients in the home environment with SD, the performance of the automated seizure annotation was lower, compared to the performance of the algorithm trained and tested with data obtained in the hospital (<xref ref-type="bibr" rid="B19">Swinnen et al., 2021</xref>), especially in terms of FAs. In the current paper we will present a pipeline for the automated absence seizure detection for in-home monitoring, which will be tested and validated, for the first time, with data obtained from patients with absence seizures in their home environment. The focus of the current paper will only be the algorithmic pipeline, used to flag the possible seizures, the physiological findings of the home studies will be released in future publications. The goal of the pipeline is to be used by the neurologists in the rest of the subjects and reduce the time needed to annotate the data. The neurologists are requested instead of reviewing the whole recording to only review the provided alarms from the algorithm.</p>
</sec>
<sec sec-type="materials|methods" id="s2">
<title>2 Materials and methods</title>
<sec id="s2-1">
<title>2.1 Patients</title>
<p>The current home-based phase of the SeizeIT2 study, is a follow up of the phase-2 clinical study of SeizeIT2 presented in (<xref ref-type="bibr" rid="B19">Swinnen et al., 2021</xref>). In total 13 patients were enrolled in two epilepsy centers: University Hospital Leuven and University Hospital Freiburg. Patients with a confirmed electroclinical diagnosis of refractory Juvenile Absence Epilepsy were enrolled between 11 March and 15 June 2022 if they had previously participated in the in-hospital phase (Phase 2 study). Here, we used data of the first four patients (mean age &#x3d; 21&#xa0;years; 3 female, 1 male) that were enrolled, to explore the algorithmic pipeline.</p>
<p>In addition we included one patient with refractory absence epilepsy, which is part of a long term monitoring study in patients with different seizure types (Plug&#x26;Patch&#x2014;PnP, <ext-link ext-link-type="uri" xlink:href="http://clinicaltrials.gov">clinicaltrials.gov</ext-link>: NCT04642105), who had only measured EEG at home with SD.</p>
<p>All patients from the trials gave written informed consent and the studies were approved by the ethics committee of UZ/KU Leuven.</p>
</sec>
<sec id="s2-2">
<title>2.2 Data collection</title>
<p>The patients had been initially admitted to UZ Leuven and were followed for a 24-h vEEG monitoring (Schwarzer EEG amplifier, O.S.G.) using the standardized 25- electrode array of the International Federation of Clinical Neurophysiology. Behind each ear, two additional Ag/AgCl cup electrodes (Ambu Neuroline cup, Ambu) were attached on the mastoid bone for concomitant recording with the SD. The SD, a small device of 24.5 &#xd7; 33.5 &#xd7; 7.73&#xa0;mm (mm) and 6.3&#xa0;g, was attached on the upper back using a patch (<xref ref-type="fig" rid="F1">Figure 1</xref>), and two bipolar channels were created by connecting the ipsilateral top and lower electrode. Impedance was <inline-formula id="inf1">
<mml:math id="m1">
<mml:mo>&#x2264;</mml:mo>
<mml:mn>5</mml:mn>
<mml:mi>k</mml:mi>
<mml:mi mathvariant="normal">&#x3a9;</mml:mi>
</mml:math>
</inline-formula> at the beginning and checked throughout. The sampling rate of the SD and video-EEG was 250&#xa0;Hz. Battery life and memory storage of the SD were 24&#xa0;h and 2&#xa0;Gb, respectively.</p>
<fig id="F1" position="float">
<label>FIGURE 1</label>
<caption>
<p>The full concept enabled by the use of the SD. (1) Four electrodes (in orange) are placed behind the ears of the patient and connected to the mobile EEG device, the SD, which is attached to the upper back <italic>via</italic> an adhesive (in blue). An enlarged image of the SD is given in the circle. (2) After 24&#xa0;h of recording, the SD is placed in the docking station which will allow recharging of the battery. In addition, when the SD is in the docking station, the SD EEG data will be automatically uploaded to the cloud <italic>via</italic> a WiFi connection. (3) Afterwards, the absence detection algorithm will analyze the data and flag segments of interest (in red). (4) Finally, the flagged data are send back to the treating neurologist who can then review the SD EEG data in a very short time. (Figure reused from <xref ref-type="bibr" rid="B19">Swinnen et al., 2021</xref>).</p>
</caption>
<graphic xlink:href="frsip-02-1014700-g001.tif"/>
</fig>
<p>For the home-based study, all five patients received <italic>via</italic> post the SD kit (Byteflies, Belgium), containing the two-channel EEG-based SDs, the EEG-holder, the docking station, and four Ambu BRS neonatal electrocardiography (ECG) adhesive electrodes, here used for behind-the-ear EEG. The Inertial Measurement Unit (IMU) is embedded in the SD and are collected simultaneously with the EEG data. They received instructions on paper and <italic>via</italic> phone call on how to install the docking station and connect it to Wi-Fi in order to allow upload of SD data to the cloud. They were also instructed on how to place the electrodes behind the ears on the mastoid bone, two on each side of the head, with the upper and lower electrode being approximately 5&#xa0;cm apart. Electrodes on the same side had to be connected to create two ipsilateral, left and right, EEG channels. Impedance was not checked in the home-environment. Four of the patients had one SD recording at home lasting 22, 23, 24, and 24&#xa0;h, respectively. The fifth patient had SD recordings at home during 16&#x2013;24&#xa0;h per day, twice per week for several months<xref ref-type="fn" rid="fn1">
<sup>1</sup>
</xref>.</p>
</sec>
<sec id="s2-3">
<title>2.3 Pipeline for the ML-based seizure detection</title>
<p>The pipeline that we have used for the analysis of the in-home recordings consists of several blocks (<xref ref-type="fig" rid="F2">Figure 2</xref>). The main Machine Learning (ML) algorithm is similar to the one used in (<xref ref-type="bibr" rid="B19">Swinnen et al., 2021</xref>) with minor modifications (as will be described). Extra blocks have been added in order to detect movement artifacts, flat lines and disconnected electrodes which constitute a significant portion of the in-home recordings. All the pipeline blocks will be described in detail in the following subsections.</p>
<fig id="F2" position="float">
<label>FIGURE 2</label>
<caption>
<p>The pipeline for the analysis of the home data recordings.</p>
</caption>
<graphic xlink:href="frsip-02-1014700-g002.tif"/>
</fig>
<sec id="s2-3-1">
<title>2.3.1 Preprocessing and segmentation</title>
<p>Each EEG SD channel was filtered with a bandpass filter (1&#x2013;25&#xa0;Hz). Subsequently, the data were segmented in 2-s windows with 50% overlap. The same segmentation process was performed for the signals of the IMU, the accelerometer and the gyroscope, which is embedded in SD.</p>
</sec>
<sec id="s2-3-2">
<title>2.3.2 Balancing the classes</title>
<p>The seizure detection task is a highly unbalanced problem. Limited number of seizure segments exist and the background (non-seizure) segments are dominant. As noted in (<xref ref-type="bibr" rid="B19">Swinnen et al., 2021</xref>) when a random subsampling of the background data is implemented the algorithm suffers from stability issues, with high standard deviation of the sensitivity and the false alarm rate. Therefore, different under-sampling approaches have been tested and we opted for the use of an adapted version of the cluster-based under-sampling approach (<xref ref-type="bibr" rid="B22">Yen and Lee, 2009</xref>). The number of background samples, <italic>N</italic>
<sub>
<italic>k</italic>
</sub>, selected from each cluster <italic>k</italic> was set equal to <inline-formula id="inf2">
<mml:math id="m2">
<mml:msub>
<mml:mrow>
<mml:mi>N</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>m</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfrac>
</mml:math>
</inline-formula>. Where <italic>m</italic> is the ratio between the background and seizure samples we aimed to obtain in our training set, <italic>K</italic> is the number of clusters on which we clustered all the background samples and <italic>S</italic>
<sub>
<italic>s</italic>
</sub>, <italic>S</italic>
<sub>
<italic>b</italic>
</sub> and <inline-formula id="inf3">
<mml:math id="m3">
<mml:msub>
<mml:mrow>
<mml:mi>S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> are the total number of seizure samples, the total number of background samples and the number of background samples in the <italic>k</italic> cluster, respectively. Similarly, to (<xref ref-type="bibr" rid="B19">Swinnen et al., 2021</xref>) <italic>m</italic> was set equal to 25 and <italic>K</italic> &#x3d; <italic>S</italic>
<sub>
<italic>s</italic>
</sub> (which varies per patient).</p>
</sec>
<sec id="s2-3-3">
<title>2.3.3 Feature calculation</title>
<p>The feature set used in this study is similar to the one used in (<xref ref-type="bibr" rid="B19">Swinnen et al., 2021</xref>). The feature set was chosen among the features used in (<xref ref-type="bibr" rid="B16">Kjaer et al., 2017</xref>) and in (<xref ref-type="bibr" rid="B20">Vandecasteele et al., 2020</xref>) after performing Random Forest selection (<xref ref-type="bibr" rid="B7">Deviaene et al., 2019</xref>). Our final feature set is given in <xref ref-type="table" rid="T1">Table 1</xref>. The thirteen different features were extracted from each window and each channel separately. Due to the subject dependent differences in the amplitude of the EEG over time, normalization of the features was needed to achieve optimal detection of seizure events. We have used the median decaying memory as the optimal normalization method for line length features. The main difference between the feature set used in (<xref ref-type="bibr" rid="B19">Swinnen et al., 2021</xref>) is the fact that the zero crossings were computed from the raw signal and not the filtered one. Similarly to <xref ref-type="bibr" rid="B19">Swinnen et al. (2021)</xref> all the frequency domain features were derived using the raw signal.</p>
<table-wrap id="T1" position="float">
<label>TABLE 1</label>
<caption>
<p>Feature set of EEG.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th colspan="2" align="left"/>
</tr>
</thead>
<tbody valign="top">
<tr>
<td rowspan="3" align="left">Time domain</td>
<td align="left">&#x2022; Zero crossings (raw signal)</td>
</tr>
<tr>
<td align="left">&#x2022; Cross-correlation between two consecutive windows</td>
</tr>
<tr>
<td align="left">&#x2022; Root mean square error amplitude</td>
</tr>
<tr>
<td rowspan="10" align="left">Frequency domain</td>
<td align="left">&#x2022; Power of the signal in frequency band 1&#x2013;30&#xa0;Hz</td>
</tr>
<tr>
<td align="left">&#x2022; Relative power of the signal between bands 3&#x2013;12Hz and 1&#x2013;30&#xa0;Hz</td>
</tr>
<tr>
<td align="left">&#x2022; Log-Sum of Wavelet Transform: 32&#x2013;64&#xa0;Hz</td>
</tr>
<tr>
<td align="left">&#x2022; Log-Sum of Wavelet Transform: 16&#x2013;32&#xa0;Hz</td>
</tr>
<tr>
<td align="left">&#x2022; Log-Sum of Wavelet Transform: 8&#x2013;16&#xa0;Hz</td>
</tr>
<tr>
<td align="left">&#x2022; Log-Sum of Wavelet Transform: 2&#x2013;4&#xa0;Hz</td>
</tr>
<tr>
<td align="left">&#x2022; Cross-correlation of same window in two different bands 3&#x2013;12&#xa0;Hz and 1&#x2013;30&#xa0;Hz</td>
</tr>
<tr>
<td align="left">&#x2022; Dominant phase</td>
</tr>
<tr>
<td align="left">&#x2022; Mean phase variance</td>
</tr>
<tr>
<td align="left">&#x2022; Mahalanobhis variance between each point of the 3&#x2013;12&#xa0;Hz band and 1&#x2013;30&#xa0;Hz</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="s2-3-4">
<title>2.3.4 Discarding of bad quality segments</title>
<p>We noticed that in home recordings there are some segments (not whole recordings) that one of the channels is either flat, or disconnected. In such cases, the original algorithm that was developed to detect seizures based on two channels is not able to capture the seizure solely from the remaining, non-artifacted channel (e.g., such a case can be seen in <xref ref-type="fig" rid="F3">Figure 3</xref>). We do not want to discard the complete recording or the whole channel for the entire recording in order to maximize the data utility. In every segment (window of 2&#xa0;s) we check the zero-crossings of the raw signal and the Root Mean Squared Amplitude (RMSA) of the filtered signal. RMSA equal (or very close) to zero indicates a flat line, a very big number of zero-crossings per segment indicates a possible misplacement of the electrode (high impedance). Hence, we have set two different thresholds <italic>t</italic>
<sub>1</sub> &#x3d; 0.01 and <inline-formula id="inf4">
<mml:math id="m4">
<mml:msub>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:msub>
<mml:mrow>
<mml:mi>F</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:mn>5</mml:mn>
</mml:mrow>
</mml:mfrac>
</mml:math>
</inline-formula> (<xref ref-type="fig" rid="F2">Figure 2</xref>), with <italic>F</italic>
<sub>
<italic>s</italic>
</sub> being the sampling frequency. In the case that the RMSA of the specific segment of one channel is lower than <italic>t</italic>
<sub>1</sub>, or the zero crossings are above <italic>t</italic>
<sub>2</sub> the segment of the specific channel is considered bad and only the features of the other channel are used (the features of the non-bad channel are mirrored in the bad channel).</p>
<fig id="F3" position="float">
<label>FIGURE 3</label>
<caption>
<p>An example of disconnected channel (low impedance) during an absence seizure. The absence seizure can be detected by the spike-and-wave discharges (red arrow) on the remaining channel. The raw, unfiltered signal is shown here.</p>
</caption>
<graphic xlink:href="frsip-02-1014700-g003.tif"/>
</fig>
</sec>
<sec id="s2-3-5">
<title>2.3.5 Training and classification</title>
<p>A weighted Support Vector Machine (SVM) with a radial basis function kernel was used as classifier. Even though a cluster-sized sub-sampling method was used for balancing the clusters, still the ratio <italic>m</italic> was not set to one but equal to <italic>m</italic> &#x3d; 25, which is why the weighted version of the classifier was used. The weights given to each non-seizure and seizure data point were <inline-formula id="inf5">
<mml:math id="m5">
<mml:mfrac>
<mml:mrow>
<mml:mi>N</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:mi>N</mml:mi>
</mml:mrow>
</mml:mfrac>
</mml:math>
</inline-formula> and <inline-formula id="inf6">
<mml:math id="m6">
<mml:mfrac>
<mml:mrow>
<mml:mi>N</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:msub>
<mml:mrow>
<mml:mi>S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfrac>
</mml:math>
</inline-formula>, respectively, with <italic>N</italic> being the number of background samples selected during the sub-sampling and <italic>S</italic>
<sub>
<italic>s</italic>
</sub> the total number of seizure points.</p>
<p>Three different approaches are being used for the training of the SVM model, based on the availability of the data (<xref ref-type="fig" rid="F4">Figure 4</xref>). We opted for different alternatives for the detection pipeline since the amount of data collected per patient in the home environment fluctuates among different studies (e.g., SeizeIt2 and PnP). The available in-home data determines the best training scheme for the ML models.<list list-type="simple">
<list-item>
<p>&#x2022; Train with data of the test patient obtained during first day of in-home recording. The first day shall be annotated by the neurologists. This approach shall be used when multiple days exist (PnP study).</p>
</list-item>
<list-item>
<p>&#x2022; Train with the hospital data of the patient. In this case the post-processing (explained in next subsection) must be softer in order to capture all the seizures. A bigger number of FAs is expected</p>
</list-item>
<list-item>
<p>&#x2022; Train with annotated home data from other patients (if available) and &#x201c;personalize&#x201d; with the hospital data of the test patient.</p>
</list-item>
</list>
</p>
<fig id="F4" position="float">
<label>FIGURE 4</label>
<caption>
<p>The different options for the analysis of the home data recordings based on the amount of available data.</p>
</caption>
<graphic xlink:href="frsip-02-1014700-g004.tif"/>
</fig>
<p>The values of the hyperparameters, which resulted in the maximum sensitivity in the training set, were selected for the test set (in our use-case we were looking for maximum sensitivity to mark all possible events after which they were reviewed by an epileptologist). Hence, the hyperparameter search is not likely to overfit the dataset as it is only exposed to the training set.</p>
</sec>
<sec id="s2-3-6">
<title>2.3.6 Multimodal postprocessing</title>
<p>In (<xref ref-type="bibr" rid="B19">Swinnen et al., 2021</xref>) (where our models were trained and validated only with in-hospital data) we had a single EEG-based postprocessing rule. As mentioned before with the data obtained from the home of the patients we noticed high FAs rates. Most of the FAs were arising from the movement of the patients within their home environment, which was not present in hospital. In order to minimize the FAs we employed the accelerometer and gyroscope data obtained from IMU. The use of IMU and Electromygraphy (EMG) data in a multimodal framework is common for the detection of tonic-clonic seizures (<xref ref-type="bibr" rid="B18">Milo&#x161;evi&#x107; et al., 2016</xref>) but has never been employed in the context of absence seizure detection.</p>
<p>Four different postprocessing rules were set:<list list-type="simple">
<list-item>
<p>&#x2022; If the (normalized) RMSA of the segment is above <italic>t</italic>
<sub>3</sub> &#x3d; 200&#xa0;<italic>&#x3bc;V</italic> the segment is considered as artifact and no alarm is provided</p>
</list-item>
<list-item>
<p>&#x2022; An alarm for seizure detection is given only when three consecutive windows were noted as seizures</p>
</list-item>
<list-item>
<p>&#x2022; Whenever two seizures (of three windows each) were separated only by one non-seizure window, they were merged</p>
</list-item>
<list-item>
<p>&#x2022; If the standard deviation either of the accelerometer or of the gyroscope is above a specific threshold <italic>t</italic>
<sub>4</sub> &#x3d; 0.05 then the specific EEG segment is considered a movement artifact and no alarm is provided. The multimodal postprocessing based on the IMU data has significantly decreased the FAs in some patients.</p>
</list-item>
</list>
</p>
</sec>
</sec>
</sec>
<sec sec-type="results" id="s3">
<title>3 Results</title>
<p>In this section we will provide some initial results from the two home studies. The selection of the recordings of the patients that were analyzed was based on the number of seizures. We selected the first four patients of SeizeIt2 recorded in 2022 that had at least one absence seizure and the first 6&#xa0;days of the first absence patient of PnP study for which at least one seizure was recorded. In both datasets, the onset and end of all 3-Hz generalized spike- and- wave discharges (SWD), lasting 3&#xa0;s or more<xref ref-type="fn" rid="fn1">
<sup>1</sup>
</xref>, were marked by neurologists. We will refer to these annotations as &#x201c;absences,&#x201d; these annotations were used as the ground truth for the performance metrics that will be presented.</p>
<p>In this section we will try to justify and explain the usability of the different blocks of our pipeline. We will compare the results with the three different training options and to the algorithm presented in (<xref ref-type="bibr" rid="B19">Swinnen et al., 2021</xref>) that was tested only with in-hospital recordings. We must note that for the PnP patient no in-hospital recording exists, hence only the first training option will be used. For the SeizeIt2 patients since we have a single day of in-home recordings we will use options two and three for training.</p>
<p>The following metrics were applied to determine the performance of the seizure detection algorithm [following the definitions in <xref ref-type="bibr" rid="B20">Vandecasteele et al. (2020)</xref>]:<list list-type="simple">
<list-item>
<p>&#x2022; Sensitivity: <inline-formula id="inf7">
<mml:math id="m7">
<mml:mfrac>
<mml:mrow>
<mml:mi>T</mml:mi>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>T</mml:mi>
<mml:mi>P</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>F</mml:mi>
<mml:mi>N</mml:mi>
</mml:mrow>
</mml:mfrac>
</mml:math>
</inline-formula>. A seizure was detected correctly (TP) if the detection occurred between the EEG onset and end of the seizure. A seizure was not detected (FN) if no overlap between the alarm and the seizure existed.</p>
</list-item>
<list-item>
<p>&#x2022; FAs/h. FAs within 3&#xa0;s of each other were counted as one FA.</p>
</list-item>
</list>
</p>
<p>We will not report specificity measures since for all cases the specificity was above 99%, due to the highly imbalanced classes.</p>
<p>As can be noted from <xref ref-type="table" rid="T2">Table 2</xref> in the PnP patient, the postprocessing decreases significantly the Fas/h, with a slight decrease of the sensitivity in most of the recordings. The removal of the bad segments (column 4) retains the low FA rate but increases the Sensitivity, reaching 1 in almost all of the days. There is minor influence from the postprocessing with the IMU data.</p>
<table-wrap id="T2" position="float">
<label>TABLE 2</label>
<caption>
<p>Results of the PNP patient trained with the first day of in-home recording. In the first column in parenthesis the total number of seizures per subject. In the last column the number of seizures missed by the neurologists and detected by the algorithm can be viewed (in the metrics they are counted as FAs though).</p>
</caption>
<table>
<thead valign="top">
<tr>
<th rowspan="2" align="left">Date</th>
<th colspan="2" align="left">EEG</th>
<th colspan="2" align="left">EEG &#x2b; post</th>
<th colspan="2" align="left">EEG &#x2b; post &#x2b; bad</th>
<th colspan="3" align="left">EEG &#x2b; post &#x2b; bad &#x2b; IMU</th>
</tr>
<tr>
<th align="left">Sens</th>
<th align="left">Fas/h</th>
<th align="left">Sens</th>
<th align="left">Fas/h</th>
<th align="left">Sens</th>
<th align="left">Fas/h</th>
<th align="left">Sens</th>
<th align="left">Fas/h</th>
<th align="left">Extra Seiz</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">D2-10-21 (2)</td>
<td align="left">0,50</td>
<td align="left">5,60</td>
<td align="left">0,50</td>
<td align="left">0,00</td>
<td align="left">0,50</td>
<td align="left">0,10</td>
<td align="left">0,50</td>
<td align="left">0,10</td>
<td align="left">1,00</td>
</tr>
<tr>
<td align="left">D3-11-21 (5)</td>
<td align="left">1,00</td>
<td align="left">5,66</td>
<td align="left">0,80</td>
<td align="left">0,14</td>
<td align="left">1,00</td>
<td align="left">0,14</td>
<td align="left">1,00</td>
<td align="left">0,14</td>
<td align="left">1,00</td>
</tr>
<tr>
<td align="left">D4-11-21 (4)</td>
<td align="left">0,75</td>
<td align="left">8,62</td>
<td align="left">0,50</td>
<td align="left">0,12</td>
<td align="left">1,00</td>
<td align="left">0,73</td>
<td align="left">1,00</td>
<td align="left">0,69</td>
<td align="left">3,00</td>
</tr>
<tr>
<td align="left">D5-11-21 (2)</td>
<td align="left">1,00</td>
<td align="left">2,61</td>
<td align="left">0,50</td>
<td align="left">0,21</td>
<td align="left">1,00</td>
<td align="left">0,10</td>
<td align="left">1,00</td>
<td align="left">0,10</td>
<td align="left">1,00</td>
</tr>
<tr>
<td align="left">D6-11-21 (4)</td>
<td align="left">1,00</td>
<td align="left">11,79</td>
<td align="left">1,00</td>
<td align="left">0,34</td>
<td align="left">1,00</td>
<td align="left">1,29</td>
<td align="left">1,00</td>
<td align="left">1,22</td>
<td align="left">2,00</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>For the SeizeIt2 data (<xref ref-type="table" rid="T3">Table 3</xref>) we can see that the postprocessing has similar effect as in the PnP patient. We shall note the tremendous decrease in the FAs/h for Subj-3. Furthermore, the IMU postprocessing results in a slight decrease in the sensitivity in Subj-3. The decrease is due to the activity noticed in accelerometer and gyroscope during two seizures (<xref ref-type="fig" rid="F5">Figure 5</xref>). We note the very low performance of all the versions of the algorithm in the last Subject.</p>
<table-wrap id="T3" position="float">
<label>TABLE 3</label>
<caption>
<p>Results of the SeizeIt2 patients trained with the hospital recordings. In the first column in parenthesis the total number of seizures per subject.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th rowspan="2" align="left">Subject</th>
<th colspan="2" align="left">EEG</th>
<th colspan="2" align="left">EEG &#x2b; post</th>
<th colspan="2" align="left">EEG &#x2b; post &#x2b; bad</th>
<th colspan="2" align="left">EEG &#x2b; post &#x2b; bad &#x2b; IMU</th>
</tr>
<tr>
<th align="left">Sensitivity</th>
<th align="left">Fas/h</th>
<th align="left">Sensitivity</th>
<th align="left">Fas/h</th>
<th align="left">Sensitivity</th>
<th align="left">Fas/h</th>
<th align="left">Sensitivity</th>
<th align="left">Fas/h</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">Subj-1 (23)</td>
<td align="left">0,96</td>
<td align="left">15,60</td>
<td align="left">0,91</td>
<td align="left">2,64</td>
<td align="left">1,00</td>
<td align="left">2,76</td>
<td align="left">1,00</td>
<td align="left">2,60</td>
</tr>
<tr>
<td align="left">Subj-2 (72)</td>
<td align="left">0,92</td>
<td align="left">9,66</td>
<td align="left">0,88</td>
<td align="left">0,74</td>
<td align="left">0,99</td>
<td align="left">0,76</td>
<td align="left">0,93</td>
<td align="left">0,63</td>
</tr>
<tr>
<td align="left">Subj-3 (4)</td>
<td align="left">0,75</td>
<td align="left">42,34</td>
<td align="left">0,75</td>
<td align="left">38,43</td>
<td align="left">1,00</td>
<td align="left">41,40</td>
<td align="left">1,00</td>
<td align="left">1,22</td>
</tr>
<tr>
<td align="left">Subj-4 (55)</td>
<td align="left">0,13</td>
<td align="left">20,32</td>
<td align="left">0,11</td>
<td align="left">12,59</td>
<td align="left">0,13</td>
<td align="left">19,49</td>
<td align="left">0,13</td>
<td align="left">9,72</td>
</tr>
</tbody>
</table>
</table-wrap>
<fig id="F5" position="float">
<label>FIGURE 5</label>
<caption>
<p>One of the two seizures that were missed when the multimodal post processing was used. In this rare case we can see activity both in gyroscope and accelerometer during this short absence.</p>
</caption>
<graphic xlink:href="frsip-02-1014700-g005.tif"/>
</fig>
<p>When we train the SVM with data obtained from home recordings of other patients and &#x201c;personalize&#x201d; it with the hospital recording of the test patient (Option 3- <xref ref-type="fig" rid="F4">Figure 4</xref>), we note that the performance in Subj-4 increases significantly and is comparable to the other Subjects (<xref ref-type="table" rid="T4">Table 4</xref>). There is a minor effect to the rest of the Subjects.</p>
<table-wrap id="T4" position="float">
<label>TABLE 4</label>
<caption>
<p>Results of the SeizeIt2 patients trained with the hospital recordings &#x2b; in-home recordings of other patients. In the first column in parenthesis the total number of seizures per subject.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th rowspan="2" align="left">Subject</th>
<th colspan="2" align="left">EEG</th>
<th colspan="2" align="left">EEG &#x2b; post</th>
<th colspan="2" align="left">EEG &#x2b; post &#x2b; bad</th>
<th colspan="2" align="left">EEG &#x2b; post &#x2b; bad &#x2b; IMU</th>
</tr>
<tr>
<th align="left">Sensitivity</th>
<th align="left">Fas/h</th>
<th align="left">Sensitivity</th>
<th align="left">Fas/h</th>
<th align="left">Sensitivity</th>
<th align="left">Fas/h</th>
<th align="left">Sensitivity</th>
<th align="left">Fas/h</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">Subj-1 (23)</td>
<td align="left">0,96</td>
<td align="left">15,60</td>
<td align="left">0,91</td>
<td align="left">2,64</td>
<td align="left">1,00</td>
<td align="left">2,76</td>
<td align="left">1,00</td>
<td align="left">2,60</td>
</tr>
<tr>
<td align="left">Subj-2 (72)</td>
<td align="left">0,92</td>
<td align="left">9,66</td>
<td align="left">0,88</td>
<td align="left">0,74</td>
<td align="left">0,99</td>
<td align="left">0,76</td>
<td align="left">0,93</td>
<td align="left">0,63</td>
</tr>
<tr>
<td align="left">Subj-3 (4)</td>
<td align="left">0,75</td>
<td align="left">42,34</td>
<td align="left">0,75</td>
<td align="left">38,43</td>
<td align="left">1,00</td>
<td align="left">41,4</td>
<td align="left">1,00</td>
<td align="left">1,22</td>
</tr>
<tr>
<td align="left">Subj-4 (54)</td>
<td align="left">0,91</td>
<td align="left">2,43</td>
<td align="left">1,21</td>
<td align="left">12,59</td>
<td align="left">0,95</td>
<td align="left">1,71</td>
<td align="left">0,91</td>
<td align="left">1,12</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>We must note that both for the PnP subject and the SeizeIt2 subjects, the algorithm found some seizures that were missed by the neurologists (and are currently counted as FAs, since they were not included in the gold standard). More specifically for the PnP subject eight seizures were found that were initially missed by the neurologist (the extra seizures per recording can be viewed in the last column of <xref ref-type="table" rid="T2">Table 2</xref>), while for the SeizeIt2 subjects 1 seizure was found (examples of missed seizures can be viewed in <xref ref-type="fig" rid="F6">Figure 6</xref>.</p>
<fig id="F6" position="float">
<label>FIGURE 6</label>
<caption>
<p>An example of an absence seizure missed by the reviewer in the PnP study, but captured by the ML algorithm. The signal is filtered with a highpass filter of 0.53 Hz, a lowpass filter of 35&#xa0;Hz and a Notch filter of 50&#xa0;Hz. The EEG was visualized at a sensitivity of 70&#xa0;&#x3bc;V/cm. These settings were also used by the reviewers during the review process. The red arrows point the spike-and-wave discharges.</p>
</caption>
<graphic xlink:href="frsip-02-1014700-g006.tif"/>
</fig>
</sec>
<sec sec-type="discussion" id="s4">
<title>4 Discussion</title>
<p>According to the standards for testing and clinical validation of seizure detection devices (<xref ref-type="bibr" rid="B2">Beniczy and Ryvlin, 2018</xref>), our studies can be classified as a phase-4 study, since the accuracy and usability of the SD in a home environment is investigated in a multicenter trial (EIT Health: SeizeIT2, <ext-link ext-link-type="uri" xlink:href="http://clinicaltrials.gov">clinicaltrials.gov</ext-link>: NCT04284072). To the best of our knowledge, these are the first (preliminary) results of a phase-4 trial of an automated detection of absence seizures with a wearable device. As mentioned in the introduction the full analysis and report for the findings of the study will follow in another publication and the main focus of this paper is to investigate design choices in the pipeline used for the automatic detection of the seizure events.</p>
<p>The current state-of-the art have failed to provide accurate detection of the absence seizures with the home data mainly due to the high FA rate obtained. We have exhibited that our pipeline provides accurate detection of the absence seizures with very high sensitivity and low FAs/h. Furthermore, it managed to detect seizures that were initially missed by the neurologists. We shall note the difference in the amount of seizures missed by the two neurologists in the different studies which is probably due to the multiple recordings in the span of several months for the PnP study. The large amount of EEG data requires extended time for annotation of the seizures, hence, lower performance might be expected by the annotators. The need of automated seizure detection pipelines is evident when large amount of data are acquired. The lower signal quality of the in-home recordings and the presence of artifacts that did not exist in the hospital recordings, dictate the use of alternative blocks in our pipeline.</p>
<p>Furthermore, we have exhibited for the first time the added value of multimodality in the context of absence seizure detection. Multimodal seizure detection has been widely used for the detection of motor seizures (<xref ref-type="bibr" rid="B17">Leijten, 2017</xref>) and focal seizures (<xref ref-type="bibr" rid="B21">Vandecasteele et al., 2021</xref>). However, multimodal approaches have not been employed for the detection of absence seizures, mainly due to lack of movement or heart rate variability during typical absence seizures. We have shown that detection of movement with SD can help into distinguishing seizure events from movement and dramatically decrease FAs (Subj-3, SeizeIt2).</p>
<p>The thresholding based on the standard deviation of the IMU signals was adopted in order to decrease the significant amount of FAs that were caused by the movement of everyday life. The hospital data do not include such movement segments, hence, the classifier, when trained only with hospital data do not recognize those segments as background but as seizure segments. &#x201c;Turning off&#x201d; the IMU postprocessing can result in a detection of a very limited number of seizures, similar to the one presented in <xref ref-type="fig" rid="F5">Figure 5</xref>, for which the standard deviation (std) of the IMU data is above the threshold.</p>
<p>The current pipeline uses IMU modality only for postprocessing, an initial attempt to use an hierarchical clustering for detection of walking and running artifacts had inferior performance to the simple threshold-based postprocessing. However, different &#x201c;true&#x201d; fusion approaches (<xref ref-type="bibr" rid="B5">Chatzichristos et al., 2022</xref>) either early or late ones will be further explored.</p>
<p>Concerning the different training approaches that we have proposed we can note that it seems that in some cases (Subj-4, SeizeIt2) the in-hospital data differ a lot from the in-home data. In such cases the addition to the training set of data from in-home recordings of other patients can be beneficial. When multiple days of in-home recordings exist the training of the model with labelled data from one of the days provides the best performance. We recommend the use of the first option of the pipeline if there are multiple day recordings per subjects and the third pipeline when a single day of recording exist per subject.</p>
<p>Further work will aim to independently replicate those results with the data collected from the different centers that participate in SeizeIt2 and with the rest of the patients from UZ Leuven. Correct interpretation of artifacts in SD recordings will also be helpful in the detection of other seizure types and reduction of FA in the home setting.</p>
<p>Furthermore, when the amount of the data collected allows, we will study approaches based on Neural Networks which have shown significant success in several seizure detection applications (<xref ref-type="bibr" rid="B4">Chatzichristos et al., 2020</xref>; <xref ref-type="bibr" rid="B14">Japaridze et al., 2022</xref>), very recently even with the detection of absence seizures with two-channel EEG (<xref ref-type="bibr" rid="B12">Hartmann et al., 2022</xref>).</p>
</sec>
</body>
<back>
<sec sec-type="data-availability" id="s5">
<title>Data availability statement</title>
<p>The datasets presented in this article are not readily available because The dataset will be available after communication with the coauthor WV and after the results of the full study will be released. Requests to access the datasets should be directed to <ext-link ext-link-type="uri" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://wim.vanpaesschen@uzleuven.be">wim.vanpaesschen@uzleuven.be</ext-link>.</p>
</sec>
<sec id="s6">
<title>Ethics statement</title>
<p>The studies involving human participants were reviewed and approved by Ethics comitee of UZ/KU Leuven. The patients/participants provided their written informed consent to participate in this study.</p>
</sec>
<sec id="s7">
<title>Author contributions</title>
<p>CC wrote the main part of the paper and developed the pipeline for the analysis of absence seizures, LS and JM annotated the seizures, wrote part of the manuscript, and helped in the collection of the data. MB helped into the design of the multimodal fusion and tested alternative versions. WV and MD contributed to conception and design of the study as well as the analysis approach followed. All authors contributed to manuscript revision, read, and approved the submitted version.</p>
</sec>
<sec id="s8">
<title>Funding</title>
<p>EIT Health Grant: 21,263&#x2014;SeizeIT2: Discreet Personalized Epileptic Seizure Detection Device. SeizeIT started out as an imec. icon research project (2016&#x2013;2019), and currently continues as an EIT Health funded initiative (2020&#x2013;2021). Project partners are KU Leuven, UCB Pharma, Byteflies and Pilipili, Neuroventis, Karolinska Institute, Aachen UMC, UH Freiburg, Oxford University Hospitals NHS, King&#x2019;s College London and CHUC Coimbra. This research received funding from the Flemish Government under the &#x201c;Onderzoeksprogramma Artifici&#x2019;ele Intelligentie (AI) Vlaanderen&#x201d; program.</p>
</sec>
<sec sec-type="COI-statement" id="s9">
<title>Conflict of interest</title>
<p>The 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="s10">
<title>Publisher&#x2019;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">
<name>
<surname>Akman</surname>
<given-names>C. I.</given-names>
</name>
<name>
<surname>Montenegro</surname>
<given-names>M. A.</given-names>
</name>
<name>
<surname>Jacob</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Eck</surname>
<given-names>K.</given-names>
</name>
<name>
<surname>Chriboga</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Gilliam</surname>
<given-names>F.</given-names>
</name>
</person-group> (<year>2009</year>). <article-title>Seizure frequency in children with epilepsy: Factors influencingaccuracy and parental awareness</article-title>. <source>Seizure</source> <volume>18</volume>, <fpage>524</fpage>&#x2013;<lpage>529</lpage>. <pub-id pub-id-type="doi">10.1016/j.seizure.2009.05.009</pub-id> </citation>
</ref>
<ref id="B2">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Beniczy</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Ryvlin</surname>
<given-names>P.</given-names>
</name>
</person-group> (<year>2018</year>). <article-title>Standards for testing and clinical validation of seizure detection devices</article-title>. <source>Epilepsia</source> <volume>59</volume>, <fpage>9</fpage>&#x2013;<lpage>13</lpage>. <pub-id pub-id-type="doi">10.1111/epi.14049</pub-id> </citation>
</ref>
<ref id="B3">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Bruno</surname>
<given-names>E.</given-names>
</name>
<name>
<surname>Simblett</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Lang</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Biondi</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Odoi</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Schulze-Bonhage</surname>
<given-names>A.</given-names>
</name>
<etal/>
</person-group> (<year>2018</year>). <article-title>Wearable technology in epilepsy: The views of patients, caregivers, and healthcare professionals</article-title>. <source>Epilepsy &#x26; Behav.</source> <volume>85</volume>, <fpage>141</fpage>&#x2013;<lpage>149</lpage>. <pub-id pub-id-type="doi">10.1016/j.yebeh.2018.05.044</pub-id> </citation>
</ref>
<ref id="B4">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Chatzichristos</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Dan</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Narayanan</surname>
<given-names>A. M.</given-names>
</name>
<name>
<surname>Seeuws</surname>
<given-names>N.</given-names>
</name>
<name>
<surname>Vandecasteele</surname>
<given-names>K.</given-names>
</name>
<name>
<surname>De Vos</surname>
<given-names>M.</given-names>
</name>
<etal/>
</person-group> (<year>2020</year>). <article-title>Epileptic seizure detection in eeg via fusion of multi-view attention-gated u-net deep neural networks</article-title>. <source>IEEE SPMB</source>. </citation>
</ref>
<ref id="B5">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Chatzichristos</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Kofidis</surname>
<given-names>E.</given-names>
</name>
<name>
<surname>Van Paesschen</surname>
<given-names>W.</given-names>
</name>
<name>
<surname>Lathauwer</surname>
<given-names>L. D.</given-names>
</name>
<name>
<surname>Theodoridis</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Van Huffel</surname>
<given-names>S.</given-names>
</name>
</person-group> (<year>2022</year>). <article-title>Early soft and flexible fusion of electroencephalography and functional magnetic resonance imaging via double coupled matrix tensor factorization for multisubject group analysis</article-title>. <source>Hum. Brain Mapp.</source> <volume>43</volume>, <fpage>1231</fpage>&#x2013;<lpage>1255</lpage>. <pub-id pub-id-type="doi">10.1002/hbm.25717</pub-id> </citation>
</ref>
<ref id="B6">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Dan</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Vandendriessche</surname>
<given-names>B.</given-names>
</name>
<name>
<surname>Paesschen</surname>
<given-names>W. V.</given-names>
</name>
<name>
<surname>Weckhuysen</surname>
<given-names>D.</given-names>
</name>
<name>
<surname>Bertrand</surname>
<given-names>A.</given-names>
</name>
</person-group> (<year>2020</year>). <article-title>Computationally-efficient algorithm for real-time absence seizure detection in wearable electroencephalography</article-title>. <source>Int. J. Neural Syst.</source> <volume>30</volume>, <fpage>2050035</fpage>. <pub-id pub-id-type="doi">10.1142/s0129065720500355</pub-id> </citation>
</ref>
<ref id="B7">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Deviaene</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Testelmans</surname>
<given-names>D.</given-names>
</name>
<name>
<surname>Borz&#xe9;e</surname>
<given-names>P.</given-names>
</name>
<name>
<surname>Buyse</surname>
<given-names>B.</given-names>
</name>
<name>
<surname>Van Huffel</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Varon</surname>
<given-names>C.</given-names>
</name>
</person-group> (<year>2019</year>). &#x201c;<article-title>Feature selection algorithm based on random forest applied to sleep apnea detection</article-title>,&#x201d; in <source>Annual international conference of the engineering in medicine and biology society (EMBC)</source>. </citation>
</ref>
<ref id="B8">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Duun-Henriksen</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Madsen</surname>
<given-names>R.</given-names>
</name>
<name>
<surname>Remvig</surname>
<given-names>L. S.</given-names>
</name>
<name>
<surname>Thomsen</surname>
<given-names>C. E.</given-names>
</name>
<name>
<surname>Sorensen</surname>
<given-names>H. B.</given-names>
</name>
<name>
<surname>Kjaer</surname>
<given-names>T. W.</given-names>
</name>
</person-group> (<year>2012</year>). <article-title>Automatic detection of childhood absence epilepsy seizures: Toward a monitoring device</article-title>. <source>Pediatr. Neurol.</source> <volume>46</volume>, <fpage>287</fpage>&#x2013;<lpage>292</lpage>. <pub-id pub-id-type="doi">10.1016/j.pediatrneurol.2012.02.018</pub-id> </citation>
</ref>
<ref id="B9">
<citation citation-type="web">
<collab>EIT Health</collab> (<year>2020</year>). <article-title>SeizeIT2: Discreet, personalised epileptic seizure detection device</article-title>. <comment>Available from: <ext-link ext-link-type="uri" xlink:href="https://eithealth.eu/project/seizeit2">https://eithealth.eu/project/seizeit2</ext-link>.</comment> </citation>
</ref>
<ref id="B10">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Fisher</surname>
<given-names>R. S.</given-names>
</name>
<name>
<surname>Blum</surname>
<given-names>D.</given-names>
</name>
<name>
<surname>DiVentura</surname>
<given-names>B.</given-names>
</name>
<name>
<surname>Vannest</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Hixson</surname>
<given-names>J. D.</given-names>
</name>
<name>
<surname>Moss</surname>
<given-names>R.</given-names>
</name>
<etal/>
</person-group> (<year>2012</year>). <article-title>Seizure diaries forclinical research and practice: Limitations and future prospects</article-title>. <source>Epilepsy Behav.</source> <volume>24</volume>, <fpage>304</fpage>&#x2013;<lpage>310</lpage>. <pub-id pub-id-type="doi">10.1016/j.yebeh.2012.04.128</pub-id> </citation>
</ref>
<ref id="B11">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Guo</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Kim</surname>
<given-names>R.</given-names>
</name>
<name>
<surname>Chen</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Negishi</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Jhun</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Weiss</surname>
<given-names>S.</given-names>
</name>
<etal/>
</person-group> (<year>2016</year>). <article-title>Impaired consciousness in patients with absence seizures investigated by functional MRI, EEG, and behavioural measures: A cross-sectional study</article-title>. <source>Lancet Neurol.</source> <volume>15</volume>, <fpage>1336</fpage>&#x2013;<lpage>1345</lpage>. <pub-id pub-id-type="doi">10.1016/s1474-4422(16)30295-2</pub-id> </citation>
</ref>
<ref id="B12">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Hartmann</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Koren</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Baumgartner</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Duun-Henriksen</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Gritsch</surname>
<given-names>G.</given-names>
</name>
<name>
<surname>Kluge</surname>
<given-names>T.</given-names>
</name>
<etal/>
</person-group> (<year>2022</year>). <article-title>Seizure detection with deep neural networks for review of two-channel electroencephalogram</article-title>. <source>Epilepsia</source> <volume>00</volume>, <fpage>1</fpage>&#x2013;<lpage>6</lpage>. <pub-id pub-id-type="doi">10.1111/epi.17259</pub-id> </citation>
</ref>
<ref id="B13">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Hirch</surname>
<given-names>E.</given-names>
</name>
<name>
<surname>French</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Scheffer</surname>
<given-names>I.</given-names>
</name>
<name>
<surname>Bogacz</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Alsaad</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Sperling</surname>
<given-names>M.</given-names>
</name>
<etal/>
</person-group> (<year>2022</year>). <article-title>Ilae definition of the idiopathic generalized epilepsy syndromes: Position statement by the ilae task force on nosology and definitions</article-title>. <source>Epilepsia</source> <volume>00</volume>, <fpage>1</fpage>. <pub-id pub-id-type="doi">10.1111/epi.17236</pub-id> </citation>
</ref>
<ref id="B14">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Japaridze</surname>
<given-names>G.</given-names>
</name>
<name>
<surname>Loeckx</surname>
<given-names>D.</given-names>
</name>
<name>
<surname>Buckinx</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Armand Larsen</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Proost</surname>
<given-names>R.</given-names>
</name>
<name>
<surname>Jansen</surname>
<given-names>K.</given-names>
</name>
<etal/>
</person-group> (<year>2022</year>). <source>Automated detection of absence seizures using a wearable electroencephalographic device: A phase 3 validation study and feasibility of automated behavioral testing</source>. <publisher-name>Epilepsia n/a</publisher-name>. </citation>
</ref>
<ref id="B15">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Keilson</surname>
<given-names>M. J.</given-names>
</name>
<name>
<surname>Hauser</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Tepperberg</surname>
<given-names>J.</given-names>
</name>
</person-group> (<year>1987</year>). <article-title>Ambulatory cassette eeg in absence epilepsy</article-title>. <source>Pediatr. Neurol.</source> <volume>3</volume>, <fpage>273</fpage>&#x2013;<lpage>276</lpage>. <pub-id pub-id-type="doi">10.1016/0887-8994(87)90067-1</pub-id> </citation>
</ref>
<ref id="B16">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Kjaer</surname>
<given-names>T. W.</given-names>
</name>
<name>
<surname>Sorensen</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Groenborg</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Pedersen</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Duun-Henriksen</surname>
<given-names>J.</given-names>
</name>
</person-group> (<year>2017</year>). <article-title>Detection of paroxysms in long-term, single-channel EEG-Monitoring of patients with typical absence seizures</article-title>. <source>IEEE J. Transl. Eng. Health Med.</source> <volume>5</volume>, <fpage>1</fpage>&#x2013;<lpage>8</lpage>. <pub-id pub-id-type="doi">10.1109/jtehm.2017.2649491</pub-id> </citation>
</ref>
<ref id="B17">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Leijten</surname>
<given-names>F. S.</given-names>
</name>
<name>
<surname>Andel</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Ungureanu</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Arends</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Tan</surname>
<given-names>F.</given-names>
</name>
<name>
<surname>Dijk</surname>
<given-names>J.</given-names>
</name>
<etal/>
</person-group> (<year>2017</year>). <article-title>Multimodal seizure detection: A review</article-title>. <source>Epilepsia</source> <volume>59</volume>, <fpage>42</fpage>&#x2013;<lpage>47</lpage>. <pub-id pub-id-type="doi">10.1111/epi.14047</pub-id> </citation>
</ref>
<ref id="B18">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Milo&#x161;evi&#x107;</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Van de Vel</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Bonroy</surname>
<given-names>B.</given-names>
</name>
<name>
<surname>Ceulemans</surname>
<given-names>B.</given-names>
</name>
<name>
<surname>Lagae</surname>
<given-names>L.</given-names>
</name>
<name>
<surname>Vanrumste</surname>
<given-names>B.</given-names>
</name>
<etal/>
</person-group> (<year>2016</year>). <article-title>Automated detection of tonic&#x2013;clonic seizures using 3-d accelerometry and surface electromyography in pediatric patients</article-title>. <source>IEEE J. Biomed. Health Inf.</source> <volume>20</volume>, <fpage>1333</fpage>&#x2013;<lpage>1341</lpage>. <pub-id pub-id-type="doi">10.1109/jbhi.2015.2462079</pub-id> </citation>
</ref>
<ref id="B19">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Swinnen</surname>
<given-names>L.</given-names>
</name>
<name>
<surname>Chatzichristos</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Jansen</surname>
<given-names>K.</given-names>
</name>
<name>
<surname>Lagae</surname>
<given-names>L.</given-names>
</name>
<name>
<surname>Depondt</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Seynaeve</surname>
<given-names>L.</given-names>
</name>
<etal/>
</person-group> (<year>2021</year>). <article-title>Accurate detection of typical absence seizures in adults and children using a two-channel electroencephalographic wearable behind the ears</article-title>. <source>Epilepsia</source> <volume>62</volume>, <fpage>2741</fpage>&#x2013;<lpage>2752</lpage>. <pub-id pub-id-type="doi">10.1111/epi.17061</pub-id> </citation>
</ref>
<ref id="B20">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Vandecasteele</surname>
<given-names>K.</given-names>
</name>
<name>
<surname>Cooman</surname>
<given-names>T. D.</given-names>
</name>
<name>
<surname>Dan</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Cleeren</surname>
<given-names>E.</given-names>
</name>
<name>
<surname>Van Huffel</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Hunyadi</surname>
<given-names>B.</given-names>
</name>
<etal/>
</person-group> (<year>2020</year>). <article-title>Visual seizure annotation and automated seizure detection using behind-the-ear electroencephalographic channels</article-title>. <source>Epilepsia</source> <volume>61</volume>, <fpage>766</fpage>&#x2013;<lpage>775</lpage>. <pub-id pub-id-type="doi">10.1111/epi.16470</pub-id> </citation>
</ref>
<ref id="B21">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Vandecasteele</surname>
<given-names>K.</given-names>
</name>
<name>
<surname>De Cooman</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Chatzichristos</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Cleeren</surname>
<given-names>E.</given-names>
</name>
<name>
<surname>Swinnen</surname>
<given-names>L.</given-names>
</name>
<name>
<surname>Macea Ortiz</surname>
<given-names>J.</given-names>
</name>
<etal/>
</person-group> (<year>2021</year>). <article-title>The power of ecg in multimodal patient-specific seizure monitoring: Added value to an eeg-based detector using limited channels</article-title>. <source>Epilepsia</source> <volume>62</volume>, <fpage>2333</fpage>&#x2013;<lpage>2343</lpage>. <pub-id pub-id-type="doi">10.1111/epi.16990</pub-id> </citation>
</ref>
<ref id="B22">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Yen</surname>
<given-names>S. J.</given-names>
</name>
<name>
<surname>Lee</surname>
<given-names>Y. S.</given-names>
</name>
</person-group> (<year>2009</year>). <article-title>Cluster-based under-sampling approaches for imbalanced data distributions</article-title>. <source>Expert Syst. Appl.</source> <volume>36</volume>, <fpage>5718</fpage>&#x2013;<lpage>5727</lpage>. <pub-id pub-id-type="doi">10.1016/j.eswa.2008.06.108</pub-id> </citation>
</ref>
<ref id="B23">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Zhang</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Chatzichristos</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Vandecasteele</surname>
<given-names>K.</given-names>
</name>
<name>
<surname>Swinnen</surname>
<given-names>L.</given-names>
</name>
<name>
<surname>Broux</surname>
<given-names>V.</given-names>
</name>
<name>
<surname>Cleeren</surname>
<given-names>E.</given-names>
</name>
<etal/>
</person-group> (<year>2022</year>). <article-title>Automatic annotation correction for wearable EEG based epileptic seizure detection</article-title>. <source>J. Neural Eng.</source> <volume>19</volume>, <fpage>016038</fpage>. <pub-id pub-id-type="doi">10.1088/1741-2552/ac54c1</pub-id> </citation>
</ref>
</ref-list>
<fn-group>
<fn id="fn1">
<label>1</label>
<p>Following (<xref ref-type="bibr" rid="B19">Swinnen et al., 2021</xref>) the definition was selected for research purposes only, considering that we aimed to study whether these typical EEG patterns can be equally detected by the ML algorirthm. A 3&#xa0;s 3-Hz SWD might not always have a clinical correlation (<xref ref-type="bibr" rid="B11">Guo et al., 2016</xref>).</p>
</fn>
</fn-group>
</back>
</article>