Tiny Machine Learning Implementation for a Textile-Integrated Breath Rate Sensor
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.
Authors
- Ferenc Ender (ORCID: https://orcid.org/0000-0003-3800-5707)
- Georgios Kokkinis (ORCID: https://orcid.org/0000-0002-6124-7934)
- Rudolf Heer
- Kenneth Egwu (ORCID: https://orcid.org/0000-0002-8471-0215)
Institutions
- Budapest University of Technology and Economics (HU)
- Silicon Austria Labs (Austria) (AT)
Publication Details
- Journal
- Electronics
- Published
- 2026-04-15
- DOI
- https://doi.org/10.3390/electronics15081646
- Primary Topic
- Advanced Sensor and Energy Harvesting Materials
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Silicon Austria Labs
- Österreichische Forschungsförderungsgesellschaft
- Steirische Wirtschaftsförderungsgesellschaft