Respiratory rate (RR) is a critical indicator of physiological status, yet unobtrusive and continuous RR monitoring remains challenging, particularly in wearable applications that require soft, lightweight, and low-power sensing systems. This paper presents an integrated approach that combines a textile-embedded embroidered strain-gauge sensor with Tiny Machine Learning (TinyML) to enable real-time, on-device RR estimation. The sensing platform consists of a textile-integrated meander-pattern strain gauge and a fabric-mounted analog readout circuit, which together capture thoracic expansion during breathing. Two lightweight neural network models—a convolutional neural network (CNN) operating on raw respiratory waveforms and a dense neural network (DNN) operating on wavelet features—were developed and trained using a public strain-sensor dataset and a custom dataset collected with the textile system (TexHype dataset). Both models were optimized through 8-bit quantization and deployed to an STM32L4 microcontroller, where end-to-end on-device preprocessing, filtering, segmentation, normalization, and inference were performed. The CNN achieved the highest accuracy, with a mean absolute error (MAE) of 1.23 breaths per minute (BPM) on the TexHype dataset, but exhibited substantial inference latency (5.8–6.2 s) due to its computational complexity. In contrast, the wavelet-based DNN demonstrated lower accuracy (MAE 2.21 BPM) but achieved real-time performance with inference times of 18–96 ms, and a power overhead (ΔP=Pactive−Pidle) of approximately 3.3 mW during inference. Cross-dataset testing revealed limited generalization between different strain-sensor platforms. The findings highlight key trade-offs between accuracy, latency, and energy efficiency, and illustrate the potential of combining stretchable electronics with embedded intelligence to enable next-generation wearable respiratory monitoring systems.
Egwu et al. (Wed,) studied this question.