Real-Time Air Quality Monitoring and Smart Filtration System Using Edge-Based Machine Learning
Shreya Chakraborty¹, Samiksha Kumbhalkar², Shravani Rane³, Ruchita Khirodkar⁴, Surbhi Vaidya⁵
1,2,3,4,5 Department of Electronics & Telecommunication Engineering, MKSSS's Cummins College of Engineering for Women, Nagpur, India
Guide: Prof Anil Bavaskar , Assistant Professor , Department of E&TC, Nagpur
Abstract -
Indoor air pollution poses a severe and growing public health risk, with household environments frequently experiencing elevated concentrations of volatile organic compounds, combustible gases, and smoke due to cooking, cleaning activities, and inadequate ventilation. Conventional air purifiers operate on fixed schedules without awareness of actual pollutant concentrations, resulting in energy wastage during safe periods and insufficient purification during pollution events. This paper presents a real-time air quality monitoring and smart filtration system that integrates MQ2, MQ4, and MQ135 gas sensors with an ESP8266/ESP32 microcontroller performing edge-based machine learning inference for intelligent, adaptive filtration control. The system converts raw sensor readings to PPM concentrations and calculates a composite Air Quality Index (AQI). Five machine learning techniques are applied: Linear Regression for AQI prediction, Decision Tree for smart filter speed control, Isolation Forest for anomaly detection, ML-based sensor calibration correction, and time-based pattern prediction. Results are displayed locally on an LCD and simultaneously uploaded to Firebase Realtime Database feeding a web dashboard with five live real-time graphs. The HEPA H13 filter is controlled automatically with variable fan speed (0–100%) based on AQI classification and ML recommendations. Experimental validation confirms AQI prediction R² above 0.87, Decision Tree filter control accuracy above 90%, and average system response time under 3.5 seconds — all achieved at a total hardware cost of approximately Rs. 3,000.
Key Words: Air Quality Index, MQ2, MQ4, MQ135, ESP32, ESP8266, Machine Learning, Linear Regression, Decision Tree, Isolation Forest, Firebase, HEPA Filter, Edge Computing, IoT, Smart Filtration.