Skip to Content
SymmetrySymmetry
  • Article
  • Open Access

9 February 2026

25 Pages

G-CMTF Net: Spectro-Temporal Disentanglement and Reliability-Aware Gated Cross-Modal Temporal Fusion for Robust PSG Sleep Staging

and
School of Information Science and Engineering, East China University of Science and Technology, Shanghai 200237, China
*
Author to whom correspondence should be addressed.
This article belongs to the Section A: Computer Science

Abstract

Automatic sleep staging from polysomnography is challenged by marked spectro-temporal heterogeneity and non-stationary cross-channel artifacts, which often undermine naïve multimodal fusion. To address this, a Gated Cross-Modal and Temporal Fusion Network (G-CMTF Net) is proposed as an end-to-end model operating on 30 s EEG epochs and auxiliary EOG and EMG signals, in which cross-modal contributions are regulated through reliability-aware gating. A spectro-temporal disentanglement frontend learns multi-scale temporal features while incorporating FFT-derived band-power embeddings to preserve physiologically meaningful oscillatory cues. At the epoch level, gated fusion suppresses artifact-prone auxiliary inputs, thereby limiting noise transfer into a shared latent space. Long-range sleep dynamics are modeled via a convolution-augmented self-attention encoder that captures both local morphology and transition structure. On Sleep-EDF-20 and Sleep-EDF-78, G-CMTF Net achieves Macro-F1/ACC of 81.3%/85.5% and 78.2%/83.4%, respectively, while maintaining high sensitivity and geometric-mean performance on transitional epochs, consistent with the function of reliability-aware gated fusion under non-stationary auxiliary artifacts. From a symmetry perspective, the proposed framework enforces a structured balance between heterogeneous modalities by promoting representational consistency while adaptively suppressing asymmetric noise contributions.

1. Introduction

Sleep is essential to normal neurophysiological function and constitutes a dynamically regulated biological state through which systemic homeostasis and neural–metabolic recovery are sustained [1]. Rather than a uniform condition, sleep is organized as a cyclic progression of distinct stages, whose coordinated alternation supports memory-related processing, metabolic equilibrium, and immune regulation [2]. For this reason, robust automatic staging is a prerequisite for deriving quantitative sleep biomarkers, thereby facilitating early screening of conditions such as chronic insomnia and obstructive sleep apnea. Conversely, insufficient or fragmented sleep is frequently accompanied by measurable impairments in executive function and emotional control [3,4]. From a mechanistic perspective, rapid eye movement (REM) sleep is closely associated with synaptic remodeling and affective processing, whereas non-rapid eye movement (NREM) sleep—particularly slow-wave activity—contributes to cerebral energy restoration and glymphatic clearance. Although differentiating these states is clinically important, the prevailing gold standard—manual PSG scoring—remains time-consuming and is subject to considerable inter-rater variability [5]. The burden and subjectivity of manual polysomnographic scoring have therefore accelerated interest in automated solutions that are both reproducible and scalable. In contrast to conventional machine-learning workflows that depend on empirically designed features, deep neural networks (DNNs) learn task-relevant representations directly from physiological waveforms in an end-to-end manner. By capturing temporal structure across multiple scales, such models have shown improved generalization to diverse subjects and recording settings [6,7]. However, practical deployment in real-world polysomnography remains challenged by pronounced signal heterogeneity and modality-specific artifacts, which can compromise the reliability of naive fusion strategies and motivate more structured modeling of cross-channel interactions.
In the context of the journal Symmetry, our design can be viewed as enforcing a structured balance across modalities: modality-specific encoders produce comparable token representations, while the gating node, as shown in Figure 1, selectively down-weights unreliable EOG/EMG tokens to prevent asymmetric artifact leakage into the fused sequence. This mechanism promotes representational consistency in the unified multimodal tensor used for subsequent temporal reasoning, thereby aligning the model’s robustness objective with a symmetry-related notion of balanced cross-modal integration. Consistent with this symmetry-motivated view, multimodal staging can be interpreted as seeking an approximately invariant shared representation across channels, while preventing asymmetric, time-varying artifacts from one modality from contaminating the others. This perspective is particularly relevant for PSG, where auxiliary channels may contribute complementary evidence when reliable, yet may also introduce strongly non-stationary disturbances when artifacts dominate. Accordingly, robustness hinges not only on extracting discriminative spectral–temporal features, but also on enforcing a balanced integration mechanism that preserves informative agreement and suppresses unreliable asymmetries.
Figure 1. Overall architecture of the proposed G-CMTF Net, illustrating the cross-modal fusion pipeline, spectrum-aware bio-temporal feature encoding, and global temporal modeling with Conformer Encoders.
Given the high annotation cost of PSG and the prevalence of distributional shifts across cohorts, a series of advanced learning paradigms has been introduced to improve both robustness and adaptability in sleep staging models. In this context, transfer learning has been widely adopted, in which representations learned from large-scale datasets are reused so that models can be adapted to smaller cohorts or population-specific recordings with reduced reliance on extensive retraining [8]. Closely related to this line of work, meta-learning approaches—exemplified by MetaSleepLearner—have been formulated to treat rapid subject-level adaptation as an explicit objective; this is typically achieved via model-agnostic optimization procedures that enable efficient updating when new subjects are encountered [9]. This emphasis on adaptability becomes particularly relevant when inter-subject variability dominates performance degradation in real-world deployments. In parallel, when computational and memory budgets constitute the primary bottleneck, knowledge distillation has been explored as a practical means of reducing model complexity, allowing compact student models to approximate the predictive behavior of larger teachers and thereby supporting deployment on wearable and embedded platforms without substantial loss of accuracy [10]. A growing body of recent work suggests that hybrid architectures combining multi-scale convolutional feature extraction with temporal attention mechanisms are effective at modeling the coupled spectral–temporal structure of sleep-related physiological signals [11,12,13]. These local–global modeling strategies have advanced benchmark performance; nonetheless, robustness in practical PSG settings remains limited when auxiliary channels become intermittently artifact-dominated and are fused in a uniform manner. This reliability bottleneck is further exacerbated under distribution shifts and inter-subject variability, where noisy cross-channel cues can be propagated into the shared representation and impair generalization.
These observations suggest that robust PSG-based staging requires representations that couple multi-scale temporal structure with physiologically grounded spectral cues, as well as fusion mechanisms that explicitly account for time-varying modality reliability so that artifact-prone auxiliary evidence does not corrupt shared features. Here, reliability is treated as an implicit, representation-driven quantity inferred during feature learning, rather than an externally defined signal-quality metric. Accordingly, G-CMTF Net is developed as an end-to-end framework that integrates EEG with auxiliary EOG/EMG through reliability-aware gating and models long-range sleep dynamics using convolution-augmented attention. Guided by the above considerations, G-CMTF Net is designed around three key components, each targeting a recurring source of degradation in practical PSG-based staging:
  • Spectro-temporal heterogeneity (slow waves vs. spindles). A spectro-temporal disentanglement module is introduced, where multi-scale convolutions are combined with spectral prior injection (FFT-derived band-power embeddings) to preserve physiologically defined oscillatory cues across disparate time scales.
  • Non-stationary artifacts in auxiliary modalities (EOG/EMG). To avoid indiscriminate fusion, a reliability-aware Gated Cross-Modal Fusion mechanism is employed to re-weight auxiliary streams at the epoch level, attenuating artifact-dominated segments while retaining informative cross-modal context.
  • Long-range temporal dependencies. A convolution-augmented self-attention encoder (Conformer) is used to model both local morphology and global stage-transition structure, which are difficult to capture with shallow temporal models.
While the present study is instantiated on clinical PSG, the underlying failure mode targeted in this work—namely, time-varying degradation of auxiliary sensor reliability—also arises in ubiquitous sleep monitoring pipelines, where wearable biosensors and contactless sensors are frequently affected by motion, placement changes, and environment-dependent disturbances. Accordingly, the proposed reliability-aware fusion mechanism is positioned as a principled step toward robust multi-sensor sleep staging beyond laboratory-grade montages (see Section 2.3). The proposed framework is evaluated on Sleep-EDF-20 and Sleep-EDF-78 [14,15], yielding competitive performance while preserving sensitivity on transitional and minority stages under subject-wise evaluation.
To provide an intuitive view of the proposed workflow, Figure 2 presents a block-level overview of G-CMTF Net from multimodal PSG inputs to sleep-stage prediction; the full architectural specification is detailed in Figure 1.
Figure 2. High-level overview of the proposed G-CMTF Net for PSG-based sleep staging. The schematic highlights the end-to-end pipeline (spectro-temporal encoding, reliability-aware cross-modal fusion, and temporal modeling).

