CoolFace
Apppublic

Sarvjais12/Pollution_Anomaly_Detector

sourceHugging Facemitupdated 9mo agoView on Hugging Face
1likes
App README

๐Ÿ“‰ Delhi Air Quality Forecaster (PM2.5)

๐ŸŒ About This Project

This application predicts future air pollution levels (PM2.5) in New Delhi, India. Delhi faces a severe air quality crisis every winter due to a combination of weather patterns, crop burning, and vehicular emissions. This tool aims to forecast these hazardous "smog spikes" months in advance, demonstrating how machine learning can aid in proactive crisis management.

๐Ÿง  How It Works

The model is built on historical daily air quality data and uses SARIMA (Seasonal AutoRegressive Integrated Moving Average).

  • โ€”Why SARIMA? Unlike standard models, SARIMA specifically understands "seasonality"โ€”the repeating 12-month cycle of Delhi's pollution.
  • โ€”Training Data: The model learned from years of historical PM2.5 readings, identifying that pollution consistently peaks in winter (Nov-Jan) and drops in summer.

๐Ÿš€ How to Use

  1. 1.Adjust the Slider: Select how many months into the future you want to forecast (e.g., 6 months, 12 months).
  2. 2.View the Graph: ๐Ÿ”ต Blue Line:* The model's understanding of recent history.
  3. 3.๐Ÿ”ด Red Dashed Line: The predicted future pollution levels.
  4. 4.Analyze: Look for the sharp spikes in the red lineโ€”these indicate predicted hazardous air quality periods.

โš ๏ธ Disclaimer

This is a machine learning project for educational and research purposes. While the model captures seasonal trends effectively (RMSE ~27.5), real-world air quality is also affected by unpredictable daily factors like sudden rain, wind speed, or policy changes.

Created by Sarvagya Jaiswal | Powered by Scikit-Learn, Statsmodels, and Gradio.

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference