Manuscript Offprint
arXiv:2611.00669FPGA Acceleration of CNN-BiLSTM for EEG-Based Sleep Staging Featuring FFT-Based Non-Unit Stride Fast Convolution
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 . On the target long-kernel convolution layer, this yields a 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 post-processing computation, the proposed method reduces the arithmetic complexity of the dominant convolution layer by 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.
A. CNN-BiLSTM Model
Recent DL approaches for sleep staging can be broadly categorized into CNN-RNN, hierarchical sequence, attention-based, and fully convolutional architectures. CNN-RNN models such as DeepSleepNet [9], TinySleepNet [10], and IIT-Net [15] combine temporal convolution with recurrent se
quence modeling to jointly capture sleep morphology within an epoch and stage transitions across consecutive epochs, and have demonstrated competitive performance using single-channel EEG. Hierarchical sequence models, including SeqSleepNet [11] and SleepEEGNet [7], further model intra- and inter-epoch temporal dependencies through multi-level recurrent architectures. More recently, attention-based models such as AttnSleep [16] and SleepTransformer [17] have replaced recurrent modules with self-attention to model long-range temporal context, while fully convolutional networks such as U-Sleep and resource-oriented architectures such as MorpheusNet have explored end-to-end convolutional inference or lightweight network redesign for embedded deployment [8], [18]. Despite these architectural differences, many state-of-the-art sleep-staging models share two important computational characteristics: long temporal convolutions for extracting sleep-specific waveforms and temporal modeling across consecutive epochs through recurrent or sequence-processing modules. These operations dominate computation, memory traffic, and hardware complexity, making them the principal bottlenecks for low-power edge deployment [12].
The CNN-BiLSTM topology adopted in this work was previously proposed by our group in [3] and is representative of a broad class of modern sleep-staging models. It combines convolutional feature extraction with BiLSTM-based temporal modeling while operating on a single F4-LER EEG channel. Previous studies have shown that single-channel EEG can effectively capture characteristic sleep events such as K-complexes and sleep spindles, achieving performance comparable to multi-channel approaches when combined with modern DL architectures [9], [10], [19], [20]. This observation is further supported by the work of Korkalainen et al., who directly compared single-channel EEG with a combined EEG+EOG configuration and reported that incorporating EOG improved sleep-staging accuracy by only 0.2% [21]. Using a single EEG channel further reduces sensing complexity, memory bandwidth, and power consumption, making it well suited for wearable and closed-loop sleep-monitoring applications. Since the primary objective of this work is to develop energy-efficient hardware acceleration rather than optimize the neural network architecture, this representative single-channel model provides an appropriate baseline for evaluating the proposed FPGA accelerator.
From a hardware perspective, the selected model exposes the two dominant workloads targeted in this paper. Its dual CNN branches capture complementary low- and high-frequency sleep features through long- and short-kernel convolutions, while the first 1280-tap, stride-12 convolution alone accounts for more than half of the model's arithmetic operations. Meanwhile, the BiLSTM introduces recurrent state storage, nonlinear activation functions, and sequential computation that are common challenges among sequence-based sleep-staging models. Consequently, this CNN-BiLSTM network provides a realistic and challenging benchmark for FPGA accelerator development. Moreover, because the proposed FFT-based non-unit-stride convolution, unified hardware architecture, and power-of-two quantization target these fundamental computational patterns rather than a specific network

Fig. 1. Architecture and key parameters of the CNN-BiLSTM model for sleep staging using a single-channel EEG as input.
implementation, the proposed techniques are readily applicable to other sleep-staging and EEG models exhibiting similar long-kernel convolution and temporal modeling workloads.
The architecture and key parameters of the CNN-BiLSTM model are shown in Fig. 1. The model takes as input 30-second EEG segments sampled at 256 Hz and bandpass filtered between 0.5 and 44 Hz. It consists of two parallel CNN branches followed by a BiLSTM module for temporal sequence modeling. The Shape Path uses a large kernel of size 1280 to capture low-frequency features such as Delta waves and K-complexes in the current epoch [22], producing a feature tensor of . The Detail Path processes three consecutive epochs using smaller kernels of size 128 to extract high-frequency features such as sleep spindles, producing of . The BiLSTM module models inter-epoch temporal dependencies across the detail features, and its outputs are concatenated with the Shape and Detail Path features and passed through fully connected layers to produce the final five-class sleep stage prediction. The model was evaluated on the MASS-SS3 dataset [2], which consists of 62 subjects with sleep-stage annotations following the AASM standard [22]. The training method, evaluation protocol, and experimental results are presented in Section IV.
B. Fast Convolution Algorithm
Convolution operations typically dominate the computational load in CNN-based DL models, and this is particularly pronounced in models that employ large-kernel temporal convolutions for EEG-based inference. In the adopted model, the Shape Path's first convolutional layer alone accounts for over
50% of total model operations, using kernels of size 1280. Reducing the arithmetic complexity of this layer is therefore the most impactful target for lowering power consumption during hardware inference.
Prior works have employed Winograd and FFT-based fast convolution to accelerate small-kernel CNNs such as AlexNet and VGG-16 [13], [14]. However, the large-kernel, non-unit-stride convolutions that dominate our workload fall outside the regime these techniques were designed for, as summarized in Table I. Winograd is inefficient for large kernels, as partitioning the kernel into small tiles and recombining the results introduces control and memory-movement overhead that does not scale favorably with kernel size. FFT-based convolution is better suited to larger kernels, but existing accelerators typically rely on small FFT sizes, such as 4- or 8-point transforms, which still incur similar tiling overheads. Large kernels are more appropriately handled using large-point FFT-based convolution, but a challenge arises with non-unit stride. Directly applying a conventional FFT pipeline in this context is highly inefficient, since only a fraction of the computed outputs (e.g., 1 out of every 12 outputs in the model) is actually required. To handle non-unit stride, prior fast-convolution methods adopt stride-based decomposition [23], [24], in which a non-unit-stride convolution is expressed as a sum of unit-stride sub-convolutions. These methods are formulated around Winograd and accumulate the sub-convolution results in the time domain. A direct combination of stride decomposition with FFT would instead transform each of the unit-stride sub-convolutions independently and accumulate them in the time domain, but this requires a separate IFFT per sub-convolution and therefore scales as , eroding much of the benefit of operating in the frequency domain.
TABLE I COMPARISON OF THE PROPOSED FAST CONVOLUTION WITH PRIOR STRIDED / FFT-BASED APPROACHES
| Method | Kernel Regime | Stride Handling | Post-Proc. Complexity For FFT | IFFTs/ Engine Block | Engine Reuse |
|---|---|---|---|---|---|
| Winograd fast conv. [13] | Small | None (discards) | — | — | No |
| Conventional FFT fast conv. [25] | Large | None (discards) | 1 | No | |
| Winograd stride decomp. [23], [24] | Small | Decomp. | — | — | No |
| stride decomp. [23], [24] + FFT | Large | Decomp. | S | — | |
| This work | (1280) | Decomp. | 1 | Yes |
*Computes the full-resolution output; under non-unit stride the majority of outputs are discarded, so useful-work efficiency is far lower than the complexity figure suggests.
We introduce a new formulation method building on prior stride-based decomposition approaches [23], [24]. In contrast to the time-domain accumulation used by these prior methods, our formulation performs the intermediate accumulation directly in the frequency domain, exploiting the linearity of the Fourier transform so that a sum in the time domain is preserved as a sum in the frequency domain. This allows the IFFT to be deferred until after all sub-convolutions have been summed, reducing post-processing complexity from , which would otherwise require S IFFTs, to with a single IFFT per block. To the best of our knowledge, this work is the first to apply large-point FFT convolution to large-kernel layers while explicitly addressing the inefficiency introduced by non-unit strides.
We implement this approach using an N-point radix-2 FFT to perform the necessary Discrete Fourier Transform (DFT) and Inverse DFT (IDFT) operations. The sampling decomposition algorithm is detailed in Algorithm 1, which takes a 1-D array (input or weights) and returns a matrix where every s-th input is placed in a different row, enabling efficient processing.
Algorithm 1 Decompose(A, s)
Input: 1-D array A of n and integer s representing parameter of stride
Output: Decomposed matrix s by number of points for each stride
remainder = n mod s
size = ceil(n / s)
output = [s; size]
for i = 0; i < s do
if i < remainder then
for j = 0; j < size do
output[i, j] = A[j · s + i]
end for
else
for j = 0; j < size - 1 do
output[i, j] = A[j · s + i]
end for
end if
end for
return output
The result of a non-unit stride convolution can be obtained by performing unit-stride convolutions on the decomposed input and kernel matrices. The detailed procedure is described in Algorithm 2. Specifically, for each stride index, the non-unit stride convolution is computed as the element-wise sum of the unit-stride convolution outputs corresponding to that index across the decomposed matrices. This structure can be exploited from a hardware perspective. Given the linearity of the Fourier transform, addition in the time domain is preserved as addition in the frequency domain. Consequently, the decomposed convolution scheme can be optimized by computing the unit-stride convolution using the FFT and performing the intermediate accumulations directly in the frequency domain. Only a single IFFT is required for each block, reducing the arithmetic complexity from to . Notably, this accumulation pattern resembles a convolution itself, a property that we also leverage in our hardware design.
An N-point FFT, where N is a power-of-two number, is well-suited for hardware implementation due to its butterfly computation structure, which enables efficient in-place execution. Similarly, the Inverse FFT (IFFT), an efficient method
Algorithm 2 Decompose_convolution(A, s)
Input: 2-D input matrix A of size , 2-D kernel matrix W of size , stride s
Output: convolution result of stride s
Let conv_1d(a, b) be a function that computes the unit stride convolution of two inputs a and b
output = [in_size - kernel_size + 1]
output is initialized with each element of a value of 0
for i = 0; i < s do
result[i] ← conv_1d(A[i], W[i])
for j = 0; j < in_size - kernel_size + 1 do
output[j] ← output[j] + result[j]
end for
end for
return output
for computing the IDFT, can be implemented using the same FFT hardware. One common approach involves reordering the frequency-domain elements and scaling the result by , since . This allows the FFT and IFFT to share control logic and hardware resources, improving overall reuse.
Several additional optimizations are applied to further reduce computational cost. Since convolutional kernels are fixed across inferences, their frequency-domain representations can be precomputed and stored as model parameters. Decomposed kernels are time reversed and zero-padded to length N. When the kernel size divided by stride has a non-zero remainder, smaller decomposed kernels receive an additional leading zero to align with the outputs of longer kernels. The storage overhead introduced by precomputed weights is mitigated by conjugate symmetry in the frequency domain. Since the weights are real-valued in the time domain, only the first of the total N frequency components need to be stored, reducing the weight storage by nearly half. The same symmetry also reduces the frequency-domain multiplication to complex operations per block.
Finally, since the output of the convolution layers is real-valued, the IFFT computations can be halved using pairwise processing [26]. Given two frequency-domain sequences and corresponding to real-valued time-domain signals, a composite sequence is formed. After applying the IFFT, the real part of yields , while the imaginary part yields . This technique reduces the number of IFFT computations by approximately half.
C. PoT Quantization of the Model
Quantization reduces the computational and memory footprint of DL models by mapping floating-point parameters to fixed-point representations. We employ PoT quantization, where the scale factor mapping the floating-point range to the fixed-point grid is constrained to a power of two, enabling all scaling operations to be implemented as bit-shifts and eliminating the need for multipliers [27], [28]. FFT-based pipelines impose an additional challenge for quantization.
Specifically, the bit-width must remain large enough to maintain numerical stability across butterfly stages, where rounding errors accumulate with each successive computation [29]. To balance numerical fidelity against hardware cost, we evaluated both 8-bit and 16-bit PoT quantization (to be discussed in Section IV-B).
Under the PoT quantization scheme, the representation range is directly related to the factor scale through range ≈ scale × 2^{bitwidth}. The range of biases is generally larger than that of individual activations and weights. Prior work uses 32-bit representations for biases [28], [30]. To simplify hardware memory management, we use a uniform bit-width for activations, weights, and biases throughout inference, assigning a separate scale to each component, making the scaling factor a key optimization parameter per kernel and activation.
The computational flow for convolution and dense operations is shown in Fig. 2(a). At the start of each convolution, we

