EcoGuard AI MCP Server
README.md
๐ EcoGuard AI โ Industrial Pollution Compliance Monitoring System
๐ A Multi-Agent AI System for Monitoring Industrial Water and Air Pollution Compliance using CPCB Standards
๐ Project Overview
EcoGuard AI is a Multi-Agent Artificial Intelligence system designed to monitor industrial wastewater quality and air emissions in real time. The system automatically evaluates environmental parameters against CPCB (Central Pollution Control Board) standards, detects violations, generates alerts, and produces compliance audit reports.
This project demonstrates how AI agents can collaborate to improve environmental monitoring, industrial safety, and regulatory compliance.
๐ฏ Developed for the Google x Kaggle AI Agents Capstone Project (Agents for Good Track).
โ Problem Statement
Industrial facilities often struggle to continuously monitor environmental pollution levels and ensure compliance with CPCB regulations.
Common challenges include:
๐ซ๏ธ Air pollution violations
๐ง Wastewater contamination
โ ๏ธ Delayed detection of environmental risks
๐ Manual compliance reporting
๐จ Slow incident response
EcoGuard AI addresses these challenges through automated monitoring, intelligent analysis, alert generation, and compliance reporting.
๐ฏ Project Objectives
โ
Monitor industrial wastewater quality
โ
Monitor industrial air emissions
โ
Detect CPCB compliance violations
โ
Generate automated SMS and Email alerts
โ
Demonstrate Multi-Agent AI collaboration
โ
Provide Explainable AI reasoning
โ
Generate compliance audit reports
๐ค Multi-Agent Architecture
EcoGuard AI uses a collaborative Multi-Agent architecture where specialized agents work together to perform environmental compliance monitoring.
๐ง EcoGuardMaster Agent
Responsibilities
Receives compliance requests
Coordinates all agents
Collects analysis results
Makes final compliance decisions
Generates audit workflow
๐ง WaterMonitor Agent
Responsibilities
Monitors wastewater parameters
Evaluates CPCB water quality limits
Detects water pollution violations
Parameters Monitored
pH
BOD (Biochemical Oxygen Demand)
COD (Chemical Oxygen Demand)
Heavy Metals
๐ซ๏ธ AirMonitor Agent
Responsibilities
Monitors air emissions
Evaluates CPCB air quality limits
Detects air pollution violations
Parameters Monitored
SOโ
NOx
PM2.5
COโ
๐จ AlertDispatch Agent
Responsibilities
๐ฑ SMS Alert Generation
๐ง Email Notification Generation
๐จ Incident Response Activation
๐ข Compliance Warning Dispatch
๐ ReportGen Agent
Responsibilities
๐ Compliance Audit Report Generation
๐ Environmental Assessment Summary
๐ Regulatory Documentation
๐ง AI Concepts Implemented
๐ค 1. Multi-Agent Systems
The project uses multiple AI agents that collaborate to solve environmental monitoring tasks.
Agent Workflow
User
โ
EcoGuardMaster
โ
WaterMonitor
โ
AirMonitor
โ
AlertDispatch
โ
ReportGen
โ
User
๐ 2. Agent Communication
Agents communicate through delegated tasks and structured message passing.
Example
EcoGuardMaster โ WaterMonitor
WaterMonitor โ EcoGuardMaster
EcoGuardMaster โ AirMonitor
AirMonitor โ EcoGuardMaster
EcoGuardMaster โ AlertDispatch
AlertDispatch โ ReportGen
โ๏ธ 3. Rule-Based AI Decision Making
The system compares sensor values against CPCB limits.
Example
BOD > 30 mg/L โ Violation
COD > 250 mg/L โ Violation
SOโ > 80 ยตg/mยณ โ Violation
NOx > 80 ยตg/mยณ โ Violation
๐ 4. Explainable AI
The Live Agent Reasoning panel explains:
โ
Which agent executed
โ
What analysis was performed
โ
Why violations occurred
โ
Why alerts were triggered
โ
How reports were generated
๐ข 5. Automated Alert Generation
When violations are detected:
๐ฑ SMS alerts are generated
๐ง Email alerts are generated
๐จ Incident response actions are triggered
๐ Compliance records are logged
๐ CPCB Parameters Used
๐ง Wastewater Quality Parameters
Parameter CPCB Limit
pH 6.5 โ 8.5
BOD โค 30 mg/L
COD โค 250 mg/L
Heavy Metals โค 0.1 mg/L
๐ซ๏ธ Air Emission Parameters
Parameter CPCB Limit
SOโ โค 80 ยตg/mยณ
NOx โค 80 ยตg/mยณ
PM2.5 โค 60 ยตg/mยณ
COโ โค 1000 ppm
๐ ๏ธ Technology Stack
Programming Language
๐ Python
Framework
๐จ Gradio
Libraries
๐ฆ JSON
๐ Logging
โ๏ธ Python Standard Libraries
Development Tools
๐ป Visual Studio Code
๐ GitHub
๐ System Workflow
Step 1
๐ค User enters sensor readings
โฌ๏ธ
Step 2
๐ง EcoGuardMaster receives compliance request
โฌ๏ธ
Step 3
๐ง WaterMonitor analyzes wastewater quality
โฌ๏ธ
Step 4
๐ซ๏ธ AirMonitor analyzes emissions quality
โฌ๏ธ
Step 5
โ ๏ธ Violations are identified
โฌ๏ธ
Step 6
๐จ AlertDispatch generates notifications
โฌ๏ธ
Step 7
๐ ReportGen creates compliance report
โฌ๏ธ
Step 8
โ
Results displayed to the user
๐ธ Screenshots
๐ Figure 1 โ EcoGuard AI Dashboard
<img width="1272" height="656" alt="Image" src="https://github.com/user-attachments/assets/b37c4d80-e138-4116-aa18-756060573b77" />
Main dashboard displaying wastewater and air emission monitoring parameters.
<img width="1297" height="656" alt="Image" src="https://github.com/user-attachments/assets/4b13f2f3-a0c5-474f-b05f-3d6257b7fea4" />๐จ Figure 2 โ CPCB Compliance Violation Detection
Automatic detection of pollution parameters exceeding CPCB limits.
<img width="1296" height="640" alt="Image" src="https://github.com/user-attachments/assets/075799ff-f665-43ae-8372-362990a4b1a0" />
๐ข Figure 3 โ Automated Alert Dispatch Queue
SMS and Email alerts generated after detecting violations.
<img width="1296" height="640" alt="Image" src="https://github.com/user-attachments/assets/be10e588-eff6-4054-955c-527e746bb82a" />
๐ Figure 4 โ Agent Communication Trace
Communication between EcoGuardMaster, WaterMonitor, AirMonitor, AlertDispatch, and ReportGen.
<img width="1300" height="663" alt="Image" src="https://github.com/user-attachments/assets/a9d79602-ca8e-4e01-903a-9417bf919ec1" />
๐ง Figure 5 โ Live Agent Reasoning
Explainable AI decision-making and compliance analysis.
<img width="1257" height="647" alt="Image" src="https://github.com/user-attachments/assets/1882476a-a02a-4a2d-a944-da542237cacc" />
๐ Figure 6 โ CPCB Industrial Compliance Audit Report
Final compliance report generated by ReportGen Agent.
<img width="1257" height="647" alt="Image" src="https://github.com/user-attachments/assets/e07170a2-1c34-4d44-ab98-5933b795cc79" />
๐ Figure 7 โ Air Quality Assessment Report
<img width="1295" height="645" alt="Image" src="https://github.com/user-attachments/assets/b180451c-934d-4b97-bb37-60c717644deb" />
Detailed air quality compliance assessment.
โ
Results
The system successfully:
โ
Detected CPCB violations
โ
Evaluated wastewater compliance
โ
Evaluated air emission compliance
โ
Generated automated alerts
โ
Demonstrated multi-agent collaboration
โ
Provided explainable AI reasoning
โ
Generated compliance audit reports
๐ฎ Future Enhancements
๐ก Real-time IoT sensor integration
โ๏ธ CPCB API integration
๐ฑ Mobile application support
๐บ๏ธ GIS-based pollution mapping
๐ Pollution forecasting using Machine Learning
๐ค Predictive environmental risk assessment
A complete screen-recorded demonstration video has been created showing:
โ
Dashboard Navigation
โ
Pollution Parameter Monitoring
โ
CPCB Compliance Evaluation
โ
Violation Detection
โ
Alert Generation
โ
Agent Communication
โ
Live AI Reasoning
โ
Audit Report Generation
๐ฑ Environmental Impact
EcoGuard AI helps industries:
๐ Reduce environmental pollution
๐ญ Improve regulatory compliance
โ ๏ธ Detect risks earlier
๐ Improve environmental decision-making
๐ Maintain audit-ready records
๐ Conclusion
EcoGuard AI demonstrates how Multi-Agent AI systems can be applied to environmental monitoring and industrial compliance management.
By combining environmental monitoring, automated decision-making, alert generation, explainable AI, and compliance reporting, the system provides a scalable solution for helping industries maintain CPCB compliance and reduce environmental risks.
๐ฉโ๐ป Author
Priyanka Hiraman Todavat
๐ Diploma in Chemical Engineering (2020)
๐ Google x Kaggle AI Agents Capstone Project
๐ Project: EcoGuard AI โ Industrial Pollution Compliance Monitoring System
๐ AI for Environmental Sustainability & Industrial Safety ๐ฑ
โญ Key Features
โ
Multi-Agent AI Architecture
โ
CPCB Compliance Monitoring
โ
Water Quality Analysis
โ
Air Emission Analysis
โ
Automated Alert Generation
โ
Explainable AI Reasoning
โ
Compliance Audit Reporting
โ
Interactive Gradio Dashboard
โญ If you like this project, please give it a star on GitHub! โญ
This server cannot be deployed
Maintenance
ActivityStale
ResponsivenessNo issues