<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Archiving and Interchange DTD v2.3 20070202//EN" "archivearticle.dtd">
<article xml:lang="EN" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="methods-article">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Comput. Neurosci.</journal-id>
<journal-title>Frontiers in Computational Neuroscience</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Comput. Neurosci.</abbrev-journal-title>
<issn pub-type="epub">1662-5188</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.3389/fncom.2023.1195334</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Neuroscience</subject>
<subj-group>
<subject>Methods</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>Feature separation and adversarial training for the patient-independent detection of epileptic seizures</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="yes">
<name><surname>Yang</surname> <given-names>Yong</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="corresp" rid="c001"><sup>&#x002A;</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/2220628/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Li</surname> <given-names>Feng</given-names></name>
<xref ref-type="aff" rid="aff4"><sup>4</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/687709/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Qin</surname> <given-names>Xiaolin</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
</contrib>
<contrib contrib-type="author">
<name><surname>Wen</surname> <given-names>Han</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/2024995/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Lin</surname> <given-names>Xiaoguang</given-names></name>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<xref ref-type="aff" rid="aff3"><sup>3</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/1258287/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Huang</surname> <given-names>Dong</given-names></name>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
</contrib>
</contrib-group>
<aff id="aff1"><sup>1</sup><institution>Chengdu Institute of Computer Application, Chinese Academy of Sciences</institution>, <addr-line>Chengdu, Sichuan</addr-line>, <country>China</country></aff>
<aff id="aff2"><sup>2</sup><institution>Chongqing Institute of Green and Intelligent Technology, Chinese Academy of Sciences</institution>, <addr-line>Chongqing</addr-line>, <country>China</country></aff>
<aff id="aff3"><sup>3</sup><institution>Chongqing School, University of Chinese Academy of Sciences</institution>, <addr-line>Chongqing</addr-line>, <country>China</country></aff>
<aff id="aff4"><sup>4</sup><institution>Department of Neurology, The First Affiliated Hospital of Chongqing Medical University</institution>, <addr-line>Chongqing</addr-line>, <country>China</country></aff>
<author-notes>
<fn fn-type="edited-by"><p>Edited by: Si Wu, Peking University, China</p></fn>
<fn fn-type="edited-by"><p>Reviewed by: Xin Deng, Chongqing University of Posts and Telecommunications, China; Mario Versaci, Mediterranea University of Reggio Calabria, Italy</p></fn>
<corresp id="c001">&#x002A;Correspondence: Yong Yang, <email>yangyong@cigit.ac.cn</email></corresp>
</author-notes>
<pub-date pub-type="epub">
<day>19</day>
<month>07</month>
<year>2023</year>
</pub-date>
<pub-date pub-type="collection">
<year>2023</year>
</pub-date>
<volume>17</volume>
<elocation-id>1195334</elocation-id>
<history>
<date date-type="received">
<day>28</day>
<month>03</month>
<year>2023</year>
</date>
<date date-type="accepted">
<day>03</day>
<month>07</month>
<year>2023</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#x00A9; 2023 Yang, Li, Qin, Wen, Lin and Huang.</copyright-statement>
<copyright-year>2023</copyright-year>
<copyright-holder>Yang, Li, Qin, Wen, Lin and Huang</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>An epileptic seizure is the external manifestation of abnormal neuronal discharges, which seriously affecting physical health. The pathogenesis of epilepsy is complex, and the types of epileptic seizures are diverse, resulting in significant variation in epileptic seizure data between subjects. If we feed epilepsy data from multiple patients directly into the model for training, it will lead to underfitting of the model. To overcome this problem, we propose a robust epileptic seizure detection model that effectively learns from multiple patients while eliminating the negative impact of the data distribution shift between patients. The model adopts a multi-level temporal-spectral feature extraction network to achieve feature extraction, a feature separation network to separate features into category-related and patient-related components, and an invariant feature extraction network to extract essential feature information related to categories. The proposed model is evaluated on the TUH dataset using leave-one-out cross-validation and achieves an average accuracy of 85.7%. The experimental results show that the proposed model is superior to the related literature and provides a valuable reference for the clinical application of epilepsy detection.</p>
</abstract>
<kwd-group>
<kwd>epileptic seizure detection</kwd>
<kwd>EEG</kwd>
<kwd>feature separation</kwd>
<kwd>adversarial training</kwd>
<kwd>patient-independent</kwd>
</kwd-group>
<counts>
<fig-count count="4"/>
<table-count count="3"/>
<equation-count count="18"/>
<ref-count count="36"/>
<page-count count="9"/>
<word-count count="6613"/>
</counts>
</article-meta>
</front>
<body>
<sec id="S1" sec-type="intro">
<title>1. Introduction</title>
<p>Epilepsy is a chronic disorder caused by the sudden abnormal discharge of nerve cells in the brain, resulting in temporary brain dysfunction. Epilepsy is the second most common neurological disorder after headache, affecting approximately 70 million people worldwide. The clinical manifestations of epileptic seizures are complex, and the types of epileptic seizures are varied. The clinical manifestations may include impaired consciousness, limb spasms, urinary incontinence, frothing, and other symptoms. Although epileptic seizures have little impact on patients in the short term, long-term frequent seizures have a severe impact on the physical, mental, intellectual health of patients (<xref ref-type="bibr" rid="B22">Rakhade and Jensen, 2009</xref>; <xref ref-type="bibr" rid="B23">Rasheed et al., 2021</xref>). Most people with epilepsy can control their condition with medication and surgery, still, about 30% of people with intractable epilepsy cannot be adequately controlled with medication (<xref ref-type="bibr" rid="B12">Kwan and Brodie, 2000</xref>), posing a severe threat to the life and health of patients and a heavy burden to their families and society.</p>
<p>The pathogenesis of epilepsy is complex, and the types of epileptic seizures are varied. The characteristics of EEG (electroencephalogram) data during the epileptic seizure period are related to the original location and cause of epilepsy. Different diseases of the nervous system or various conditions of the brain can cause different epileptic seizures, and the same condition of the nervous system can cause more than one type of epileptic seizure. Previous studies have pointed out that about 7% of the neurons ignited in patients with subclinical seizure, about 14% of the neurons ignited in patients when omen appeared. About 36% of the neurons ignited in patients with clinical seizure. Therefore, in the same patient, the intensity, type, location, duration of each seizure may be the same or different. In multiple patients, the differences are more marked (<xref ref-type="bibr" rid="B3">Babb et al., 1987</xref>; <xref ref-type="bibr" rid="B7">Fisher et al., 2017</xref>).</p>
<p>Most of the existing epileptic seizure detection methods focus on the patient-dependent scenario, which refers to detecting a patient&#x2019;s epileptic seizure by learning from his own historical records; this method is easy to implement and has high detection accuracy. In contrast, patient-independent methods advance in alerting potential patients but are easily corrupted by inter-patient noises. Most existing studies fail to eliminate significant differences between patients (mainly caused by multiple factors such as physical condition, pathogenesis, seizure intensity, seizure type, etc.). When the model is trained directly on data from multiple patients, it will easily lead to underfitting, and detection performance will drop sharply on new patients. For these reasons, we propose a new method, which uses a feature extraction network and feature separation network to improve the discriminability of features, and which uses the marginal distribution and conditional distribution alignment technology of features to enhance the ability to extract patient invariant features.</p>
<p>The main contributions of our study can be summarized as follows:</p>
<list list-type="simple">
<list-item>
<label>(1)</label>
<p>We propose a novel domain generalization model based on feature disentanglement and adversarial training to enhance the ability of extracting patient invariant features, so the generalization ability of the model is improved.</p>
</list-item>
<list-item>
<label>(2)</label>
<p>We verify the proposed model through extensive experimental evaluations. The experimental results show that our proposed approach has significant potential to provide an optimal epileptic seizure detection method, and it also provides a valuable reference for clinical application.</p>
</list-item>
</list>
<p>The remainder of this paper is organized as follows. In the section &#x201C;2. Related work,&#x201D; reviews the related work of epileptic seizure detection. In the section &#x201C;3. Methodology,&#x201D; a patient-independent epileptic seizure detection model is proposed. In the section &#x201C;4. Experiments,&#x201D; we present experiments and results on a benchmark dataset. In the section &#x201C;5. Discussion,&#x201D; we analyze the effectiveness of the proposed method. Finally, some conclusions are given in the section &#x201C;6. Conclusion.&#x201D;</p>
</sec>
<sec id="S2">
<title>2. Related work</title>
<p>As a subclass of machine learning, deep neural networks have made remarkable progress in computer vision, natural language processing, and other fields, and researchers have proposed a variety of network models and methods for specific application scenarios. In the research of domain generalization methods, the following two approaches are usually adopted: (1) The method based on experience and knowledge is designed to extract universal features that can perform good detection on new patients. (2) The domain adaptive technology is used to extract invariant features of multiple patients to improve the generalization ability of the model.</p>
<p>For the first approach, <xref ref-type="bibr" rid="B1">Ansari et al. (2021)</xref> proposed an automated seizure onset detection system, which used power spectrum features and some statistical features to detect seizure onset, achieving a mean latency of 0.9 s and 1.02 false detections per hour. <xref ref-type="bibr" rid="B15">Liu et al. (2022)</xref> proposed a novel patient-independent approach; this method used wavelet decomposition, Convolutional Neural Network (CNN), Bidirectional Long Short-Term Memory (Bi-LSTM) network and a novel channel perturbation technique, achieved mean accuracies of 97.51 and 93.70%. <xref ref-type="bibr" rid="B25">Sridevi et al. (2019)</xref> proposed a patient-independent approach; this method used spectral entropy, spectral energy and signal energy as useful features, achieved a better classification effect.</p>
<p>For the second approach, <xref ref-type="bibr" rid="B36">Zhao et al. (2021)</xref> proposed a domain adaptive method, domain shift can be eliminated from the source domain to the target domain, and achieved better performance. <xref ref-type="bibr" rid="B14">Li et al. (2021)</xref> proposed a bi-hemisphere domain adversarial neural network, that achieved good recognition performance in EEG emotion recognition. <xref ref-type="bibr" rid="B26">Tang and Zhang (2020)</xref> applied conditional adversarial domain adaptation neural network to motor image EEG decoding, and achieved a better classification effect.</p>
<p>In epilepsy detection, <xref ref-type="bibr" rid="B35">Zhang et al. (2020)</xref> used feature separation and adversarial representation learning methods to decompose the data into categories (seizure and normal) related features and patient-related features, achieving an average accuracy rate of 80.5% on the TUH EEG dataset. <xref ref-type="bibr" rid="B5">Dissanayake et al. (2021)</xref> used the CNN network structure and Siamese network structure, and achieved an accuracy of 88.81% on the CHB-MIT dataset.</p>
<p>To the best of our knowledge, the above methods do not completely eliminate the effects of the data distribution shift between patients, so in this study, we propose a robust approach to address this problem.</p>
</sec>
<sec id="S3">
<title>3. Methodology</title>
<sec id="S3.SS1">
<title>3.1. The proposed network</title>
<p>The proposed patient-independent epileptic seizures detection model is illustrated in <xref ref-type="fig" rid="F1">Figure 1</xref>, which includes three subnets. (1) Multi-level temporal-spectral feature extraction network, (2) feature separation network, and (3) invariant feature extraction network. The feature extraction network extracts temporal feature information and frequency domain feature information from EEG data (<xref ref-type="bibr" rid="B13">Li et al., 2020</xref>), and performs enhanced characterization by the Squeeze-and-Extraction Network (<xref ref-type="bibr" rid="B9">Hu et al., 2018</xref>), so that the extracted features are discriminable; the feature extraction network is illustrated in <xref ref-type="fig" rid="F2">Figure 2</xref>. The feature separation network disentangles the features into category-related features and patient-related features. Finally, the invariant feature extraction network extracts the invariant patient-independent features by aligning the marginal distribution and the conditional distribution; so the generalization ability of the model is improved.</p>
<fig id="F1" position="float">
<label>FIGURE 1</label>
<caption><p>The architecture of the proposed network.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fncom-17-1195334-g001.tif"/>
</fig>
<fig id="F2" position="float">
<label>FIGURE 2</label>
<caption><p>The architecture of multi-level temporal-spectral feature extract network.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fncom-17-1195334-g002.tif"/>
</fig>
</sec>
<sec id="S3.SS2">
<title>3.2. Multi-level temporal-spectral feature extract network</title>
<p>Electroencephalogram data is two-dimensional data similar to images, which has uncertainties and incidences; therefore, it is necessary to preprocess the original data; we use min-max regulation technology to regulate the data. You can also refer to <xref ref-type="bibr" rid="B21">Rahim et al. (2016)</xref> and <xref ref-type="bibr" rid="B27">Versaci and Morabito (2021)</xref> for preprocessing.</p>
<p>As convolution operators are essentially equivalent to a low-pass filter (<xref ref-type="bibr" rid="B2">Azimi et al., 2019</xref>), the embedding block, the embedding block, that is, successive temporal convolution and batch normalization (BN) operations, is first adopted to infer an optimal filter-band for the subsequent analysis. As a result, after stacking original data and output embeddings with a channel-wise concatenation function, the embedding block obtains a sub-band matrix, which provides a subsequent network with adaptive sub-band responses and also original data. Finally, the data is fed into the multi-level spectral feature extraction module and the multi-level temporary feature extraction module for feature extraction.</p>
<p>In the multi-level temporal-spectral feature extraction network, in order to prevent the deformation of the boundary data caused by zero padding in the convolution operation, the head and tail of the data are filled according to formula (1):</p>
<disp-formula id="S3.E1">
<label>(1)</label>
<mml:math id="M1">
<mml:mrow>
<mml:msub>
<mml:mi>x</mml:mi>
<mml:mi>p</mml:mi>
</mml:msub>
<mml:mo>=</mml:mo>
<mml:mi>x</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mi>N</mml:mi>
<mml:mo>-</mml:mo>
<mml:mfrac>
<mml:mi>R</mml:mi>
<mml:mn>2</mml:mn>
</mml:mfrac>
<mml:mo>+</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="normal">&#x2026;</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>x</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mi>N</mml:mi>
<mml:mo>-</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo stretchy="false">|</mml:mo>
<mml:mi>x</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mn>0</mml:mn>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="normal">&#x2026;</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>x</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mi>N</mml:mi>
<mml:mo>-</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo stretchy="false">|</mml:mo>
<mml:mi>x</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mn>0</mml:mn>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="normal">&#x2026;</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>x</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mfrac>
<mml:mi>R</mml:mi>
<mml:mn>2</mml:mn>
</mml:mfrac>
<mml:mo>-</mml:mo>
<mml:mn>2</mml:mn>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:math>
</disp-formula>
<p>Where, | is a concatenating operator, <italic>x</italic>(<italic>i</italic>) is the <italic>i</italic>-th element of input <italic>x</italic>, <italic>R</italic> representing the parameter kernel size in the convolution operation.</p>
<p>In order to reduce the time of data computation, the proposed method adopts convolution operation to perform multi-level wavelet decomposition, which is defined as follows:</p>
<disp-formula id="S3.E2">
<label>(2)</label>
<mml:math id="M2">
<mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mi>y</mml:mi>
<mml:mi>A</mml:mi>
</mml:msub>
<mml:mo>&#x2062;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mi>i</mml:mi>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo>=</mml:mo>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mi>x</mml:mi>
<mml:mi>p</mml:mi>
</mml:msub>
<mml:mo>&#x2297;</mml:mo>
<mml:mi>g</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x2062;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mi>i</mml:mi>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo>=</mml:mo>
<mml:mrow>
<mml:munderover>
<mml:mo largeop="true" movablelimits="false" symmetric="true">&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>r</mml:mi>
<mml:mo>=</mml:mo>
<mml:mn>0</mml:mn>
</mml:mrow>
<mml:mi>R</mml:mi>
</mml:munderover>
<mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mi>x</mml:mi>
<mml:mi>p</mml:mi>
</mml:msub>
<mml:mo>&#x2062;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mrow>
<mml:mi>s</mml:mi>
<mml:mo>&#x00D7;</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mo>-</mml:mo>
<mml:mi>r</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo>&#x00D7;</mml:mo>
<mml:mi>g</mml:mi>
</mml:mrow>
<mml:mo>&#x2062;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mi>r</mml:mi>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:math>
</disp-formula>
<disp-formula id="S3.E3">
<label>(3)</label>
<mml:math id="M3">
<mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mi>y</mml:mi>
<mml:mi>D</mml:mi>
</mml:msub>
<mml:mo>&#x2062;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mi>i</mml:mi>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo>=</mml:mo>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mi>x</mml:mi>
<mml:mi>p</mml:mi>
</mml:msub>
<mml:mo>&#x2297;</mml:mo>
<mml:mi>h</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x2062;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mi>i</mml:mi>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo>=</mml:mo>
<mml:mrow>
<mml:munderover>
<mml:mo largeop="true" movablelimits="false" symmetric="true">&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>r</mml:mi>
<mml:mo>=</mml:mo>
<mml:mn>0</mml:mn>
</mml:mrow>
<mml:mi>R</mml:mi>
</mml:munderover>
<mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mi>x</mml:mi>
<mml:mi>p</mml:mi>
</mml:msub>
<mml:mo>&#x2062;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mrow>
<mml:mi>s</mml:mi>
<mml:mo>&#x00D7;</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mo>-</mml:mo>
<mml:mi>r</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo>&#x00D7;</mml:mo>
<mml:mi>h</mml:mi>
</mml:mrow>
<mml:mo>&#x2062;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mi>r</mml:mi>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:math>
</disp-formula>
<p>Where, &#x2297; is the convolution operation, <italic>g</italic> and <italic>h</italic> represent a pair of scaling and wavelet filter, <italic>s</italic> represents the parameter stride in the convolution operation, <italic>y</italic><sub><italic>A</italic></sub>(<italic>i</italic>) is the approximation (low pass) coefficients, and <italic>y</italic><sub><italic>D</italic></sub>(<italic>i</italic>) is the detail (high pass) coefficients.</p>
<p>In the multi-level spectral feature extraction module, to extract the corresponding wavelet coefficients under standard physiological sub-bands &#x03B4;(0&#x223C;4 Hz), &#x03B8;(4&#x223C;8 Hz), &#x03B1;(8&#x223C;16 Hz), &#x03B2;(16&#x223C;32 Hz), and &#x03B3;(32&#x223C;64Hz), we select Daubechies order-4 (Db4) wavelet, since previous studies reported that Db4 mother wavelet is useful for epileptiform transient detection due to its high correlation coefficients with the epileptic spike signal (<xref ref-type="bibr" rid="B10">Indiradevi et al., 2008</xref>). Finally, the frequency features (<italic>f</italic><sub>&#x03B4;</sub>, <italic>f</italic><sub>&#x03B8;</sub>, <italic>f</italic><sub>&#x03B1;</sub>, <italic>f</italic><sub>&#x03B2;</sub>, <italic>f</italic><sub>&#x03B3;</sub>) are obtained.</p>
<p>In the multi-level temporal feature extraction module, considering the data distribution shift between subjects, we use five independent convolution, batch normalization and empirical linear unit (ELU) operations to capture multi-level temporal feature information with different receptive fields. The convolution kernel size is set to [S, 1], the value of S is {<italic>k</italic>, <italic>k</italic>, <italic>k</italic>/2, <italic>k</italic>/4, <italic>k</italic>/8}, <italic>k</italic> = 2<sup>5</sup>, and finally, the temporary features (<italic>f</italic><sub><italic>t</italic>1</sub>,<italic>f</italic><sub><italic>t</italic>2</sub>,<italic>f</italic><sub><italic>t</italic>3</sub>,<italic>f</italic><sub><italic>t</italic>4</sub>,<italic>f</italic><sub><italic>t</italic>5</sub>) are obtained.</p>
<p>To further extract discriminative feature information, the features extracted by the multi-level spectral feature extraction module and the multi-level temporal feature extraction module are combined according to the feature dimensions:</p>
<disp-formula id="S3.E4">
<label>(4)</label>
<mml:math id="M4">
<mml:mrow>
<mml:msub>
<mml:mi>f</mml:mi>
<mml:mrow>
<mml:mi>a</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>l</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>l</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>=</mml:mo>
<mml:mrow>
<mml:mo>{</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">[</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mi>f</mml:mi>
<mml:mi mathvariant="normal">&#x03B4;</mml:mi>
</mml:msub>
<mml:mo lspace="2.5pt" rspace="2.5pt" stretchy="false">|</mml:mo>
<mml:msub>
<mml:mi>f</mml:mi>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">]</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">[</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mi>f</mml:mi>
<mml:mi mathvariant="normal">&#x03B8;</mml:mi>
</mml:msub>
<mml:mo lspace="2.5pt" rspace="2.5pt" stretchy="false">|</mml:mo>
<mml:msub>
<mml:mi>f</mml:mi>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">]</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">[</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mi>f</mml:mi>
<mml:mi mathvariant="normal">&#x03B1;</mml:mi>
</mml:msub>
<mml:mo lspace="2.5pt" rspace="2.5pt" stretchy="false">|</mml:mo>
<mml:msub>
<mml:mi>f</mml:mi>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mn>3</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">]</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">[</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mi>f</mml:mi>
<mml:mi mathvariant="normal">&#x03B2;</mml:mi>
</mml:msub>
<mml:mo lspace="2.5pt" rspace="2.5pt" stretchy="false">|</mml:mo>
<mml:msub>
<mml:mi>f</mml:mi>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mn>4</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">]</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">[</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mi>f</mml:mi>
<mml:mi mathvariant="normal">&#x03B3;</mml:mi>
</mml:msub>
<mml:mo lspace="2.5pt" rspace="2.5pt" stretchy="false">|</mml:mo>
<mml:msub>
<mml:mi>f</mml:mi>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mn>5</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">]</mml:mo>
</mml:mrow>
<mml:mo>}</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:math>
</disp-formula>
<p>The combined features <italic>f</italic><sub><italic>all</italic></sub> are fed into Squeeze-and-Excitation Network to enhance feature discrimination.</p>
</sec>
<sec id="S3.SS3">
<title>3.3. Feature separation network</title>
<p>The feature information (category information, patient information, etc.) is contained in each dimension and intertwined. If the features can be disentangled by the feature separation network, the separability and discriminability of the features will be improved. Therefore, according to the prior knowledge, we separate the features which are obtained from the feature extraction network into two parts, the first half of the features is the category-related component, which is recorded as <italic>F</italic><sub><italic>category</italic>_<italic>related</italic></sub>, the second half of the features is the patient-related component, which is recorded as <italic>F</italic><sub><italic>patient</italic>_<italic>related</italic></sub>. In addition, to ensure the first half of the features are the category-related component, the category classifier and cross-entropy loss function are used, to ensure the second half of the features are the patient-related component, the patient classifier and cross-entropy loss function are used, to ensure better separation of the features of the two parts, the maximum divergence loss function is used to ensure the maximum separation of the category-related component and the patient-related component (<xref ref-type="bibr" rid="B4">Bui et al., 2021</xref>).</p>
<p>The loss function of the category classifier and the patient classifier is:</p>
<disp-formula id="S3.E5">
<label>(5)</label>
<mml:math id="M5">
<mml:mrow>
<mml:msub>
<mml:mi>L</mml:mi>
<mml:mrow>
<mml:mi>c</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>l</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>s</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi mathvariant="normal">_</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>=</mml:mo>
<mml:mrow>
<mml:mfrac>
<mml:mn>1</mml:mn>
<mml:mi>N</mml:mi>
</mml:mfrac>
<mml:mo>&#x2062;</mml:mo>
<mml:mrow>
<mml:munder>
<mml:mo largeop="true" movablelimits="false" symmetric="true">&#x2211;</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mi>x</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo>&#x2208;</mml:mo>
<mml:msub>
<mml:mi>D</mml:mi>
<mml:mi>s</mml:mi>
</mml:msub>
</mml:mrow>
</mml:munder>
<mml:mrow>
<mml:mi>L</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mi>G</mml:mi>
<mml:mrow>
<mml:mi>c</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2062;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mi>G</mml:mi>
<mml:mi>f</mml:mi>
</mml:msub>
<mml:mo>&#x2062;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:msub>
<mml:mi>x</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi>y</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:math>
</disp-formula>
<disp-formula id="S3.E6">
<label>(6)</label>
<mml:math id="M6">
<mml:mrow>
<mml:msub>
<mml:mi>L</mml:mi>
<mml:mi>p</mml:mi>
</mml:msub>
<mml:mo>=</mml:mo>
<mml:mrow>
<mml:mfrac>
<mml:mn>1</mml:mn>
<mml:mi>N</mml:mi>
</mml:mfrac>
<mml:mo>&#x2062;</mml:mo>
<mml:mrow>
<mml:munder>
<mml:mo largeop="true" movablelimits="false" symmetric="true">&#x2211;</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mi>x</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo>&#x2208;</mml:mo>
<mml:msub>
<mml:mi>D</mml:mi>
<mml:mi>s</mml:mi>
</mml:msub>
</mml:mrow>
</mml:munder>
<mml:mrow>
<mml:mi>L</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mi>G</mml:mi>
<mml:mi>p</mml:mi>
</mml:msub>
<mml:mo>&#x2062;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mi>G</mml:mi>
<mml:mi>f</mml:mi>
</mml:msub>
<mml:mo>&#x2062;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:msub>
<mml:mi>x</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi>d</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:math>
</disp-formula>
<p>Where, <italic>N</italic> is the number of samples, <italic>x</italic><sub><italic>i</italic></sub> is the data sample, <italic>G</italic><sub><italic>f</italic></sub> is the feature extraction network, <italic>G</italic><sub><italic>c</italic>1</sub> is the category classifier, <italic>G</italic><sub><italic>p</italic></sub> is the patient classifier, <italic>L</italic> is the cross-entropy loss function, y<sub><italic>i</italic></sub> is the category label (seizure or normal), <italic>d</italic><sub><italic>i</italic></sub> is the patient label, <italic>D</italic><sub>s</sub> &#x2208; <italic>D</italic><sub>1</sub> &#x222A; <italic>D</italic><sub>2</sub>&#x2026; &#x222A; <italic>D</italic><sub>n</sub> (<italic>D</italic><sub>1</sub>,<italic>D</italic><sub>2</sub>,&#x2026;&#x2026;, <italic>D</italic><sub><italic>n</italic></sub> are the data of each patient).</p>
<p>To separate category-related component (<italic>F</italic><sub><italic>category</italic>_<italic>related</italic></sub>) and patient-related component (<italic>F</italic><sub><italic>patient</italic>_<italic>related</italic></sub>), we use the maximum divergence loss function:</p>
<disp-formula id="S3.E7">
<label>(7)</label>
<mml:math id="M7">
<mml:mrow>
<mml:msub>
<mml:mi>L</mml:mi>
<mml:mrow>
<mml:mi>m</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>a</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>x</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi mathvariant="normal">_</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>d</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>i</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>v</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>e</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>r</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>g</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>e</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>n</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>c</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>e</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>=</mml:mo>
<mml:mrow>
<mml:mo>-</mml:mo>
<mml:mrow>
<mml:munderover>
<mml:mo largeop="true" movablelimits="false" symmetric="true">&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>=</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>N</mml:mi>
</mml:munderover>
<mml:msup>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mi>F</mml:mi>
<mml:mrow>
<mml:mi>c</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>a</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>e</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>g</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>o</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>r</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>y</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi mathvariant="normal">_</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>r</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>e</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>l</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>a</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>e</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>-</mml:mo>
<mml:msub>
<mml:mi>F</mml:mi>
<mml:mrow>
<mml:mi>p</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>a</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>i</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>e</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>n</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi mathvariant="normal">_</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>r</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>e</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>l</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>a</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>e</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mn>2</mml:mn>
</mml:msup>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:math>
</disp-formula>
<p>Then combine the separated features to create new features:</p>
<disp-formula id="S3.E8">
<label>(8)</label>
<mml:math id="M8">
<mml:mrow>
<mml:msubsup>
<mml:mi>F</mml:mi>
<mml:mrow>
<mml:mi>a</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>l</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>l</mml:mi>
</mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:msubsup>
<mml:mo>=</mml:mo>
<mml:mtext>[</mml:mtext>
<mml:msub>
<mml:mi>F</mml:mi>
<mml:mrow>
<mml:mi>c</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>a</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>e</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>g</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>o</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>r</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>y</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi mathvariant="normal">_</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>r</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>e</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>l</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>a</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>e</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo stretchy="false">|</mml:mo>
<mml:msub>
<mml:mi>F</mml:mi>
<mml:mrow>
<mml:mi>p</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>a</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>i</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>e</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>n</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi mathvariant="normal">_</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>r</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>e</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>l</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>a</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>e</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo stretchy="false">]</mml:mo>
</mml:mrow>
</mml:math>
</disp-formula>
</sec>
<sec id="S3.SS4">
<title>3.4. Invariant feature extraction network</title>
<p>The feature separation network effectively disentangles the features and improves the discrimination of the features, but the current features are not the invariant features of each patient. To improve the generalization ability of the model, the proposed method is based on the methods of DANN (Domain-adversarial training of neural networks) (<xref ref-type="bibr" rid="B8">Ganin et al., 2016</xref>; <xref ref-type="bibr" rid="B33">Yu et al., 2019</xref>) and MADA (Multi-adversarial domain adaptation) (<xref ref-type="bibr" rid="B19">Pei et al., 2018</xref>) to achieve better invariant feature learning. The global patient discriminator aligns the features of each patient according to the marginal distribution. The local patient discriminator aligns the features of each category according to the conditional distribution. The global adversarial loss function and the local adversarial training loss function are as follows:</p>
<disp-formula id="S3.E9">
<label>(9)</label>
<mml:math id="M9">
<mml:mrow>
<mml:msub>
<mml:mi>L</mml:mi>
<mml:mrow>
<mml:mi>g</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>l</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>o</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>b</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>a</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>l</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>=</mml:mo>
<mml:mrow>
<mml:mfrac>
<mml:mn>1</mml:mn>
<mml:mi>N</mml:mi>
</mml:mfrac>
<mml:mo>&#x2062;</mml:mo>
<mml:mrow>
<mml:munder>
<mml:mo largeop="true" movablelimits="false" symmetric="true">&#x2211;</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mi>x</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo>&#x2208;</mml:mo>
<mml:msub>
<mml:mi>D</mml:mi>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:munder>
<mml:mrow>
<mml:mi>L</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mi>G</mml:mi>
<mml:mi>g</mml:mi>
</mml:msub>
<mml:mo>&#x2062;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mi>G</mml:mi>
<mml:mi>f</mml:mi>
</mml:msub>
<mml:mo>&#x2062;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:msub>
<mml:mi>x</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi>d</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:math>
</disp-formula>
<disp-formula id="S3.E10">
<label>(10)</label>
<mml:math id="M10">
<mml:mrow>
<mml:msub>
<mml:mi>L</mml:mi>
<mml:mrow>
<mml:mi>l</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>o</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>c</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>a</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>l</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>=</mml:mo>
<mml:mrow>
<mml:mfrac>
<mml:mn>1</mml:mn>
<mml:mi>N</mml:mi>
</mml:mfrac>
<mml:mo>&#x2062;</mml:mo>
<mml:mrow>
<mml:munderover>
<mml:mo largeop="true" movablelimits="false" symmetric="true">&#x2211;</mml:mo>
<mml:mrow>
<mml:mrow>
<mml:mtext>k</mml:mtext>
</mml:mrow>
<mml:mo>=</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>K</mml:mi>
</mml:munderover>
<mml:mrow>
<mml:munder>
<mml:mo largeop="true" movablelimits="false" symmetric="true">&#x2211;</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mi>x</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo>&#x2208;</mml:mo>
<mml:msub>
<mml:mi>D</mml:mi>
<mml:mrow>
<mml:mtext>s</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:munder>
<mml:mrow>
<mml:mi>L</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msubsup>
<mml:mi>G</mml:mi>
<mml:mi>l</mml:mi>
<mml:mi>k</mml:mi>
</mml:msubsup>
<mml:mo>&#x2062;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msubsup>
<mml:mi>y</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:msubsup>
<mml:mo>&#x2062;</mml:mo>
<mml:msub>
<mml:mi>G</mml:mi>
<mml:mi>f</mml:mi>
</mml:msub>
<mml:mo>&#x2062;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:msub>
<mml:mi>x</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi>d</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:math>
</disp-formula>
<p>Where, <italic>L</italic> is the cross entropy loss function, <italic>G</italic><sub><italic>f</italic></sub> is the feature extraction network, <italic>G</italic><sub><italic>g</italic></sub> and <inline-formula><mml:math id="INEQ40"><mml:msubsup><mml:mi>G</mml:mi><mml:mi>l</mml:mi><mml:mi>k</mml:mi></mml:msubsup></mml:math></inline-formula> (<italic>k</italic> = 1,2) are the patient discrimination network, <italic>d</italic><sub><italic>i</italic></sub> is the patient label, <inline-formula><mml:math id="INEQ42"><mml:msubsup><mml:mi>y</mml:mi><mml:mi>i</mml:mi><mml:mi>k</mml:mi></mml:msubsup></mml:math></inline-formula> (<italic>k</italic> = 1,2) is the first and second dimensional data of the original label after one-hot encoder, <italic>D</italic><sub>s</sub> &#x2208; <italic>D</italic><sub>1</sub> &#x222A; <italic>D</italic><sub>2</sub>&#x2026; &#x222A; <italic>D</italic><sub>n</sub> is the patient sample set.</p>
<p>In category classifier, to centralize the character of data, the central loss function is adopted. The loss function is (<xref ref-type="bibr" rid="B30">Wen et al., 2016</xref>):</p>
<disp-formula id="S3.E11">
<label>(11)</label>
<mml:math id="M11">
<mml:mrow>
<mml:msub>
<mml:mi>L</mml:mi>
<mml:mrow>
<mml:mi>c</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>e</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>n</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>=</mml:mo>
<mml:mrow>
<mml:mfrac>
<mml:mn>1</mml:mn>
<mml:mn>2</mml:mn>
</mml:mfrac>
<mml:mo>&#x2062;</mml:mo>
<mml:mrow>
<mml:munderover>
<mml:mo largeop="true" movablelimits="false" symmetric="true">&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>=</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>M</mml:mi>
</mml:munderover>
<mml:msubsup>
<mml:mrow>
<mml:mo fence="true">||</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mi>x</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo>-</mml:mo>
<mml:msub>
<mml:mi>c</mml:mi>
<mml:msub>
<mml:mi>y</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:msub>
</mml:mrow>
<mml:mo fence="true">||</mml:mo>
</mml:mrow>
<mml:mn>2</mml:mn>
<mml:mn>2</mml:mn>
</mml:msubsup>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:math>
</disp-formula>
<p>Where, <italic>c</italic><sub><italic>y</italic><sub><italic>i</italic></sub></sub> is the category center.</p>
<p>Through the above operations, the marginal distribution and conditional distribution of features are aligned, and the features are gathered to the central point of each category, so the invariant features are obtained. The loss function of the category classifier (<xref ref-type="bibr" rid="B20">Rahim et al., 2015</xref>; <xref ref-type="bibr" rid="B31">White et al., 2020</xref>; <xref ref-type="bibr" rid="B28">Versaci et al., 2022</xref>; <xref ref-type="bibr" rid="B29">Waheed et al., 2023</xref>) is:</p>
<disp-formula id="S3.E12">
<label>(12)</label>
<mml:math id="M12">
<mml:mrow>
<mml:msub>
<mml:mi>L</mml:mi>
<mml:mrow>
<mml:mi>c</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>l</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>s</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi mathvariant="normal">_</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>=</mml:mo>
<mml:mrow>
<mml:mfrac>
<mml:mn>1</mml:mn>
<mml:mi>N</mml:mi>
</mml:mfrac>
<mml:mo>&#x2062;</mml:mo>
<mml:mrow>
<mml:munder>
<mml:mo largeop="true" movablelimits="false" symmetric="true">&#x2211;</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mi>x</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo>&#x2208;</mml:mo>
<mml:msub>
<mml:mi>D</mml:mi>
<mml:mi>s</mml:mi>
</mml:msub>
</mml:mrow>
</mml:munder>
<mml:mrow>
<mml:mi>L</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mi>G</mml:mi>
<mml:mrow>
<mml:mi>c</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2062;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mi>G</mml:mi>
<mml:mi>f</mml:mi>
</mml:msub>
<mml:mo>&#x2062;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:msub>
<mml:mi>x</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi>y</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:math>
</disp-formula>
<p>Where, <italic>G</italic><sub><italic>c</italic>2</sub> is the category classifier, <italic>y</italic><sub><italic>i</italic></sub> is the category label.</p>
</sec>
<sec id="S3.SS5">
<title>3.5. Training details</title>
<p>We propose an adversarial training strategy to train all the loss functions jointly (<xref ref-type="bibr" rid="B17">Matsuura and Harada, 2020</xref>):</p>
<disp-formula id="S3.Ex1">
<label>(13)</label>
<mml:math id="M13">
<mml:mrow>
<mml:msub>
<mml:mi>L</mml:mi>
<mml:mrow>
<mml:mi>s</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>u</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>m</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>=</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mi>L</mml:mi>
<mml:mrow>
<mml:mi>c</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>l</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>s</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>+</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">&#x03BB;</mml:mi>
<mml:mo>&#x00D7;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mi>L</mml:mi>
<mml:mrow>
<mml:mi>c</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>e</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>n</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>L</mml:mi>
<mml:mrow>
<mml:mi>c</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>l</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>s</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>L</mml:mi>
<mml:mrow>
<mml:mi>s</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>u</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>b</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>j</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>e</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>c</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>L</mml:mi>
<mml:mrow>
<mml:mi>m</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>a</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>x</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi mathvariant="normal">_</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>d</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>i</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>v</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>e</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>r</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>g</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>e</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>n</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>c</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>e</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:math>
</disp-formula>
<disp-formula id="S3.E13">
<mml:math id="M14">
<mml:mrow>
<mml:mo>-</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">&#x03BB;</mml:mi>
<mml:mo>&#x00D7;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mi>L</mml:mi>
<mml:mrow>
<mml:mi>g</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>l</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>o</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>b</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>a</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>l</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>L</mml:mi>
<mml:mrow>
<mml:mi>l</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>o</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>c</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>a</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>l</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:math>
</disp-formula>
<p>Where, &#x03BB; = 0.1. <inline-formula><mml:math id="INEQ48"><mml:mrow><mml:msub><mml:mi mathvariant="normal">&#x03B8;</mml:mi><mml:mi>g</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msubsup><mml:mi mathvariant="normal">&#x03B8;</mml:mi><mml:mi>l</mml:mi><mml:mn>1</mml:mn></mml:msubsup><mml:mo>,</mml:mo><mml:msubsup><mml:mi mathvariant="normal">&#x03B8;</mml:mi><mml:mi>l</mml:mi><mml:mn>2</mml:mn></mml:msubsup></mml:mrow></mml:math></inline-formula> are trained by a special layer called Gradient Reversal Layer (GRL), this GRL is omitted during forward propagation, and the gradient is reversed in backpropagation. Finally, we search for the optimal parameters <inline-formula><mml:math id="INEQ49"><mml:mrow><mml:mover><mml:msub><mml:mi mathvariant="normal">&#x03B8;</mml:mi><mml:mi>f</mml:mi></mml:msub><mml:mrow><mml:mi mathvariant="normal">&#x2227;</mml:mi><mml:mphantom><mml:mi>f</mml:mi></mml:mphantom></mml:mrow></mml:mover><mml:mo>,</mml:mo><mml:mover><mml:msub><mml:mi mathvariant="normal">&#x03B8;</mml:mi><mml:mrow><mml:mi>c</mml:mi><mml:mo movablelimits="false">&#x2062;</mml:mo><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mrow><mml:mi mathvariant="normal">&#x2227;</mml:mi><mml:mphantom><mml:mrow><mml:mi>c</mml:mi><mml:mo>&#x2062;</mml:mo><mml:mn>2</mml:mn></mml:mrow></mml:mphantom></mml:mrow></mml:mover><mml:mo>,</mml:mo><mml:mover><mml:msub><mml:mi mathvariant="normal">&#x03B8;</mml:mi><mml:mi>g</mml:mi></mml:msub><mml:mrow><mml:mi mathvariant="normal">&#x2227;</mml:mi><mml:mphantom><mml:mi>g</mml:mi></mml:mphantom></mml:mrow></mml:mover><mml:mo>,</mml:mo><mml:mover><mml:msubsup><mml:mi mathvariant="normal">&#x03B8;</mml:mi><mml:mi>l</mml:mi><mml:mn>1</mml:mn></mml:msubsup><mml:mrow><mml:mi mathvariant="normal">&#x2227;</mml:mi><mml:mphantom><mml:mn>1</mml:mn></mml:mphantom></mml:mrow></mml:mover><mml:mo>,</mml:mo><mml:mover><mml:msubsup><mml:mi mathvariant="normal">&#x03B8;</mml:mi><mml:mi>l</mml:mi><mml:mn>2</mml:mn></mml:msubsup><mml:mrow><mml:mi mathvariant="normal">&#x2227;</mml:mi><mml:mphantom><mml:mn>2</mml:mn></mml:mphantom></mml:mrow></mml:mover></mml:mrow></mml:math></inline-formula> to meet the following requirements:</p>
<disp-formula id="S3.E14">
<label>(14)</label>
<mml:math id="M15">
<mml:mrow>
<mml:mo stretchy='false'>(</mml:mo>
<mml:mover>
<mml:mrow>
<mml:msub>
<mml:mi mathvariant="normal">&#x03B8;</mml:mi>
<mml:mi>f</mml:mi>
</mml:msub>
</mml:mrow>
<mml:mo>&#x2227;</mml:mo>
</mml:mover>
<mml:mover>
<mml:mrow>
<mml:msub>
<mml:mi mathvariant="normal">&#x03B8;</mml:mi>
<mml:mrow>
<mml:mi>c</mml:mi>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo>&#x2227;</mml:mo>
</mml:mover>
<mml:mo stretchy='false'>)</mml:mo>
<mml:mo>=</mml:mo>
<mml:mi>arg</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>min</mml:mi>
<mml:munder>
<mml:mstyle mathsize='120%' displaystyle='true'>
<mml:mrow>
<mml:msub>
<mml:mi>L</mml:mi>
<mml:mrow>
<mml:mi>s</mml:mi>
<mml:mi>u</mml:mi>
<mml:mi>m</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mstyle>
<mml:mrow>
<mml:msub>
<mml:mi mathvariant="normal">&#x03B8;</mml:mi>
<mml:mi>f</mml:mi>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi mathvariant="normal">&#x03B8;</mml:mi>
<mml:mrow>
<mml:mi>c</mml:mi>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:munder>
<mml:mo stretchy='false'>(</mml:mo>
<mml:msub>
<mml:mi mathvariant="normal">&#x03B8;</mml:mi>
<mml:mi>f</mml:mi>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi mathvariant="normal">&#x03B8;</mml:mi>
<mml:mrow>
<mml:mi>c</mml:mi>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi mathvariant="normal">&#x03B8;</mml:mi>
<mml:mi>p</mml:mi>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi mathvariant="normal">&#x03B8;</mml:mi>
<mml:mrow>
<mml:mi>c</mml:mi>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi mathvariant="normal">&#x03B8;</mml:mi>
<mml:mi>g</mml:mi>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msubsup>
<mml:mi mathvariant="normal">&#x03B8;</mml:mi>
<mml:mi>l</mml:mi>
<mml:mn>1</mml:mn>
</mml:msubsup>
<mml:mo>,</mml:mo>
<mml:msubsup>
<mml:mi mathvariant="normal">&#x03B8;</mml:mi>
<mml:mi>l</mml:mi>
<mml:mn>2</mml:mn>
</mml:msubsup>
<mml:mo stretchy='false'>)</mml:mo>
</mml:mrow>
</mml:math>
</disp-formula>
<disp-formula id="S3.E15">
<label>(15)</label>
<mml:math id="M16">
<mml:mrow>
<mml:mo stretchy='false'>(</mml:mo>
<mml:mover>
<mml:mrow>
<mml:msub>
<mml:mi mathvariant="normal">&#x03B8;</mml:mi>
<mml:mi>g</mml:mi>
</mml:msub>
</mml:mrow>
<mml:mo>&#x2227;</mml:mo>
</mml:mover>
<mml:mo>,</mml:mo>
<mml:mover>
<mml:mrow>
<mml:msubsup>
<mml:mi mathvariant="normal">&#x03B8;</mml:mi>
<mml:mi>l</mml:mi>
<mml:mn>1</mml:mn>
</mml:msubsup>
</mml:mrow>
<mml:mo>&#x2227;</mml:mo>
</mml:mover>
<mml:mo>,</mml:mo>
<mml:mover>
<mml:mrow>
<mml:msubsup>
<mml:mi mathvariant="normal">&#x03B8;</mml:mi>
<mml:mi>l</mml:mi>
<mml:mn>2</mml:mn>
</mml:msubsup>
</mml:mrow>
<mml:mo>&#x2227;</mml:mo>
</mml:mover>
<mml:mo stretchy='false'>)</mml:mo>
<mml:mo>=</mml:mo>
<mml:mi>arg</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>max</mml:mi>
<mml:munder>
<mml:mstyle mathsize='120%' displaystyle='true'>
<mml:mrow>
<mml:msub>
<mml:mi>L</mml:mi>
<mml:mrow>
<mml:mi>s</mml:mi>
<mml:mi>u</mml:mi>
<mml:mi>m</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mstyle>
<mml:mrow>
<mml:msub>
<mml:mi mathvariant="normal">&#x03B8;</mml:mi>
<mml:mi>g</mml:mi>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msubsup>
<mml:mi mathvariant="normal">&#x03B8;</mml:mi>
<mml:mi>l</mml:mi>
<mml:mn>1</mml:mn>
</mml:msubsup>
<mml:mo>,</mml:mo>
<mml:msubsup>
<mml:mi mathvariant="normal">&#x03B8;</mml:mi>
<mml:mi>l</mml:mi>
<mml:mn>2</mml:mn>
</mml:msubsup>
</mml:mrow>
</mml:munder>
<mml:mo stretchy='false'>(</mml:mo>
<mml:msub>
<mml:mi mathvariant="normal">&#x03B8;</mml:mi>
<mml:mi>f</mml:mi>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi mathvariant="normal">&#x03B8;</mml:mi>
<mml:mrow>
<mml:mi>c</mml:mi>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi mathvariant="normal">&#x03B8;</mml:mi>
<mml:mi>p</mml:mi>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi mathvariant="normal">&#x03B8;</mml:mi>
<mml:mrow>
<mml:mi>c</mml:mi>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi mathvariant="normal">&#x03B8;</mml:mi>
<mml:mi>g</mml:mi>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msubsup>
<mml:mi mathvariant="normal">&#x03B8;</mml:mi>
<mml:mi>l</mml:mi>
<mml:mn>1</mml:mn>
</mml:msubsup>
<mml:mo>,</mml:mo>
<mml:msubsup>
<mml:mi mathvariant="normal">&#x03B8;</mml:mi>
<mml:mi>l</mml:mi>
<mml:mn>2</mml:mn>
</mml:msubsup>
<mml:mo stretchy='false'>)</mml:mo>
</mml:mrow>
</mml:math>
</disp-formula>
<p>Where, &#x03B8;<sub><italic>f</italic></sub> are the parameters of multi-level temporal-spectral feature extract network, &#x03B8;<sub><italic>c</italic>1</sub> are the parameters of category classifier in feature separation network, &#x03B8;<sub><italic>p</italic></sub> are the parameters of patient classifier in feature separation network, &#x03B8;<sub><italic>c</italic>2</sub> are the parameters of category classifier in invariant feature extraction network, &#x03B8;<sub><italic>g</italic></sub> are the parameters of global patient discriminator in invariant feature extraction network, <inline-formula><mml:math id="INEQ55"><mml:mrow><mml:msubsup><mml:mi mathvariant="normal">&#x03B8;</mml:mi><mml:mi>l</mml:mi><mml:mn>1</mml:mn></mml:msubsup><mml:mo>,</mml:mo><mml:msubsup><mml:mi mathvariant="normal">&#x03B8;</mml:mi><mml:mi>l</mml:mi><mml:mn>2</mml:mn></mml:msubsup></mml:mrow></mml:math></inline-formula> are the parameters of local patient discriminator in invariant feature extraction network.</p>
<p>During training, if the training samples are trained by minibatch, the features of all the training samples cannot be obtained in time, so we feed all the training samples into the network as a batch for training. The Adam optimizer is used for the model; the learning rate is set to 0.005; the center loss function is optimized using the Stochastic Gradient Descent (SGD) optimizer, and the learning rate is set to 0.05; the training rounds are 200. We use the grid search method to set the hyperparameters in the experiment.</p>
</sec>
</sec>
<sec id="S4">
<title>4. Experiments</title>
<sec id="S4.SS1">
<title>4.1. Dataset</title>
<p>The proposed approach is evaluated on a benchmark dataset, the TUH corpus (<xref ref-type="bibr" rid="B18">Obeid and Picone, 2016</xref>), which is a neurological seizure dataset of clinical EEG recordings associated with 22 channels according to the international 10/20 system. We form a subset of the TUH with 14 subjects by selecting the subject with more than 250 s of seizure state. For each subject, we use 500 s (half normal and half seizure) of EEG signals with a sampling rate of 250 Hz. Each EEG fragment has 250 sample points (lasting 1 s) and adjacent fragments with 50% overlap. For each EEG fragment, those belonging to the epileptic seizure state are labeled as 1, while those belonging to the normal state are labeled as 0. Then the sample set is divided into a training set and a test set.</p>
</sec>
<sec id="S4.SS2">
<title>4.2. Evaluate metrics</title>
<p>The experiment used accuracy (ACC), sensitivity (SN), and specificity (SP) to quantify the performance of the algorithm (<xref ref-type="bibr" rid="B32">Yang et al., 2023</xref>).</p>
<disp-formula id="S4.E16">
<label>(16)</label>
<mml:math id="M17">
<mml:mrow>
<mml:mrow>
<mml:mi>A</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>C</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>C</mml:mi>
</mml:mrow>
<mml:mo>=</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mrow>
<mml:mi>T</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mo>+</mml:mo>
<mml:mrow>
<mml:mi>T</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>N</mml:mi>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mi>T</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mo>+</mml:mo>
<mml:mrow>
<mml:mi>T</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>N</mml:mi>
</mml:mrow>
<mml:mo>+</mml:mo>
<mml:mrow>
<mml:mi>F</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mo>+</mml:mo>
<mml:mrow>
<mml:mi>F</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>N</mml:mi>
</mml:mrow>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:math>
</disp-formula>
<disp-formula id="S4.E17">
<label>(17)</label>
<mml:math id="M18">
<mml:mrow>
<mml:mrow>
<mml:mi>S</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>N</mml:mi>
</mml:mrow>
<mml:mo>=</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mi>T</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mi>T</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mo>+</mml:mo>
<mml:mrow>
<mml:mi>F</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>N</mml:mi>
</mml:mrow>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:math>
</disp-formula>
<disp-formula id="S4.E18">
<label>(18)</label>
<mml:math id="M19">
<mml:mrow>
<mml:mrow>
<mml:mi>S</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mo>=</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mi>T</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>N</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mi>T</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>N</mml:mi>
</mml:mrow>
<mml:mo>+</mml:mo>
<mml:mrow>
<mml:mi>F</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>P</mml:mi>
</mml:mrow>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:math>
</disp-formula>
<p>Where, TP (True Positive): The sample which is positive is judged to be positive, TN (True Negative): The sample which is negative is judged to be negative, FP (False Positive): The sample which is negative is judged to be positive, FN (False Negative): The sample which is positive is judged to be negative.</p>
</sec>
<sec id="S4.SS3">
<title>4.3. Baselines</title>
<p>The adopted baseline models include:</p>
<p>&#x25CF; <xref ref-type="bibr" rid="B34">Zabihi et al. (2013)</xref> applied Discrete Wavelet Transform (DWT) and calculated metrics such as relative scale energy and Shannon entropy as features; SVM is used for data classification.</p>
<p>&#x25CF; <xref ref-type="bibr" rid="B6">Fergus et al. (2015)</xref> applied Power Spectral Density (PSD) and calculated metrics such as peak frequency and max frequency as features; KNN is used for data classification.</p>
<p>&#x25CF; <xref ref-type="bibr" rid="B24">Schirrmeister et al. (2017)</xref> applied convolutional neural networks to distinguish seizure segments by decoding task-related information from EEG signals.</p>
<p>&#x25CF; <xref ref-type="bibr" rid="B11">Kiral et al. (2018)</xref> designed a deep neural network for seizure diagnosis and further developed a prediction system on a wearable device.</p>
<p>&#x25CF; <xref ref-type="bibr" rid="B35">Zhang et al. (2020)</xref> proposed an adversarial representation learning strategy, which achieves robust and explainable epileptic seizure detection.</p>
<p>&#x25CF; <xref ref-type="bibr" rid="B5">Dissanayake et al. (2021)</xref> used the CNN network structure and Siamese network structure to improve the generalization ability of the model.</p>
<p>The six comparison methods and my experiment used the same data segment length on the TUH dataset, using leave-one-out cross-validation, and obtained the comparison results in <xref ref-type="table" rid="T1">Table 1</xref>.</p>
<table-wrap position="float" id="T1">
<label>TABLE 1</label>
<caption><p>Performance comparison on the TUH dataset.</p></caption>
<table cellspacing="5" cellpadding="5" frame="box" rules="all">
<thead>
<tr>
<td valign="top" align="left" style="color:#ffffff;background-color: #7f8080;">References</td>
<td valign="top" align="center" colspan="15" style="color:#ffffff;background-color: #7f8080;">Subject ID</td>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left" style="color:#ffffff;background-color: #7f8080;"></td>
<td valign="top" align="center" style="color:#ffffff;background-color: #7f8080;"><bold>0</bold></td>
<td valign="top" align="center" style="color:#ffffff;background-color: #7f8080;"><bold>1</bold></td>
<td valign="top" align="center" style="color:#ffffff;background-color: #7f8080;"><bold>2</bold></td>
<td valign="top" align="center" style="color:#ffffff;background-color: #7f8080;"><bold>3</bold></td>
<td valign="top" align="center" style="color:#ffffff;background-color: #7f8080;"><bold>4</bold></td>
<td valign="top" align="center" style="color:#ffffff;background-color: #7f8080;"><bold>5</bold></td>
<td valign="top" align="center" style="color:#ffffff;background-color: #7f8080;"><bold>6</bold></td>
<td valign="top" align="center" style="color:#ffffff;background-color: #7f8080;"><bold>7</bold></td>
<td valign="top" align="center" style="color:#ffffff;background-color: #7f8080;"><bold>8</bold></td>
<td valign="top" align="center" style="color:#ffffff;background-color: #7f8080;"><bold>9</bold></td>
<td valign="top" align="center" style="color:#ffffff;background-color: #7f8080;"><bold>10</bold></td>
<td valign="top" align="center" style="color:#ffffff;background-color: #7f8080;"><bold>11</bold></td>
<td valign="top" align="center" style="color:#ffffff;background-color: #7f8080;"><bold>12</bold></td>
<td valign="top" align="center" style="color:#ffffff;background-color: #7f8080;"><bold>13</bold></td>
<td valign="top" align="center" style="color:#ffffff;background-color: #7f8080;"><bold>Average</bold></td>
</tr>
<tr>
<td valign="top" align="left"><xref ref-type="bibr" rid="B34">Zabihi et al., 2013</xref></td>
<td valign="top" align="center">0.821</td>
<td valign="top" align="center">0.746</td>
<td valign="top" align="center">0.719</td>
<td valign="top" align="center">0.706</td>
<td valign="top" align="center">0.726</td>
<td valign="top" align="center">0.773</td>
<td valign="top" align="center">0.804</td>
<td valign="top" align="center">0.863</td>
<td valign="top" align="center">0.762</td>
<td valign="top" align="center">0.758</td>
<td valign="top" align="center">0.832</td>
<td valign="top" align="center">0.758</td>
<td valign="top" align="center">0.784</td>
<td valign="top" align="center">0.816</td>
<td valign="top" align="center">0.776</td>
</tr>
<tr>
<td valign="top" align="left"><xref ref-type="bibr" rid="B6">Fergus et al., 2015</xref></td>
<td valign="top" align="center">0.803</td>
<td valign="top" align="center">0.775</td>
<td valign="top" align="center">0.865</td>
<td valign="top" align="center">0.751</td>
<td valign="top" align="center">0.801</td>
<td valign="top" align="center">0.718</td>
<td valign="top" align="center">0.853</td>
<td valign="top" align="center">0.898</td>
<td valign="top" align="center">0.722</td>
<td valign="top" align="center">0.758</td>
<td valign="top" align="center">0.866</td>
<td valign="top" align="center">0.725</td>
<td valign="top" align="center">0.791</td>
<td valign="top" align="center">0.823</td>
<td valign="top" align="center">0.796</td>
</tr>
<tr>
<td valign="top" align="left"><xref ref-type="bibr" rid="B24">Schirrmeister et al., 2017</xref></td>
<td valign="top" align="center">0.793</td>
<td valign="top" align="center">0.743</td>
<td valign="top" align="center">0.965</td>
<td valign="top" align="center">0.758</td>
<td valign="top" align="center">0.789</td>
<td valign="top" align="center">0.665</td>
<td valign="top" align="center">0.813</td>
<td valign="top" align="center">0.871</td>
<td valign="top" align="center">0.619</td>
<td valign="top" align="center">0.634</td>
<td valign="top" align="center">0.919</td>
<td valign="top" align="center">0.571</td>
<td valign="top" align="center">0.744</td>
<td valign="top" align="center">0.711</td>
<td valign="top" align="center">0.760</td>
</tr>
<tr>
<td valign="top" align="left"><xref ref-type="bibr" rid="B11">Kiral et al., 2018</xref></td>
<td valign="top" align="center">0.805</td>
<td valign="top" align="center">0.669</td>
<td valign="top" align="center">0.855</td>
<td valign="top" align="center">0.709</td>
<td valign="top" align="center">0.772</td>
<td valign="top" align="center">0.619</td>
<td valign="top" align="center">0.823</td>
<td valign="top" align="center">0.836</td>
<td valign="top" align="center">0.746</td>
<td valign="top" align="center">0.598</td>
<td valign="top" align="center">0.835</td>
<td valign="top" align="center">0.556</td>
<td valign="top" align="center">0.745</td>
<td valign="top" align="center">0.726</td>
<td valign="top" align="center">0.736</td>
</tr>
<tr>
<td valign="top" align="left"><xref ref-type="bibr" rid="B35">Zhang et al., 2020</xref></td>
<td valign="top" align="center">0.841</td>
<td valign="top" align="center">0.826</td>
<td valign="top" align="center">0.978</td>
<td valign="top" align="center">0.774</td>
<td valign="top" align="center">0.842</td>
<td valign="top" align="center">0.733</td>
<td valign="top" align="center">0.911</td>
<td valign="top" align="center">0.914</td>
<td valign="top" align="center">0.697</td>
<td valign="top" align="center">0.652</td>
<td valign="top" align="center">0.923</td>
<td valign="top" align="center">0.604</td>
<td valign="top" align="center">0.772</td>
<td valign="top" align="center">0.787</td>
<td valign="top" align="center">0.805</td>
</tr>
<tr>
<td valign="top" align="left"><xref ref-type="bibr" rid="B5">Dissanayake et al., 2021</xref></td>
<td valign="top" align="center">0.804</td>
<td valign="top" align="center">0.831</td>
<td valign="top" align="center">0.792</td>
<td valign="top" align="center">0.726</td>
<td valign="top" align="center">0.814</td>
<td valign="top" align="center">0.834</td>
<td valign="top" align="center">0.879</td>
<td valign="top" align="center">0.758</td>
<td valign="top" align="center">0.808</td>
<td valign="top" align="center">0.782</td>
<td valign="top" align="center">0.892</td>
<td valign="top" align="center">0.885</td>
<td valign="top" align="center">0.856</td>
<td valign="top" align="center">0.855</td>
<td valign="top" align="center">0.823</td>
</tr>
<tr>
<td valign="top" align="left">Ours</td>
<td valign="top" align="center">0.820</td>
<td valign="top" align="center">0.728</td>
<td valign="top" align="center">0.924</td>
<td valign="top" align="center">0.604</td>
<td valign="top" align="center">0.860</td>
<td valign="top" align="center">0.944</td>
<td valign="top" align="center">0.984</td>
<td valign="top" align="center">0.904</td>
<td valign="top" align="center">0.876</td>
<td valign="top" align="center">0.884</td>
<td valign="top" align="center">0.900</td>
<td valign="top" align="center">0.932</td>
<td valign="top" align="center">0.812</td>
<td valign="top" align="center">0.836</td>
<td valign="top" align="center">0.857</td>
</tr>
</tbody>
</table></table-wrap>
<p>Through comparative analysis, the methods in literature (<xref ref-type="bibr" rid="B24">Schirrmeister et al., 2017</xref>; <xref ref-type="bibr" rid="B11">Kiral et al., 2018</xref>) only used a deep neural network to train a model with the data of multiple patients together, without considering the negative impact of inter-patient differences on the training model, resulting in poor detection accuracy when applied to new patients. In literature (<xref ref-type="bibr" rid="B34">Zabihi et al., 2013</xref>), relative scale energy and Shannon entropy, etc., were used as features, in literature (<xref ref-type="bibr" rid="B6">Fergus et al., 2015</xref>), peak frequency and max frequency, etc., were used as features, these methods were able to extract the obvious common features, but were unable to extract the deeper common features, so the detection accuracy of the methods was higher than the results in <xref ref-type="bibr" rid="B24">Schirrmeister et al. (2017)</xref> and <xref ref-type="bibr" rid="B11">Kiral et al. (2018)</xref> and lower than the results in <xref ref-type="bibr" rid="B35">Zhang et al. (2020)</xref> and <xref ref-type="bibr" rid="B5">Dissanayake et al. (2021)</xref>. For the methods mentioned in the literature (<xref ref-type="bibr" rid="B35">Zhang et al., 2020</xref>; <xref ref-type="bibr" rid="B5">Dissanayake et al., 2021</xref>), which applied a neural network to eliminate the negative impact of the data distribution shift between patients, the results were higher than those without considering the elimination of the negative impact of the data distribution shift between patients. For the method proposed in this paper, which uses feature separation and adversarial training to disentangle features in the latent space while learning domain-invariant features to achieve the goal of mitigating the influence of inter-patient differences, its experimental results are the best, with an average detection accuracy of 85.7% by leave-one-out cross-validation.</p>
<p>In addition, the confusion matrix and the receiver operating characteristic (ROC) curve with the area under the curve (AUC) value are shown for a closer look at the detection results. The results of one of the best-performing subjects (patient 6) are illustrated in <xref ref-type="fig" rid="F3">Figure 3</xref>. From the confusion matrix we can see that our approach achieves a sensitivity of 98.4% and a specificity of 100%.</p>
<fig id="F3" position="float">
<label>FIGURE 3</label>
<caption><p><bold>(A,B)</bold> Confusion matrix and ROC curves.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fncom-17-1195334-g003.tif"/>
</fig>
</sec>
</sec>
<sec id="S5" sec-type="discussion">
<title>5. Discussion</title>
<p>To analyze the effectiveness of the proposed method, first, we removed the feature separation network while leaving the other settings unchanged. Then we tested on the TUH dataset using leave-one-out cross-validation. The results of the tests are shown in <xref ref-type="table" rid="T2">Table 2</xref>:</p>
<table-wrap position="float" id="T2">
<label>TABLE 2</label>
<caption><p>The result after feature separation network is removed.</p></caption>
<table cellspacing="5" cellpadding="5" frame="box" rules="all">
<thead>
<tr>
<td valign="top" align="left" style="color:#ffffff;background-color: #7f8080;">Methods</td>
<td valign="top" align="center" style="color:#ffffff;background-color: #7f8080;">ACC (%)</td>
<td valign="top" align="center" style="color:#ffffff;background-color: #7f8080;">SN (%)</td>
<td valign="top" align="center" style="color:#ffffff;background-color: #7f8080;">SP (%)</td>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left">Ours (feature separation network is removed)</td>
<td valign="top" align="center">81.6(&#x00B1;2.9)</td>
<td valign="top" align="center">80.5(&#x00B1;3.8)</td>
<td valign="top" align="center">82.8(&#x00B1;2.5)</td>
</tr>
<tr>
<td valign="top" align="left">Ours</td>
<td valign="top" align="center">85.7(&#x00B1;4.6)</td>
<td valign="top" align="center">83.1(&#x00B1;3.3)</td>
<td valign="top" align="center">87.2(&#x00B1;4.9)</td>
</tr>
</tbody>
</table></table-wrap>
<p>By comparison, the average accuracy of the comparison method in which the feature separation network is removed is 81.6%. The proposed method ensures feature separability and improves feature discrimination, thus improving detection performance.</p>
<p>Second, for the invariant feature extraction network, since DANN only aligns the marginal distribution features of multi-patients, and MADA only aligns the conditional distribution features of multi-patients, we propose the method which aligns the marginal distribution and conditional distribution of each patient&#x2019;s features at the same time. As the label of each training set, <inline-formula><mml:math id="INEQ56"><mml:msubsup><mml:mi>y</mml:mi><mml:mi>i</mml:mi><mml:mi>k</mml:mi></mml:msubsup></mml:math></inline-formula> (<italic>k</italic> = 1,2) in the MADA method is modified with the value of the original label by the one-hot encoder. Then, the model is trained in the adversarial network, respectively, so that the invariant features of each category can be obtained.</p>
<p>To compare the advantages of the proposed method, this paper trains and tests networks that only use DANN and only use MADA. By comparing with the proposed method, the proposed method has the best performance. The results of performance comparison are shown in <xref ref-type="table" rid="T3">Table 3</xref>.</p>
<table-wrap position="float" id="T3">
<label>TABLE 3</label>
<caption><p>Comparison of results with DANN and MADA methods.</p></caption>
<table cellspacing="5" cellpadding="5" frame="box" rules="all">
<thead>
<tr>
<td valign="top" align="left" style="color:#ffffff;background-color: #7f8080;">Methods</td>
<td valign="top" align="center" style="color:#ffffff;background-color: #7f8080;">ACC (%)</td>
<td valign="top" align="center" style="color:#ffffff;background-color: #7f8080;">SN (%)</td>
<td valign="top" align="center" style="color:#ffffff;background-color: #7f8080;">SP (%)</td>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left">Only DANN (<xref ref-type="bibr" rid="B8">Ganin et al., 2016</xref>)</td>
<td valign="top" align="center">74.8(&#x00B1;5.3)</td>
<td valign="top" align="center">78.2(&#x00B1;6.6)</td>
<td valign="top" align="center">72.8(&#x00B1;4.1)</td>
</tr>
<tr>
<td valign="top" align="left">Only MADA (<xref ref-type="bibr" rid="B19">Pei et al., 2018</xref>)</td>
<td valign="top" align="center">79.6(&#x00B1;6.5)</td>
<td valign="top" align="center">81.5(&#x00B1;5.4)</td>
<td valign="top" align="center">77.3(&#x00B1;6.9)</td>
</tr>
<tr>
<td valign="top" align="left">Ours</td>
<td valign="top" align="center">85.7(&#x00B1;4.6)</td>
<td valign="top" align="center">83.1(&#x00B1;3.3)</td>
<td valign="top" align="center">87.2(&#x00B1;4.9)</td>
</tr>
</tbody>
</table></table-wrap>
<p>For a clear illustration, we further use the t-SNE method (<xref ref-type="bibr" rid="B16">Maaten and Hinton, 2008</xref>) to visualize the feature distribution of the comparison methods, the feature distribution is illustrated in <xref ref-type="fig" rid="F4">Figure 4</xref>. It can be seen that DANN only tries to align the marginal distribution. Still, due to the shift in data distribution between patients, it is difficult to align the marginal distribution, resulting in features in a decentralized state. MADA uses the aligned conditional distribution and different features are mixed together. In the proposed method, the features are clustered by category and can be discriminated. It is shown that the proposed method has advantages in learning invariant features.</p>
<fig id="F4" position="float">
<label>FIGURE 4</label>
<caption><p>The t-SNE visualization of network feature. <bold>(A)</bold> Only DANN, <bold>(B)</bold> only MADA, and <bold>(C)</bold> ours.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fncom-17-1195334-g004.tif"/>
</fig>
<p>The reasons are as follows: first, DANN, which uses global domain adversarial method aligns the marginal distribution of features not according to the data category; second, the MADA, which uses local domain adversarial method aligns the conditional distribution of features according to the data category; but <inline-formula><mml:math id="INEQ57"><mml:msubsup><mml:mi>y</mml:mi><mml:mi>i</mml:mi><mml:mi>k</mml:mi></mml:msubsup></mml:math></inline-formula> (<italic>k</italic> = 1,2) in the MADA method are not the true category information, which is the output of the classification network; therefore, the features of each category cannot be aligned accurately. The proposed method uses the marginal distribution and conditional distribution alignment simultaneously, and uses the accurate label of the training set as <inline-formula><mml:math id="INEQ58"><mml:msubsup><mml:mi>y</mml:mi><mml:mi>i</mml:mi><mml:mi>k</mml:mi></mml:msubsup></mml:math></inline-formula> (<italic>k</italic> = 1,2), which improves the performance of data feature alignment. Therefore, the proposed method has the best performance.</p>
<p>For future work, I suggest the following three points:</p>
<p>First, in the proposed method, the data features are divided into category-related features and patient-related features. In future work, the features can be divided into more detailed features, and new network structures and loss functions can be used for feature extraction to improve the algorithm&#x2019;s performance.</p>
<p>Second, the proposed method uses adversarial training to learn the invariant features, but the results of adversarial training are not stable; there are significant differences between each training epoch; therefore, new invariant feature learning methods can be studied in the future to improve the stability of training.</p>
<p>Thirdly, the experiments of the proposed method are all conducted on the existing public dataset and not verified on the real clinical dataset, therefore, we need to cooperate with the clinical hospital to obtain the clinical data of epilepsy and verify the actual effect.</p>
</sec>
<sec id="S6" sec-type="conclusion">
<title>6. Conclusion</title>
<p>In the proposed method, a domain generalization model based on feature separation and adversarial training is proposed for the case where there is a significant shift in the data distribution between patients in the epilepsy dataset. The model includes a feature extraction network, a feature separation network, and an invariant feature extraction network. The multi-level temporal-spectral feature extraction network extracts valuable features using a convolutional operation and attention mechanism. The feature separation network is used to improve feature discrimination. The invariant feature extraction network is used to align the marginal distribution and conditional distribution of features to make the features more discriminable and general. We use the TUH dataset of 14 patients and leave-one-out cross-validation, and compared with the related literature, the proposed method achieves the best result; therefore, the proposed method can provide some reference for the clinical application of epilepsy detection.</p>
</sec>
<sec id="S7" sec-type="data-availability">
<title>Data availability statement</title>
<p>The datasets presented in this study can be found in online repositories. The names of the repository/repositories and accession number(s) can be found in the article/supplementary material.</p>
</sec>
<sec id="S8" sec-type="ethics-statement">
<title>Ethics statement</title>
<p>Ethical review and approval was not required for the study on human participants in accordance with the local legislation and institutional requirements. Written informed consent to participate in this study was provided by the participants&#x2019; legal guardian/next of kin.</p>
</sec>
<sec id="S9" sec-type="author-contributions">
<title>Author contributions</title>
<p>YY and FL conceptualized the study. YY and XQ performed the methodology. YY and HW accounted the software. YY and XL wrote and prepared the original draft. XQ and DH reviewed and edited the written draft. All authors have read and agreed to the published version of the manuscript.</p>
</sec>
</body>
<back>
<sec id="S10" sec-type="funding-information">
<title>Funding</title>
<p>This research was supported by the Sichuan Science and Technology Plan of China Grants (2019ZDZX0005, 2019ZDZX0006, and 2020YFQ0056).</p>
</sec>
<sec id="S11" sec-type="COI-statement">
<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 id="S12" sec-type="disclaimer">
<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>Ansari</surname> <given-names>A. Q.</given-names></name> <name><surname>Sharma</surname> <given-names>P.</given-names></name> <name><surname>Tripathi</surname> <given-names>M.</given-names></name></person-group> (<year>2021</year>). <article-title>A patient-independent classification system for onset detection of seizures.</article-title> <source><italic>Biomed. Tech. (Berl).</italic></source> <volume>66</volume> <fpage>267</fpage>&#x2013;<lpage>274</lpage>. <pub-id pub-id-type="doi">10.1515/bmt-2020-0250</pub-id> <pub-id pub-id-type="pmid">33548164</pub-id></citation></ref>
<ref id="B2"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Azimi</surname> <given-names>S. M.</given-names></name> <name><surname>Fischer</surname> <given-names>P.</given-names></name> <name><surname>K&#x00F6;rner</surname> <given-names>M.</given-names></name> <name><surname>Reinartz</surname> <given-names>P.</given-names></name></person-group> (<year>2019</year>). <article-title>Aerial LaneNet: Lane-marking semantic segmentation in aerial imagery using wavelet-enhanced cost-sensitive symmetric fully convolutional neural networks.</article-title> <source><italic>IEEE Trans. Geosci. Remote Sens.</italic></source> <volume>57</volume> <fpage>2920</fpage>&#x2013;<lpage>2938</lpage>. <pub-id pub-id-type="doi">10.1109/TGRS.2018.2878510</pub-id></citation></ref>
<ref id="B3"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Babb</surname> <given-names>T. L.</given-names></name> <name><surname>Wilson</surname> <given-names>C. L.</given-names></name> <name><surname>Isokawa-Akesson</surname> <given-names>M.</given-names></name></person-group> (<year>1987</year>). <article-title>Firing patterns of human limbic neurons during stereoencephalography (SEEG) and clinical temporal lobe seizures.</article-title> <source><italic>Electroencephalogr. Clin. Neurophysiol.</italic></source> <volume>66</volume> <fpage>467</fpage>&#x2013;<lpage>482</lpage>. <pub-id pub-id-type="doi">10.1016/0013-4694(87)90093-9</pub-id> <pub-id pub-id-type="pmid">2438112</pub-id></citation></ref>
<ref id="B4"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Bui</surname> <given-names>M. H.</given-names></name> <name><surname>Tran</surname> <given-names>T.</given-names></name> <name><surname>Tran</surname> <given-names>A. T.</given-names></name> <name><surname>Phung</surname> <given-names>D.</given-names></name></person-group> (<year>2021</year>). <article-title>Exploiting domain-specific features to enhance domain generalization.</article-title> <source><italic>NeurIPS [Preprint].</italic></source> <pub-id pub-id-type="doi">10.48550/arXiv.2110.09410</pub-id></citation></ref>
<ref id="B5"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Dissanayake</surname> <given-names>T.</given-names></name> <name><surname>Fernando</surname> <given-names>T.</given-names></name> <name><surname>Denman</surname> <given-names>S.</given-names></name> <name><surname>Sridharan</surname> <given-names>S.</given-names></name> <name><surname>Fookes</surname> <given-names>C.</given-names></name></person-group> (<year>2021</year>). <article-title>Deep learning for patient-independent epileptic seizure prediction using scalp EEG signals.</article-title> <source><italic>IEEE Sensors J.</italic></source> <volume>21</volume> <fpage>9377</fpage>&#x2013;<lpage>9388</lpage>. <pub-id pub-id-type="doi">10.1109/JSEN.2021.3057076</pub-id></citation></ref>
<ref id="B6"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Fergus</surname> <given-names>P.</given-names></name> <name><surname>Hignett</surname> <given-names>D.</given-names></name> <name><surname>Hussain</surname> <given-names>A.</given-names></name> <name><surname>Al-Jumeily</surname> <given-names>D.</given-names></name> <name><surname>Abdel-Aziz</surname> <given-names>K.</given-names></name></person-group> (<year>2015</year>). <article-title>Automatic epileptic seizure detection using scalp EEG and advanced artificial intelligence techniques.</article-title> <source><italic>Biomed. Res. Int.</italic></source> <volume>2015</volume>:<issue>986736</issue>. <pub-id pub-id-type="doi">10.1155/2015/986736</pub-id> <pub-id pub-id-type="pmid">25710040</pub-id></citation></ref>
<ref id="B7"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Fisher</surname> <given-names>R. S.</given-names></name> <name><surname>Cross</surname> <given-names>J. H.</given-names></name> <name><surname>French</surname> <given-names>J. A.</given-names></name> <name><surname>Higurashi</surname> <given-names>N.</given-names></name> <name><surname>Hirsch</surname> <given-names>E.</given-names></name> <name><surname>Jansen</surname> <given-names>F. E.</given-names></name><etal/></person-group> (<year>2017</year>). <article-title>Operational classification of seizure types by the international league against epilepsy: Position paper of the ILAE commission for classification and terminology.</article-title> <source><italic>Epilepsia</italic></source> <volume>58</volume> <fpage>522</fpage>&#x2013;<lpage>530</lpage>. <pub-id pub-id-type="doi">10.1111/epi.13670</pub-id> <pub-id pub-id-type="pmid">28276060</pub-id></citation></ref>
<ref id="B8"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Ganin</surname> <given-names>Y.</given-names></name> <name><surname>Ustinova</surname> <given-names>E.</given-names></name> <name><surname>Ajakan</surname> <given-names>H.</given-names></name> <name><surname>Germain</surname> <given-names>P.</given-names></name> <name><surname>Larochelle</surname> <given-names>H.</given-names></name> <name><surname>Laviolette</surname> <given-names>F.</given-names></name><etal/></person-group> (<year>2016</year>). <article-title>Domain-adversarial training of neural networks.</article-title> <source><italic>J. Mach. Learn. Res.</italic></source> <volume>17</volume> <fpage>2096</fpage>&#x2013;<lpage>2030</lpage>. <pub-id pub-id-type="doi">10.48550/arXiv.1505.07818</pub-id></citation></ref>
<ref id="B9"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Hu</surname> <given-names>J.</given-names></name> <name><surname>Shen</surname> <given-names>L.</given-names></name> <name><surname>Sun</surname> <given-names>G.</given-names></name></person-group> (<year>2018</year>). &#x201C;<article-title>Squeeze-and-excitation networks</article-title>,&#x201D; in <source><italic>Proceedings of the 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition</italic></source>, <publisher-loc>Salt Lake City, UT</publisher-loc>, <fpage>7132</fpage>&#x2013;<lpage>7141</lpage>. <pub-id pub-id-type="doi">10.1109/CVPR.2018.00745</pub-id></citation></ref>
<ref id="B10"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Indiradevi</surname> <given-names>K. P.</given-names></name> <name><surname>Elias</surname> <given-names>E.</given-names></name> <name><surname>Sathidevi</surname> <given-names>P. S.</given-names></name> <name><surname>Dinesh Nayak</surname> <given-names>S.</given-names></name> <name><surname>Radhakrishnan</surname> <given-names>K.</given-names></name></person-group> (<year>2008</year>). <article-title>A multi-level wavelet approach for automatic detection of epileptic spikes in the electroencephalogram.</article-title> <source><italic>Comp. Biol. Med.</italic></source> <volume>38</volume> <fpage>805</fpage>&#x2013;<lpage>816</lpage>. <pub-id pub-id-type="doi">10.1016/j.compbiomed.2008.04.010</pub-id> <pub-id pub-id-type="pmid">18550047</pub-id></citation></ref>
<ref id="B11"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Kiral</surname> <given-names>I.</given-names></name> <name><surname>Roy</surname> <given-names>S.</given-names></name> <name><surname>Nurse</surname> <given-names>E.</given-names></name> <name><surname>Mashford</surname> <given-names>B.</given-names></name> <name><surname>Karoly</surname> <given-names>P.</given-names></name> <name><surname>Carroll</surname> <given-names>T.</given-names></name><etal/></person-group> (<year>2018</year>). <article-title>Epileptic seizure prediction using big data and deep learning: Toward a mobile system.</article-title> <source><italic>EBioMedicine</italic></source> <volume>27</volume> <fpage>103</fpage>&#x2013;<lpage>111</lpage>. <pub-id pub-id-type="doi">10.1016/j.ebiom.2017.11.032</pub-id> <pub-id pub-id-type="pmid">29262989</pub-id></citation></ref>
<ref id="B12"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Kwan</surname> <given-names>P.</given-names></name> <name><surname>Brodie</surname> <given-names>M. J.</given-names></name></person-group> (<year>2000</year>). <article-title>Early identification of refractory epilepsy.</article-title> <source><italic>N. Engl. J. Med.</italic></source> <volume>342</volume> <fpage>314</fpage>&#x2013;<lpage>319</lpage>. <pub-id pub-id-type="doi">10.1056/NEJM200002033420503</pub-id> <pub-id pub-id-type="pmid">10660394</pub-id></citation></ref>
<ref id="B13"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Li</surname> <given-names>Y.</given-names></name> <name><surname>Liu</surname> <given-names>Y.</given-names></name> <name><surname>Cui</surname> <given-names>W. G.</given-names></name> <name><surname>Guo</surname> <given-names>Y. Z.</given-names></name> <name><surname>Huang</surname> <given-names>H.</given-names></name> <name><surname>Hu</surname> <given-names>Z. Y.</given-names></name></person-group> (<year>2020</year>). <article-title>Epileptic seizure detection in EEG signals using a unified temporal-spectral squeeze-and-excitation network.</article-title> <source><italic>IEEE Trans. Neural Syst. Rehabil. Eng.</italic></source> <volume>28</volume> <fpage>782</fpage>&#x2013;<lpage>794</lpage>. <pub-id pub-id-type="doi">10.1109/TNSRE.2020.2973434</pub-id> <pub-id pub-id-type="pmid">32078551</pub-id></citation></ref>
<ref id="B14"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Li</surname> <given-names>Y.</given-names></name> <name><surname>Zheng</surname> <given-names>W.</given-names></name> <name><surname>Zong</surname> <given-names>Y.</given-names></name> <name><surname>Cui</surname> <given-names>Z.</given-names></name> <name><surname>Zhang</surname> <given-names>T.</given-names></name> <name><surname>Zhou</surname> <given-names>X.</given-names></name></person-group> (<year>2021</year>). <article-title>A Bi-hemisphere domain adversarial neural network model for EEG emotion recognition.</article-title> <source><italic>IEEE Trans. Affect. Comp.</italic></source> <volume>12</volume> <fpage>494</fpage>&#x2013;<lpage>504</lpage>. <pub-id pub-id-type="doi">10.1109/TAFFC.2018.2885474</pub-id></citation></ref>
<ref id="B15"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Liu</surname> <given-names>G.</given-names></name> <name><surname>Tian</surname> <given-names>L.</given-names></name> <name><surname>Zhou</surname> <given-names>W.</given-names></name></person-group> (<year>2022</year>). <article-title>Patient-independent seizure detection based on channel-perturbation convolutional neural network and bidirectional long short-term memory.</article-title> <source><italic>Int. J. Neural Syst.</italic></source> <volume>32</volume>:<issue>2150051</issue>. <pub-id pub-id-type="doi">10.1142/S0129065721500519</pub-id> <pub-id pub-id-type="pmid">34781854</pub-id></citation></ref>
<ref id="B16"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Maaten</surname> <given-names>L.</given-names></name> <name><surname>Hinton</surname> <given-names>G.</given-names></name></person-group> (<year>2008</year>). <article-title>Visualizing data using t-SNE.</article-title> <source><italic>J. Mach. Learn. Res.</italic></source> <volume>9</volume> <fpage>2579</fpage>&#x2013;<lpage>2605</lpage>. <pub-id pub-id-type="doi">10.48550/arXiv.2108.01301</pub-id></citation></ref>
<ref id="B17"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Matsuura</surname> <given-names>T.</given-names></name> <name><surname>Harada</surname> <given-names>T.</given-names></name></person-group> (<year>2020</year>). <article-title>Domain generalization using a mixture of multiple latent domains.</article-title> <source><italic>AAAI</italic></source> <volume>34</volume> <fpage>11749</fpage>&#x2013;<lpage>11756</lpage>. <pub-id pub-id-type="doi">10.1609/AAAI.V34I07.6846</pub-id></citation></ref>
<ref id="B18"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Obeid</surname> <given-names>I.</given-names></name> <name><surname>Picone</surname> <given-names>J.</given-names></name></person-group> (<year>2016</year>). <article-title>The temple university hospital EEG data corpus.</article-title> <source><italic>Front. Neurosci.</italic></source> <volume>10</volume>:<issue>196</issue>. <pub-id pub-id-type="doi">10.3389/fnins.2016.00196</pub-id> <pub-id pub-id-type="pmid">27242402</pub-id></citation></ref>
<ref id="B19"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Pei</surname> <given-names>Z.</given-names></name> <name><surname>Cao</surname> <given-names>Z.</given-names></name> <name><surname>Long</surname> <given-names>M.</given-names></name> <name><surname>Wang</surname> <given-names>J.</given-names></name></person-group> (<year>2018</year>). &#x201C;<article-title>Multi-adversarial domain adaptation</article-title>,&#x201D; in <source><italic>Thirty-Second Proceedings of the AAAI Conference on Artificial Intelligence (AAAI)</italic></source>, <publisher-loc>Palo Alto, CA</publisher-loc>. <pub-id pub-id-type="doi">10.1609/aaai.v32i1.11767</pub-id></citation></ref>
<ref id="B20"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Rahim</surname> <given-names>S. S.</given-names></name> <name><surname>Palade</surname> <given-names>V.</given-names></name> <name><surname>Jayne</surname> <given-names>C.</given-names></name> <name><surname>Holzinger</surname> <given-names>A.</given-names></name> <name><surname>Shuttleworth</surname> <given-names>J.</given-names></name></person-group> (<year>2015</year>). &#x201C;<article-title>Detection of diabetic retinopathy and maculopathy in eye fundus images using fuzzy image processing</article-title>,&#x201D; in <source><italic>Brain Informatics and Health. BIH 2015. Lecture Notes in Computer Science, vol 9250</italic></source>, <role>eds</role> <person-group person-group-type="editor"><name><surname>Guo</surname> <given-names>Y.</given-names></name> <name><surname>Friston</surname> <given-names>K.</given-names></name> <name><surname>Aldo</surname> <given-names>F.</given-names></name> <name><surname>Hill</surname> <given-names>S.</given-names></name> <name><surname>Peng</surname> <given-names>H.</given-names></name></person-group> (<publisher-loc>Cham</publisher-loc>: <publisher-name>Springer</publisher-name>). <pub-id pub-id-type="doi">10.1007/978-3-319-23344-4_37</pub-id></citation></ref>
<ref id="B21"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Rahim</surname> <given-names>S. S.</given-names></name> <name><surname>Palade</surname> <given-names>V.</given-names></name> <name><surname>Shuttleworth</surname> <given-names>J.</given-names></name> <name><surname>Jayne</surname> <given-names>C.</given-names></name></person-group> (<year>2016</year>). <article-title>Automatic screening and classification of diabetic retinopathy and maculopathy using fuzzy image processing.</article-title> <source><italic>Brain Inf.</italic></source> <volume>3</volume> <fpage>249</fpage>&#x2013;<lpage>267</lpage>. <pub-id pub-id-type="doi">10.1007/s40708-016-0045-3</pub-id> <pub-id pub-id-type="pmid">27747815</pub-id></citation></ref>
<ref id="B22"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Rakhade</surname> <given-names>S. N.</given-names></name> <name><surname>Jensen</surname> <given-names>F. E.</given-names></name></person-group> (<year>2009</year>). <article-title>Epileptogenesis in the immature brain: Emerging mechanisms.</article-title> <source><italic>Nat. Rev. Neurol. J.</italic></source> <volume>5</volume> <fpage>380</fpage>&#x2013;<lpage>391</lpage>. <pub-id pub-id-type="doi">10.1038/nrneurol.2009.80</pub-id> <pub-id pub-id-type="pmid">19578345</pub-id></citation></ref>
<ref id="B23"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Rasheed</surname> <given-names>K.</given-names></name> <name><surname>Qayyum</surname> <given-names>A.</given-names></name> <name><surname>Qadir</surname> <given-names>J.</given-names></name> <name><surname>Sivathamboo</surname> <given-names>S.</given-names></name> <name><surname>Kwan</surname> <given-names>L.</given-names></name> <name><surname>Kuhlmann</surname> <given-names>P.</given-names></name><etal/></person-group> (<year>2021</year>). <article-title>Machine learning for predicting epileptic seizures using EEG signals: A review.</article-title> <source><italic>IEEE Rev. Biomed. Eng.</italic></source> <volume>14</volume> <fpage>139</fpage>&#x2013;<lpage>155</lpage>. <pub-id pub-id-type="doi">10.1109/RBME.2020.3008792</pub-id> <pub-id pub-id-type="pmid">32746369</pub-id></citation></ref>
<ref id="B24"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Schirrmeister</surname> <given-names>R.</given-names></name> <name><surname>Gemein</surname> <given-names>L.</given-names></name> <name><surname>Eggensperger</surname> <given-names>K.</given-names></name> <name><surname>Hutter</surname> <given-names>F.</given-names></name> <name><surname>Ball</surname> <given-names>T.</given-names></name></person-group> (<year>2017</year>). &#x201C;<article-title>Deep learning with convolutional neural networks for decoding and visualization of EEG pathology</article-title>,&#x201D; in <source><italic>Proceedings of the 2017 IEEE Signal Processing in Medicine and Biology Symposium (SPMB)</italic></source>, <publisher-loc>Philadelphia, PA</publisher-loc>. <pub-id pub-id-type="doi">10.1109/SPMB.2017.8257015</pub-id></citation></ref>
<ref id="B25"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Sridevi</surname> <given-names>V.</given-names></name> <name><surname>Ramasubba Reddy</surname> <given-names>M.</given-names></name> <name><surname>Srinivasan</surname> <given-names>K.</given-names></name> <name><surname>Radhakrishnan</surname> <given-names>K.</given-names></name> <name><surname>Rathore</surname> <given-names>C.</given-names></name> <name><surname>Nayak</surname> <given-names>D. S.</given-names></name></person-group> (<year>2019</year>). <article-title>Improved patient-independent system for detection of electrical onset of seizures.</article-title> <source><italic>J. Clin. Neurophysiol.</italic></source> <volume>36</volume> <fpage>14</fpage>&#x2013;<lpage>24</lpage>. <pub-id pub-id-type="doi">10.1097/WNP.0000000000000533</pub-id> <pub-id pub-id-type="pmid">30383718</pub-id></citation></ref>
<ref id="B26"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Tang</surname> <given-names>X.</given-names></name> <name><surname>Zhang</surname> <given-names>X.</given-names></name></person-group> (<year>2020</year>). <article-title>Conditional adversarial domain adaptation neural network for motor imagery EEG Decoding.</article-title> <source><italic>Entropy</italic></source> <volume>22</volume>:<issue>96</issue>. <pub-id pub-id-type="doi">10.3390/e22010096</pub-id> <pub-id pub-id-type="pmid">33285871</pub-id></citation></ref>
<ref id="B27"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Versaci</surname> <given-names>M.</given-names></name> <name><surname>Morabito</surname> <given-names>F. C.</given-names></name></person-group> (<year>2021</year>). <article-title>Image edge detection: A new approach based on fuzzy entropy and fuzzy divergence.</article-title> <source><italic>Int. J. Fuzzy Syst.</italic></source> <volume>23</volume> <fpage>918</fpage>&#x2013;<lpage>936</lpage>. <pub-id pub-id-type="doi">10.1007/s40815-020-01030-5</pub-id></citation></ref>
<ref id="B28"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Versaci</surname> <given-names>M.</given-names></name> <name><surname>Angiulli</surname> <given-names>G.</given-names></name> <name><surname>Crucitti</surname> <given-names>P.</given-names></name> <name><surname>De Carlo</surname> <given-names>D.</given-names></name> <name><surname>Lagan&#x00E0;</surname> <given-names>F.</given-names></name> <name><surname>Pellican&#x00F2;</surname> <given-names>D.</given-names></name><etal/></person-group> (<year>2022</year>). <article-title>A fuzzy similarity-based approach to classify numerically simulated and experimentally detected carbon fiber-reinforced polymer plate defects.</article-title> <source><italic>Sensors (Basel)</italic></source> <volume>22</volume>:<issue>4232</issue>. <pub-id pub-id-type="doi">10.3390/s22114232</pub-id> <pub-id pub-id-type="pmid">35684853</pub-id></citation></ref>
<ref id="B29"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Waheed</surname> <given-names>S. R.</given-names></name> <name><surname>Rahim</surname> <given-names>M. S. M.</given-names></name> <name><surname>Suaib</surname> <given-names>N. M.</given-names></name> <name><surname>Salim</surname> <given-names>A. A.</given-names></name></person-group> (<year>2023</year>). <article-title>CNN deep learning-based image to vector depiction.</article-title> <source><italic>Multimed. Tools Appl.</italic></source> <volume>82</volume> <fpage>20283</fpage>&#x2013;<lpage>20302</lpage>. <pub-id pub-id-type="doi">10.1007/s11042-023-14434-w</pub-id></citation></ref>
<ref id="B30"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Wen</surname> <given-names>Y.</given-names></name> <name><surname>Zhang</surname> <given-names>K.</given-names></name> <name><surname>Li</surname> <given-names>Z.</given-names></name> <name><surname>Qiao</surname> <given-names>Y.</given-names></name></person-group> (<year>2016</year>). &#x201C;<article-title>A discriminative feature learning approach for deep face recognition</article-title>,&#x201D; in <source><italic>Computer Vision &#x2013; ECCV 2016. ECCV 2016. Lecture Notes in Computer Science, vol 9911</italic></source>, <role>eds</role> <person-group person-group-type="editor"><name><surname>Leibe</surname> <given-names>B.</given-names></name> <name><surname>Matas</surname> <given-names>J.</given-names></name> <name><surname>Sebe</surname> <given-names>N.</given-names></name> <name><surname>Welling</surname> <given-names>M.</given-names></name></person-group> (<publisher-loc>Cham</publisher-loc>: <publisher-name>Springer</publisher-name>). <pub-id pub-id-type="doi">10.1007/978-3-319-46478-7_31</pub-id></citation></ref>
<ref id="B31"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>White</surname> <given-names>G.</given-names></name> <name><surname>Cabrera</surname> <given-names>C.</given-names></name> <name><surname>Palade</surname> <given-names>A.</given-names></name> <name><surname>Li</surname> <given-names>F.</given-names></name> <name><surname>Clarke</surname> <given-names>S.</given-names></name></person-group> (<year>2020</year>). <article-title>WasteNet: Waste classification at the edge for smart bins.</article-title> <source><italic>ArXiv [Preprint]</italic></source>. <pub-id pub-id-type="doi">10.48550/arXiv.2006.05873</pub-id></citation></ref>
<ref id="B32"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Yang</surname> <given-names>Y.</given-names></name> <name><surname>Qin</surname> <given-names>X. L.</given-names></name> <name><surname>Wen</surname> <given-names>H.</given-names></name> <name><surname>Li</surname> <given-names>F.</given-names></name> <name><surname>Lin</surname> <given-names>X. G.</given-names></name></person-group> (<year>2023</year>). <article-title>Patient-specific approach using data fusion and adversarial training for epileptic seizure prediction.</article-title> <source><italic>Front. Comput. Neurosci.</italic></source> <volume>17</volume>:<issue>1172987</issue>. <pub-id pub-id-type="doi">10.3389/fncom.2023.1172987</pub-id> <pub-id pub-id-type="pmid">37216065</pub-id></citation></ref>
<ref id="B33"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Yu</surname> <given-names>C.</given-names></name> <name><surname>Wang</surname> <given-names>J.</given-names></name> <name><surname>Chen</surname> <given-names>Y.</given-names></name> <name><surname>Huang</surname> <given-names>M.</given-names></name></person-group> (<year>2019</year>). &#x201C;<article-title>Transfer learning with dynamic adversarial adaptation network</article-title>,&#x201D; in <source><italic>Proceedings of the 2019 IEEE International Conference on Data Mining (ICDM)</italic></source>, <publisher-loc>Beijing</publisher-loc>. <pub-id pub-id-type="doi">10.48550/arXiv.1909.08184</pub-id></citation></ref>
<ref id="B34"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Zabihi</surname> <given-names>M.</given-names></name> <name><surname>Kiranyaz</surname> <given-names>S.</given-names></name> <name><surname>Ince</surname> <given-names>T.</given-names></name> <name><surname>Gabbouj</surname> <given-names>M.</given-names></name></person-group> (<year>2013</year>). &#x201C;<article-title>Patient-specific epileptic seizure detection in long-term EEG recording in paediatric patients with intractable seizures</article-title>,&#x201D; in <source><italic>Proceedings of the IET Intelligent Signal Processing Conference 2013 (ISP 2013)</italic></source>, <publisher-loc>London</publisher-loc>. <pub-id pub-id-type="doi">10.1049/cp.2013.2060</pub-id></citation></ref>
<ref id="B35"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Zhang</surname> <given-names>X.</given-names></name> <name><surname>Yao</surname> <given-names>L.</given-names></name> <name><surname>Dong</surname> <given-names>M.</given-names></name> <name><surname>Liu</surname> <given-names>Z.</given-names></name> <name><surname>Zhang</surname> <given-names>Y.</given-names></name> <name><surname>Li</surname> <given-names>Y.</given-names></name></person-group> (<year>2020</year>). <article-title>Adversarial representation learning for robust patient-independent epileptic seizure detection.</article-title> <source><italic>IEEE J. Biomed. Health Inform.</italic></source> <volume>24</volume> <fpage>2852</fpage>&#x2013;<lpage>2859</lpage>. <pub-id pub-id-type="doi">10.1109/JBHI.2020.2971610</pub-id> <pub-id pub-id-type="pmid">32071011</pub-id></citation></ref>
<ref id="B36"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Zhao</surname> <given-names>H.</given-names></name> <name><surname>Zheng</surname> <given-names>Q.</given-names></name> <name><surname>Ma</surname> <given-names>K.</given-names></name> <name><surname>Li</surname> <given-names>H.</given-names></name> <name><surname>Zheng</surname> <given-names>Y.</given-names></name></person-group> (<year>2021</year>). <article-title>Deep representation-based domain adaptation for nonstationary EEG classification.</article-title> <source><italic>IEEE Trans. Neural Netw. Learn. Syst.</italic></source> <volume>32</volume> <fpage>535</fpage>&#x2013;<lpage>545</lpage>. <pub-id pub-id-type="doi">10.1109/TNNLS.2020.3010780</pub-id> <pub-id pub-id-type="pmid">32745012</pub-id></citation></ref>
</ref-list>
</back>
</article>