Fig. 2. (a) Quantized convolution / dense operation flow specific to our hardware using PoT quantizer, and (b) quantized tanh or sigmoid computation operation using interpolation of LUT entries.
first add the de-quantized bias to ensure that its scale matches that of the product of the activation and weight. After adding the bias, the activation is multiplied with the weights, and the result is added to the sum. In the adopted model, the output activations from a convolution operation can grow as large as 42 bits for 16-bit inference and 26 bits for 8-bit inference. To maintain a consistent bit width for activations throughout inference, the outputs need to be re-quantized back to 8 or 16 bits.
The BiLSTM module follows the same quantized data flow, but additionally requires quantized evaluation of non-linear activation functions, tanh and sigmoid. These are computed via linear interpolation over a LUT, as detailed in Section III-C. The computation flow, illustrated in Fig. 2(b), performs interpolation using the same scale as the inputs stored in the LUT.
For FFT-based convolution, quantization is applied across the transform pipeline. Two strategies are considered [31]. Strategy 1 preserves all intermediate bits across FFT butterfly stages, allowing bit-width to grow to maintain accuracy. Strategy 2 truncates results to a fixed 16-bit width after each stage, reducing memory usage at the cost of increased quantization noise. In both strategies, the final activation is scaled back to 16 bits before being written to main memory.
A comparison of signal-to-quantization-noise ratio (SQNR) and hardware requirements for both strategies is provided in Table II. Strategy 1 is selected: the additional 0.5 KB of memory it requires is negligible relative to total CNN weight storage, and its quantization noise is concentrated in the early FFT stages [31], making it well-matched to the DIT FFT implementation used in this work, where the first butterfly stage requires no twiddle factor multiplication.
TABLE II COMPARISON BETWEEN QUANTIZATION STRATEGIES
| FFT Stage-wise Bit Precisions | Quantization Strategy 1 [31] | Quantization Strategy 2 [31] |
|---|---|---|
| Stage 1 (bits) | 17 | 16 |
| Stage 2 (bits) | 18 | 16 |
| Stage 3 (bits) | 19 | 16 |
| Stage 4 (bits) | 20 | 16 |
| Stage 5 (bits) | 21 | 16 |
| Stage 6 (bits) | 22 | 16 |
| Stage 7 (bits) | 23 | 16 |
| Stage 8 (bits) | 24 | 16 |
| SQNR Theoretical (dB) | 97.8 [31] | 63.1 [31] |
| SQNR Simulated (dB) | 98.1 [31] | 63.6 [31] |
| RAM Size (KB) | 1.5 | 1.0 |
III. FPGA ACCELERATION OF THE DL MODEL
A. Overview of the FPGA-based Accelerator
Fig. 3 shows the block diagram of the developed FPGA accelerator. The accelerator is implemented using a combination of custom RTL and vendor IPs. Compute engines (convolution, FFT, and BiLSTM) are implemented in custom RTL for precise datapath control. Standard AXI interfaces and memory controllers are integrated via vendor IP to facilitate communication with a microcontroller (MCU) sub-system. Model weights are stored in external flash or on-chip SRAM and are streamed into the programmable logic as required.
The MCU manages system control tasks. Through memory-mapped configuration registers, the MCU configures each engine, schedules the execution of each layer, and coordinates the movement of data between shared activation buffers. This MCU-based control structure enables flexible sequencing of operations and efficient reuse of hardware resources across the convolution, FFT, and BiLSTM computations. Its programmability also provides a convenient path to adapt the hardware to future changes in the DL model architecture.
The FFT engine supports N-point DIT in-place FFT and IFFT, sharing the same data flow for both operations with an additional pre-processing stage for the IFFT. The convolution engine processes the EEG signal from the MCU subsystem and is responsible for performing convolutions, dense layer operations, and element-wise multiplications. This includes the computation of , , the dense layers, and the complex element-wise multiplications required for time domain convolution in the frequency domain. The BiLSTM engine reuses the convolution engine to compute the forward and backward hidden states ( and ) for the BiLSTM operations on . Model weights in the programmable

