Data compression for an edge-based machine learning model in IOT devices.
Abstract
In this project, an IoT device, comprising an AD8232 ECG sensor kit and ESP32 microcontroller, was designed and developed to collect ECG data. Compression using the wavelet transform was then applied on the collected data prior to transmission giving a compression ratio of 12.8. The transmitted data was then reconstructed on the edge and processed using a deep learning sequential model. The model had training and validation accuracies of 97.1% and 96.5% respectively. In the aforementioned approach, we considered the context of driving behaviour monitoring in where ECG signals data are collected from the driver using the developed IoT device and sent to an edge node for stress level detection. The results showed that the transmission time of the 5s segments of the electrocardiogram data was reduced on average by 1.931s when compression was used and this had no effect on the model’s accuracy.