Kavoosi Ali, Mitchell Morgan P, Kariyawasam Raveen, Fleming John E, Lewis Penny, Johansen-Berg Heidi, Cagnan Hayriye, Denison Timothy
MRC Brain Network Dynamics Unit, University of Oxford, Oxford, UK.
Wellcome Centre for Integrative Neuroimaging, University of Oxford, Oxford, UK.
Conf Proc IEEE Int Conf Syst Man Cybern. 2023 Oct;2023:2315-2320. doi: 10.1109/SMC53992.2023.10394274.
Sleep Stage Classification (SSC) is a labor-intensive task, requiring experts to examine hours of electrophysiological recordings for manual classification. This is a limiting factor when it comes to leveraging sleep stages for therapeutic purposes. With increasing affordability and expansion of wearable devices, automating SSC may enable deployment of sleep-based therapies at scale. Deep Learning has gained increasing attention as a potential method to automate this process. Previous research has shown accuracy comparable to manual expert scores. However, previous approaches require sizable amount of memory and computational resources. This constrains the ability to classify in real time and deploy models on the edge. To address this gap, we aim to provide a model capable of predicting sleep stages in real-time, without requiring access to external computational sources (e.g., mobile phone, cloud). The algorithm is power efficient to enable use on embedded battery powered systems. Our compact sleep stage classifier can be deployed on most off-the-shelf microcontrollers (MCU) with constrained hardware settings. This is due to the memory footprint of our approach requiring significantly fewer operations. The model was tested on three publicly available data bases and achieved performance comparable to the state of the art, whilst reducing model complexity by orders of magnitude (up to 280 times smaller compared to state of the art). We further optimized the model with quantization of parameters to 8 bits with only an average drop of 0.95% in accuracy. When implemented in firmware, the quantized model achieves a latency of 1.6 seconds on an Arm Cortex-M4 processor, allowing its use for on-line SSC-based therapies.
睡眠阶段分类(SSC)是一项劳动密集型任务,需要专家检查数小时的电生理记录以进行手动分类。在将睡眠阶段用于治疗目的时,这是一个限制因素。随着可穿戴设备价格的不断降低和应用范围的扩大,实现SSC自动化可能会使基于睡眠的疗法得到大规模应用。深度学习作为一种使这一过程自动化的潜在方法,越来越受到关注。先前的研究表明其准确率与专家手动评分相当。然而,先前的方法需要大量内存和计算资源。这限制了实时分类以及在边缘设备上部署模型的能力。为了弥补这一差距,我们旨在提供一种能够实时预测睡眠阶段的模型,无需访问外部计算资源(如手机、云端)。该算法功耗低,能够在嵌入式电池供电系统上使用。我们紧凑的睡眠阶段分类器可以部署在大多数硬件设置受限的现成微控制器(MCU)上。这是因为我们的方法内存占用小,所需操作显著减少。该模型在三个公开数据库上进行了测试,性能与现有技术相当,同时将模型复杂度降低了几个数量级(与现有技术相比小280倍)。我们进一步将模型参数量化为8位,准确率仅平均下降0.95%。在固件中实现时,量化后的模型在Arm Cortex-M4处理器上的延迟为1.6秒,可用于基于在线SSC的疗法。