Fig. 3. Top-level hardware system architecture of the proposed FPGA accelerator. The design consists of an MCU for system control, convolution engine, BiLSTM engine, and data memory for weights and intermediate results.
logic are stored in a dedicated weight buffer and are accessible only by the convolution engine, while intermediate activations are stored in working memory.
B. Acceleration of the CNN
Prior CNN accelerators have exploited fast convolution techniques, including radix-2 FFT or Winograd [14], [25], [32]. Additionally, past work explored stride-based decomposition methods to optimize convolution operations [23]. Other works have leveraged model attributes like sparsity to reduce computational load and minimize off-chip memory transactions [33], [34]. However, these approaches often depend on complex model structures that are not well-suited for wearable applications that operate under tight power and hardware constraints.
Our CNN accelerator is designed to optimize both computational efficiency and energy consumption. In addition to the fast convolution algorithm described in Section II, power consumption is further reduced by minimizing the number of off-chip memory accesses, such as flash memory [35]. Rather than relying on sparse-weight detection logic, the design adopts a dense, regular architecture that ensures low hardware overhead and consistent latency, both of which are critical for real-time sleep staging. To this end, three complementary memory and scheduling optimizations are introduced:
-
Block convolution: We divide large convolution layers into smaller blocks using overlap-save block convolution [36]. This approach enables fixed N-point FFT-based fast convolution across varying kernel sizes, while also reducing peak memory usage during inference for both conventional and fast convolution paths.
-
Depth-first execution: We integrate a depth-first execution strategy for both standard convolutions and non-unit stride FFT-based convolutions. This scheduling aligns with the model topology and enables efficient reuse of hardware resources. By executing the decomposition algorithm depth-first, we reduce the additional memory cost from to , where is the FFT size and is the stride. This substantially lowers intermediate activation storage and minimizes additional hardware complexity.
-
Concurrent engine execution: We design separate convolution and FFT engines. To exploit the convolution-like structure of the decomposition algorithm, we extend the convolution engine to support complex-valued convolution. This enables the decomposition algorithm's post-processing to run in parallel with the IFFT operations, reducing the additional hardware complexity required to support the decomposition algorithm. Building on this capability, we introduce a custom scheduling strategy that minimizes latency by overlapping FFT, point-wise multiplication, and IFFT operations across blocks.
The convolution engine supports two core arithmetic operations: conventional convolution and element-wise complex multiplication. The engine is managed by a controller that allocates a set of processing elements (PEs) according to the configuration registers set by the MCU. For conventional convolution, the engine uses a depth-first execution data path to reduce on-chip memory usage. The data flow for two PEs is illustrated in Fig. 4. During convolution, the bias is first loaded into partial sum registers and scaled according to the precision of the input. Then, weights and activations are multiplied and accumulated. The partial sum registers are 48-bit for 16-bit inference and 30-bit wide for 8-bit inference to support model flexibility. Once the multiply-and-accumulate (MAC) stage is complete, the output is processed locally through ReLU activation and re-quantized using a shift-back operation. Finally, max-pooling is applied before the result is written back to the data memory.
The controller is configurable via control registers that enable ReLU operations and set the max-pooling size, supporting different layers and potential future model changes. Applying ReLU and max-pooling locally before memory write-back reduces both memory accesses and memory footprint. Multiple PEs can be instantiated based on the latency requirements, and all PEs share a common activation memory.
To improve resource sharing between conventional convolution operations and FFT fast convolution operations, element-wise multiplications are efficiently handled by the same PEs with minimal overhead. The convolution engine is further optimized by unifying the control logic for standard convolution and the MAC operations required by the decomposition algorithm. As discussed in Section II-C, the decomposition post-processing exhibits a convolution-like structure, enabling both functional reuse and a reduction of its memory complexity from to . This allows the control logic, weight memory, and computation units of the convolution engine to be directly reused for the decomposition post-processing, enabling concurrent engine execution with minimal additional hardware cost while reducing intermediate activation storage.
The FFT engine includes dedicated LUTs for the real and imaginary components of the twiddle factors. As illustrated in Fig. 5, a memory block stores the intermediate results of the FFT stages, with each memory word being 24-bit wide. For each FFT stage, we leverage the in-place computation characteristic of the DIT FFT. Twiddle factor multiplication and butterfly operations are fused into a single step, allowing both to be completed before writing the results back to the FFT memory. This data flow is memory-bound, requiring four reads and four writes per butterfly operation. A single multiplier is used, processing each pair of elements in four cycles to meet throughput targets.
To perform an FFT operation, the engine first pre-processes

Fig. 4. The convolution computation data path for two PEs. The data flows through MAC, then ReLU is applied and shifted back to the incoming bit width. MaxPool is the final stage before the result is written to data memory.

Fig. 5. Block diagram of the FFT processing engine. The sequence of data memory access by each of the modules are labeled in the arrows. The controller block is connected to all components to manage states. It can be configured to control both the FFT engine and convolution engine to run concurrently for the complex MAC and IFFT, respectively.
the input by reading data memory sequentially and writing each element into the FFT memory in bit-reversed order. It then computes each FFT stage accordingly. After the final FFT stage, the controller applies a shift-back operation to scale the results according to the quantization factor, ensuring the output retains the same bit-width as the input.
Similarly, IFFT is computed using the same FFT engine. As noted in Section II, computing the IFFT for time-domain real-valued signals in pairs reduces computational overhead. Accordingly, the IFFT pre-processing combines the two sequences and reverses their order before writing into the bit-reversed indices. A key difference is that the shift back value is configured to increase by , since FFT and IFFT are symmetric but scaled differently by .
The hardware uses a fixed -point FFT. To accommodate varying layer sizes, an overlap-save block convolution strategy is employed. This avoids the overhead during inference from storing and accumulating overlapping regions required by the overlap-add method. Given CNN kernel length and stride , based on our decomposition algorithm, consecutive blocks overlap by samples and advance by . Post IFFT, the first samples are discarded and the remaining samples are the valid linear convolution outputs.
Block convolution also mitigates the peak memory usage of large kernel layers, effectively reducing on-chip memory requirements. For large kernels, storing all associated weights on-chip before computation requires a substantial amount of memory. The convolution layer can be divided along the channel dimension to resemble the overlap-save method. This allows each output channel of the convolution layer to be computed independently. As a result, at most 1280 weights per PE need to be stored on-chip at any given time.
Concurrent execution of the convolution and FFT engines is illustrated in Fig. 6. After the initial FFT and complex MAC operations, IFFT, MAC, and weight transfer can run in parallel until the second-to-last kernel set IFFT operation. This scheduling strategy enables the FFT and convolution engines to operate in parallel for the majority of each input block's processing time, improving overall hardware utilization and reducing latency.

Fig. 6. Execution trace of the convolution and FFT engine showing proposed task scheduling and concurrency for fast convolution with kernel sets. After initial data transfer and FFT operations, IFFT, element-wise complex multiplication and weight transfer run concurrently. The timing is illustrative and not to scale.
C. Acceleration of the BiLSTM Network
Prior LSTM accelerators have explored gate-level optimizations, memory-aware scheduling between DRAM and BRAM [37], matrix multiplication tiling, and binary adder trees to enhance parallelism [38]. More recently, the CORDIC algorithm has been proposed for low-power computation of non-linear activation functions [39]. Despite these advances, most designs target general-purpose or high-performance applications and do not fully address the constraints of biomedical workloads, where low power, compact area, and system-level integration are essential. Low-power LSTM acceleration for biomedical inference therefore remains largely unexplored.
In this work, the BiLSTM processing engine reuses the existing convolution engine for all major dense computations, reducing hardware redundancy. Non-linear activation functions are efficiently computed using a linear interpolation LUT, which offers a compact alternative to more complex arithmetic units. Furthermore, BiLSTM operations are partitioned into forward and backward passes, enabling tiling strategies that reduce memory footprint and simplify control logic.
The block diagram of the BiLSTM engine is shown in Fig. 7. The engine interfaces with the External Memory Interface (EMIF) controller to configure and control the convolution engine, which is repurposed for computing the dense operations on both input and hidden state vectors. An address generator within the BiLSTM engine manages memory addresses for the hidden state, cell state, and working memory. The LUT for tanh also supports sigmoid, enabling efficient computation of non-linear activation functions. To perform a BiLSTM operation, the engine first concatenates the current sequential input and the hidden state by reading from and writing to the working memory. It then delegates the dense computations for the forget gate, input gate, cell gate, and output gate to the convolution engine. Afterward, the BiLSTM engine performs the necessary sigmoid and tanh operations, along with multiplications and additions, to update
the cell and hidden states. For flexibility, the BiLSTM engine operates in a designated memory region within the working memory to store the outputs of each gate, as well as the hidden and cell states for each time step.

