Journal of Mechatronics and Artificial Intelligence
Vol 1, No 2 (2024): JMAI: December 2024

Air Quality Classification System using Random Forest Algorithm using MQ-7 and MQ-135 Sensors with IoT-based

Aisyah Aira Putri Maharani (Universitas Pendidikan Indonesia)
Rizky Hamdani Sakti (Universitas Pendidikan Indonesia)
Muhamad Fajar Imanul Haq (Universitas Pendidikan Indonesia)
Muhamad Ajis (Universitas Pendidikan Indonesia)
Abdu Malikh Silaban (Universitas Pendidikan Indonesia)



Article Info

Publish Date
23 Dec 2024

Abstract

Air is one of the essential elements in human life besides water and soil. However, currently the air quality in Indonesia is getting worse. Therefore, an air quality classification system using Random Forest algorithm based on CO and CO2 levels using IoT-based MQ7 and MQ13 sensors is needed as a smart solution. The workflow of this system begins with detecting air quality using the MQ-7 sensor for CO gas and the MQ-135 sensor for CO2 gas. Then, the classification process is carried out with the Machine Learning Random Forest algorithm by utilizing a number of training data that has been stored in the program to classify the gas sensor detection results into three types of classes, namely “Good”, “Bad”, or “Toxic”. The final output of this system is a website display that can be accessed on a PC/Laptop monitor in real time. From the results of the Random Forest machine learning algorithm classification testing process, 1 unsuitable data was found from a total of 100 trials that have been carried out. Therefore, the Random Forest machine learning algorithm can be said to be successful in detecting air levels in the surrounding environment well because it provides an accuracy value of 99%.

Copyrights © 2024






Journal Info

Abbrev

JMAI

Publisher

Subject

Computer Science & IT Control & Systems Engineering Electrical & Electronics Engineering Engineering Mechanical Engineering

Description

The Journal of Mechatronics and Artificial Intelligence (JMAI) (E-ISSN 3048-4227 P-ISSN 3062-729X) serves as a platform for disseminating scholarly research related to the fields of mechatronics and artificial intelligence, as well as related sub-disciplines. We extend an invitation to researchers, ...