3. Motivation

Sleep staging from PSG is shaped by recurrent failure modes rooted in both physiology and acquisition artifacts. Figure 3 summarizes three such factors and the corresponding design choices in G-CMTF Net.
Figure 3. Motivation-driven overview of G-CMTF Net for PSG-based sleep staging. Key challenges are mapped to the corresponding modules and expected benefits. The orange and purple triangles mark transient events, while the gray shaded boxes indicate noisy segments that are suppressed by the gated fusion.
First, discriminative signatures span disparate time scales: slow-wave activity develops over extended intervals, whereas micro-events such as spindles and K-complexes are temporally localized. Because single-scale convolutions impose an effectively fixed receptive field, a unified representation may under-resolve either long-duration dynamics or short-lived transients. Moreover, even when multi-scale encoders are adopted, learned features are not guaranteed to respect clinically defined frequency bands. This observation motivates injecting explicit spectral priors via FFT-derived band-power cues to steer representation learning toward physiologically interpretable regimes.
Relatedly, auxiliary channels (EOG/EMG) provide complementary evidence but exhibit time-varying reliability in practice. Existing fusion pipelines often weight modalities to optimize average discrimination (e.g., channel-wise attention in MASleepNet [35]); nevertheless, modality contributions are rarely regulated explicitly under non-stationary channel quality, allowing artifact-dominated segments to contaminate the shared latent space [36]. G-CMTF Net therefore formulates fusion as a reliability-sensitive operation and employs epoch-level Gated Cross-Modal Fusion to suppress unreliable auxiliary evidence while preserving informative context.
Finally, accurate staging depends on long-range temporal structure, including stage persistence and constrained transitions. To couple local morphology with global dynamics, a convolution-augmented self-attention encoder is adopted to model fine-grained waveform patterns together with sequence-level transition regularities.

4. G-CMTF Net: Gated Cross-Modal and Temporal Fusion for Sleep Staging

To rigorously deconvolute the spectral–temporal heterogeneity of polysomnography while mitigating cross-channel artifacts, we formulate the G-CMTF Net, which integrates Gated Cross-Modal Fusion with hierarchical temporal modeling for sleep staging. This architecture is instantiated via a hierarchical pipeline that synergizes three coupled functional blocks: (1) a spectro-temporal disentanglement frontend, which augments multi-scale convolutional feature maps with explicit band-power priors to enforce frequency-domain fidelity; (2) a Gated Cross-Modal Fusion (GCMF) interface, designed to autonomously attenuate noise-corrupted modalities through learnable reliability weights before integration; and (3) a Conformer-based Temporal Encoder, which synthesizes local inductive biases with global self-attention mechanisms to reconstruct long-range sleep cycle transitions. The schematic workflow of the proposed framework is illustrated in Figure 1.

4.1. Overall Architecture

4.1.1. Problem Formulation

Formally, let the polysomnography recording for a single subject be represented as a sequence of N epochs, denoted as X = { X 1 , X 2 , … , X N } . Each epoch X t ∈ R C × L comprises multi-channel physiological signals, where C denotes the channel set { E E G ,   E O G ,   E M G } and L represents the sampling length (typically L = 3000 for a 30 s epoch at 100 Hz). The objective of automatic sleep staging is to learn a non-linear mapping function F : X → Y , where Y = { y 1 , y 2 , … , y N } corresponds to the sequence of discrete sleep stages y t ∈ { W ,   N 1 ,   N 2 ,   N 3 ,   R E M } strictly adhering to AASM standards [37].

4.1.2. Architectural Overview

To approximate the mapping F under cross-channel noise and modality-dependent corruption, the Gated Cross-Modal and Temporal Fusion Network (G-CMTF Net) is developed. As shown in Figure 1, the input X t is processed through three hierarchically coupled stages:
  • Spectro-Temporal Feature Extraction: For each modality, raw waveforms are encoded by a Multi-Scale Sleep Stage CNN, in which multiple receptive-field scales are employed so that local sleep-related morphologies can be represented without committing to a single temporal resolution. In parallel, spectral priors are incorporated explicitly by a dedicated band-power embedding module. This design is intended to preserve frequency-domain specificity and to ensure that the learned representations remain consistent with clinically defined oscillatory bands in neurophysiology.
  • Gated Cross-Modal Fusion: Since the reliability of different channels may vary across epochs, the resulting embeddings are forwarded to a Gated Cross-Modal Fusion (GCMF) module, where auxiliary modalities are re-weighted according to their estimated reliability prior to fusion. Drawing inspiration from channel-wise excitation principles [38], this module computes learnable reliability gates to autonomously suppress artifact-corrupted modalities (e.g., noisy EMG) before feature integration.
  • Global Temporal Context Modeling: The fused multimodal tokens are finally projected into a Conformer Encoder. By synthesizing local convolutional inductive biases with global self-attention mechanisms [39], this encoder reconstructs long-range sleep cycle transitions and inter-epoch dependencies with enhanced robustness.
The model is optimized end-to-end under a composite training objective that combines a focal loss term, introduced to mitigate the pronounced class imbalance typical of sleep-staging corpora, with auxiliary tasks tailored to waveform-level characteristics. This joint formulation encourages the network to remain sensitive to under-represented sleep stages while exploiting complementary supervisory signals.

4.2. Spectro-Temporal Feature Disentanglement

To resolve the scale-resolution uncertainty inherent in single-view modeling, the G-CMTF Net explicitly decouples feature extraction into two complementary streams: a spectral prior injection module and a multi-scale temporal encoder.

4.2.1. Explicit Spectral Prior Injection

Given an input epoch X ∈ R C × L , we first transform the raw waveform into the frequency domain to capture steady-state oscillatory patterns. Let x c ( t ) denote the signal of the c-th channel. We apply Welch’s method to compute the power spectral density (PSD), S c ( f ) , which provides a robust estimate of spectral characteristics by averaging periodograms over overlapping segments. To align with clinical scoring rules [37], we aggregate the spectral energy into K canonical frequency bands (e.g., δ , θ , α , σ , β , γ ). The band-power vector p c ∈ R K is derived as
p c , k = log 1 + ∫ f low ( k ) f high ( k ) S c ( f ) d f , k = 1 , … , K
The logarithmic transformation mitigates the skewness of power distributions. These vectors are projected via a linear embedding to form the spectral token E s p e c , serving as a global frequency anchor.
Physiologically, transitional stages such as N1 are typically characterized by mixed-frequency and low-amplitude activity, for which discriminative evidence is often manifested as subtle band-wise power shifts rather than salient morphology. By injecting band-power priors as an explicit global anchor, the learned representation is encouraged to preserve clinically grounded spectral contrasts (e.g., theta emergence and alpha attenuation), thereby complementing convolutional detection of transient events (e.g., spindles in the sigma band) and improving separability under inter-subject spectral variability.

4.2.2. Multi-Scale Temporal Convolution