Fig. 7. Block diagram of the BiLSTM processing engine. The sequence of data memory accesses through the data memory controller by each of the modules are labeled. The connections between controller blocks are left blank as they are used throughout the computation.
Reusing the convolution engine for compute-intensive operations allows us to optimize area efficiency. However, the BiLSTM requires a large set of weights for each gate. In the flow of an RNN, these weights are reused for each sequential time step. To prevent unnecessary rewriting of weights, all gate weights are stored locally in hardware. Therefore, the size of the weight buffer is required to be large enough to hold the complete set of BiLSTM gate weights at any given time.
Another complexity for BiLSTM inference on hardware is the computation of the two non-linear activation functions, tanh and sigmoid. To approximate tanh under quantization, an interpolation method is developed using a 38-entry, 12-bit LUT. To account for the larger derivative of tanh near zero, the data points are distributed non-uniformly, with 16 entries spanning the range from 0 to 1. Leveraging the symmetry of tanh, only the positive half of the curve is stored. The interpolation algorithm shares the multiplier used by other BiLSTM operations, minimizing hardware resource usage.
To reuse the data points in the tanh table for computing the sigmoid activation, we can manipulate the sigmoid formula into a hardware-friendly form based on tanh:
As shown in Eq. (1), once the tanh value is computed, a single shift operation yields the corresponding sigmoid result. This approach allows both functions to be computed using a single LUT. If higher precision is required for either function, increasing the number of LUT entries improves the accuracy of both functions. Fig. 8(a) shows the approximation error between the ideal tanh and sigmoid activation functions and their corresponding hardware approximations, and Fig. 8(b) presents an overlay of the ideal and approximated curves. The results confirm that both approximations closely match their real-valued counterparts with minimal error across the input range.

(a)
(b)
Fig. 8. (a) The approximation error between the ideal sigmoid and tanh activation functions and their hardware approximations. (b) The overlay of the ideal and approximation functions.
IV. EXPERIMENTAL RESULTS
This section experimentally evaluates the proposed algorithm-hardware co-design from three complementary perspectives. First, the computational benefits of the proposed FFT-based non-unit stride convolution are quantified through arithmetic complexity and memory access. Next, the impact of the developed PoT quantization scheme is evaluated in terms of signal fidelity and sleep staging accuracy relative to the floating-point baseline. Finally, FPGA implementation and testing results, including resource utilization, power consumption, and measured inference latency, are presented and analyzed.
A. FFT Testing Results
The computation reduction enabled by the proposed stride-based decomposition algorithm is evaluated in this subsection. To determine the optimal implementation for an N-point DIT FFT, we evaluated different values of N, where all decomposed kernels in the model fit within the N-point FFT buffer, for their suitability in computing . Fig. 9 shows the number of computations required when 128-point, 256-point, and 512-point DIT FFTs are applied to the first three CNN layers of and in the DL model.
For layers with long kernels and long inputs, such as the first layer of , FFT provides substantial benefits: a 256-point or 512-point FFT reduces the number of real-valued operations by approximately . However, this benefit does not generalize across all layers. In later layers with short kernels (e.g., 8-point kernels in the second and third CNN layers), the zero-padding required to map the computation onto a large-N FFT eliminates any advantage, making much of the FFT computation redundant. The fourth CNN layer results are not included, as its architecture is similar to the previous layers.
| CNN Layers | Number of Arithmetic Computations (M) | |||
|---|---|---|---|---|
| Naive | 128-point FFT | 256-point FFT | 512-point FFT | |
| First Shape CNN | 87.49 | 11.87 | 4.26 | 4.40 |
| First Detail CNN | 7.75 | 2.62 | 2.69 | 2.76 |
| Second Shape CNN | 4.85 | 4.55 | 9.14 | 18.42 |
| Second Detail CNN | 4.19 | 4.55 | 9.14 | 18.42 |
| Third Shape CNN | 3.93 | 4.55 | 9.14 | 18.42 |
| Third Detail CNN | 3.28 | 4.55 | 9.14 | 18.42 |

Fig. 9. Comparison of real arithmetic operations without FFT and using different N-point FFT fast convolution. Using a 256-point FFT, a reduction is achieved in the layer computation.
This behavior becomes clearer when considering the effective stride of a multi-channel convolution after unrolling into an equivalent 1-D form. For instance, unrolling the second layer, which has 128 channels, kernel length 8, and stride 1, produces a convolution with an effective kernel length of 1024 and an effective stride of 128. Applying the decomposition algorithm then reduces the computation to an 8-point unit stride convolution. Under these conditions, a 256-point FFT becomes highly inefficient because almost all of the FFT inputs are zero-padded.
This analysis shows that FFT efficiency depends jointly on the kernel length and the effective stride. Large FFT sizes work well for long kernel convolutions with small stride, but become inefficient when the effective stride is large or the kernel is short relative to the FFT size, since padding overhead becomes the dominant cost. Based on these observations, the 256-point FFT is selected as it provides the best trade-off between hardware complexity and performance for the bottleneck layer (the first layer).
Arithmetic operations for CNN inference account for the majority of computations in the model. Notably, the first CNN layers of and contribute 71.5% of the overall computation. These layers maintain performance when computed using a 256-point FFT, making them suitable candidates for optimization. The use of FFT significantly reduces the number of real arithmetic operations required for CNN computation. As shown in Fig. 10, the most computationally intensive CNN layer involves approximately 87M arithmetic operations when computed naively. By applying FFT, can be reduced to around 4M operations. With FFT, the two most computation-heavy layers now account for only 23% of the model's total operations. Overall, the adoption of a 256-point FFT reduces the total number of computations in the model by approximately .
One trade-off introduced by FFT is increased model size due to storing the stride-based decomposed weights. The 16-bit quantized model without FFT occupies 3 MB. When FFT is applied only to the first layer of CNN, the model

| Neural Network Operation | Arithmetic Computations (M) | ||
|---|---|---|---|
| Naive | 256-point FFT First Shape & Detail CNN | 256-point FFT First Shape CNN | |
| Shape CNN | 99.29 | 14.88 | 14.88 |
| Detail CNN | 52.74 | 35.19 | 52.74 |
| LSTM | 2.71 | 2.71 | 2.71 |
| Dense | 0.33 | 0.33 | 0.33 |
| Total | 154.74 | 52.78 | 67.97 |
Shape CNN Detail CNN LSTM Dense
Fig. 10. Comparison of total real arithmetic operations using naive computation and 256-point FFT fast convolution. Using the 256-point FFT achieves up to a reduction in total operations, with short-kernel convolution layers becoming the new bottleneck.
size increases to 3.5 MB, representing a 16.7% increase in exchange for a reduction in computations, a trade-off that is well justified given the savings in arithmetic operations. Extending FFT to the layer further reduces the computation by 22%, at the cost of increasing the DL model size to 4.5 MB (approximately 29%). In this case, the trade-off is not justified, as the additional reduction in computations does not outweigh the growth in model size. Therefore, our final design adopts a 256-point FFT applied only to the first layer of , which provides the best balance between computational savings and model size. This finalized 3.5 MB model size is comparable to, and in many cases smaller than, those reported for temporally contextual sleep staging models in the literature [7], [9], [10].
Reducing the number of computations not only lowers the power consumption by decreasing the workload on the MAC units, but also reduces the number of memory accesses. The table in Fig. 11 summarizes the number of operations required for accessing weights and data on chip. When applying the 256-point FFT only to the first layer of , the total memory access is reduced by approximately 165M.

