Supervised Contrastive Learning Framework and Hardware Implementation of Learned ResNet for Real-Time Respiratory Sound Classification
- 5 June 2024
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Biomedical Circuits and Systems
- Vol. 19 (1) , 185-195
Abstract
This paper presents a supervised contrastive learning (SCL) framework for respiratory sound classification and the hardware implementation of learned ResNet on field programmable gate array (FPGA) for real-time monitoring. At the algorithmic level, multiple techniques such as features augmentation and MixUp are combined holistically to mitigate the impact of data scarcity and imbalanced classes in the training dataset. Bayesian optimization further enhances the classification accuracy through parameter tuning in pre-processing and SCL. The proposed framework achieves 0.8725 total score (including runtime score) on a ResNet-18 model in both event and record multi-class classification tasks using the SJTU Paediatric Respiratory Sound Database (SPRSound). In addition, algorithm-hardware co-optimizations including Quantization-Aware Training (QAT), merge of network layers, optimization of memory size and number of parallel threads are performed for hardware implementation on FPGA. This approach reduces 40% model size and 70% computation latency. The learned ResNet is implemented on a Xilinx Zynq ZCU102 FPGA with 16ms latency and less than 2% inference score degradation compared to the software model.Keywords
Funding Information
- Agency for Science, Technology and Research (A*STAR), Singapore under the Nanosystems at the Edge Programme (A18A1b0055)
This publication has 41 references indexed in Scilit:
- Energy Efficient Software-hardware Co-design of Quantized Recurrent Convolutional Neural Network for Continuous Cardiac Monitoring2023
- An Effective Lung Sound Classification System for Respiratory Disease Diagnosis Using DenseNet CNN Model with Sound Pre-processing Engine2022
- Improving The ResNet-based Respiratory Sound Classification Systems With Focal Loss2022
- Grand Challenge on Respiratory Sound Classification for SPRSound Dataset2022
- A Feature Polymerized Based Two-Level Ensemble Model for Respiratory Sound Classification2022
- Classify Respiratory Abnormality in Lung Sounds Using STFT and a Fine-Tuned ResNet18 Network2022
- Automatic pulmonary auscultation grading diagnosis of Coronavirus Disease 2019 in China with artificial intelligence algorithms: A cohort studyComputer Methods and Programs in Biomedicine, 2021
- LungAttn: advanced lung sound classification using attention mechanism with dual TQWT and triple STFT spectrogramPhysiological Measurement, 2021
- Hidden Markov Model Based Respiratory Sound Classification2017
- Empirical Risk Minimization2016