Detection of K-complexes in EEG waveform images using faster R-CNN and deep transfer learning

BMC Med Inform Decis Mak. 2022 Nov 17;22(1):297. doi: 10.1186/s12911-022-02042-x.

Abstract

Background: The electroencephalography (EEG) signal carries important information about the electrical activity of the brain, which may reveal many pathologies. This information is carried in certain waveforms and events, one of which is the K-complex. It is used by neurologists to diagnose neurophysiologic and cognitive disorders as well as sleep studies. Existing detection methods largely depend on tedious, time-consuming, and error-prone manual inspection of the EEG waveform.

Methods: In this paper, a highly accurate K-complex detection system is developed. Based on multiple convolutional neural network (CNN) feature extraction backbones and EEG waveform images, a regions with faster regions with convolutional neural networks (Faster R-CNN) detector was designed, trained, and tested. Extensive performance evaluation was performed using four deep transfer learning feature extraction models (AlexNet, ResNet-101, VGG19 and Inceptionv3). The dataset was comprised of 10948 images of EEG waveforms, with the location of the K-complexes included as separate text files containing the bounding boxes information.

Results: The Inceptionv3 and VGG19-based detectors performed consistently high (i.e., up to 99.8% precision and 0.2% miss rate) over different testing scenarios, in which the number of training images was varied from 60% to 80% and the positive overlap threshold was increased from 60% to 90%.

Conclusions: Our automated method appears to be a highly accurate automatic K-complex detection in real-time that can aid practitioners in speedy EEG inspection.

Keywords: Deep learning; EEG; Faster R-CNN; K-complex.

Publication types

  • Research Support, Non-U.S. Gov't

MeSH terms

  • Brain
  • Deep Learning*
  • Electroencephalography
  • Humans
  • Neural Networks, Computer
  • Polysomnography