Parallel to spectral analysis, we design a Multi-Scale Convolutional (MSC) encoder to disentangle morphological transients across varying temporal resolutions. The detailed architecture is illustrated in Figure 4. Formally, let X ∈ R C × L denote the standardized input epoch. The encoder Φ M S C deploys three parallel branches B = { low , mid , high } to extract hierarchical representations. The feature map produced by branch b ∈ B is defined as
H b = F b ( X ; θ b ) , with F b ∼ Conv 1 D ( k b , s b ) .
In this setting, k b and s b are used to denote the kernel size and stride of branch b, respectively. Because sleep-related events are expressed over heterogeneous temporal spans, the branches are designed to impose complementary inductive biases rather than sharing an identical receptive-field configuration. The low-frequency branch is configured with a larger kernel ( k low = 31 ), by which slow-wave activity that persists over longer intervals can be represented within an extended temporal context. The high-frequency branch is implemented using a depthwise–separable Conv1D with k high = 40 (depthwise convolution with groups   = in_channels followed by a 1 × 1 pointwise projection). An SE-style recalibration and a pooling operator are then applied to emphasize transient micro-events (e.g., spindle-/EMG-related bursts) while keeping the computational footprint bounded. The Mid-Frequency Branch is implemented with ConvNeXt blocks, where inverted bottlenecks are adopted to trade representational capacity against computational cost in a controlled manner [40].
Figure 4. Architecture of the proposed multi-scale spectro-temporal CNN frontend. Three parallel convolutional branches with complementary receptive fields are employed to capture sleep-related patterns across different temporal scales. The resulting features are temporally aligned, concatenated, and refined through projection and residual temporal modeling to form bio-temporal embeddings.
Owing to the use of heterogeneous strides, the feature maps H low , H mid , H high are produced at different temporal resolutions. To enable coherent fusion across branches, a common target length is specified as T ′ = min b ( len ( H b ) ) , and a linear interpolation operator U ( · ) is applied to align each feature map accordingly. After temporal alignment, the unified representation is formed by channel-wise concatenation followed by projection:
Z agg = BN W p ∗ U ( H low ) ‖ U ( H mid ) ‖ U ( H high ) ,
where ‖ denotes concatenation along the channel dimension and W p denotes a 1 × 1 convolution used to project the aggregated features into a compact embedding space.
After projection, the fused sequence is refined by a lightweight channel–temporal recalibration pipeline. First, a channel-wise SE recalibration is applied to re-weight feature responses:
Z ch = Z agg ⊗ σ A ch ( Z agg ) ,
where A ch ( · ) denotes a squeeze–excitation operator producing channel-wise weights, which are broadcast along the temporal axis.
Next, temporal refinement is implemented by a dilated residual block followed by a temporal SE recalibration. For notational compactness, their composition is denoted as A temp ( · ) :
E temp = A temp ( Z ch ) , A temp ( Z ) = Z + R dil ( Z ) ⊗ σ A se Z + R dil ( Z ) ,
where R dil ( · ) is a dilated temporal residual block (dilation =   2 in our implementation) and A se ( · ) denotes the temporal SE recalibration. This design matches the implementation in which the projected sequence is refined by residual temporal modeling and then re-weighted by a temporal SE recalibration to suppress artifact-amplified fluctuations while preserving transition-relevant dynamics.
The channel-wise and temporal SE operators in the MSC encoder are introduced as intra-modality feature recalibration. Their role is to rescale feature responses within a single modality by leveraging global pooling statistics, thereby attenuating locally amplified fluctuations and emphasizing discriminative morphology. Importantly, these SE-style operators do not determine the relative contribution of EEG versus auxiliary streams during fusion; instead, they regularize the feature formation process prior to cross-modal interaction.
Through this joint channel–temporal recalibration, the resulting bio-temporal embedding E temp is rendered less sensitive to artifactual perturbations while retaining discriminative sleep-related patterns [38].
The MSC encoder comprises three parallel branches whose outputs are aligned to a common temporal length before fusion. (1) The low-frequency branch applies a strided Conv1D ( k = 31 , s = 2 , p = 15 ) producing 16 channels, followed by MaxPool1D ( k = 2 ) and two residual Conv1D blocks with downsampling (16→32→128; each block uses stride 2). (2) The mid-frequency branch adopts a ConvNeXt-style stem (Conv1D k = 7 , s = 2 , p = 3 + MaxPool1D k = 2 ) followed by two residual blocks, yielding 64 channels. (3) The high-frequency branch uses a depthwise Conv1D ( k = 40 , s = 1 , p = 20 ; groups = in_channels) with a pointwise 1 × 1 projection to 32 channels, together with SE-style recalibration and MaxPool1D ( k = 2 ). Let T low , T mid , T high denote the resulting temporal lengths; the three feature maps are linearly interpolated to T ′ = min ( T low , T mid , T high ) , concatenated (224 channels), and projected to 128 dimensions by a 1 × 1 Conv1D with BatchNorm and dropout. Finally, channel-wise recalibration and a dilated temporal residual refinement block are applied, followed by an SE-style recalibration, to produce the bio-temporal embeddings.

4.3. Gated Cross-Modal Fusion

In multi-channel sleep recordings, auxiliary signals such as EOG and EMG may alternately provide complementary physiological context or be dominated by artifacts, giving rise to a recurring noise–information trade-off. Unlike static fusion, GCMF operates as a reliability-aware filter. To explicitly account for this uncertainty during fusion, a Gated Cross-Modal Fusion (GCMF) mechanism is formulated, in which auxiliary information is integrated in a reliability-aware manner rather than through static aggregation.
Let Z main ∈ R T × D denote the EEG feature sequence (Query) and Z aux ∈ R T ′ × D denote the auxiliary EOG/EMG features (Key/Value). The fusion process involves two sequential steps:
First, we introduce a cross-attention module, following the encoder–decoder attention mechanism originally formalized in the Transformer architecture [17]. This enables the auxiliary modality to attend selectively to temporally informative components of the primary EEG stream, thereby achieving consistent alignment between their dynamics:
Z ^ aux = Softmax Z main W Q ( Z aux W K ) ⊤ d k ( Z aux W V ) .
In contrast to the above intra-modality recalibration, the gating vector g in GCMF is designed as a cross-modal reliability gate. It is computed from the aligned auxiliary representation and is used to modulate the auxiliary contribution before integration with the EEG stream. Under this formulation, g explicitly controls whether auxiliary evidence should be propagated into the shared latent space on a per-epoch basis, which directly targets non-stationary artifact contamination in EOG/EMG.
Second, to suppress noise, a learnable Gating Network (illustrated in the bottom panel of Figure 5) computes a channel-wise reliability score g ∈ [ 0 , 1 ] D based on the global context of the aligned features:
g = σ Convex δ Convsq AvgPool ( Z ^ aux ) ,
where σ ( · ) is the Sigmoid function and δ ( · ) denotes the ReLU activation. While we do not employ a separate signal-quality regressor, we explicitly define the modal reliability as the dynamic importance weights learned through a squeeze–excitation mechanism. Here, AvgPool ( · ) denotes global average pooling over the temporal axis, yielding a D-dimensional summary that aggregates the overall activation statistics of Z ^ aux within the current epoch. Conv sq and Conv ex are implemented as two lightweight 1 × 1 convolutions (equivalently, fully connected layers) with a reduction ratio r (we use r = 4 ), forming a squeeze–excitation style bottleneck mapping. Instead of processing the auxiliary input in isolation, the gate is computed from the cross-attended intermediate representation. This allows the mechanism to dynamically recalibrate the fused features, emphasizing contextually relevant cross-modal patterns while suppressing noise introduced during the interaction. The fused representation is obtained by effectively filtering the auxiliary signal: Z fused = Norm ( Z main + g ⊙ Z ^ aux ) . This ensures that only high-quality auxiliary information is integrated, while artifact-heavy segments are autonomously attenuated.
Figure 5. Gated Cross-Modal Fusion (GCMF) module. A channel-wise gating mechanism estimates modality reliability from global context and suppresses artifact-dominated auxiliary features prior to fusion with the EEG stream.

4.4. Global Temporal Context Modeling and Composite Optimization

4.4.1. Conformer-Based Sequence Modeling

Following the cross-modal fusion, the integrated feature sequence Z fused ∈ R T × D is passed through a Conformer Encoder to capture long-range temporal dependencies, such as the cyclic alternation between NREM and REM sleep stages. Unlike conventional Transformer architectures, the Conformer model integrates a convolution module within the self-attention block, as shown in Figure 6. This design merges the local inductive biases of convolutional neural networks (CNNs)—which are essential for capturing micro-events such as K-complexes—with the broader receptive field of Multi-Head Self-Attention (MHSA), facilitating robust modeling of both transient waveforms and prolonged sleep transitions across the night [39]. The output feature tokens are subsequently aggregated through global average pooling (GAP) and passed through a linear classifier to produce the conditional probability distribution P ( y | X ) .
Figure 6. Internal architecture of a Conformer Encoder block, in which global multi-head self-attention is integrated with a local convolutional module to jointly model long-range sleep-stage transitions and short-duration waveform events.

4.4.2. Composite Loss Function with Deep Supervision