| Neural Network Operation | Memory Access (M) | ||
|---|---|---|---|
| Naive | 256-point FFT First Shape & Detail CNN | 256-point FFT First Shape CNN | |
| Shape CNN | 198.97 | 33.25 | 33.25 |
| Detail CNN | 106.53 | 76.08 | 106.53 |
| LSTM | 2.45 | 2.45 | 2.45 |
| Dense | 0.69 | 0.69 | 0.69 |
| Total | 308.63 | 112.47 | 142.92 |
Shape CNN Detail CNN LSTM Dense
Fig. 11. Comparison of total memory accesses for naive computation and 256-point FFT-based fast convolution applied to different layers.
B. Quantization Testing Results
SQNR is commonly used to assess the impact of the quantization error on model performance [40]. For CNNs with
Gaussian-distributed weights and biases, the SQNR efficiency is typically estimated at around 5 dB per bit [41]. Previous studies have shown that convolution operations after quantization yield SQNR values between 2 to 4 dB per bit [40]. SQNR was evaluated over 100 randomly sampled training examples. With 16-bit PoT quantization, the average SQNR for the first CNN layer is 63.0 dB for and 63.7 dB for , consistent with expectation. Under 8-bit PoT quantization, these values drop to 18.2 dB and 18.1 dB, respectively, remaining within the anticipated range. For BiLSTM layers, the average SQNR under 16-bit quantization is approximately 59.6 dB for a single BiLSTM layer, dropping to 22.0 dB under 8-bit quantization. While both configurations fall within acceptable SQNR bounds, 8-bit PoT quantization causes an accuracy drop of approximately 12.2%, whereas 16-bit PoT quantization preserves full floating-point accuracy. Accordingly, 16-bit PoT quantization is adopted for the final implementation.
For the 256-point FFT-based convolution path, quantization noise originates from the FFT, frequency-domain multiplication, and IFFT stages. Rather than applying a uniform fixed scale across all stages, scaling parameters are selected based on the statistical distribution of the training data, preventing noise accumulation while retaining the necessary dynamic range. Under this optimized configuration, 16-bit fixed-point PoT FFT fast convolution achieves an average SQNR of 40 dB over 100 samples. 8-bit FFT quantization was not pursued, as maintaining 8-bit precision consistently across the FFT, multiplication, and IFFT stages introduced significant noise.
As introduced in Section II-II-A, the CNN-BiLSTM model was evaluated on the MASS-SS3 dataset, which comprises annotated sleep recordings from 62 subjects. A leave-two-subjects-out cross-validation strategy was adopted, resulting in 31 evaluation folds. In each fold, the model was trained and validated using data from 60 subjects and tested exclusively on unseen data from the remaining two subjects, ensuring that no data from the test subjects were included during training. The training process employed the Adam optimizer with a batch size of 256, a learning rate of , of 0.9, of 0.999, and an L2 weight decay of over 100 epochs.
Fig. 12(a) summarizes the per-fold average accuracy of the floating-point CNN-BiLSTM model for five-class sleep-stage classification across the 31 cross-validation folds, with an overall average accuracy of 83.8%. The proposed 16-bit PoT quantization is applied to the trained floating-point models, and the resulting quantized accuracies are plotted alongside the floating-point baselines in Fig. 12(a). The accuracy difference between the floating-point and quantized models for each fold is highlighted in Fig. 12(b), with an average accuracy degradation of only 0.11% across all 62 subjects. These results demonstrate that the proposed PoT quantization scheme preserves the subject-independent generalization capability of the floating-point model, achieving consistently negligible performance degradation across all subjects.
C. FPGA Measurement Results
The accelerator was implemented using Xilinx Vivado 2020.2 for synthesis and implementation, and Xilinx Vitis

Fig. 12. (a) Per-fold model accuracy for the floating-point baseline and after the proposed quantization. (b) Accuracy deviation of the quantized model from the floating-point baseline.
2020.2 for experiments. The DL model was deployed on Zynq®-7000 XC7Z020-CLG484-1 from AMD Xilinx, which integrates a Dual ARM Cortex-A9 core processor used as the MCU in this work.
Fig. 13(a) shows the programmable logic resource utilization of the model after synthesis, where BRAM (36 kbit each) resource usage is the highest among all resources. This is primarily due to the need for storing intermediate results during inference. To address this, our depth-first execution architecture significantly reduced the BRAM usage of the data memory. As shown in Fig. 13(b), this approach, combined with the block convolution strategy, led to a 4.53× reduction in BRAM resource usage.
| Resource | Utilization |
|---|---|
| LUT | 3065(5.76%) |
| LUTRAM | 293(1.7%) |
| FF | 1489(1.4%) |
| BRAM | 38(27.14%) |
| DSP | 4(1.82%) |
(a)

(b)
Fig. 13. (a) FPGA resource utilization of complete 16-bit accelerator system including AXI interconnects on Zynq-7000 FPGA. BRAM usage is the highest of all with 38%. (b) Comparison of data memory BRAM resource usage with and without depth-first execution.
Building on these memory optimizations, we further improved performance by modifying the design to include a dedicated weight memory clock. During our hardware experiments, we observed that the critical path was primarily constrained by the time to transfer weights to the PL. By setting the weight clock at that of the accelerator clock frequency and scheduling the weight transfer with convolution operations, we ensured that computations dominated the critical path.
To select the most energy-efficient operating point, the Xilinx Power Analyzer was used to simulate dynamic and static power across a range of clock frequencies. Fig. 14 shows the power breakdown as a function of accelerator clock frequency. Since sleep stage transitions occur slowly, inference latency per sample is not a primary constraint in this application. The design that maximizes power efficiency over inference time was selected, corresponding to an accelerator clock frequency of 10 MHz and a weight memory clock frequency of 25 MHz.

