1. Introduction
Sleep staging is a central component of clinical sleep assessment and sleep research. In standard practice, a polysomnographic (PSG) recording is divided into 30 s epochs, and each epoch is assigned to wakefulness (W), one of three non-rapid-eye-movement stages (N1–N3), or rapid-eye-movement (REM) sleep [
1]. Reliable staging requires both local physiological evidence and temporal context. Within an epoch, electroencephalogram (EEG), electrooculography (EOG), and submental electromyography (EMG) signals contain complementary stage-related patterns, including changes in background rhythm, slow waves, spindles, K-complexes, eye movements, and muscle tone. At the same time, sleep evolves through structured transitions, making neighboring epochs informative when the target epoch is ambiguous. N1 is a clear example: it is transitional, comparatively rare, and less consistently identified even by expert scorers [
1,
2].
Modern neural systems increasingly learn representations directly from raw EEG or PSG signals while also modeling temporal dependencies across sleep epochs. Early influential architectures combined convolutional feature extraction with recurrent or sequence modeling [
3,
4,
5,
6,
7]. Later work expanded temporal modeling through longer sequence contexts and through attention and transformer architectures [
8,
9,
10]. More recent developments include transformer models designed for flexible multichannel PSG, large-scale pretrained sleep representations, and approaches targeting generalization across datasets and recording configurations, reflecting a broader shift toward representations that can be reused across channels, cohorts, and downstream tasks [
11,
12,
13,
14,
15,
16].
Graph neural networks offer a complementary inductive bias for multichannel PSG by representing channels as nodes and their anatomical, functional, or learned relations as edges. GraphSleepNet learns an adaptive functional graph and combines graph convolution with spatial–temporal attention [
17]. MSTGCN adds a coordinate-based graph view and adversarial domain generalization [
18], whereas ProductGraphSleepNet learns spatial and temporal factor graphs [
19]. JK-STGCN combines functional and temporal-information graphs through jumping connections [
20], and STDP-GCN constructs directed channel relations from spike timing [
21]. Other graph-based sleep-staging approaches have explored self-attention graphs, multi-branch graph-convolutional fusion, and attention-based spatial–temporal graph modeling [
22,
23,
24]. The five models considered in this study therefore represent distinct graph-design principles, spanning adaptive, multi-view, product, jumping-knowledge, and spike-derived constructions.
These models differ not only in their graph structures but also in how they encode PSG signals before graph processing. GraphSleepNet and ProductGraphSleepNet use nine differential-entropy (DE) features per channel, MSTGCN and JK-STGCN first train a two-branch convolutional FeatureNet, and STDP-GCN combines a spike-derived graph with spectral features computed from the residual waveform. More broadly, the choice of data representation can substantially influence time-series classification performance [
25]. Because these graph models were developed together with different representation pipelines, the contribution of the node representation is difficult to separate from that of the graph architecture itself. This heterogeneity raises a simple question: can the same learned raw-waveform encoder improve graph models built on different feature representations and graph-learning principles?
We address this question by replacing each model’s original node representation with the same compact one-dimensional CNN trunk while retaining its graph construction, graph convolution, temporal context, and prediction modules. The same convolutional architecture is used across all backbones and datasets, without configuration-specific architectural tuning. We compare three training strategies: supervised epoch-level pretraining followed by a frozen graph stage (CNN–2S), joint training from random initialization (CNN–E2E), and pretraining followed by joint fine-tuning (CNN–PTFT). The resulting four frontend conditions, including the reproduced Native frontend, are evaluated for five graph backbones on five prepared dataset configurations. This provides a common experimental setting for examining the effect of frontend replacement across heterogeneous graph models. The contribution of this study is therefore a controlled evaluation of node-representation learning across established graph architectures, using a shared waveform frontend.
The results show a recurring benefit from replacing the Native frontend with the learned waveform representation. The best CNN regime outperforms the matching Native condition in 22 of the 25 backbone–dataset combinations. Across the complete grid, two-stage training increases mean macro-F1 by 2.99 percentage points, while end-to-end training and pretraining followed by fine-tuning yield gains of 2.34 and 2.53 points, respectively. The most consistent improvements are observed for models whose Native frontends rely on fixed spectral representations. Gains are positive on average for every sleep stage and are largest for N1 and REM. The normalization controls show that the gains are not explained by waveform z-scoring alone and are retained when later epochs are excluded from the normalization statistics. The two-stage encoder also remains effective when transferred across datasets. In the fixed-graph analysis, most of the improvement is retained when the Native graph is held fixed. Together, these findings support treating node-representation learning as an explicit part of graph-based sleep-staging design.
2. Materials and Methods
2.1. Study Design and Problem Formulation
Let
N be the number of PSG channels and let
denote the 30 s waveform of channel
during epoch
t, sampled at 100 Hz, with
samples. The corresponding multichannel epoch
is
Each epoch has a sleep-stage label
, where
Let
m index an evaluated graph backbone. Backbone
m uses an odd-length context
of length
,
to predict the stage
of its center epoch, where
is the number of neighboring epochs included on either side.
Each channel and epoch is represented at the graph-model interface by a node vector
, where
is the node-feature width required by backbone
m. We compare the reproduced model-specific representation, denoted
Native, with a shared waveform CNN that is pretrained and frozen (CNN–2S), trained jointly with the graph backbone from random initialization (CNN–E2E), or pretrained and subsequently fine-tuned with the graph backbone (CNN–PTFT). The complete training procedures are described in
Section 2.2.
The representations supplied to backbone
m are
with
r ∈ {CNN–2S, CNN–E2E, CNN–PTFT}. Here,
is the reproduced model-specific frontend,
is the shared CNN with parameters
, and
is a learned projection with parameters
. We refer to the CNN and projection together as the waveform encoder.
Within each backbone, all four conditions use the same prepared epochs, labels, subject partitions, graph-construction mechanism, downstream architecture, and model-specific training objective. They differ only in the node representation and how that representation is trained.
2.2. Shared Waveform Encoder and Training Conditions
The CNN encodes each channel and epoch independently, with the same parameters used for all channels and epochs within a trained model. It comprises four strided one-dimensional convolutional blocks. Each convolution is followed by GroupNorm, GELU activation, and dropout. The number of feature maps increases from 16 to 64, while the temporal resolution is reduced from 3000 to 47 samples (
Table 1).
Adaptive average pooling produces a 64-dimensional vector for each channel and epoch. For GraphSleepNet, ProductGraphSleepNet, and STDP-GCN,
maps this vector to nine node features. For MSTGCN and JK-STGCN, it maps the vector to 256 features. In both cases, the projection is followed by LayerNorm and dropout. Padding, normalization groups, dropout probabilities, and frontend parameter counts are reported in
Supplementary Material S2 and Supplementary Table S3.
2.2.1. CNN–2S
The waveform encoder is pretrained using an auxiliary epoch-level classifier that concatenates the channel representations and applies a 64-unit hidden layer followed by a five-class output layer. Training uses unweighted cross-entropy. The validation-selected encoder is then frozen and supplies fixed node features during graph-model training. It is applied once to every retained channel and epoch to generate the node representations before graph-model training begins.
2.2.2. CNN–E2E
The waveform encoder and graph model are jointly optimized from random initialization using the context-level objective. The reproduced model-specific objectives, including the graph penalties and MSTGCN domain loss, are retained. For ProductGraphSleepNet and MSTGCN, gradients from the auxiliary graph-regularization terms are detached from the waveform encoder. Classification gradients, and MSTGCN domain gradients, continue to propagate through it.
2.2.3. CNN–PTFT
The waveform encoder is first pretrained and selected using the same epoch-level procedure as CNN–2S. The selected convolutional trunk and projection are transferred, while the auxiliary classifier is discarded. A new graph backbone and final classifier are initialized, and the complete model is then jointly optimized using the same context-level objective as CNN–E2E.
2.3. Native Frontends and Graph Backbones
The node vectors are stacked as . A channel graph at epoch t is , where contains the PSG channels, contains the connected channel pairs, and assigns their model-specific edge weights. Depending on the backbone, the context therefore induces either one graph, a graph at every context position, or multiple graph views. ProductGraphSleepNet additionally defines a temporal graph whose nodes are the context positions rather than the channels.
GraphSleepNet, ProductGraphSleepNet, MSTGCN, and JK-STGCN use model-specific graph-filter recurrences. These backbones differ in their feature-to-adjacency mapping, adjacency and Laplacian normalization, symmetrization, and graph-filter recurrence. Each model-specific formulation is retained across all frontend conditions, although the resulting feature-dependent adjacencies can change when the node representation changes. The exact operations are summarized in
Supplementary Material S4.
2.3.1. GraphSleepNet
The
Native frontend represents each channel and epoch using nine differential-entropy (DE) features computed over overlapping frequency bands (
Supplementary Material S3). A five-epoch context shares a functional channel graph learned from absolute differences between the center epoch’s node features. Temporal attention reweights the context, and spatial attention modulates the graph filters before node-axis convolution, residual mapping, and classification. The CNN replaces the DE vector with a nine-dimensional learned representation used both to learn the functional adjacency and as the graph’s node attributes.
2.3.2. ProductGraphSleepNet
The Native frontend uses the same nine-band DE representation for every epoch in a nine-epoch context. These features induce two learned factor graphs: a spatial graph over channels, based on pairwise differences averaged over context positions, and a temporal graph over context positions, based on differences averaged over channels. Spatial graph convolution is applied at each position. A bidirectional gated recurrent unit (GRU) and graph-wise attention informed by the temporal graph then produce the prediction. The CNN supplies nine learned node features to both factor-graph learners, while their graph objectives and downstream modules are unchanged.
2.3.3. MSTGCN
The
Native frontend is a two-branch one-dimensional FeatureNet with short- and long-kernel pathways whose outputs are concatenated into a 256-dimensional representation per channel. Each of the five context positions has a learned functional channel graph and a fixed coordinate-based graph generated from the available channels (
Supplementary Material S4; Supplementary Table S5). Separate spatial–temporal branches process the two graph views before fusion, followed by a sleep-stage head and a gradient-reversal subject-domain head. The CNN replaces FeatureNet at the same 256-dimensional node interface without changing either graph branch or prediction head.
2.3.4. JK-STGCN
The Native frontend uses the same two-branch FeatureNet design to produce 256 features per channel. A center-epoch functional graph and a context-derived temporal-information graph encode complementary channel relations over five epochs. Successive graph layers operate on these adjacencies, and a jumping connection carries the earlier representation into the second layer before temporal modeling and classification. The CNN replaces FeatureNet at the same node interface without changing either graph learner or the jumping connection.
2.3.5. STDP-GCN
The
Native pipeline applies Ben’s Spiking Algorithm (BSA) to each channel waveform. Nine spectral values computed from the BSA residual form the node features, while a spike-timing-dependent plasticity (STDP) rule converts relative spike timing into a directed channel adjacency for each epoch (
Supplementary Material S3). Unlike the other backbones, STDP-GCN propagates features directly using this adjacency. Two graph layers are followed by convolution over the five-epoch context, a residual route, and classification. The same precomputed epoch-specific BSA/STDP adjacencies are retained across all frontend conditions.
The model-specific frontends and graph-construction procedures otherwise follow the original papers and released implementations. STDP-GCN uses its BSA/STDP adjacency in every frontend condition, as described in
Supplementary Material S4.
Table 2 summarizes the controlled intervention. Thus, the shared CNN is tested across adaptive, product, multi-view, jumping-knowledge, and spike-derived graph constructions while leaving the graph reasoning of each backbone intact.
2.4. Fixed-Native-Adjacency Isolation Experiment
In GraphSleepNet and ProductGraphSleepNet, the graph is learned from the node features and therefore changes when the Native frontend is replaced by the CNN. Consequently, the main comparison between the Native and CNN conditions reflects both a change in node representation and a possible change in the graph derived from that representation. To separate these effects, we introduced an additional condition in which the CNN node features were used while the graph produced by the corresponding Native model was kept fixed.
We therefore considered three endpoints. is the original Native condition, with Native node features and the graph learned from them. In , only the node representation is replaced by the CNN, while the Native graph is kept fixed. Finally, corresponds to the main CNN condition, in which both the node features and the graph learned from those features come from the CNN representation. Thus, measures the effect of replacing the node representation under the same graph, while measures the additional effect of allowing the graph to adapt to the CNN representation.
The fixed-graph condition otherwise retained the architecture, temporal context, training strategy, subject partitions, and evaluation protocol of the corresponding main experiment. The analysis included both graph backbones across all five datasets and all three CNN training regimes. For each fold, the adjacency was generated using the corresponding Native model and was kept fixed during CNN-model training. For GraphSleepNet, the Native functional adjacency was retained, while for ProductGraphSleepNet, both the spatial channel adjacency and the temporal-context adjacency were retained.
2.5. Datasets and Preprocessing
We evaluated five dataset configurations spanning different cohorts, acquisition systems, channel sets, and PSG modalities. Sleep-EDFx and its commonly used Sleep-EDF20 subset contain Sleep Cassette recordings from healthy participants [
26,
27]. ISRUC-SG1 contains participants with sleep disorders, some of whom received sleep medication, whereas ISRUC-SG3 contains healthy participants [
28]. ANPHY contains high-density EEG recordings from healthy participants [
29]. From ISRUC-SG1, 33 recordings were excluded because they lacked at least one required channel or derivation. The retained dataset sizes, stage distributions, and channel configurations are summarized in
Table 3.
2.5.1. Data Preprocessing
Sleep-stage annotations were mapped to the common five-class label set comprising Wake, N1, N2, N3, and REM. For Sleep-EDF20 and Sleep-EDFx, stages 3 and 4 were merged into N3, while movement and unknown epochs were excluded. The retained interval extended from 30 min before the first non-Wake epoch to 30 min after the last non-Wake epoch. For ANPHY, N4 was mapped to N3 and invalid, light, and unscored epochs were excluded. For ISRUC-SG1 and ISRUC-SG3, scorer 1 was used for the primary analysis, and the final 30 epochs of each recording were discarded because of noise [
28]. Scorer 2 was used as an alternative evaluation reference in a sensitivity analysis.
Continuous signals were filtered using zero-phase fourth-order Butterworth IIR filters and, where required, resampled to 100 Hz before being partitioned into non-overlapping 30 s epochs. Each resulting epoch contains
samples per channel. Dataset-specific source sampling rates and pre-conversion passbands are reported in
Supplementary Material S1.1.
2.5.2. Frontend-Specific Transformations
The three CNN regimes use waveform z-score normalization, with statistics computed separately for each channel and recording. The original model-specific frontends retain their reproduced input transformations, as summarized in
Table 4.
2.6. Normalization Control Experiments
To assess the contribution of input normalization, the applicable Native frontends were evaluated on all five dataset configurations after applying the CNN’s recording-wise, per-channel waveform z-score. The remaining frontend and graph operations were unchanged. MSTGCN already uses the target waveform normalization in its Native pipeline and therefore requires no additional matched condition. For STDP-GCN, the primary control applied the z-score to the node-feature path while retaining the original BSA/STDP adjacency.
To test whether full-recording normalization affected the results, all three CNN regimes were also evaluated using available-history statistics. For each channel and epoch, the mean and standard deviation were estimated from the beginning of the retained recording through the current epoch, with no contribution from later epochs. All other experimental settings were unchanged. The bidirectional epoch context of the graph models was retained.
2.7. Training and Evaluation Protocol
2.7.1. Subject-Wise Evaluation
Each dataset was evaluated using five-fold subject-wise cross-validation, with all recordings from a participant assigned to the same fold. Participants were allocated greedily to capacity-balanced folds using their sleep-stage histograms. For one evaluation split, one fold served as the test set, one fold as the validation set, and the remaining three folds as the training set. All backbones used the same epochs, label mapping, and subject partitions. Within each backbone, all four frontend conditions used identical context centers and target labels.
After partitioning, context windows were formed from consecutive epochs within each continuous recording segment and did not cross recording boundaries or gaps introduced by excluded epochs. ProductGraphSleepNet uses
, whereas the other four backbones use
. The fold-allocation procedure and per-fold subject counts are provided in
Supplementary Material S1.2.
2.7.2. Optimization and Model Selection
Every trainable stage was optimized using Adam with a batch size of 64 for at most 200 epochs. No dataset-specific hyperparameter optimization was performed. For the Native baselines, the backbone-specific initial learning rates and weight decay settings follow the corresponding reference configurations. The CNN conditions retain the backbone architectures, graph-construction operations, model-specific objectives, loss coefficients, and weight-decay settings. Their condition-specific optimizer changes are limited to learning rates and gradient clipping. Unweighted cross-entropy was used for all stage-classification objectives and was held fixed across the paired Native and CNN conditions.
Initial learning rates ranged from
to
and were fixed across datasets. Weight decay was zero except for STDP-GCN, for which it was
. Gradient-value clipping with threshold 1 was applied to selected configurations. The selected architecture and optimization settings were held fixed across datasets and cross-validation splits. Exact condition-specific settings are reported in
Supplementary Material S5 and Supplementary Table S6.
Beginning at epoch 15, a plateau scheduler monitored validation macro-F1 and reduced the learning rate by a factor of 0.5 after six epochs without improvement, down to a minimum of . Checkpoints were ranked using the five-epoch moving average of validation macro-F1. Early-stopping checks began after epoch 20, and training stopped after ten further epochs without improvement.
2.7.3. Evaluation Metrics
The validation fold was used for model selection, whereas final performance was computed on the held-out test fold. Macro-F1 is used as the primary metric and is defined as the unweighted mean of the five class-wise F1 scores over the fixed label set . We additionally report accuracy, balanced accuracy, Cohen’s , and class-wise F1. Metrics are computed by pooling all eligible epochs within each fold. Results are reported as mean ± population standard deviation across the five test folds.
2.8. Cross-Dataset Encoder Transfer
We assessed the cross-dataset portability of CNN–2S using Sleep-EDFx and ISRUC-SG1 as source datasets. Sleep-EDFx encoders were transferred to ISRUC-SG1, ISRUC-SG3, and ANPHY. ISRUC-SG1 encoders were transferred to Sleep-EDF20, Sleep-EDFx, ISRUC-SG3, and ANPHY. Together, the two source protocols covered seven independent source–target pairs across all five graph backbones.
For each target fold, the source encoder from the matching fold was kept fixed and used to extract features from every target channel. These features were then used to train a new graph backbone on the target dataset, with evaluation performed on the same held-out subjects as in the within-dataset experiments. Since the encoder processes each channel separately using the same weights, it can be transferred between datasets with different numbers of channels. We refer to this transferred condition as CNN–2S-XD.
2.9. Statistical Analysis
We quantified uncertainty for each CNN condition relative to the matching Native condition within every dataset and backbone, giving 75 predefined paired comparisons. Out-of-fold predictions were aligned exactly by subject, recording, original epoch index, reference label, and held-out fold. Each subject contributed once to the combined out-of-fold evaluation. For a given comparison, the effect estimate was the candidate-minus-Native difference obtained after pooling the subject-specific confusion matrices and recomputing macro-F1, accuracy, balanced accuracy, Cohen’s , and the five class-wise F1 scores.
Confidence intervals were obtained with a paired cluster bootstrap using the subject as the resampling unit. We drew 10,000 bootstrap samples of subjects with replacement, retained all recordings and epochs belonging to each drawn subject, and report two-sided percentile 95% confidence intervals. For the macro-F1 metric, two-sided permutation p-values were computed from 10,000 paired swaps of the two condition assignments within each subject. Holm’s method controlled the family-wise error rate across all 75 predefined macro-F1 comparisons, treated as a single family. Statistical support was assessed at an adjusted . Accuracy, balanced accuracy, Cohen’s , and class-wise F1 are presented with paired 95% confidence intervals without additional hypothesis tests.
For aggregate summaries, paired subject resampling was performed independently within each fold and dataset, and the resulting effects were averaged across folds and equally across datasets. These intervals quantify subject-sampling uncertainty conditional on the five evaluated datasets. The complete per-configuration tables, aggregate summaries, and paired analyses retain all 25 backbone–dataset combinations.
For the ISRUC scorer-reference sensitivity analysis, the same out-of-fold predictions from models trained and selected using scorer 1 were re-evaluated against scorer 2 at the corresponding retained epoch positions. Differences between each CNN condition and the matching Native condition, together with paired confidence intervals, were then computed using the same subject-level procedure across the 30 ISRUC backbone–dataset–regime comparisons.
4. Discussion
The results show that node representation can substantially affect the performance of graph-based sleep-staging models. The best CNN condition exceeds the matching Native frontend in 22 of the 25 backbone–dataset combinations, and the complete-grid summaries show positive mean effects across macro-F1, accuracy, balanced accuracy, Cohen’s , and all five sleep stages. The subject-paired analysis supports this overall pattern, with particularly consistent improvements for GraphSleepNet and STDP-GCN. At the same time, the magnitude of the gains differs substantially across backbones, indicating that the benefit of the learned frontend depends on the representation it replaces.
The subject-paired analysis provides inferential support for this pattern. Of the 75 predefined CNN–Native comparisons, 42 have macro-F1 confidence intervals entirely above zero, and 27 positive effects remain significant after Holm correction across the full comparison grid. Only two comparisons have confidence intervals entirely below zero, and neither remains significant after correction. These recurring effects remain when subjects, rather than epochs or folds, are treated as the inferential units.
4.1. Representation and Graph Construction
The largest and most consistent gains occur when the CNN replaces fixed spectral summaries. Under CNN–2S, the mean macro-F1 gains are 4.80 points for GraphSleepNet, 3.46 points for ProductGraphSleepNet, and 6.27 points for STDP-GCN. GraphSleepNet and STDP-GCN improve under every CNN training strategy on every dataset. These results show that replacing the evaluated differential-entropy and spike-residual representations with the shared waveform encoder can provide more useful node features.
For GraphSleepNet and ProductGraphSleepNet, the adjacency is learned from the node features, so replacing the Native frontend can affect both the representation and the graph constructed from it. The fixed-graph analysis shows that most of the improvement is retained when the Native graph is kept unchanged. This suggests that the main benefit comes from the CNN node representation itself, while adapting the graph to those features provides only a limited additional contribution. STDP-GCN provides a complementary control because its spike-derived adjacency is held fixed across frontend conditions. Its recurring improvements likewise show that a stronger node representation can improve performance without changing the graph topology or edge weights.
The normalization controls help separate the effect of waveform normalization from that of the CNN representation. Matching the CNN normalization did not produce a consistent improvement in the Native frontends, whereas CNN–2S remained better across all applicable comparisons. Replacing full-recording statistics with available-history estimates also had little effect on the CNN results, while the gains over Native were preserved. Together, these findings indicate that the broader improvements are not explained by waveform normalization or by the use of later-recording samples in its statistics.
MSTGCN and JK-STGCN provide a useful counterpoint because their Native frontends are already supervised convolutional networks. Replacing FeatureNet produces smaller and more dataset-dependent changes. For both models, the replacement is also more compact: at the 256-dimensional interface, the waveform encoder uses 72,864 parameters compared with 184,288 for FeatureNet, yielding a reduction of 60.5%. This shows that increased frontend capacity alone cannot explain the overall pattern of gains. The positive aggregate results for CNN–E2E, which starts from random initialization without separate epoch-level pretraining, also show that the improvements are not limited to the pretrained CNN conditions.
The class-wise results are consistent with this interpretation. N1 and REM show the largest recurring gains, while W, N2, and N3 also improve on average. The larger gains for N1 and REM suggest that the learned encoder captures within-epoch information that is represented less effectively by the evaluated fixed spectral summaries.
The ISRUC scorer-reference analysis shows that the overall CNN–Native pattern is largely preserved when scorer 2 is used as the evaluation reference. The N1 gains also remain positive on average, although their magnitude is reduced. This suggests that the observed representation differences are not specific to evaluation against scorer 1, while the stage-specific estimates for N1 are more sensitive to the annotation reference.
Most of the evaluated graph-based sleep-staging methods were originally developed with different model-specific representations alongside their graph and temporal components [
17,
18,
19,
20,
21]. The present comparison shows that replacing the node representation, without redesigning the downstream graph architecture, can produce substantial performance differences. This is consistent with the broader observation that representation choice can strongly affect time-series classification performance [
25].
Taken together, these results support treating node-representation learning as a primary design choice, rather than a fixed preprocessing step, in graph-based sleep staging.
4.2. Cross-Dataset Portability
The cross-dataset experiments extend the within-dataset findings by showing that the CNN representation remains useful when transferred between datasets. Across both source protocols, the transferred encoder improved on the Native frontends in most comparisons and remained close to CNN–2S trained directly on the target dataset. Similar results with Sleep-EDFx and ISRUC-SG1 as source datasets further suggest that this behavior is not specific to a single source.
The largest transfer gains were again observed for GraphSleepNet, ProductGraphSleepNet, and STDP-GCN, consistent with the within-dataset results for these backbones. Together, these findings suggest that the channel-wise CNN learns waveform representations that remain useful across datasets and can be reused across different graph-based architectures.
4.3. Training Strategy and Computational Trade-Offs
CNN–2S gives the strongest overall results across the three training strategies. In this setting, the graph model is trained on fixed CNN features, which is consistent with the way several of the evaluated backbones were originally designed to use their node representations.
End-to-end and pretraining followed by fine-tuning perform better in some cases. CNN–E2E gives the highest five-dataset mean for MSTGCN, while CNN–PTFT performs best on average for JK-STGCN, but neither approach is consistently better across the full set of experiments.
CNN–2S also provides the most favorable aggregate performance–cost balance. Its total measured training pipeline time was 28.81 h, compared with 29.64 h for the complete Native experiments, while CNN–E2E and CNN–PTFT required 38.37 and 44.75 h, respectively. At the backbone level, the largest CNN–2S gains occur for STDP-GCN and GraphSleepNet, where training time also increases, whereas the much smaller gains for MSTGCN and JK-STGCN are accompanied by lower training times. ProductGraphSleepNet is a notable exception, combining a substantial performance gain with reduced training time.
4.4. Limitations
A complete comparison of heterogeneous graph-based sleep-staging models is difficult because the methods differ in more than their frontends. They also use different graph constructions, temporal contexts, auxiliary objectives, and training procedures. To make the comparison as consistent as possible, we used the same prepared epochs, subject splits, evaluation procedure, and shared CNN replacement across models while preserving the original graph backbones and model-specific objectives. Nevertheless, some design choices necessarily remain model-specific, and the results should be interpreted as a controlled comparison under a common experimental setting rather than as an absolute ranking of the five architectures.
To keep the comparison consistent, we did not perform separate tuning for each backbone–dataset combination. The same CNN architecture was used across datasets and backbones, apart from the projection required to match the expected node-feature dimensionality, and the main optimization settings were kept fixed across datasets. Likewise, no systematic dataset-specific hyperparameter search was performed for either the CNN conditions or the reproduced Native models. This makes the comparison less dependent on configuration choices, but it also means that the reported results should not be interpreted as the best performance that could be obtained from each individual model. Frontend capacity and training history are also not fully matched across conditions: the shared CNN adds learned capacity for deterministic Native frontends, while CNN–2S and CNN–PTFT include supervised pretraining. These factors, as well as different waveform encoders or dataset-specific tuning, could change the magnitude of the observed differences.
The primary ISRUC analyses used scorer 1 for training, model selection, and evaluation. The scorer-reference sensitivity analysis showed that the overall effects were largely preserved against scorer 2, although N1 remained more sensitive to the annotation reference.
The cross-dataset experiments assess transfer of the frozen CNN representation while the graph model is trained on the target dataset. Broader transfer settings, including pretraining across multiple source datasets, could be explored in future work. The computational analysis is also limited to the observed training runs, and inference time, memory requirements, representation-storage requirements, and energy consumption were not evaluated.
5. Conclusions
This study provides a controlled comparison of node representations in graph-based sleep staging by replacing heterogeneous Native frontends with a common raw-waveform CNN across five graph backbones and five datasets. Across the 25 backbone–dataset combinations, CNN–2S improves mean macro-F1 by 2.99 points and exceeds the matching Native frontend in 21 cases. CNN–E2E and CNN–PTFT also improve mean macro-F1 by 2.34 and 2.53 points, respectively. The gains extend across all five sleep stages and are largest on average for N1 and REM. In the subject-paired analysis, 27 positive effects remain significant after Holm correction, with no significant negative effects.
The largest and most consistent gains occur when the CNN replaces fixed spectral representations, whereas replacing an already supervised convolutional frontend produces smaller and more dataset-dependent changes. The fixed-adjacency and normalization-matched analyses indicate that these improvements are mainly associated with the learned node representation rather than with graph adaptation or waveform normalization alone, and the gains are retained when normalization uses only available-history statistics. The cross-dataset experiments further show that the frozen CNN representation remains useful when transferred to other datasets.
Among the three training strategies, CNN–2S provides the strongest aggregate performance without requiring end-to-end optimization. Its total measured training-pipeline time is 28.81 h, compared with 29.64 h for Native, 38.37 h for CNN–E2E, and 44.75 h for CNN–PTFT, although the effect on training time varies substantially across backbones. The study used a common experimental setup across models and datasets rather than separate tuning for each configuration. Overall, the results support treating node-representation learning as an explicit part of graph-based sleep-staging design and show that a common learned waveform frontend can provide a useful basis for comparing otherwise heterogeneous graph models.