To mitigate the class imbalance inherent in sleep staging, the primary objective L main is instantiated as a focal loss regularized by label smoothing:
L main = − ∑ c = 1 N class ( 1 − p c ) γ log ( p c LS ) , p c LS = ( 1 − ϵ ) y c + ϵ / N class ,
where γ controls the focusing strength and ϵ denotes the smoothing factor. Unless otherwise stated, γ is set to 1.5 and ϵ is fixed to 0.1 for both the main head and the auxiliary supervision head.
Deep supervision is imposed through an auxiliary classification head, whose loss L aux is implemented as cross-entropy with label smoothing ( ϵ = 0.1 ). The overall objective is defined as
L total = λ 1 L main + λ 2 ( e ) L aux ,
with λ 1 fixed to 1.0 . To avoid destabilizing early optimization, λ 2 ( e ) is linearly ramped from 0 to λ 2 max during the first E ramp epochs:
λ 2 ( e ) = λ 2 max · min 1 , e E ramp , λ 2 max = 0.3 , E ramp = 10 .
To address class imbalance—most notably the scarcity of N1—a composite objective (Focal Loss with Label Smoothing) was adopted in this work. Since imbalance can also be handled through established, architecture-agnostic techniques, two widely used alternatives were included as baselines under an identical network configuration: (i) Class-Weighted Cross-Entropy (W-CE), where penalties are scaled by inverse class frequency; and (ii) balanced re-sampling, where minority classes are oversampled during training to approximate a balanced mini-batch distribution. A quantitative comparison is reported in Section 5.7.

5. Experiments and Results

5.1. Datasets

All experiments were conducted using the Sleep-EDF Database Expanded (Sleep-EDFX), a publicly accessible polysomnography repository hosted on PhysioNet [14,15]. In this study, analysis was restricted to the Sleep Cassette subset, which contains full-night PSG recordings acquired from healthy subjects and is commonly adopted for modeling baseline sleep architecture in the absence of pharmacological intervention.
Sleep stages in Sleep-EDFX were originally annotated by clinical experts according to the Rechtschaffen and Kales (R&K) criteria. Following standard practice, these annotations were mapped to the AASM convention by merging stages N3 and N4 into a single deep sleep stage (N3). Epochs labeled as Movement (M) or Unclassified (?) were excluded from subsequent analysis to ensure label consistency.
To facilitate both benchmarking and robustness evaluation, two experimental cohorts were derived from the Sleep Cassette subset:
  • Sleep-EDF-20 which consists of 39 recordings from 20 subjects (SC4001–SC4192) and serves as a widely used reference benchmark for comparison with existing deep learning methods.
  • Sleep-EDF-78 comprising 153 recordings from 78 subjects, which introduces substantially greater inter-subject variability and provides a more stringent test of model generalization.
The class distribution statistics for both cohorts are summarized in Table 1.
Table 1. Experimental settings and dataset statistics. The symbol # denotes the total number of 30-s epochs.

5.2. Data Preprocessing and Implementation Details

In accordance with the multimodal design of G-CMTF Net, three PSG channels were used throughout this study, namely EEG, horizontal EOG, and submental EMG, which, respectively, characterize cortical oscillations, ocular movements, and muscle tone. Raw signals were uniformly sampled at 100 Hz. To suppress low-frequency drift and high-frequency interference, zero-phase band-pass filtering was applied with cutoff frequencies of 0.2–40 Hz. The continuous recordings were then segmented into non-overlapping 30 s epochs, consistent with the AASM scoring convention. To reduce inter-subject amplitude variability, Z-score normalization was performed on a subject-wise basis for each channel, yielding zero-mean and unit-variance inputs.
The complete preprocessing workflow, including the parallel construction of time-domain waveforms and spectral priors, is summarized in Figure 7. Specifically, in addition to the normalized epoch sequences used for temporal encoding, a Welch-based power spectral density (PSD) estimate was computed per epoch to derive band-power vectors, which were subsequently embedded as explicit spectral cues. This design allows clinically interpretable oscillatory information to be retained during representation formation, rather than being inferred implicitly from raw waveforms alone.
Figure 7. Overview of the spectro-temporal input construction pipeline for G-CMTF Net. Time-domain sequences and explicit spectral representations are constructed in parallel and jointly provided as model inputs. The colored bars in the inset are illustrative and indicate a generic spectral distribution; the colors do not encode specific channels.
Experiments were conducted on two commonly adopted cohorts derived from the Sleep-EDFX Sleep Cassette subset. Sleep-EDF-20 comprises 39 recordings from 20 subjects (SC4001–SC4192) and is used as a standard benchmark for comparison with prior deep learning approaches. Sleep-EDF-78 extends the evaluation to 153 recordings from 78 subjects, introducing substantially greater inter-subject heterogeneity and therefore providing a more stringent test of robustness. For both cohorts, 5-fold cross-validation was employed to assess generalization. We strictly adopted subject-wise cross-validation, ensuring that recordings from the same subject never appeared in both training and testing sets. Each fold contained mutually exclusive subject sets, thereby preventing information leakage across folds. We report the mean and 95% confidence interval (CI) of Macro-F1 over 5-fold cross-validation. The CI is computed using the t-distribution with four degrees of freedom.
Model implementation and training were performed in PyTorch (v2.5.1+cu121) on a single NVIDIA RTX 4090 GPU. Parameters were optimized using AdamW with an initial learning rate of 5 × 10 − 4 and a weight decay of 1 × 10 − 2 . A cosine-annealing schedule with warm restarts (CosineAnnealingWarmRestarts) was adopted with T 0 = 10 , T mult = 1 , and η min = 10 − 6 . Mini-batch training used a batch size of 16. For each cross-validation fold, training was run for at most 40 epochs and was terminated early if the validation macro F1-score failed to improve by more than 10 − 3 for 10 consecutive epochs. These hyperparameters were chosen based on preliminary validation within the training portion of each cross-validation split and were then kept fixed for all reported experiments.
To facilitate feasibility assessment in resource-constrained deployments, we report the number of trainable parameters, floating-point operations (FLOPs), and inference latency of G-CMTF Net. FLOPs are computed for a single 30 s epoch (100 Hz) with batch size 1, and latency is measured as the average wall-clock time over 100 repeated forward passes on an NVIDIA RTX 4090 (excluding data loading). The results are summarized in Table 2.
Table 2. Model complexity and inference latency of G-CMTF Net.

5.3. Evaluation Metrics

To evaluate performance under class imbalance, we report Accuracy (ACC), Macro-F1 (MF1), Cohen’s κ , and Macro G-Mean (MGm). Let T P c , T N c , F P c , F N c denote the confusion counts for class c ∈ { W , N 1 , N 2 , N 3 , R E M } , and N be the total number of epochs.
(1)
Accuracy (ACC).
ACC = ∑ c = 1 C T P c N .
(2)
Macro-F1 (MF1). We compute per-class precision and sensitivity (recall) and average class-wise F1 over C classes:
Pre c = T P c T P c + F P c , Sen c = T P c T P c + F N c ,
MF 1 = 1 C ∑ c = 1 C 2 Pre c Sen c Pre c + Sen c .
(3)
Cohen’s κ . Agreement beyond chance is measured as
κ = p o − p e 1 − p e ,
where p o is the observed agreement (ACC) and p e is the chance agreement from class marginals.
(4)
Macro G-Mean (MGm). To reflect balanced sensitivity–specificity under imbalance, we compute
Spec c = T N c T N c + F P c , MGm = Macro { Sen c } · Macro { Spec c } ,
where Macro { x c } = 1 C ∑ c = 1 C x c .
To explicitly evaluate performance around stage boundaries, we define a 30 s epoch index t ∈ { 1 , … , T } as transitional if it lies within a ± K neighborhood of any label-change boundary in the reference hypnogram. We note that the definition of transitional epochs is algorithmic rather than clinical, and is introduced solely as an evaluation proxy to quantify boundary-related uncertainty, rather than as a new physiological category. Let { y t } t = 1 T denote the ground-truth stage sequence. We define the set of boundary indices
C = { t ∈ { 1 , … , T − 1 } ∣ y t ≠ y t + 1 } ,
where each t ∈ C indicates a stage transition between epochs t and t + 1 . Then, the transitional set is defined as
T K = i ∈ { 1 , … , T } | ∃ t ∈ C , t − K ≤ i ≤ ( t + 1 ) + K ,
and the complementary set N K = { 1 , … , T } ∖ T K is regarded as non-transitional epochs. We report macro Sensitivity (SEN) and macro geometric mean (MGm) on T K and N K for K ∈ { 0 , 1 , 2 } .

5.4. Performance Evaluation on Sleep-EDF Benchmarks

5.4.1. Overall Performance Analysis