Fig. 14. Power consumption of 16-bit inference on Zynq-7000 FPGA with different accelerator clock frequency from Vivado Power Analyzer.
Power consumption was directly measured on the Zynq-7000 FPGA. A digital multimeter (EDU34450A, Keysight) was placed in series with the DC power supply of the FPGA development board. The dynamic power of the accelerator was characterized by measuring the difference between operating mode with DL model inference and data movement and an idle configuration without inference and data movement. This difference was measured as 11 mW, accounting for the standalone accelerator power (matching 9 mW from simulation) as well as the MCU's data-handling and configuration overhead.
To evaluate hardware performance, an acceleration factor (AF) is defined as the ratio of the measured execution time to the theoretical minimum latency of conventional implementations. The theoretical minimum latency represents the latency required to perform all computations using a conventional convolution approach under ideal conditions, assuming no memory access overhead. The AF provides a measure of the effectiveness of our design in utilizing available hardware resources. An AF greater than 1 indicates an improvement over conventional limitations.
Table III presents the experimental computation latency and the AF (the higher the better) for each layer. The FPGA was set up with a 10 MHz system clock and a 25 MHz weight memory clock. The and convolution layers achieved an AF close to 1 under conventional convolution, indicating that the developed FPGA engine is highly optimized for standard convolution operations. In contrast, the FFT-accelerated layer achieved an AF of 7.09, significantly exceeding the baseline due to the use of FFT-based fast convolution. The experimental speedup is lower compared to the theoretical algorithmic reduction of . This discrepancy is primarily due to weight transfer operations occupying the critical path in the pipelined FFT convolution flow, as illustrated in Fig. 6.
TABLE III MEASURED INFERENCE LATENCY AND AF
| Modules | Latency (s) | AF |
|---|---|---|
| First Shape Conv Layer w/ FFT | 0.617 | 7.090 |
| Other Shape Conv Layers w/o FFT | 0.535 | 0.992 |
| Detail Conv Layers w/o FFT | 0.823* | 0.991 |
| BiLSTM Layers | 0.360 | 0.328 |
| Fully Connected Layers | 0.127 | 0.135 |
| Misc. Ops (Read, Write, and Concat.) | 0.054 | N/A |
| Overall Model Inference Latency | 4.162 | 1.859 |
- Three banks in the model (Fig. 1).
Increasing the weight memory clock frequency would mitigate this bottleneck; however, we deliberately retained the current configuration since computations are no longer the dominant contributor to overall latency.
Similarly, BiLSTM computations are also constrained by memory transfer rates. However, they represent only a minor portion of the critical path, hence, we did not modify the memory clock frequency. Overall, our experimental inference achieves an end-to-end AF of 1.86. This result highlights the effectiveness of our FFT-based convolution engine, which leverages algorithmic acceleration to reduce arithmetic complexity and deliver high throughput with minimal hardware resources.
V. DISCUSSION
Table IV compares this work with prior sleep staging hardware accelerators. This work achieves a competitive overall model accuracy using a CNN-BiLSTM architecture with PoT quantization, matching or exceeding prior decision-tree, filtering-based, CNN, and vision-transformer approaches (78.9%–83.8%) while introducing several distinct hardware-efficient acceleration techniques.
TABLE IV COMPARISON WITH PRIOR SLEEP STAGING ACCELERATORS
| Imtiaz et al. [42] | Kassiri et al. [43] | Liao et al. [44] | Robitaille et al. [45] | This Work | |
|---|---|---|---|---|---|
| Journal Model | JSSC Decision tree | TBioCAS Filtering & threshold | TCAS-II CNN | NEJ Vision Transformer | OJCAS CNN + BiLSTM |
| Dataset | MASS | 9 mice | Sleep-EDF | MASS | MASS |
| Input | EEG | 2 EEG + EMG | EEG | EEG | EEG |
| Quant. Scheme | 24-bit | 8-bit & threshold | N/A | 16-/8-bit | PoT |
| Stage # | 5 | 3 | 5 | 4 | 5 |
| Accuracy | 78.9% | 79.7% | 83.8% | 82.9% | 83.7% |
Table V presents a comparison with recent FPGA-based DL accelerator designs that are not limited to sleep staging applications. Prior works have traditionally emphasized standalone metrics such as GOPS/W or GOPS/DSP. However, absolute GOPS/W is strongly influenced by platform scaling on high-end devices, where higher DSP parallelism and clock frequency amortize fixed system overheads over a much larger
operation count, making cross-platform comparisons misleading. To provide a more balanced assessment, we introduce DSP power efficiency (GOPS/W/DSP), which jointly captures throughput, power consumption, and is better suited for evaluating designs under tight resource constraints.
Ours vs. CNN Accelerators: Table V includes both general-purpose CNN accelerators that employ fast convolution algorithms or sparsity [14], [25], [46], [47] and custom CNN accelerators designed for specific biomedical models [48], [49]. General-purpose designs target high-throughput processing of large-scale models, with DSP counts ranging from 654 to 1024 and dynamic power up to 37.6 W. Custom biomedical accelerators operate at lower resource levels but still consume 135–250 mW using conventional convolution without algorithmic acceleration. Across both categories, DSP power efficiency ranges from 0.01 to 0.39 GOPS/W/DSP. The proposed design achieves 0.91 GOPS/W/DSP using only 4 DSPs and 11 mW of dynamic power, outperforming all listed CNN accelerators. This result demonstrates that FFT-based acceleration of large-kernel non-unit stride convolutions, combined with unified engine reuse and depth-first execution, enables substantially higher per-DSP efficiency than both high-resource general-purpose and task-specific biomedical designs.
Ours vs. LSTM Accelerators: While few works specifically target LSTM acceleration, one notable work employs a CORDIC-based approach that eliminates DSP usage entirely [39], making DSP power efficiency comparisons inapplicable. For a fair evaluation, we analyze standalone BiLSTM execution: the BiLSTM module completes inference in 360 ms for 2.368M operations, corresponding to a power efficiency of 0.60 GOPS/W. While this is lower than the CORDIC-based design, BiLSTM operations account for less than 2% of the total inference workload. The design prioritizes minimal area overhead and hardware reuse over peak BiLSTM throughput, which is the appropriate trade-off in a system where CNN computation dominates. This highlights the advantage of system-level co-design over dedicated single-module acceleration for low-power biomedical applications.
The Zynq-7000 FPGA used in this work serves as a proof-of-concept platform for validating the proposed architecture and algorithm-hardware co-design, rather than as a final deployment target for wearable applications. Low-power FPGA families such as Microchip IGLOO2 and SmartFusion2 provide sufficient logic and memory resources to support the proposed accelerator. Paired with a lightweight controller, the design is feasibly deployable on such devices, where system-level power consumption is compatible with wearable operation constraints.
VI. CONCLUSION
This paper presents an FPGA-based CNN-BiLSTM accelerator for real-time, low-power sleep stage classification using single-channel EEG. The central challenge addressed is the inefficiency of existing accelerators on long-kernel, non-unit stride convolutions. Applying a conventional FFT pipeline in this regime yields poor efficiency, as only 1 out of every outputs is required. By performing stride-decomposed sub-convolution accumulations directly in the frequency domain,
TABLE V COMPARISON WITH STATE-OF-THE-ART FPGA-BASED DL ACCELERATOR DESIGNS
| [14]TCAD2019 | [25]TCAD2021 | [46]TCAS-I2021 | [47]TCAS-I2025 | [48]TBioCAS2022 | [49]TBioCAS2023 | [39]TC2023 | ThisWork | |
|---|---|---|---|---|---|---|---|---|
| Type | General Purpose CNNFast-Convolution Based Accelerators | Custom CNNAccelerator | Custom CNNAccelerator | LSTMAccelerator | Hybrid | |||
| Model | VGG-16 | VGG-16 | VGG-16 | VGG-16 | CustomCNN | CustomCNN | CustomLSTM | CustomCNN+BiLSTM |
| ConvolutionAlgorithm | radix-2 FFT | Winograd | Sparsity | Winograd+Sparsity | Conventional | Conventional | - | FFT |
| Bit Width (Act/Wgt) | 8/8 | 16/16 | 8/8 | 8/8 | (8&16)/8 | 8/8 | 16/16 | 16/16 |
| Device | ZC706 | ZC706 | ZCU102 | VCU118 | XC7K325T | XC7A35T | XC7Z020 | XC7Z020 |
| Clk Freq. (MHz) | 166 | 200 | 300 | 300 | 100 | 150 | 100 | 10 |
| LUT | 350k | - | 72k | 601k | 2724 | 6480(1) | 36.3k | 3065 |
| BRAM | 1090 | - | 851 | 792 | 19.5 | 20(1) | 82.5 | 38 |
| DSP # | 900 | 900 | 654 | 1024 | 21 | 21(1) | - | 4 |
| DynamicPower (mW) | 23.3k(2) | 7.4k(2) | 23.1k(2) | 24.4k(2) | 135 | 250 | 438(3) | 11(4) |
| Power Efficiency(GOPS/W) | 12.74 | 86.22 | 16.97 | 125.6 | - | 30.28 | 4.1 | 3.64 |
| DSP Power Efficiency(GOPS/W/DSP) | 0.01 | 0.10 | 0.03 | 0.12 | - | 0.39 | - | 0.91 |
(1) Only accelerator elements are considered. (2) Methodology not specified, assumed simulated and total power. Dynamic power derived from subtracting static power simulated from Vivado Power Estimator UltraScalePlus 2023.1.2 and 7-Series 2019.1.2 using resources listed in table.
(3) Simulated MCU Power consumption removed. (4) Results from measurement including control and data handling power from MCU.
the proposed method achieves a arithmetic reduction on the bottleneck layer and an overall reduction in arithmetic complexity and reduction in memory accesses. This convolution-like accumulation structure is further exploited to unify the CNN and BiLSTM compute engines, reducing hardware redundancy. Our depth-first execution further reduces the intermediate memory requirement by . Combined with block convolution and 16-bit PoT quantization, the full system consumes 11 mW and incurs only 0.11% average accuracy degradation relative to the floating-point baseline. The accelerator, implemented on a Xilinx Zynq-7000 FPGA at 10 MHz, achieves a end-to-end speedup over conventional theoretical limitations and a DSP power efficiency of 0.91 GOPS/W/DSP with 4 DSPs, outperforming reported CNN, LSTM, and hybrid FPGA accelerators. The stride-based decomposition and quantization framework is not specific to sleep staging and generalizes to other long-kernel time-series workloads, such as ECG and EMG analysis, where similar kernel-size and stride conditions arise. The modular architecture supports future extensions including multi-channel EEG, adaptive quantization, ASIC migration, and integration into closed-loop neuromodulation systems.
REFERENCES
[1] I. of Medicine (US) Committee on Sleep Medicine and Research, Sleep Disorders and Sleep Deprivation: An Unmet Public Health Problem. National Academies Press, 2006. [Online]. Available: https://www.ncbi.nlm.nih.gov/books/NBK19960/
[2] C. O'reilly, N. Gosselin, J. Carrier, and T. Nielsen, "Montreal archive of sleep studies: an open-access resource for instrument benchmarking and exploratory research," Journal of sleep research, vol. 23, no. 6, pp. 628–635, 2014.
[3] M. Sun, A. Zhou, N. Yang, Y. Xu, Y. Hou, A. G. Richardson, and X. Liu, "Design of a sleep modulation system with fpga-accelerated deep learning for closed-loop stage-specific in-phase auditory stimulation," in 2023 IEEE International Symposium on Circuits and Systems (ISCAS). IEEE, 2023, pp. 1–5.
[4] H.-V. V. Ngo, T. Martinetz, J. Born, and M. Mölle, "Auditory closed-loop stimulation of the sleep slow oscillation enhances memory," Neuron, vol. 78, no. 3, pp. 545–553, 2013.
[5] Y. Xu, X. Chen, Y. Hou, J. Xu, H. You, Y. Huang, B. Liu, A. Hung, A. G. Richardson, R. Genov, and X. Liu, "An in-ear sleep modulation soc featuring a cnn-lstm accelerator with long-kernel memory reuse and runtime dynamic quantization," 2026 IEEE/ISAP Symposium on VLSI Technology & Circuits, 2026.
[6] B. R. Carroll and B. G. Donath, Polysomnography for the Sleep Technologist: Instrumentation, Monitoring, and Related Procedures. Elsevier Health Sciences, 2010.
[7] S. Mousavi, F. Afghah, and U. R. Acharya, "Sleepeegnet: Automated sleep stage scoring with sequence to sequence deep learning approach," PloS one, vol. 14, no. 5, p. e0216456, 2019.
[8] A. Kavoosi, M. P. Mitchell, R. Kariyawasam, J. E. Fleming, P. Lewis, H. Johansen-Berg, H. Cagnan, and T. Denison, "Morpheusnet: Resource efficient sleep stage classifier for embedded on-line systems," in 2023 IEEE International Conference on Systems, Man, and Cybernetics (SMC). IEEE, 2023, pp. 2315–2320.
[9] A. Supratak, H. Dong, C. Wu, and Y. Guo, "Deepsleepnet: A model for automatic sleep stage scoring based on raw single-channel eeg," IEEE Transactions on Neural Systems and Rehabilitation Engineering, vol. 25, no. 11, pp. 1998–2008, 2017.
[10] A. Supratak and Y. Guo, "Tinsleepnet: An efficient deep learning model for sleep stage scoring based on raw single-channel eeg," in 2020 42nd Annual International Conference of the IEEE Engineering in Medicine & Biology Society (EMBC). IEEE, 2020, pp. 641–644.
[11] H. Phan, F. Andreotti, N. Cooray, O. Y. Chen, and M. De Vos, "Seqsleepnet: End-to-end hierarchical recurrent neural network for sequence-to-sequence automatic sleep staging," IEEE Transactions on Neural Systems and Rehabilitation Engineering, vol. 27, no. 3, p. 400–410, Mar. 2019. [Online]. Available: http://dx.doi.org/10.1109/TNSRE.2019.2896659
[12] C. Wang and Z. Luo, "A review of the optimal design of neural networks based on fpga," Applied Sciences, vol. 12, no. 21, p. 10771, 2022.
[13] S. Kala, B. R. Jose, J. Mathew, and S. Nalesh, "High-performance cnn accelerator on fpga using unified winograd-gemm architecture," IEEE Transactions on Very Large Scale Integration (VLSI) Systems, vol. 27, no. 12, pp. 2816–2828, 2019.
[14] Y. Liang, L. Lu, Q. Xiao, and S. Yan, "Evaluating fast algorithms for convolutional neural networks on fpgas," IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, vol. 39, no. 4, pp. 857–870, 2019.
[15] H. Seo, S. Back, S. Lee, D. Park, T. Kim, and K. Lee, "Intra- and inter-epoch temporal context network (IITNet) using sub-epoch features for automatic sleep scoring on raw single-channel EEG," Biomedical Signal Processing and Control, vol. 61, p. 102037, 2020.
[16] E. Eldele, Z. Chen, C. Liu, M. Wu, C.-K. Kwoh, X. Li, and C. Guan, "An attention-based deep learning approach for sleep stage classification with single-channel EEG," IEEE Transactions on Neural Systems and Rehabilitation Engineering, vol. 29, pp. 809–818, 2021.
[17] H. Phan, K. Mikkelsen, O. Y. Chén, P. Koch, A. Mertins, and M. D. Vos, “SleepTransformer: Automatic sleep staging with interpretability and uncertainty quantification,” IEEE Transactions on Biomedical Engineering, vol. 69, no. 8, pp. 2456–2467, 2022.
[18] M. Perslev, S. Darkner, L. Kempfner, M. Nikolic, P. J. Jennum, and C. Igel, “U-Sleep: Resilient high-frequency sleep staging,” npj Digital Medicine, vol. 4, no. 1, p. 72, 2021.
[19] N. Parekh, B. Dave, R. Shah, and K. Srivastava, “Automatic sleep stage scoring on raw single-channel eeg : A comparative analysis of cnn architectures,” in 2021 Fourth International Conference on Electrical, Computer and Communication Technologies (ICECCT), 2021, pp. 1–8.
[20] X. Zhang, G. He, T. Shang, and F. Fan, “Comparative analysis of single-channel and multi-channel classification of sleep stages across four different data sets,” Brain Sciences, vol. 14, no. 12, p. 1201, 2024.
[21] H. Korkalainen, J. Aakko, S. Nikkonen, S. Kainulainen, A. Leino, B. Duce, I. O. Afara, S. Myllymaa, J. Töyräs, and T. Leppänen, “Accurate deep learning-based sleep staging in a clinical population with suspected obstructive sleep apnea,” IEEE journal of biomedical and health informatics, vol. 24, no. 7, pp. 2073–2081, 2019.
[22] R. B. Berry, R. Brooks, C. E. Gamaldo, S. M. Harding, R. M. Lloyd, C. L. Marcus, and B. V. Vaughn, The AASM Manual for the Scoring of Sleep and Associated Events: Rules, Terminology and Technical Specifications, Version 2.0, version 2.6 ed. American Academy of Sleep Medicine, 2020. [Online]. Available: https://aasm.org/clinical-resources/scoring-manual/
[23] J. Yepez and S.-B. Ko, “Stride 2 1-d, 2-d, and 3-d winograd for convolutional neural networks,” IEEE Transactions on Very Large Scale Integration (VLSI) Systems, vol. 28, no. 4, pp. 853–863, 2020.
[24] J. Pan and D. Chen, “Accelerate non-unit stride convolutions with winograd algorithms,” in Proceedings of the 26th Asia and South Pacific Design Automation Conference, 2021, pp. 358–364.
[25] Y. Liang, Q. Xiao, L. Lu, and J. Xie, “Fcnnlib: A flexible convolution algorithm library for deep learning on fpgas,” IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, vol. 41, no. 8, pp. 2546–2559, 2021.
[26] R. Matusiak, “Implementing fast fourier transform algorithms of real-valued sequences with the tms320 dsp platform,” Digital Signal Processing Solutions, Texas Instruments Application Report, 2001.
[27] D. Przewlocka-Rus, S. S. Sarwar, H. E. Sumbul, Y. Li, and B. De Salvo, “Power-of-two quantization for low bitwidth and hardware compliant neural networks,” arXiv preprint arXiv:2203.05025, 2022.
[28] M. Nagel, M. Fournarakis, R. A. Amjad, Y. Bondarenko, M. Van Baalen, and T. Blankevoort, “A white paper on neural network quantization,” arXiv preprint arXiv:2106.08295, 2021.
[29] P. Welch, “A fixed-point fast fourier transform error analysis,” IEEE Transactions on Audio and Electroacoustics, vol. 17, no. 2, pp. 151–157, 2003.
[30] B. Jacob, S. Kligys, B. Chen, M. Zhu, M. Tang, A. Howard, H. Adam, and D. Kalenichenko, “Quantization and training of neural networks for efficient integer-arithmetic-only inference,” in Proceedings of the IEEE conference on computer vision and pattern recognition, 2018, pp. 2704–2713.
[31] P. Gupta, “Accurate performance analysis of a fixed point fft,” in 2016 Twenty Second National Conference on Communication (NCC). IEEE, 2016, pp. 1–6.
[32] C. Yang, Y. Yang, Y. Meng, K. Huo, S. Xiang, J. Wang, and L. Geng, “Flexible and efficient convolutional acceleration on unified hardware using the two-stage splitting method and layer-adaptive allocation of 1-d/2-d winograd units,” IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, vol. 43, no. 3, pp. 919–932, 2023.
[33] L. Lu, J. Xie, R. Huang, J. Zhang, W. Lin, and Y. Liang, “An efficient hardware accelerator for sparse convolutional neural networks on fpgas,” in 2019 IEEE 27th Annual International Symposium on Field-Programmable Custom Computing Machines (FCCM). IEEE, 2019, pp. 17–25.
[34] B. Wu, T. Yu, K. Chen, and W. Liu, “Edge-side fine-grained sparse cnn accelerator with efficient dynamic pruning scheme,” IEEE Transactions on Circuits and Systems I: Regular Papers, vol. 71, no. 3, pp. 1285–1298, 2024.
[35] V. Sze, Y.-H. Chen, T.-J. Yang, and J. S. Emer, “Efficient processing of deep neural networks: A tutorial and survey,” Proceedings of the IEEE, vol. 105, no. 12, pp. 2295–2329, 2017.
[36] A. V. Oppenheim, Discrete-time signal processing. Pearson Education, 1999.
[37] Y. Guan, Z. Yuan, G. Sun, and J. Cong, “Fpga-based accelerator for long short-term memory recurrent neural networks,” in 2017 22nd Asia and South Pacific Design Automation Conference (ASP-DAC). IEEE, 2017, pp. 629–634.
[38] Y. Zhang, C. Wang, L. Gong, Y. Lu, F. Sun, C. Xu, X. Li, and X. Zhou, “Implementation and optimization of the accelerator based on fpga hardware for lstm network,” in 2017 IEEE international symposium on parallel and distributed processing with applications and 2017 IEEE international conference on ubiquitous computing and communications (ISPAI/UCC). IEEE, 2017, pp. 614–621.
[39] N. A. Mohamed and J. R. Cavallaro, “A unified parallel cordic-based hardware architecture for lstm network acceleration,” IEEE Transactions on Computers, vol. 72, no. 10, pp. 2752–2766, 2023.
[40] D. Lin, S. Talathi, and S. Annapureddy, “Fixed point quantization of deep convolutional networks,” in International conference on machine learning. PMLR, 2016, pp. 2849–2858.
[41] Y. You, Audio coding: theory and applications. Springer Science & Business Media, 2010.
[42] S. A. Imtiaz, Z. Jiang, and E. Rodriguez-Villegas, “An ultralow power system on chip for automatic sleep staging,” IEEE Journal of Solid-State Circuits, vol. 52, no. 3, pp. 822–833, 2017.
[43] H. Kassiri, A. Chemparathy, M. T. Salam, R. Boyce, A. Adamantidis, and R. Genov, “Electronic sleep stage classifiers: A survey and VLSI design methodology,” IEEE transactions on biomedical circuits and systems, vol. 11, no. 1, pp. 177–188, 2016.
[44] Y. Liao, C. Zhang, M. Zhang, Z. Wang, and X. Xie, “Lightsleepnet: Design of a personalized portable sleep staging system based on single-channel eeg.” IEEE Transactions on Circuits and Systems II: Express Briefs, vol. 69, no. 1, pp. 224–228, 2021.
[45] T. Robitaille and X. Liu, “Sleepvit: a compact vision transformer accelerator for sleep stage classification in wearable devices,” Neuroelectronics, vol. 3, no. 1, pp. 1–18, 2026.
[46] X. Chang, H. Pan, W. Lin, and H. Gao, “A mixed-pruning based framework for embedded convolutional neural network acceleration,” IEEE Transactions on Circuits and Systems I: Regular Papers, vol. 68, no. 4, pp. 1706–1715, 2021.
[47] Y. Meng, C. Yang, Q. Fu, J. Wang, S. Xiang, G. Li, and L. Geng, “An efficient cnn accelerator exploiting novel tile-based near-structured sparsity to achieve multi-level irregularity elimination,” IEEE Transactions on Circuits and Systems I: Regular Papers, 2025.
[48] L. Feng, H. Shan, Y. Zhang, and Z. Zhu, “An efficient model-compressed eegnet accelerator for generalized brain-computer interfaces with near sensor intelligence,” IEEE Transactions on Biomedical Circuits and Systems, vol. 16, no. 6, pp. 1239–1249, 2022.
[49] P. Peng, K. Jiang, M. You, J. Xie, H. Zhou, W. Xu, J. Lu, X. Li, and Y. Xu, “Design of an efficient cnn-based cough detection system on lightweight fpga,” IEEE Transactions on Biomedical Circuits and Systems, vol. 17, no. 1, pp. 116–128, 2023.
Aaron Zhou is currently working towards the B.A.Sc. degree in Computer Engineering at University of Toronto. He joined X-Lab in 2022, where he worked on software and hardware designs for biomedical applications. His research interests include co-design of algorithms and specialized hardware for real world applications.


