Back to search

Nanyang Technological University

Low-footprint autoencoder design for respiratory sound compression on microcontrollers

Abstract

dc:description.abstract

Continuous monitoring of respiratory sounds is crucial for the early detection and classification of pulmonary diseases. However, transmitting raw, high-bandwidth acoustic data places a severe burden on wireless telemetry systems in Internet of Medical Things (IoMT) applications. While deep learning-based autoencoders offer superior diagnostic fidelity compared to traditional perceptual codecs, their substantial memory and computational requirements prohibit direct deployment on resource-constrained microcontroller units (MCUs) at the edge. This dissertation proposes a low-footprint, asymmetric autoencoder framework specifically designed for respiratory sound compression on MCU platforms. Utilizing the Shanghai Jiao Tong University (SJTU) Paediatric Respiratory Sound Database (SPRSound), an asymmetric architecture is developed employing residual blocks and a multi-resolution short-time Fourier transform (STFT) hybrid loss function to strictly preserve critical time-frequency pathological features, such as wheezes and crackles. To comply with the strict 256 KB random-access memory (RAM) and 1 MB Flash limitations of the target nRF52840DK microcontroller, the encoder is systematically optimized through input signal truncation, depthwise separable convolutions (DSC), and 8-bit integer (INT8) post-training quantization (PTQ). Experimental results demonstrate that the DSC optimization reduces the encoder's parameter count by 83\%, from 308,464 to merely 50,579. Following successful hardware deployment via TensorFlow Lite for Microcontrollers (TFLM) and the Zephyr real-time operating system (RTOS), the system consumes only 178.49 KB of firmware read-only memory (ROM) and 126.2 KB of peak inference RAM. Despite these extreme embedded constraints, the hardware-deployed model achieves a 62.5x compression ratio relative to standard 16-bit pulse-code modulation (PCM) audio while maintaining exceptional reconstruction fidelity, yielding a correlation coefficient (CC) of 0.9345 and a percentage root mean square difference (PRD) of 35.68\%. This work validates the feasibility of embedding high-fidelity, data-driven respiratory sound compression directly on edge sensors, significantly alleviating bandwidth bottlenecks for wearable medical devices.

Degree

thesis:*
College dc:contributor.school
School of Electrical and Electronic Engineering
Grantor dc:publisher
Nanyang Technological University
Year dc:date.issued
2026

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Zhang, Zixuan
Advisor dc:contributor.supervisor
  • Goh Wang Ling

Subjects

dc:subject × 1

Rights

Language dc:language.iso
en

Identifiers

dc:identifier.*
Handle dc:identifier.uri
https://hdl.handle.net/10356/216454

Chain of custody

source
Harvested from
Nanyang Technological University
Base URL
dr.ntu.edu.sg/oai/request
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
related terms
citation

Zhang, Zixuan. Low-footprint autoencoder design for respiratory sound compression on microcontrollers. Nanyang Technological University, 2026. https://hdl.handle.net/10356/216454