Skip to main content

Research Repository

Advanced Search

Machine Learning-based Real-Time Sensor Drift Fault Detection using Raspberry Pi

Saeed, Umer; Ullah Jan, Sana; Lee, Young-Doo; Koo, Insoo


Umer Saeed

Young-Doo Lee

Insoo Koo


From smart industries to smart cities, sensors in the modern world plays an important role by covering a large number of applications. However, sensors get faulty sometimes leading to serious outcomes in terms of safety, economic cost and reliability. This paper presents an analysis and comparison of the performances achieved by machine learning techniques for realtime drift fault detection in sensors using a low-computational power system, i.e., Raspberry Pi. The machine learning algorithms under observation include artificial neural network, support vector machine, naïve Bayes classifier, k-nearest neighbors and decision tree classifier. The data was acquired for this research from digital relative temperature/humidity sensor (DHT22). Drift fault was injected in the normal data using Arduino Uno microcontroller. The statistical time-domain features were extracted from normal and faulty signals and pooled together in training data. Trained models were tested in an online manner, where the models were used to detect drift fault in the sensor output in real-time. The performance of algorithms was compared using precision, recall, f1-score, and total accuracy parameters. The results show that support vector machine (SVM) and artificial neural network (ANN) outperform among the given classifiers.

Presentation Conference Type Conference Paper (Published)
Conference Name 2020 International Conference on Electronics, Information, and Communication (ICEIC)
Start Date Jan 19, 2020
End Date Jan 22, 2020
Online Publication Date May 27, 2020
Publication Date 2020
Deposit Date Oct 21, 2022
Publisher Institute of Electrical and Electronics Engineers
Book Title 2020 International Conference on Electronics, Information, and Communication (ICEIC)
Keywords Sensor fault, fault detection, drift fault, classification, raspberry-pi
Public URL