The overall discriminative capability of G-CMTF Net was evaluated on Sleep-EDF-20 and Sleep-EDF-78 by benchmarking against representative baselines in Table 3.
Table 3. Overall performance (%) comparison on Sleep-EDF-20 and Sleep-EDF-78. Results are taken from the corresponding publications unless otherwise stated; “-” indicates not reported. Best results are highlighted in bold. Reported results may involve different preprocessing and evaluation protocols; we quote the numbers as reported in the publications.
On Sleep-EDF-20, G-CMTF Net attains a Macro-F1 of 81.3% with a Cohen’s κ of 0.802, computed on pooled test predictions across the 5 folds. Across 5-fold subject-wise cross-validation, the fold-wise mean Macro-F1 is 81.29% (95% CI: 79.03–83.55), with a fold-wise mean κ of 0.802 (95% CI: 0.765–0.835). When contrasted with EEG-only pipelines such as DeepSleepNet and SleepEEGNet, the gain is consistent with the additional physiological context provided by EOG/EMG, which is not accessible to single-stream models.
Evidence for the contribution of the proposed design is provided by two complementary analyses. First, the boundary-focused evaluation in Table 4 shows that SEN/MGm degrades substantially on the closest transition neighborhood ( T 0 ) and recovers monotonically as the neighborhood expands to T 2 , indicating that a dominant fraction of residual errors concentrates around stage boundaries. Second, the ablation study in Table 5 demonstrates systematic degradations in MF1/ κ when reliability-aware gated fusion, band-power prior injection, or the multi-scale CNN frontend is removed. Taken together, these controlled comparisons support attributing the observed robustness gains to the proposed reliability-aware fusion and spectro-temporal representation constraints, rather than to qualitative interpretation alone.
Table 4. Macro SEN and MGm (%) on transitional and non-transitional epochs (mean ± std, 5-fold CV).
Table 5. Ablation study on Sleep-EDF-20 and Sleep-EDF-78. Performance is reported as mean ± standard deviation across 5 folds. The p-value indicates the statistical significance of the difference in MF1 scores compared to the full G-CMTF Net model (paired t-test).
A similar trend is observed on Sleep-EDF-78, where inter-subject heterogeneity is markedly increased. G-CMTF Net reaches 83.4% ACC and 78.2% MF1 (with κ = 0.771 ), computed on pooled test predictions across the five folds. Collectively, the results suggest that combining (i) spectro-temporal priors for resolving scale-dependent ambiguity with (ii) reliability-aware gating for mitigating cross-channel artifacts improves robustness under non-stationary PSG noise, without sacrificing majority-stage specificity.

5.4.2. Class-Wise Performance Analysis

To elucidate where the proposed improvements arise, stage-wise F1 scores are reported in Table 6. Across existing baselines, N1 remains the most difficult stage, largely because its low-amplitude and mixed-frequency characteristics provide weak and easily perturbed cues, especially around transitions.
Table 6. Stage-wise F1 scores (%) on Sleep-EDF-20 and Sleep-EDF-78. Best results per stage are highlighted in bold. Only methods with publicly reported per-stage F1 scores are included.
On Sleep-EDF-20, G-CMTF Net attains an N1 F1 score of 56.2%, exceeding DeepSleepNet (46.6%) and MultitaskCNN (33.5%), and also outperforming other competitive EEG-based baselines (e.g., SleepEEGNet at 52.2%). Because N1 is characterized by low-amplitude mixed-frequency patterns and is frequently adjacent to stage boundaries, the interpretation of this gain is grounded in additional quantitative evidence beyond the per-class table. As indicated by the aggregated confusion matrices (Figure 8), the dominant error mode is concentrated on physiologically adjacent substitutions, particularly N1↔N2. Consistent with this structure, the boundary-focused evaluation (Table 4) shows that performance is lowest on T 0 and increases as the boundary neighborhood expands to T 2 , implying that a substantial fraction of confusions arises in transition-adjacent regimes where N1 is overrepresented.
Figure 8. Aggregated confusion matrices over 5-fold cross-validation on Sleep-EDF-20 and Sleep-EDF-78. Values denote epoch counts. Most confusions occur between physiologically adjacent stages, notably N1↔N2 and REM↔N2. (a) Sleep-EDF-20, (b) Sleep-EDF-78.
Moreover, controlled ablations (Table 5) demonstrate that removing reliability-aware gating, band-power prior injection, or the multi-scale frontend yields systematic degradations in MF1/ κ across both cohorts. Accordingly, the improved N1 performance is interpreted as reflecting enhanced robustness under transition-prone and artifact-affected conditions, rather than a uniform gain across all stages.
In addition, the REM stage is recognized with high fidelity on this cohort (88.3%), suggesting that the injected spectral priors and multi-scale encoding contribute useful discriminative cues for stages with distinct oscillatory structure.
When the evaluation is extended to Sleep-EDF-78, where inter-subject heterogeneity is substantially higher, G-CMTF Net remains competitive on N1 (51.4%), ranking among the strongest reported results in the table. Meanwhile, the best scores for certain stages (e.g., N3 or REM) are achieved by other sequence models, indicating that stage-wise performance is not uniformly improved across all classes. Overall, the stage-wise profile suggests that the proposed design primarily benefits ambiguous and transition-prone epochs (particularly N1), while maintaining stable performance on the remaining stages under a more challenging cross-subject setting.

5.4.3. Stage-Wise Error Analysis via Aggregated Confusion Matrices

To further characterize stage-wise error patterns, the confusion matrices aggregated over 5-fold cross-validation are reported in Figure 8.
For both cohorts, predictions are largely concentrated on the diagonal, indicating that the dominant stages (Wake, N2, N3, and REM) are recognized with stable consistency under multimodal inputs. The residual errors are not uniformly distributed; instead, they are primarily localized to physiologically adjacent transitions. In particular, the most frequent confusions occur between N1 and N2 (e.g., N1→N2 and N2→N1), reflecting the well-known overlap of low-amplitude mixed-frequency activity at the onset of sleep. A second recurrent pattern is the interaction between N2 and N3 (notably N3→N2 and N2→N3), which is consistent with the gradual emergence of slow-wave activity and its boundary ambiguity under epoch-wise labeling. In addition, a non-negligible portion of REM epochs is mapped to N2, whereas Wake is occasionally mapped to N1, suggesting that short-lived transitions and artifact-affected segments remain challenging even with gated fusion. Overall, the confusion structure indicates that most errors are constrained to neighboring-stage substitutions rather than long-range jumps, which is aligned with the design goal of G-CMTF Net to suppress artifact-driven noise propagation while improving separability for transition-prone epochs.
To verify robustness around stage boundaries, we further evaluate the model on transitional subsets T K and their complements N K (defined in Section 5.3). As shown in Table 4, performance degrades near boundaries (e.g., T 0 ) but consistently improves as the neighborhood expands from K = 0 to K = 2 , indicating that most confusions concentrate in the closest vicinity of stage transitions.

5.5. Ablation Studies

To isolate the contribution of key components and to examine whether their effects are consistent across data scales, an ablation study was conducted on both Sleep-EDF-20 and Sleep-EDF-78 under an identical training protocol and subject-wise 5-fold split. The results are reported in Table 5.
Replacing the proposed Gated Cross-Modal Fusion with static concatenation (w/o Gating (Concat)) reduced mean MF1 by 0.5 pp on Sleep-EDF-20 (81.3% to 80.8%) and by 0.4 pp on Sleep-EDF-78 (78.2% to 77.8%), with κ decreasing from 0.802 to 0.797 and from 0.771 to 0.767, respectively. These differences were not statistically significant under a paired two-sided t-test across the 5 folds (p = 0.31 and 0.15), but the consistent degradation across both cohorts suggests that reliability-aware re-weighting helps mitigate the impact of unreliable auxiliary cues during fusion.
Removing the band-power embedding branch (w/o Band-Power) caused a statistically significant degradation on Sleep-EDF-78 (p = 0.005) but not on Sleep-EDF-20 (p = 0.29). On Sleep-EDF-78, MF1 dropped by 1.0 pp (78.2% to 77.2%) with κ decreasing from 0.771 to 0.765, whereas on Sleep-EDF-20 MF1 decreased by 0.5 pp (81.3% to 80.8%) with only a minor κ reduction (0.802 to 0.800) and unchanged mean ACC (85.5%). This cohort-dependent behavior suggests that explicitly injected spectral cues become more beneficial when cross-subject variability is higher.
Simplifying the multi-scale CNN frontend to a single-scale configuration (w/o Multi-Scale) decreased MF1 by 0.7 pp on Sleep-EDF-20 (81.3% to 80.6%) and by 0.9 pp on Sleep-EDF-78 (78.2% to 77.3%), accompanied by κ reductions from 0.802 to 0.799 and from 0.771 to 0.766, respectively. Although these reductions did not reach statistical significance (Sleep-EDF-20: p = 0.23; Sleep-EDF-78: p = 0.09), the consistent trend supports the premise that stage-defining PSG events span multiple temporal extents, for which a single receptive-field scale provides less complete coverage.
Excluding the EMG stream (w/o EMG) exhibited a cohort-dependent effect. On Sleep-EDF-78, removing EMG led to a significant MF1 drop of 1.0 pp (78.2% to 77.2%; p = 0.02), indicating that muscle-tone cues contribute to robustness under higher cross-subject heterogeneity. In contrast, on Sleep-EDF-20 the drop was smaller (0.3 pp; 81.3% to 81.0%) and non-significant (p = 0.39), suggesting EMG is less critical in smaller, more homogeneous cohorts.

