Skip to content

Latest commit

 

History

History

Detecting-IoT-Sensor-fault-using-ML

Detecting IOT Sensor Fault using Machine Learning

Abstract

Air Pressure System is a vital component of any heavy-duty vehicle. It generates pressurized air that is used for different tasks such as braking, gear changing, etc. making it a very important subject of maintenance. Air Pressure System failure is common in heavy vehicles and the service and maintenance costs for such failures are high. We monitor the health of this system using sensors.

These sensors provide the company with real-time data. As these machines usually work in harsh environments, the sensors sometimes return abnormal data, which confuses the engineers.

Problem Statement

To save cost and labour the company wants engineers to be sure about condition of air pressure system. So now we have a binary classification problem in which the affirmative class indicates that the anomaly was caused by a certain component of the APS, while the negative class indicates that the anomaly was caused by something else. If the anomaly was caused by APS component then engineers will repair or replace it.

Objective

  • Develop a machine learning model that can predict IOT sensor faults.
  • Building a robust machine learning training pipeline.
  • When new training data becomes available, a workflow that includes data validation, preprocessing, model training, analysis, and deployment will be triggered.

Description

We build a machine learning training pipeline that can adapt to new data over time, ensuring that our models are always accurate and up to date. By doing so, we aim to improve the performance of our models, reduce the risk of making incorrect predictions, and increase the overall value of our machine learning system. Ultimately, we hope that our pipeline will enable us to make better, data-driven decisions that can drive business success and create real-world impact.

Step 1 - Copying repo in local machine

git clone https://github.com/vaasu2002/Detecting-IOT-Sensor-Failures-using-Machine-Learning.git

Step 2 - Create a conda environment

conda create -p sensors python==3.7.6 -y

or

conda create --prefix ./env python=3.7 -y

Step 3 - Activate the conda environment

conda activate sensors/

or

source activate ./sensors

Step 4 - Installing dependencies

pip install -r requirements.txt

Step 5 - Exporting the environment variable

export AWS_ACCESS_KEY_ID=<AWS_ACCESS_KEY_ID>
export AWS_SECRET_ACCESS_KEY=<AWS_SECRET_ACCESS_KEY>
export AWS_DEFAULT_REGION=<AWS_DEFAULT_REGION>

Tech Stack

Kafka Python MongoDB Jupyter Pandas scikit-learn AWS Confluence Docker