Yaqian Xu is currently working towards the Ph.D. degree in Department of Electrical and Computer Engineering (ECE) at University of Toronto. She obtained her B.A.Sc degree in Telecommunication Engineering from Beijing University of Posts and Telecommunications and M.A.Sc degree in Biomedical Engineering from Tsinghua University, respectively. She joined X-Lab in 2023 working on efficient machine/deep learning and its accelerations for brain machine interface applications.

Mingzhe Sun received his B.A.Sc. in Computer Engineering from the University of Toronto in 2023 and his M.Eng. in Electrical and Computer Engineering from Cornell University in 2024. He previously conducted research in edge machine learning at X-Lab, University of Toronto. Since 2024, he has been with TSMC as a Physical Design Engineer, working on advanced technology nodes.

Chen Chen received BASc degree in electrical and computer engineering from the University of Toronto, Toronto, ON, Canada, in 2024. He is currently a Silicon Design Engineer at AMD. In 2023, he joined X-Lab at the University of Toronto, where he contributed to the development of FPGA-based hardware acceleration platforms. His interests include digital hardware design, SoC architecture, hardware acceleration, and reconfigurable systems.

Naize Yang (Graduate Student Member, IEEE) received the B.A.Sc. degree in Electrical Engineering from the University of Toronto, Toronto, ON, Canada, in 2023. He is currently pursuing the M.A.Sc. degree at the same institution. His research interests include High-frequency phase-locked loop (PLL) design and high-speed wireline circuit design.