5.6. Sensitivity to Spectral Band Definitions

A sensitivity analysis was performed to examine whether the FFT-based band-power priors injected by the spectro-temporal disentanglement module are sensitive to hand-chosen frequency cutoffs. Setting A uses a fine-grained N = 6 partition: δ (0.5–4), θ (4–8), α (8–12), σ (12–16), β (16–30), and γ (30–45) Hz; Setting B keeps N = 6 but shifts all intermediate boundaries by +0.5 Hz; Setting C adopts a coarse clinical N = 4 partition: δ (0.5–4), θ (4–8), α (8–13), and β (13–30) Hz. Table 7 reports MF1 and Cohen’s κ , expressed as the mean ± standard deviation across 5-fold cross-validation, on Sleep-EDF-20 and Sleep-EDF-78.
Table 7. Sensitivity analysis of the model performance on Sleep-EDF-20 and Sleep-EDF-78 datasets under different frequency band definitions.
Across both datasets, shifting the intermediate boundaries by +0.5 Hz (Setting B) decreased MF1 by 1.5 pp on Sleep-EDF-20 (81.3% to 79.8%) and by 0.6 pp on Sleep-EDF-78 (78.2% to 77.6%), accompanied by κ reductions from 0.802 to 0.795 and from 0.771 to 0.767, respectively. Using coarse clinical bands (Setting C) yielded a larger degradation on Sleep-EDF-78, with MF1 decreasing by 1.4 pp (78.2% to 76.8%) and κ dropping from 0.771 to 0.760; on Sleep-EDF-20, MF1 decreased by 1.1 pp (81.3% to 80.2%) with a κ reduction from 0.802 to 0.794. Taken together, the proposed priors remain reasonably robust to changes in frequency boundaries and band definitions, while finer band partitioning provides a measurable advantage, particularly on Sleep-EDF-78.

5.7. Impact of Class Imbalance Strategies

Sleep staging corpora exhibit pronounced class imbalance, where minority stages (especially N1) occur far less frequently than dominant stages such as W and N2. When optimized with a uniform objective, the learning dynamics tend to be dominated by majority-class gradients, which can undermine macro-level discrimination and reduce agreement with reference annotations. To quantify the contribution of imbalance-aware optimization independently of architectural factors, three loss configurations were evaluated under an identical model and training protocol.
  • Standard CE: conventional Cross-Entropy without class weighting or label smoothing.
  • Weighted CE (W-CE): Cross-Entropy with class weight w c computed from the training split of each fold, where w c is inversely proportional to the empirical class frequency of class c.
  • Proposed (Focal + LS): a focal objective with label smoothing, implemented with class-weighted α (shared with w c ), focusing parameter γ = 1.5 , and smoothing factor ϵ = 0.1 .
Table 8 reports Macro-F1 (MF1) and Cohen’s κ on Sleep-EDF-20 and Sleep-EDF-78 as mean ± standard deviation over 5-fold cross-validation, thereby providing a direct comparison against alternative imbalance-aware objectives. Compared with Standard CE, inverse-frequency weighting offers a competitive baseline and improves the overall agreement on Sleep-EDF-78, whereas its effect on Sleep-EDF-20 is marginal. The proposed loss achieves the best overall trade-off on both datasets, reaching MF1 of 81.3 ± 1.8 and κ of 0.802 ± 0.03 on Sleep-EDF-20, and MF1 of 78.2 ± 1.2 with κ of 0.771 ± 0.02 on Sleep-EDF-78. These results indicate that the combination of hard-example emphasis (focal term) and confidence regularization (label smoothing), when coupled with class re-weighting, provides a more favorable macro-level balance than reweighting alone.
Table 8. Comparison of class-imbalance handling strategies on Sleep-EDF-20 and Sleep-EDF-78 (mean ± SD across 5-fold cross-validation).

5.8. Parameter Sensitivity Analysis

To examine the role of architectural depth in temporal representation learning, a controlled sensitivity analysis was conducted by varying the number of Conformer Encoder layers, with L ∈ { 1 , 2 , 4 , 6 } . The corresponding Macro-F1 scores on Sleep-EDF-20 and Sleep-EDF-78 are reported in Table 9.
Table 9. Parameter sensitivity to Conformer depth L on Sleep-EDF-20 and Sleep-EDF-78 (5-fold). Macro-F1 scores are reported for different numbers of encoder layers.
The degradation observed for deeper Conformer stacks is consistent with overfitting under limited subject diversity. In our training setup, weight decay, label smoothing, and early stopping already serve as primary regularization mechanisms. More aggressive regularization (e.g., increased dropout, stochastic depth, or stronger data augmentation) is expected to further stabilize deeper configurations, and will be explored in future work.
A clear trend emerges across both cohorts as model depth increases from a shallow to a moderately deep configuration. When the depth is expanded from L = 1 to L = 4 , Macro-F1 improves from 80.5% to 81.3% on Sleep-EDF-20 and from 77.8% to 78.2% on Sleep-EDF-78. This progressive gain suggests that sleep-stage classification benefits from a minimum level of temporal modeling capacity, which is afforded by stacking multiple Conformer blocks and enables the encoding of long-range dependencies that are insufficiently captured by shallow architectures.
With further depth expansion, however, the performance trend reverses. At L = 6 , Macro-F1 decreases to 79.9% on Sleep-EDF-20 and to 74.9% on Sleep-EDF-78, indicating that the additional representational capacity no longer translates into improved generalization. Such degradation is indicative of over-parameterization under the current data regime and is consistent with increased optimization difficulty and overfitting tendencies in deeper temporal models.
In light of these observations, L = 4 is adopted as the default depth throughout this study. This configuration provides sufficient expressive power for modeling long-range temporal structure while maintaining stable optimization behavior and avoiding unnecessary computational overhead.

6. Discussion

These results should not be interpreted as EMG being intrinsically uninformative; rather, its utility is cohort-dependent and hinges on signal reliability, and the proposed gating is designed to exploit stable muscle-tone cues while suppressing artifact-dominated segments. Under a symmetry-related interpretation, this selective attenuation helps preserve representational consistency across modalities by limiting asymmetric noise injection into the shared features. We acknowledge that the learned reliability gates reflect task-driven importance rather than an externally validated measure of signal quality, and future work may explore incorporating explicit signal-quality proxies.
The proposed fusion treats EEG as the primary stream and EOG/EMG as auxiliary cues, which introduces inherent modality asymmetry. While this choice is consistent with clinical practice, where EEG typically provides the most informative staging cues, it may become suboptimal when EEG quality degrades (e.g., due to electrode displacement or persistent artifacts). In such cases, a natural extension is to adopt symmetric reliability gating, i.e., estimating reliability for both EEG and auxiliary modalities and allowing fusion weights to adapt bidirectionally. We leave systematic evaluation under controlled EEG corruption and clinically challenging recordings to future work.
While the proposed model attains competitive performance under subject-wise evaluation, several limitations should be acknowledged. First, the framework is developed under the assumption of a complete polysomnography (PSG) configuration, incorporating EEG, EOG, and EMG signals. In practical home-monitoring settings, however, acquisition is often restricted to single-channel EEG, in which case the cross-modal fusion mechanism cannot be fully exploited. This motivates future investigations into modality-dropout or modality-agnostic training paradigms to enable stable inference under incomplete sensor availability. Second, the evaluation is conducted on Sleep-EDF cohorts that predominantly contain recordings from healthy subjects, which does not fully reflect clinically diverse sleep disorders. Further validation on pathological sleep datasets and disorder-specific cohorts is therefore required to assess robustness under clinically heterogeneous conditions.
In addition, the observed improvement in N1 performance is supported by transition-boundary-focused evaluation. As shown in Table 4, performance is notably lower near stage transition boundaries ( T 0 ) and improves progressively as the neighborhood widens (i.e., T 1 , T 2 ), suggesting that boundary-adjacent epochs are more challenging. These findings provide evidence that reliability-aware gating may contribute to the N1 gains, particularly around transitions where auxiliary signals are more likely to be artifact-prone. By attenuating unreliable auxiliary inputs near boundaries, the gating mechanism may stabilize shared representations and improve N1 discrimination.

