Cargando…

Optimising Deep Learning at the Edge for Accurate Hourly Air Quality Prediction

Accurate air quality monitoring requires processing of multi-dimensional, multi-location sensor data, which has previously been considered in centralised machine learning models. These are often unsuitable for resource-constrained edge devices. In this article, we address this challenge by: (1) desi...

Descripción completa

Detalles Bibliográficos
Autores principales: Wardana, I Nyoman Kusuma, Gardner, Julian W., Fahmy, Suhaib A.
Formato: Online Artículo Texto
Lenguaje:English
Publicado: MDPI 2021
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7913936/
https://www.ncbi.nlm.nih.gov/pubmed/33557203
http://dx.doi.org/10.3390/s21041064
_version_ 1783656918629220352
author Wardana, I Nyoman Kusuma
Gardner, Julian W.
Fahmy, Suhaib A.
author_facet Wardana, I Nyoman Kusuma
Gardner, Julian W.
Fahmy, Suhaib A.
author_sort Wardana, I Nyoman Kusuma
collection PubMed
description Accurate air quality monitoring requires processing of multi-dimensional, multi-location sensor data, which has previously been considered in centralised machine learning models. These are often unsuitable for resource-constrained edge devices. In this article, we address this challenge by: (1) designing a novel hybrid deep learning model for hourly PM(2.5) pollutant prediction; (2) optimising the obtained model for edge devices; and (3) examining model performance running on the edge devices in terms of both accuracy and latency. The hybrid deep learning model in this work comprises a 1D Convolutional Neural Network (CNN) and a Long Short-Term Memory (LSTM) to predict hourly PM(2.5) concentration. The results show that our proposed model outperforms other deep learning models, evaluated by calculating RMSE and MAE errors. The proposed model was optimised for edge devices, the Raspberry Pi 3 Model B+ (RPi3B+) and Raspberry Pi 4 Model B (RPi4B). This optimised model reduced file size to a quarter of the original, with further size reduction achieved by implementing different post-training quantisation. In total, 8272 hourly samples were continuously fed to the edge device, with the RPi4B executing the model twice as fast as the RPi3B+ in all quantisation modes. Full-integer quantisation produced the lowest execution time, with latencies of 2.19 s and 4.73 s for RPi4B and RPi3B+, respectively.
format Online
Article
Text
id pubmed-7913936
institution National Center for Biotechnology Information
language English
publishDate 2021
publisher MDPI
record_format MEDLINE/PubMed
spelling pubmed-79139362021-02-28 Optimising Deep Learning at the Edge for Accurate Hourly Air Quality Prediction Wardana, I Nyoman Kusuma Gardner, Julian W. Fahmy, Suhaib A. Sensors (Basel) Article Accurate air quality monitoring requires processing of multi-dimensional, multi-location sensor data, which has previously been considered in centralised machine learning models. These are often unsuitable for resource-constrained edge devices. In this article, we address this challenge by: (1) designing a novel hybrid deep learning model for hourly PM(2.5) pollutant prediction; (2) optimising the obtained model for edge devices; and (3) examining model performance running on the edge devices in terms of both accuracy and latency. The hybrid deep learning model in this work comprises a 1D Convolutional Neural Network (CNN) and a Long Short-Term Memory (LSTM) to predict hourly PM(2.5) concentration. The results show that our proposed model outperforms other deep learning models, evaluated by calculating RMSE and MAE errors. The proposed model was optimised for edge devices, the Raspberry Pi 3 Model B+ (RPi3B+) and Raspberry Pi 4 Model B (RPi4B). This optimised model reduced file size to a quarter of the original, with further size reduction achieved by implementing different post-training quantisation. In total, 8272 hourly samples were continuously fed to the edge device, with the RPi4B executing the model twice as fast as the RPi3B+ in all quantisation modes. Full-integer quantisation produced the lowest execution time, with latencies of 2.19 s and 4.73 s for RPi4B and RPi3B+, respectively. MDPI 2021-02-04 /pmc/articles/PMC7913936/ /pubmed/33557203 http://dx.doi.org/10.3390/s21041064 Text en © 2021 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
spellingShingle Article
Wardana, I Nyoman Kusuma
Gardner, Julian W.
Fahmy, Suhaib A.
Optimising Deep Learning at the Edge for Accurate Hourly Air Quality Prediction
title Optimising Deep Learning at the Edge for Accurate Hourly Air Quality Prediction
title_full Optimising Deep Learning at the Edge for Accurate Hourly Air Quality Prediction
title_fullStr Optimising Deep Learning at the Edge for Accurate Hourly Air Quality Prediction
title_full_unstemmed Optimising Deep Learning at the Edge for Accurate Hourly Air Quality Prediction
title_short Optimising Deep Learning at the Edge for Accurate Hourly Air Quality Prediction
title_sort optimising deep learning at the edge for accurate hourly air quality prediction
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7913936/
https://www.ncbi.nlm.nih.gov/pubmed/33557203
http://dx.doi.org/10.3390/s21041064
work_keys_str_mv AT wardanainyomankusuma optimisingdeeplearningattheedgeforaccuratehourlyairqualityprediction
AT gardnerjulianw optimisingdeeplearningattheedgeforaccuratehourlyairqualityprediction
AT fahmysuhaiba optimisingdeeplearningattheedgeforaccuratehourlyairqualityprediction