Sleep Stage and Apnea Classification from Single-Lead ECG Using Artificial and Spiking Neural Networks
IECBES 2024 (Best Paper Award)
G Biri*, A Vasilache*, T Hu, M Themistocli, S Nitzsche, J Juhl, C Erler, S Fuhrhop, W Stork, J Becker
Architecture
We integrate LIF neurons into a Deep Convolutional Recurrent (DCR) design, maintaining the CNN structure while replacing traditional ReLU activations with LIF neurons.

Spiking neural network architecture showing the integration of LIF neurons in convolutional layers. Different textures represent convolution, batch normalization, LIF activation, and max-pooling operations. The dotted line indicates the temporal enhancement strategy where data passes through the backbone multiple times.
Temporal Enhancement Strategy
A challenge in applying spiking neurons to non-temporal dimensions of convolutional layers is generating sufficient temporal dynamics for the spiking mechanisms. To address this, the convolutional backbone processes the same input multiple times within a single forward pass. Each iteration’s output is stored, and after a set number of passes, these outputs are summed before being fed to the subsequent network stage.
Sparsity Analysis
Analysis of the LIF layer activations across 67,200 samples revealed high sparsity in the convolutional layers (see Figure below). The three LIF layers achieved average sparsity levels of 85.51%, 80.02%, and 78.62% respectively, with a weighted average sparsity of 84.25% across all layers. This corresponds to approximately 6× reduction in synaptic activations compared to a dense ANN during a single forward pass.

Activation patterns showing spiking behavior across different network layers during ECG-based sleep classification.
However, the temporal repetition strategy creates a trade-off. While the 10 repetitions enable high classification accuracy, they increase the total computational load, resulting in synaptic activations that exceed a single ANN forward pass by approximately 1.6×. Reducing repetitions to fewer than six would make the SNN computationally more efficient than the ANN. Since the observed sparsity was achieved without sparsity-aware training, further computational and energy reductions are possible.
Awards