7. Conclusions

In this work, the Gated Cross-Modal and Temporal Fusion Network (G-CMTF Net) is presented as an end-to-end solution for polysomnography-based sleep staging, where scale-dependent feature ambiguity and cross-channel artifact contamination remain persistent obstacles. A multi-scale spectro-temporal frontend is coupled with an adaptive gating mechanism so that physiologically meaningful sleep dynamics can be emphasized while modality-specific noise is attenuated. Along the temporal dimension, a Conformer Encoder is employed to represent long-range transition regularities, thereby supporting consistent modeling of sleep-cycle structure.
Experimental results on the Sleep-EDF-20 and Sleep-EDF-78 benchmarks indicate that G-CMTF Net performs competitively relative to state-of-the-art baselines. Of particular importance is the improved sensitivity obtained for N1 and REM, which are known to be prone to confusion under multimodal artifacts; this outcome suggests that reliability-aware fusion contributes to reducing modality-induced ambiguity. Evidence from experiments further shows that explicit spectral injection and multi-scale encoding are necessary to capture the heterogeneous oscillatory characteristics that define sleep stages.
Several practical limitations should also be acknowledged. The current framework assumes the availability of a full PSG montage (EEG, EOG, and EMG), which may not be feasible in home-monitoring deployments. Future studies will therefore explore lightweight variants tailored to single-channel devices, together with self-supervised pre-training strategies, in order to improve generalization across heterogeneous clinical populations.

Author Contributions

Conceptualization, J.Y.; methodology, J.Y. and P.L.; software, J.Y. and P.L.; formal analysis, J.Y.; investigation, J.Y.; data curation, J.Y.; validation, J.Y. and P.L.; visualization, P.L.; writing—original draft preparation, P.L.; writing—review and editing, J.Y. and P.L.; supervision, J.Y. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the National Natural Science Foundation of China (82374561, 82174490), the Zhejiang Provincial Natural Science Foundation of China (LY24H270003), the Key Project of Zhejiang Provincial Administration of Traditional Chinese Medicine (GZY-ZJ-KJ-23072), Research Project of Zhejiang Chinese Medical University (2022FSYYZZ07, 2025FSYYZY10).

Data Availability Statement

