arXiv:2611.00669cs.AROct 2026

Manuscript Offprint

arXiv:2611.00669

FPGA Acceleration of CNN-BiLSTM for EEG-Based Sleep Staging Featuring FFT-Based Non-Unit Stride Fast Convolution

Aaron Zhou, Yaqian Xu, Chen Chen, James Yen, Weihang Zheng, Mark Zhao, Mingzhe Sun, Naize Yang, Andrew G. Richardson, Xilin Liu

Aaron Zhou, Yaqian Xu, Graduate Student Member, IEEE, Chen Chen, James Yen, Weihang Zheng, Mark Zhao, Mingzhe Sun, Naize Yang, Andrew G. Richardson, Senior Member, IEEE, and Xilin Liu, Senior Member, IEEE

Abstract—Deep learning (DL) models for real-time wearable sleep staging often rely on long-kernel temporal convolutions, a requirement that current accelerators struggle to support efficiently. To overcome this, we present an FPGA-based CNN-BiLSTM accelerator that incorporates several algorithm-hardware co-design techniques to enable efficient edge inference. Central to this design is an FFT-based non-unit stride fast convolution, which performs accumulation in the frequency domain to enable a single IFFT per block, reducing post-processing complexity to O(Nlog⁡N)O(N \log N). On the target long-kernel convolution layer, this yields a 20.5×20.5\times reduction in arithmetic operations. Power-of-two quantization is applied across the pipeline, including FFT-based convolution and BiLSTM activations, with an average accuracy degradation of only 0.11% relative to the floating-point baseline across all subjects on the public MASS-SS3 dataset. Additional optimizations, including block convolution, depth-first execution, and hardware engine reuse minimize memory access and enhance resource utilization. The accelerator, implemented on a Xilinx Zynq-7000 FPGA, operates at 10 MHz and consumes 11 mW of dynamic power including data handling and configuration overhead from a microcontroller. The design achieves a DSP power efficiency of 0.91 GOPS/W/DSP using only 4 DSPs, demonstrating scalable and energy-efficient DL acceleration for sleep staging that can be extended to other wearable applications.

Index Terms—Edge DL, EEG, sleep staging, CNN, BiLSTM, FFT-based convolution, non-unit stride, power-of-two quantization, FPGA

I. INTRODUCTION

Sleep is essential for cognitive and physiological health, and sleep disorders are widespread and associated with severe health consequences [1]. Sleep modulation has emerged as a promising neuromodulation strategy for improving sleep quality and treating sleep-related disorders, but its effectiveness depends on accurate, real-time tracking of transitions among sleep stages, including NREM stages N1–N3, REM sleep, and wakefulness [2]. Recent closed-loop paradigms employ real-time sleep stage classification (i.e., sleep staging) to deliver stage-specific stimulation, enabling causal investigation of sleep functions and therapeutic interventions, such as memory enhancement through stimulation during deep sleep [3]—

[5]. A key requirement of such systems is automatic, low-latency sleep staging based on physiological signals such as EEG, which cannot rely on manual scoring used in offline studies [6].

Deep learning (DL) has become the dominant approach for automatic sleep staging due to its ability to learn discriminative temporal features directly from physiological signals [7]–[9]. However, existing approaches are computationally intensive and often depend on multiple physiological signal channels, limiting their suitability for wearable, energy-constrained closed-loop systems [3], [10], [11]. Although lightweight models have been explored, their deployment on low-power wearable devices remains challenging because long-kernel convolutions dominate the computational workload, while recurrent inference introduces sequential data dependencies, nonlinear activations, and additional memory traffic [10], [12].

Existing hardware DL accelerators have primarily been developed for computer-vision and natural language processing workloads using small convolution kernels, where techniques such as Winograd or conventional FFT-based convolution are effective [13], [14]. However, these approaches do not efficiently support the large-kernel, non-unit-stride convolutions commonly found in EEG-based sleep-staging models. Furthermore, hardware support for recurrent networks often requires dedicated computation units that increase resource utilization and power consumption. Efficient acceleration of these networks therefore remains an important challenge for sleep staging, as well as many other EEG-based wearable applications.

To address these challenges, we present a DL accelerator for single-channel EEG-based sleep staging, with a focus on algorithm-hardware co-design for energy-efficient inference and have fully validated our design on a Xilinx Zynq-7000 FPGA. In contrast to prior work that emphasizes compact classifiers or generic CNN acceleration, this work targets a class of workloads commonly found in EEG-based applications that require long temporal context. Through FFT-based non-unit stride convolution and fixed-point recurrent inference with unified hardware engine reuse, this design enables practical closed-loop sleep staging under strict power and memory constraints. The key contributions of this work are summarized below.

• Efficient FFT-based acceleration of large-kernel convolutions with non-unit stride: We propose an FFT-based fast convolution formulation for CNN layers with

Aaron Zhou, Yaqian Xu, Chen Chen, James Yen, Weihang Zheng, Mark Zhao, Mingzhe Sun, Naize Yang, and Xilin Liu are with the Edward S. Rogers Sr. Department of Electrical and Computer Engineering, University of Toronto, Toronto, ON M5G 2A2, Canada.

Andrew G. Richardson is with the Department of Neurosurgery, University of Pennsylvania, Philadelphia, PA 19104, USA.

Copyright 2026 The Authors. Licensed under CC BY 4.0.

large kernel sizes (e.g., 1280) and non-unit strides (e.g., 12), which is not efficiently supported by conventional CNN accelerators or existing FFT-based acceleration techniques. By enabling frequency-domain accumulation and avoiding O(SNlog⁡N)O(SN \log N) post-processing computation, the proposed method reduces the arithmetic complexity of the dominant convolution layer by 20.5×20.5 \times while remaining hardware-efficient.

  • BiLSTM acceleration with unified hardware support and resource reuse: To support temporal context modeling essential for sleep staging, the accelerator reuses the same computation engine for CNN and BiLSTM operations, reducing hardware redundancy and enabling concurrent operations. The BiLSTM engine also incorporates linear interpolation with minimal look-up operations for activation functions such as tanh, and shares look-up tables (LUTs) between tanh and sigmoid functions to further reduce hardware overhead.

  • Algorithm-hardware co-design for memory- and power-efficient inference: We pre-process the model with block convolution and tiling to minimize memory footprint prior to inference. A depth-first execution scheme at the hardware level complements our strategies to minimize external memory traffic, which is a primary contributor to energy consumption. These techniques are co-designed with the stride-based FFT formulation to enable efficient execution of long-kernel convolutions under strict power and memory constraints.

  • Power-of-two (PoT) quantization supporting mixed FFT convolution and BiLSTM nonlinear activations: We develop a PoT quantization scheme with scale selection configured for mixed conventional/FFT convolution and BiLSTM nonlinear activations. This enables efficient fixed-point arithmetic while suppressing accumulated numerical noise in large-point FFT-based convolution pipelines. The approach preserves numerical fidelity and simplifies hardware scaling operations, resulting in a negligible 0.11% average accuracy degradation relative to the floating-point baseline and providing a practical trade-off between numerical robustness and hardware simplicity.

The paper is organized as follows. Section II introduces the fast convolution algorithm and the quantization scheme for the CNN-BiLSTM model. Section III details the design and implementation of the FPGA accelerator with memory and power optimization techniques. Section IV presents the experimental results. Section V provides a comparative analysis and Section VI concludes the paper.

References (48)