James Yen received the B.A.Sc. Degree in Computer Engineering from the University of Toronto, Toronto, Canada. He is currently pursuing his M.A.Sc. in Computer Engineering. His research interests include heterogeneous computing and compiler design for domain-specific accelerators.

Weihang Zheng graduated with an undergraduate degree in Computer Engineering from the University of Toronto in 2024. He now has one year of experience as an Embedded Software Developer working on ASIC drivers at Fortinet in Sunnyvale. His interests in college included various branches of ML and AI including Neural Architecture Search.

Mark Zhao was born in Nanjing, Jiangsu, China in 2002. He received his Bachelor's degree in Computer Engineering from University of Toronto, Toronto, Ontario, Canada, in 2025. He is currently preparing to begin his graduate studies at Georgia Institute of Technology.

Andrew G. Richardson (Senior Member, IEEE) received the B.S.E degree in biomedical engineering from Case Western Reserve University, Cleveland, OH, USA in 2000 and the S.M. degree in mechanical engineering and Ph.D. degree in biomedical engineering from the Massachusetts Institute of Technology, Cambridge, MA, USA in 2003 and 2007, respectively.
He was a Senior Fellow at the University of Washington, Seattle, WA, USA from 2008 to 2012 and a Senior Research Investigator at the University
of Pennsylvania, Philadelphia, PA, USA from 2012 to 2015. He is currently a Research Assistant Professor of Neurosurgery at the University of Pennsylvania. His primary research interest is in brain-machine interfaces.
Dr. Richardson coauthored papers selected for Best Paper Awards at the IEEE International Symposium on Circuits and Systems in 2014 and 2017, at the IEEE Biomedical Circuits and Systems Conference in 2015, and at the IEEE Radio Frequency Integrated Circuits Symposium in 2020. His work was a finalist for the Brain-Computer Interface Award in 2018 and received an Outstanding Paper Award from the journal Microsystems & Nanoengineering in 2021.

Xilin Liu (Senior Member, IEEE) obtained his Ph.D. degree from the University of Pennsylvania, Philadelphia, PA, USA, in 2017. He is currently an Assistant Professor in the Edward S. Rogers Sr. Department of Electrical and Computer Engineering (ECE) at the University of Toronto, Toronto, ON, Canada. He is also an affiliated scientist at the University Health Network (UHN), Toronto, ON, Canada. His research interests include analog and mixed-signal IC design for biomedical circuits and systems, especially for neural interfacing and neuromodulation. Before joining the University of Toronto, he held industrial positions at Qualcomm Inc., San Diego, CA, USA.
Dr. Liu served as an Associate Editor of the IEEE TRANSACTIONS OF BIOMEDICAL CIRCUITS AND SYSTEMS in 2023-2025 and the IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS II: EXPRESS BRIEFS in 2023-2025. He also served on the committees of several CASS and SSCS conferences.