The data used in this study are publicly available from the PhysioNet repository (Sleep-EDF Expanded Dataset), including the commonly used Sleep-EDF-20 and Sleep-EDF-78 splits, at https://physionet.org/content/sleep-edfx/ (accessed on 8 January 2026).

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Lutfy, R.H.; Ashour, A.M.; Khames, A.; Elhemiely, A.A.; Alam-ElDein, K.M.; Faraag, A.H.I.; Hamed, M.O.; Abdel Daim, Z.J.; Attia, N.I.; Gadelmawla, M.H. Targeting Oxidative Stress and Neuroinflammation: Epigallocatechin-3-gallate-Selenium Nanoparticles Mitigate Sleep Deprivation-Induced Cortical Impairment. Int. J. Mol. Sci. 2025, 26, 11173. [Google Scholar] [CrossRef] [Scilit]
  2. De Longis, E.; Kassis, A.; Rémond-Derbez, N.; Thota, R.; Darimont, C.; Donato-Capel, L.; Hudry, J. Cognitive benefits of sleep: A narrative review to explore the relevance of glucose regulation. Sleep Adv. 2025, 6, zpae095. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  3. Khan, M.A.; Al-Jahdali, H. The consequences of sleep deprivation on cognitive performance. Neurosci. J. 2023, 28, 91–99. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  4. Hyndych, A.; El-Abassi, R.; Mader, E.C., Jr. The Role of Sleep and the Effects of Sleep Loss on Cognitive, Affective, and Behavioral Processes. Cureus 2025, 17, e84232. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  5. Lee, Y.J.; Lee, J.Y.; Cho, J.H.; Choi, J.H. Interrater reliability of sleep stage scoring: A meta-analysis. J. Clin. Sleep Med. 2022, 18, 193–202. [Google Scholar] [CrossRef] [Scilit]
  6. Chambon, S.; Galtier, M.N.; Arnal, P.J.; Wainrib, G.; Gramfort, A. A deep learning architecture for temporal sleep stage classification using multivariate and multimodal time series. IEEE Trans. Neural Syst. Rehabil. Eng. 2018, 26, 758–769. [Google Scholar] [CrossRef] [Scilit]
  7. Phan, H.; Andreotti, F.; Cooray, N.; Chén, O.Y.; De Vos, M. SeqSleepNet: End-to-end hierarchical recurrent neural network for sequence-to-sequence automatic sleep staging. IEEE Trans. Neural Syst. Rehabil. Eng. 2019, 27, 400–410. [Google Scholar] [CrossRef] [Scilit]
  8. Phan, H.; Chén, O.Y.; Koch, P.; Mertins, A.; De Vos, M. Deep transfer learning for single-channel automatic sleep staging with channel mismatch. In Proceedings of the 2019 27th European Signal Processing Conference (EUSIPCO), A Coruna, Spain, 2–6 September 2019; IEEE: New York, NY, USA, 2019; pp. 1–5. [Google Scholar]
  9. Chen, C.; Fang, H.; Yang, Y.; Zhou, Y. Model-agnostic meta-learning for EEG-based inter-subject emotion recognition. J. Neural Eng. 2025, 22, 016008. [Google Scholar] [CrossRef] [Scilit]
  10. Jia, Z.; Liang, H.; Liu, Y.; Wang, H.; Jiang, T. Distillsleepnet: Heterogeneous multi-level knowledge distillation via teacher assistant for sleep staging. IEEE Trans. Big Data 2024, 11, 1273–1284. [Google Scholar] [CrossRef] [Scilit]
  11. Eldele, E.; Chen, Z.; Liu, C.; Wu, M.; Kwoh, C.K.; Li, X.; Guan, C. An attention-based deep learning approach for sleep stage classification with single-channel EEG. IEEE Trans. Neural Syst. Rehabil. Eng. 2021, 29, 809–818. [Google Scholar] [CrossRef] [Scilit]
  12. Phan, H.; Mikkelsen, K.; Chén, O.Y.; Koch, P.; Mertins, A.; De Vos, M. Sleeptransformer: Automatic sleep staging with interpretability and uncertainty quantification. IEEE Trans. Biomed. Eng. 2022, 69, 2456–2467. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  13. Zhang, J.; Xue, Y.; Li, Y. A Novel CNN plus Transformer Network for EEG-based Automatic Sleep Staging. In Proceedings of the 2023 4th International Conference on Computer, Big Data and Artificial Intelligence (ICCBD+ AI), Guiyang, China, 15–17 December 2023; IEEE: New York, NY, USA, 2023; pp. 58–65. [Google Scholar]
  14. Kemp, B.; Zwinderman, A.H.; Tuk, B.; Kamphuisen, H.A.; Oberye, J.J. Analysis of a sleep-dependent neuronal feedback loop: The slow-wave microcontinuity of the EEG. IEEE Trans. Biomed. Eng. 2000, 47, 1185–1194. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  15. Goldberger, A.L.; Amaral, L.A.; Glass, L.; Hausdorff, J.M.; Ivanov, P.C.; Mark, R.G.; Mietus, J.E.; Moody, G.B.; Peng, C.K.; Stanley, H.E. PhysioBank, PhysioToolkit, and PhysioNet: Components of a new research resource for complex physiologic signals. Circulation 2000, 101, e215–e220. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  16. Supratak, A.; Dong, H.; Wu, C.; Guo, Y. DeepSleepNet: A model for automatic sleep stage scoring based on raw single-channel EEG. IEEE Trans. Neural Syst. Rehabil. Eng. 2017, 25, 1998–2008. [Google Scholar] [CrossRef] [Scilit]
  17. Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention is all you need. In Proceedings of the Advances in Neural Information Processing Systems, Long Beach, CA, USA, 4–9 December 2017; Volume 30. [Google Scholar]
  18. Perslev, M.; Jensen, M.; Darkner, S.; Jennum, P.J.; Igel, C. U-time: A fully convolutional network for time series segmentation applied to sleep staging. In Proceedings of the Advances in Neural Information Processing Systems, Vancouver, BC, Canada, 8–14 December 2019; Volume 32. [Google Scholar]
  19. Supratak, A.; Guo, Y. TinySleepNet: An efficient deep learning model for sleep stage scoring based on raw single-channel EEG. In Proceedings of the 2020 42nd Annual International Conference of the IEEE Engineering in Medicine & Biology Society (EMBC), Montreal, QC, Canada, 20–24 July 2020; IEEE: New York, NY, USA, 2020; pp. 641–644. [Google Scholar]
  20. Phyo, J.; Ko, W.; Jeon, E.; Suk, H.I. TransSleep: Transitioning-aware attention-based deep neural network for sleep staging. IEEE Trans. Cybern. 2022, 53, 4500–4510. [Google Scholar] [CrossRef] [Scilit]
  21. Song, Y.; Zheng, Q.; Liu, B.; Gao, X. EEG conformer: Convolutional transformer for EEG decoding and visualization. IEEE Trans. Neural Syst. Rehabil. Eng. 2022, 31, 710–719. [Google Scholar] [CrossRef] [Scilit]
  22. Phan, H.; Chén, O.Y.; Tran, M.C.; Koch, P.; Mertins, A.; De Vos, M. XSleepNet: Multi-view sequential model for automatic sleep staging. IEEE Trans. Pattern Anal. Mach. Intell. 2021, 44, 5903–5915. [Google Scholar] [CrossRef] [Scilit]
  23. Jia, Z.; Lin, Y.; Wang, J.; Wang, X.; Xie, P.; Zhang, Y. SalientSleepNet: Multimodal salient wave detection network for sleep staging. arXiv 2021, arXiv:2105.13864. Available online: https://arxiv.org/abs/2105.13864 (accessed on 8 January 2026).
  24. Leach, S.; Krugliakova, E.; Sousouri, G.; Snipes, S.; Skorucak, J.; Schühle, S.; Müller, M.; Ferster, M.L.; Da Poian, G.; Karlen, W.; et al. Acoustically evoked K-complexes together with sleep spindles boost verbal declarative memory consolidation in healthy adults. Sci. Rep. 2024, 14, 19184. [Google Scholar] [CrossRef] [Scilit]
  25. Sekaran, S.R.; Pang, Y.H.; Ling, G.F.; Yin, O.S. MSTCN: A multiscale temporal convolutional network for user independent human activity recognition. F1000Research 2022, 10, 1261. [Google Scholar] [CrossRef] [Scilit]
  26. Yao, Z.; Liu, X. A cnn-transformer deep learning model for real-time sleep stage classification in an energy-constrained wireless device. In Proceedings of the 2023 11th International IEEE/EMBS Conference on Neural Engineering (NER), Baltimore, MD, USA, 24–27 April 2023; IEEE: New York, NY, USA, 2023; pp. 1–4. [Google Scholar]
  27. Liu, P.; Qian, W.; Zhang, H.; Zhu, Y.; Hong, Q.; Li, Q.; Yao, Y. Automatic sleep stage classification using deep learning: Signals, data representation, and neural networks. Artif. Intell. Rev. 2024, 57, 301. [Google Scholar] [CrossRef] [Scilit]
  28. Yu, T.; Hu, X.; He, Y.; Wu, W.; Gu, Z.; Yu, Z.; Li, Y.; Wang, F.; Xiao, J. Multi-View Self-Supervised Learning Enhances Automatic Sleep Staging from EEG Signals. IEEE Trans. Biomed. Eng. 2025, 72, 3056–3070. [Google Scholar] [CrossRef] [Scilit]
  29. Jia, Z.; Lin, Y.; Wang, J.; Ning, X.; He, Y.; Zhou, R.; Zhou, Y.; Lehman, L.w.H. Multi-view spatial-temporal graph convolutional networks with domain generalization for sleep stage classification. IEEE Trans. Neural Syst. Rehabil. Eng. 2021, 29, 1977–1986. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  30. Mao, Y.; Ma, X.; Kuang, H.; Liu, X. MVFSleepNet: Multi-View Fusion Network for Automatic Sleep Staging. In Proceedings of the 2024 IEEE 7th Information Technology, Networking, Electronic and Automation Control Conference (ITNEC), Chongqing, China, 20–22 September 2024; IEEE: New York, NY, USA, 2024; Volume 7, pp. 39–43. [Google Scholar]
  31. Radha, M.; Fonseca, P.; Moreau, A.; Ross, M.; Cerny, A.; Anderer, P.; Long, X.; Aarts, R.M. A deep transfer learning approach for wearable sleep stage classification with photoplethysmography. npj Digit. Med. 2021, 4, 135. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  32. Mikkelsen, K.B.; Villadsen, D.B.; Otto, M.; Kidmose, P. Automatic sleep staging using ear-EEG. Biomed. Eng. Online 2017, 16, 111. [Google Scholar] [CrossRef] [Scilit]
  33. Han, F.; Yang, P.; Feng, Y.; Jiang, W.; Zhang, Y.; Li, X.Y. Earsleep: In-ear acoustic-based physical and physiological activity recognition for sleep stage detection. Proc. ACM Interact. Mob. Wearable Ubiquitous Technol. 2024, 8, 1–31. [Google Scholar] [CrossRef] [Scilit]
  34. Toften, S.; Pallesen, S.; Hrozanova, M.; Moen, F.; Grønli, J. Validation of sleep stage classification using non-contact radar technology and machine learning (Somnofy®). Sleep Med. 2020, 75, 54–61. [Google Scholar] [CrossRef] [Scilit]
  35. Wang, Z.; Gong, Z.; Wang, T.; Dong, Q.; Huang, Z.; Zhang, S.; Ma, Y. MASleepNet: A Sleep Staging Model Integrating Multi-Scale Convolution and Attention Mechanisms. Biomimetics 2025, 10, 642. [Google Scholar] [CrossRef] [Scilit]
  36. Zheng, Y.; Luo, Y.; Zou, B.; Zhang, L.; Li, L. MMASleepNet: A multimodal attention network based on electrophysiological signals for automatic sleep staging. Front. Neurosci. 2022, 16, 973761. [Google Scholar] [CrossRef] [Scilit]
  37. American Academy of Sleep Medicine. The AASM Manual for the Scoring of Sleep and Associated Events: Rules, Terminology and Technical Specifications, version 2.6 ed.; American Academy of Sleep Medicine: Darien, IL, USA, 2020. [Google Scholar]
  38. Hu, J.; Shen, L.; Sun, G. Squeeze-and-Excitation Networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Salt Lake City, UT, USA, 18–23 June 2018; pp. 7132–7141. [Google Scholar]
  39. Gulati, A.; Qin, J.; Chiu, C.C.; Parmar, N.; Zhang, Y.; Yu, J.; Han, W.; Wang, S.; Zhang, Z.; Wu, Y.; et al. Conformer: Convolution-augmented transformer for speech recognition. arXiv 2020, arXiv:2005.08100. [Google Scholar] [CrossRef] [Scilit]
  40. Liu, Z.; Mao, H.; Wu, C.Y.; Feichtenhofer, C.; Darrell, T.; Xie, S. A convnet for the 2020s. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA, 16–24 June 2022; pp. 11976–11986. [Google Scholar]
  41. Mousavi, S.; Afghah, F.; Acharya, U.R. SleepEEGNet: Automated sleep stage scoring with sequence to sequence deep learning approach. PLoS ONE 2019, 14, e0216456. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  42. Fiorillo, L.; Favaro, P.; Faraci, F.D. Deepsleepnet-lite: A simplified automatic sleep stage scoring model with uncertainty estimates. IEEE Trans. Neural Syst. Rehabil. Eng. 2021, 29, 2076–2085. [Google Scholar] [CrossRef] [Scilit] [PubMed]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.