# Research on epilepsy detection and recognition based on the combination of time frequency transform and deep learning model

**Authors:** Canhui Wang, Yan Li, Haoran Tang, Tianqi Xu, Zongfang Ren, Ibrahim Sadek, Ibrahim Sadek, Ibrahim Sadek, Ibrahim Sadek

PMC · DOI: 10.1371/journal.pone.0336764 · 2026-03-20

## TL;DR

This paper improves epilepsy detection in EEG signals by combining wavelet transforms with optimized deep learning models.

## Contribution

The novel contribution is optimizing CWT with tailored neural networks and training techniques for better epilepsy detection.

## Key findings

- CWT-based feature extraction outperforms STFT in EEG signal analysis.
- CWT combined with Shallow ConvNet achieves the best overall performance.
- CWT+EEGNet shows excellent precision after integrating attention modules and dynamic adaptations.

## Abstract

To improve the detection performance of epileptic electroencephalogram (EEG) signals and address their non-stationary characteristics,this paper compares the combined effects of continuous wavelet transform (CWT) and short-time Fourier transform (STFT) with three neural network models—EEGNet,AlexNet,and Shallow ConvNet—and incorporates targeted optimization designs. Specifically,Focal Loss,dynamic data augmentation,and an early stopping mechanism are introduced in the training phase to enhance model robustness. For EEGNet,optimizations are implemented by integrating a Squeeze-and-Excitation (SE) attention module,improving depthwise separable convolution,and dynamically adapting dimensions to reduce classification errors. For Shallow ConvNet,improvements include layered convolution for extracting “time-frequency” features and average pooling to adapt to long-duration data blocks. Experiments are conducted based on subject-independent validation,and the results show that the CWT-based feature extraction method outperforms STFT comprehensively. Among all combinations,the CWT+Shallow ConvNet pair exhibits the optimal overall performance,while the CWT+EEGNet combination follows closely with excellent precision. These findings verify the effectiveness of combining precise time-frequency features (extracted by CWT) with optimized neural network models,providing reliable technical support for clinical epileptic EEG signal detection.

## Linked entities

- **Diseases:** epilepsy (MONDO:0005027)

## Full-text entities

- **Diseases:** pain (MESH:D010146), drug (MESH:D000081015), Epilepsy (MESH:D004827), resistant epilepsy (MESH:D000069279), anxiety (MESH:D001007), seizure (MESH:D012640), asphyxiation (MESH:C537571), ORCID iD (MESH:C535742), SE (MESH:D011595), STFT (MESH:D000377), cerebrovascular diseases (MESH:D002561)
- **Chemicals:** AdamW (-)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Figures

24 figures with captions in the complete paper: https://tomesphere.com/paper/PMC13004368/full.md

---
Source: https://tomesphere.com/paper/PMC13004368