Automated sleep stage classification based on single channel EEG is a promising pathway to large-scale sleep monitoring outside the polysomnographic lab. This paper proposes SleepEffFormer TAS, an efficient and interpretable system that consists of a four-stride block 1D CNN feature extractor, two layers of pre-normalization Transformer encoder, and a non-parametric Transition-Aware Smoothing (TAS) layer that suppresses physio- logically unrealistic transitions between predicted stages. When tested on the Sleep EDF Expanded dataset (78 all-night EEG recordings, Fpz-Cz channel, subject-wise held-out split), the proposed model reaches 83.9% accuracy, 78.9% macro F1 score, and Cohen’s κ of 0.765 with around 367 K learnable parameters, performance comparable to AttnSleep while using 3–5× fewer parameters. Ablation study confirms that the Transformer encoder brings a performance improvement of 6.6 pp in macro F1 over a CNN-based system, the TAS layer increases performance by 1.8 pp without any trainable parameters, and weighted loss is critical for the minority sleep stage N1 classification task. The attention maps generated by the proposed model reveal physiologically sensible sleep stage-related EEG features. The source code of this project is available at: https://github.com/Nishi-Kanta-Paul/SleepStage.
Freezing of gait (FoG) is one of the most debilitating episodic motor symptoms of Parkinson’s disease (PD). FoG detection from wrist worn inertial signals poses challenging problems such as extreme data class imbalance (only 12–18% of signal windows are FoG), low frequency postural instabilities alongside diagnostically crucial 3–8Hz rhythmic tremors, and the need for subject independent generalisation. To address these, this paper presents WaveFoG, a novel wavelet gated Transformer architecture that combines multi scale representations from discrete wavelet transform (DWT) with a dual branch encoder. A 1D CNN captures local gait texture, and a Transformer captures global temporal context. They are fused via a sigmoid gating fusion layer that modulates the encoder output based on the DWT sub-band descriptors. Trained with focal loss and evaluated on the public Kaggle TLVMC FoG Prediction dataset under subject independent grouped ten fold cross validation (SI-CV), WaveFoG achieves a mean F1-score of 0.875 ± 0.017 and AUPRC of 0.833 ± 0.020, exceeding single branch baselines (1D CNN,Bi-LSTM,andvanilla Transformer) by upto5.4pponF1. Temporalsaliency maps highlight temporal patterns that are consistent with reported characteristics of FoG onset. The source code of this project is available at: https://github.com/Shihabul-Shuvo/WaveFoG.