AirGuard
Exposure tracking
The problem AirGuard solves
PPT UPDATED- with corrections from the final round (attached references of the app working)
PPT LINK:
https://docs.google.com/presentation/d/1Tu0pnkzkbt8thUxekTCbNQ1qo5Dxm01C6IKoMwVOLng/edit?usp=sharing
Beyond city AQI: do we know our personal exposure or how to
recover? AirGuard replaces generic monitoring with individualized tracking, habit
simulation, and data-driven policy testing
🌍AirGuard
Real-Time Air Quality Monitoring & Alert System
Even in the same city, people experience different pollution exposure. Someone who spends more time outdoors breathes far more polluted air than someone mostly indoors. <br>
AirGuard tracks every outdoor session using geofencing and combines duration × live AQI to calculate each user’s personal exposure score.<br>
This app helps users understand how much polluted air they personally breathe every day using live AQI data and geofencing.
At the end of the day, the app also generates a personalized recovery plan (breathing + diet suggestions) using the Gemini API.
link for testing [https://jocular-taffy-92e528.netlify.app/]
📚Table of Contents
🧩Features
1. Real-Time AQI Tracking
- Fetches live AQI from WAQI API
- Shows current AQI and PM2.5 around the user
2. Score factor
- User sets home location
- Geofence detects when user leaves/enters home
Dynamic Score Formula <br>
dartfinalExposureScore = baseScore * vulnerabilityMultiplier * protectionFactor <br>
where: <br>
baseScore = time_outside * AQI <br>
vulnerabilityMultiplier = 1.0 + (sum of negative factors) <br>
protectionFactor = 1.0 - (sum of positive factors) <br>
3. Daily Exposure Summary
Displays:
- Today’s time outdoors
- Average AQI
- Total exposure score
4. Auto generated recovery plan
- Score 0–100 → Low (Simple breathing exercises (2–3 guided breathing rounds))<br>
- Score 101–250 → Moderate (Recovery: Hydration + light movement (1 hydration action + 2 light movements / stretches))<br>
- Score 251–400 → High (Mask + avoid exposure + diet + breathing (mask reminder, 2 dietary tips, 1 breathing + light indoor activity))<br>
- Score 400 → Critical (Doctor recommendation + immediate actions (call-to-action, emergency tips, reduce exposure now))<br>
4. Health Profile & Risk Personalization
- Users can declare asthma or other respiratory conditions.
- Risk thresholds adjust based on individual vulnerability.
- Alerts are personalized to exposure level and health status.
- Provides tailored precautions and safer route suggestions.
5. Low-Pollution Route Optimization Map
- Interactive map with air quality heat zones across the city.
- Shows both the normal route and a cleaner alternative.
- Highlights the healthier path with a message like “40% less pollution exposure.
6. Future Exposure Simulation
- Exposure Prediction: Forecasts your upcoming pollution exposure based on recent trends and current lifestyle patterns.
- Smart Simulation Mode: Lets you simulate how following recommended actions can reduce future exposure.
- Visual Projection Graphs: Extends weekly and monthly analytics with predicted values shown distinctly for clarity.
- Actionable Health Insights: Quantifies potential reduction (e.g., “Reduce exposure by 32%”) to encourage preventive decisions.
💻Tech Stack & Dependencies
Tech Stack
- Flutter for framework<br>
- Dart for Language
Dependencies
geolocator – For live GPS tracking and geofencing<br>
WAQI API – For live AQI and PM2.5 data
📥Installation & Setup
Download Flutter SDK<br>
Configure System Environment Variables<br>
Install Android studio<br>
Set up Android Studio for Flutter<br>
Accept Android Licenses / Configure SDK<br>
Verify Installation — Run flutter doctor<br>
Create a New Flutter Project<br>
and
1. Clone the repository
bash
git clone [https://github.com/retrospecs0801/_air_guard]
cd air_guard
2. Install dependencies
bash
flutter pub get
Set up your wireless device.<br>
and
4. Run the application
bash
flutter run
📱How the app works?
(refer the video for detailed explaination)
- Click on the set home buttton.
- Walk about 15 m away from the location in order to get outside the preset home location
- Session starts as you get out of the preset home location
- Once you get back to the home location it will show the total exposure (which is equal to the time outside * AQI of the location.
- Scroll down to see the recovery option click on it.
- It shows the solutions to follow according to the level of exposure.
- Click on the task to start your recovery sesssion.
- Complete them.
- YEAH!! you have countered your AQI exposure.
Technologies used