diff --git a/Dashboard/adminpanel.html b/Dashboard/adminpanel.html new file mode 100644 index 0000000..97e9cf0 --- /dev/null +++ b/Dashboard/adminpanel.html @@ -0,0 +1,326 @@ + + + + + + Admin Panel - PublicEase + + + + + + + + + +
+
+
+
+

Notification

+

Message goes here...

+
+
+
+ + + +
+ +
+
+
+

Add New Facility

+

Click map to set location.

+
+ +
+ +
+
+
+
+
+
+
+
+ +
+ + + + +
+
+
+ + +
+
+

Note:

+

After publishing, copy the ID from the list below for your ESP32.

+
+
+
+
+
+
+
+ + + + + +
+ + + + + \ No newline at end of file diff --git a/Dashboard/amit.html b/Dashboard/amit.html new file mode 100644 index 0000000..f0e3381 --- /dev/null +++ b/Dashboard/amit.html @@ -0,0 +1,525 @@ + + + + + + PublicEase - Find Clean Toilets + + + + + + + + + + + + + +
+
+ +
+
+ #1 Hygiene Mapping Tool +
+

+ Find Clean Toilets
Near You. +

+

+ Access our real-time map of public restrooms, rated for "severity" and cleanliness by users just like you. No more guessing. +

+
+ + +
+
+ +
+
+ +
+
+ + +
+
+
+
+ +
+
+
+ System Capabilities +

Complete Toilet Hygiene Management

+

+ A comprehensive ecosystem combining IoT, AI, and staff management to ensure pristine public facilities. +

+
+
+
+
+

Real-time Hygiene Monitoring

+

Tracks the overall hygiene levels every 5 minutes using advanced smart sensors.

+
+
+
+

AI-Powered Prediction

+

Leverages IoT devices and machine learning to predict facility conditions before they deteriorate.

+
+
+
+

Automated Staff Management

+

Smart algorithm assigns cleaners to specific locations automatically based on real-time hygiene data.

+
+
+
+

Public User Experience

+

Interactive maps, real-time facility information, and severity ratings provide a seamless experience.

+
+
+
+

Multi-stakeholder Dashboards

+

Separate, dedicated interfaces for public users, cleaning staff, and administrators. Admins get a bird's-eye view, staff get task lists, and users get live maps.

+
+
+
+
+ +
+
+
+
+
+ Community Driven +
+

+ Map the City.
+ Protect Dignity. +

+

+ Access to clean sanitation is a basic human right, yet finding a safe restroom is a daily struggle for millions. + PublicEase is changing that. We are on a mission to map every safe, hygienic restroom in the city. +

+
    +
  • +
    + Verify Hygiene: Report on soap availability, water supply, and cleanliness. +
  • +
  • +
    + Check Safety: Confirm adequate lighting, working locks, and safe locations. +
  • +
  • +
    + Map Accessibility: Identify ramps and facilities for the elderly and disabled. +
  • +
+ + Join as a Scout + +
+ +
+
+ Community Volunteer +
+
+
+
+ + + + + +
+

+ "I travel for sales daily. Marking clean restrooms on my route helps me, but knowing it helps women and seniors feel safe is the real reward." +

+
+ User +
+
Vikram Singh
+
Gold Contributor โ€ข Mumbai
+
+
+
+
+
+ +
+
+
+

Hygiene First

+

We don't just find toilets; we find *clean* ones. Our severity rating warns users about bad hygiene before they arrive.

+
+
+
+

Inclusive Design

+

Focusing on finding facilities for differently-abled people, parents with infants, and gender-neutral options.

+
+
+
+

Health Safety

+

Preventing the spread of disease by identifying sanitation hazards and alerting authorities instantly.

+
+
+
+
+ +
+
+
+
+
+
+ Real Impact +
+

+ Our proven track record of keeping cities clean. +

+

+ We've earned the trust of municipalities and citizens alike. The numbers speak for themselves. +

+
+
+
+ 0k+ +
+
Toilets Mapped
+
+
+
+ 0M+ +
+
Monthly Users
+
+
+
+ 0+ +
+
Cities Covered
+
+
+
+
+
+ Happy User +
+
+ +
+
+
+
+
+ + + + + + + + \ No newline at end of file diff --git a/Dashboard/dashboard.html b/Dashboard/dashboard.html new file mode 100644 index 0000000..5b8459b --- /dev/null +++ b/Dashboard/dashboard.html @@ -0,0 +1,278 @@ + + + + + + Dashboard - PublicEase + + + + + + + + +
+
+
+
+

Notification

+

Message goes here...

+
+ +
+
+ + + +
+
+
+ + +
+
+ +
+ +
+ +
+ +
+

Public Toilet

+

CLEAN

+
+ +
+ +
+ +
+
+
Live Hygiene Score
+
Excellent
+
+
+ 9.0 +
+
+ +
+

Live Supplies

+
+
+
Water Level80%
+
+
+
+
Soap Level60%
+
+
+
+
Air Quality (PPM)45
+
+
+
+
+ +
+

Book a Slot

+
+
+
+ +
+ +
+
+
+ + + + + \ No newline at end of file diff --git a/Dashboard/esp32-monitor.html b/Dashboard/esp32-monitor.html new file mode 100644 index 0000000..ab02b4c --- /dev/null +++ b/Dashboard/esp32-monitor.html @@ -0,0 +1,198 @@ + + + + + + ESP32 Sensor Simulator + + + + + + +
+
+
+
+

ESP32 Simulator

+
+ + DISCONNECTED +
+
+
+ +
+ + +
+
+ +
+
+
+
+

Air Quality

+
FRESH
+
+
45PPM
+
+
+ +
+
+

Water Level

+
FULL
+
+
+
+
+
+
80%
+
+
+ +
+
+

Soap Level

+
OK
+
+
65%
+
+
+
+ +
+

Calculated Output (Sent to Dashboard)

+
+

Calculated Score: 9.0/10

+

Status: Clean

+
+
+
+ + + + + + \ No newline at end of file diff --git a/Dashboard/login.html b/Dashboard/login.html new file mode 100644 index 0000000..0397a72 --- /dev/null +++ b/Dashboard/login.html @@ -0,0 +1,238 @@ + + + + + + Sign In - PublicEase + + + + + + +
+
+
+ +
+
+

Notification

+

Message goes here...

+
+ +
+
+ +
+ + + +
+
+ +
+
+ +
+ PublicEase +
+ +
+

Welcome back

+

Please enter your details to access your dashboard.

+
+ +
+
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ + Forgot password? +
+ + +
+ +
+
+
+
+
+ Or continue with +
+
+ + + +

+ Don't have an account? Sign up for free +

+
+
+
+ + + + \ No newline at end of file diff --git a/Dashboard/signup.html b/Dashboard/signup.html new file mode 100644 index 0000000..20b445f --- /dev/null +++ b/Dashboard/signup.html @@ -0,0 +1,226 @@ + + + + + + Create Account - PublicEase + + + + + + +
+
+
+ +
+
+

Notification

+

Message goes here...

+
+ +
+
+ +
+ + + +
+
+ +
+
+ +
+ PublicEase +
+ +
+

Create Account

+

It's free and takes less than a minute.

+
+ +
+
+ + +
+ +
+ + +
+ +
+ + +
+ + +
+ +

+ Already have an account? Sign In +

+
+
+
+ + + + \ No newline at end of file diff --git a/README.md b/README.md deleted file mode 100644 index 10c9895..0000000 --- a/README.md +++ /dev/null @@ -1,428 +0,0 @@ -# ๐Ÿงผ The AI-IoT Hygiene Monitoring System ( CleanFind AI) - -## ๐Ÿ† Complete AI- IoT-Enabled Public Toilet Management Solution - -## ๐Ÿš€ Hackathon Project Overview - -**The IoT Hygiene Ecosystem** is a smart sanitation solution designed to restore **public trust in toilets** using **IoT sensors, real-time hygiene scoring, and automated sanitation actions**. -The project targets **urban, rural, and institutional public toilets** under India's **Swachh Bharat Mission (SBM)** framework. - - -๐Ÿ“… **Target Deployment:** July 2025 -๐ŸŽฏ **Theme:** Smart Cities | IoT | AI | Public Health | Digital India -======= -**Complete toilet hygiene management system**: -- **Real-time Hygiene Monitoring**: Continuous tracking with every 30 mins . -- **AI-Powered Prediction**: Forecast hygiene degradation 2-4 hours in advance -- **Automated Staff Management**: Smart cleaning assignments and notifications -- **Public User Experience**: Interactive maps and real-time facility information -- **Multi-stakeholder Dashboards**: Separate interfaces for public, staff, and administrators - ---- -## โ— Problem Statement: The Sanitation Paradox (2025) - -India has successfully built toilets, but **people still don't trust them**. - -- โœ… **95%+ villages are ODF Plus certified** -- โŒ **Only 10% of users trust public toilet maintenance** -- ๐Ÿšซ **68% of people avoid public toilets entirely** -- ๐Ÿง  Root cause: **Psychological Scarring** due to bad odor, dirty floors, no water, and unsafe environments - -**Result:** Infrastructure exists, but usage does not. - ---- - -## ๐Ÿ’ก Our Solution - -We convert a public toilet into a **"Living Smart Unit"** that: - -- Detects hygiene issues **before users arrive** -- Automatically responds using **IoT-driven actions** -- Displays a **real-time Hygiene Trust Score** outside the toilet -- Rebuilds confidence through **pre-entry validation** - ---- - -## ๐Ÿ” Key Features - -### ๐Ÿงช Real-Time Hygiene Monitoring -- Ammonia & odor detection -- Water and soap level tracking -- Touchless usage detection - -### ๐Ÿ“Š Digital Trust Score -- Live hygiene score display -- Last cleaned / disinfected time -- QR-based hygiene verification for users & tourists - -### ๐Ÿค– Automated Sanitation -- Auto exhaust & odor neutralization -- UV-C sterilization after usage -- Touchless flush and taps - -### ๐Ÿšจ Safety & Inclusion -- Panic/help button -- Slip detection (future scope) -- Women & elderly-friendly design - ---- - -## ๐Ÿง  Behavioral Research (User-Centric Design) - -We conducted a **10-point questionnaire** to identify real user pain points: - -- Fear of bad smell & dirty floors -- Avoidance of water intake -- Surface-touch anxiety -- Willingness to pay for guaranteed hygiene -- Trust in digital hygiene scores - -๐Ÿ“Œ Insight: **Smell and first impression decide usage within 3 seconds** - ---- - -## ๐Ÿงฉ IoT Technical Architecture - -### ๐Ÿ”Œ Sensors Used -| Sensor | Purpose | -|------|--------| -| MQ-135 / MQ-137 | Ammonia & odor detection | -| PIR Sensor | User presence detection | -| Ultrasonic Sensor | Water tank level | -| Flow Sensor | Water & soap usage | -| UV-C Module | Post-use sterilization | - -### โš™๏ธ Automated Actions -- High-speed exhaust activation -- Ozone / odor neutralization -- UV sterilization after exit -- Alert generation for maintenance staff - ---- - -## ๐ŸŒ Sector-Specific Deployment - -### ๐Ÿก Rural (SBM-Gramin) -- Solar-powered IoT -- LoRaWAN communication -- Low-internet dependency - -### ๐Ÿ™๏ธ Urban (Malls, Parks, Smart Cities) -- Premium "Loo-Cafรฉ" hygiene model -- Pay-per-use with guaranteed cleanliness - -### ๐Ÿซ Schools & Colleges -- Soap-usage tracking -- Handwashing compliance monitoring -- Child-safe hygiene assurance - ---- - -## ๐Ÿงช Innovation Highlights - -- **Pre-Entry Hygiene Validation** -- **Psychological Barrier Reduction** -- **Global Hygiene QR for Tourists** -- **Behavior-first sanitation design** - ---- - -## ๐Ÿ“ˆ Impact - -- Increased public toilet usage -- Reduced health risks & infections -- Higher citizen satisfaction scores -- Data-driven sanitation governance -- Alignment with **Super Swachh League (2025)** metrics - ---- - -## ๐Ÿ”ฎ Future Scope - -- AI-based hygiene prediction -- Computer vision for cleanliness detection -- Mobile app for hygiene navigation -- Government dashboard integration -- Predictive maintenance alerts - ---- -## Images - ----![circuit_2](https://github.com/user-attachments/assets/3ebe0750-8fee-48e1-b806-4d05c25faa80) -![circuit_1](https://github.com/user-attachments/assets/dbb47e46-4fa0-4454-a762-98846cdd59a7) -![gas_graph](https://github.com/user-attachments/assets/6dfb0622-7819-471a-bab9-fd66bdccfd88) -![humidity](https://github.com/user-attachments/assets/85886fb6-49dc-4d38-a85f-74abf1ac69ab) -confusion_matrix -feature_importance -image -image -image - - - -## ๐Ÿ Conclusion - -Public sanitation in 2025 requires more than infrastructure โ€” it requires **Digital Trust**. - -The **IoT Hygiene Ecosystem** bridges the gap between: -> *"There is a toilet"* -and -> *"I feel safe using this toilet."* - ---- - -## ๐Ÿ‘ฅ Team & Hackathon - -Developed as part of a **Hackathon Project** focusing on -**IoT + AI for Public Health & Smart Infrastructure** - ---- - -## ๐Ÿ“œ License -This project is developed for educational and hackathon purposes. - ---- - -## ๐Ÿ› ๏ธ Technical Implementation - -### System Architecture -- **Main Application**: `enhanced_auth_app.py` - Flask application with real-time updates -- **AI Model Infrastructure**: See `ai_model/` directory for complete ML pipeline -- **IoT Integration**: Sensor data processing and automation -- **Multi-user Dashboards**: Public, staff, and admin interfaces - -### Quick Start -```bash -# Install dependencies -pip install -r requirements.txt - -# Start the main application -python enhanced_auth_app.py - -# Access dashboards -# Public: http://localhost:5000/public_dashboard_enhanced -# Staff: http://localhost:5000/staff_dashboard -# Admin: http://localhost:5000/admin_dashboard -``` - -### AI Model Features -- **Predictive Analytics**: Hygiene degradation forecasting -- **Real-time Monitoring**: Continuous sensor data analysis -- **Automated Alerts**: Smart notification system -- **Performance Tracking**: Comprehensive analytics and reporting - -<<<<<<< HEAD -For detailed AI model documentation, see [`ai_model/README.md`](ai_model/README.md) -======= -# Test IoT simulation -# Access: http://localhost:5000/iot_simulator -``` - -## ๐Ÿ“Š Dashboard Features & Performance - -### Public Dashboard Features -- **Interactive Map**: Real-time toilet locations with hygiene indicators -- **Live Updates**: 10-second auto-refresh with hygiene score changes -- **GPS Integration**: User location and navigation to facilities -- **Detailed Information**: Amenities, accessibility, occupancy status -- **User Ratings**: Feedback system for continuous improvement -- **Mobile Optimized**: Responsive design for all screen sizes - -### Staff Dashboard Capabilities -- **Task Management**: Automated cleaning assignments with priorities -- **Route Optimization**: Efficient cleaning routes based on location -- **Performance Tracking**: Individual staff efficiency metrics -- **Real-time Alerts**: Instant notifications for urgent tasks -- **Supply Management**: Inventory tracking and reorder alerts -- **Communication Tools**: Built-in messaging and coordination - -### Admin Dashboard Analytics -- **System Overview**: Comprehensive facility health metrics -- **User Management**: Role-based access control and permissions -- **Historical Analytics**: Trend analysis and performance reports -- **Configuration Management**: System settings and parameters -- **Integration APIs**: External system connectivity -- **Security Monitoring**: Audit logs and access tracking - -### System Performance Metrics -- **Response Time**: <2 seconds for dashboard updates -- **Real-time Updates**: 10-second intervals for hygiene changes -- **Uptime**: 99.9% system availability -- **Scalability**: Support for 1000+ simultaneous users -- **Data Processing**: Handle 10,000+ sensor readings per minute -- **Mobile Performance**: Optimized for 3G/4G networks - -## ๐Ÿ”ฌ Feature Importance (Explainable AI) - -1. **Ammonia (23.9%)** - Primary hygiene indicator -2. **Water Flow (18.2%)** - Cleaning effectiveness -3. **Methane (16.9%)** - Gas contamination -4. **pH (11.6%)** - Water quality -5. **Turbidity (11.6%)** - Water clarity -6. **Footfall (9.2%)** - Usage patterns -7. **Humidity (4.6%)** - Environmental comfort -8. **Temperature (4.1%)** - Environmental stability - -## ๐ŸŽฏ Usage Examples - -### Basic Prediction -```python -from hygiene_prediction_system import HygienePredictionSystem - -# Load trained model -system = HygienePredictionSystem() -system.load_model('hygiene_model.pkl') - -# Predict hygiene from sensor data -sensor_data = { - "ammonia": 45.0, - "methane": 35.0, - "humidity": 58.0, - "temperature": 24.0, - "footfall": 18.0, - "water_flow": 15.0, - "ph": 6.8, - "turbidity": 85.0 -} - -result = system.predict_hygiene(sensor_data) -print(f"Hygiene Score: {result['hygiene_score']}") -print(f"Status: {result['hygiene_status']}") -print(f"Explanation: {result['explanation']}") -``` - -### API Integration -```python -# JSON API usage -json_input = '{"ammonia": 28.5, "methane": 22.1, "humidity": 61.2, "temperature": 26.8, "footfall": 12.3, "water_flow": 18.7, "ph": 7.0, "turbidity": 42.1}' -result = system.predict_hygiene(json_input) -``` - -## ๐Ÿ“Š Demo Scenarios - -The system includes pre-configured demo scenarios: - -### ๐ŸŸข Clean Toilet -- Low gas levels, optimal pH, high water flow -- **Predicted Score**: ~95 (Clean) - -### ๐ŸŸก Moderate Toilet -- Medium readings across sensors -- **Predicted Score**: ~74 (Moderate) - -### ๐Ÿ”ด Dirty Toilet -- High gas levels, poor water quality, low flow -- **Predicted Score**: ~55 (Moderate/Dirty border) - -## ๐Ÿ† System Advantages & Impact - -### Operational Benefits -- **40% Improvement**: Average hygiene score increase -- **60% Faster Response**: Reduced cleaning reaction time -- **30% Cost Reduction**: Optimized resource allocation -- **95% User Satisfaction**: Positive feedback ratings -- **98% Compliance Rate**: Adherence to hygiene standards - -### Technical Advantages -- **Real-time Processing**: 10-second update intervals -- **High Accuracy**: 62%+ Rยฒ score for AI predictions -- **Scalable Architecture**: Support for unlimited facilities -- **Mobile First**: Optimized for smartphone access -- **Offline Capability**: Resilient to network issues - -### Business Impact -- **Efficiency Gains**: Automated staff allocation and route optimization -- **Cost Savings**: Predictive maintenance and resource optimization -- **User Experience**: Enhanced public facility satisfaction -- **Compliance**: Automated reporting and audit trails -- **Data-Driven Decisions**: Comprehensive analytics and insights - -## ๐Ÿ”ง Technical Details - -### Model Architecture -- **Algorithm**: Random Forest Regressor -- **Estimators**: 100 trees -- **Max Depth**: 15 (prevents overfitting) -- **Min Samples**: 5 split, 2 leaf - -### Data Generation -- **Sample Size**: 3000+ realistic readings -- **Correlations**: Engineered based on hygiene science -- **Validation**: Realistic value ranges and distributions - -### Performance Metrics -- **Training Time**: <30 seconds on standard hardware -- **Model Size**: <1MB (lightweight deployment) -- **Prediction Speed**: <100ms per prediction - -## ๐Ÿ” Security & Privacy Features - -### Data Protection -- **End-to-End Encryption**: Secure data transmission and storage -- **User Privacy**: Anonymous usage tracking with GDPR compliance -- **Access Control**: Multi-factor authentication and role-based permissions -- **Audit Logging**: Complete activity tracking for security monitoring -- **Data Anonymization**: Personal data protection in analytics - -### System Security -- **Regular Security Updates**: Automated patch management -- **Intrusion Detection**: Real-time monitoring for security threats -- **Backup & Recovery**: Automated data backup and disaster recovery -- **Network Security**: Firewall protection and secure protocols -- **Physical Security**: Tamper-proof sensor installations - -## ๐Ÿš€ Future Enhancements & Roadmap - -### Upcoming Features -- **Computer Vision**: AI-powered image analysis for hygiene assessment -- **Voice Integration**: Voice-activated controls and notifications -- **Predictive Maintenance**: ML-based equipment failure prediction -- **Blockchain Integration**: Immutable audit trails for compliance -- **AR/VR Interface**: Augmented reality maintenance guidance - -### Advanced AI Capabilities -- **Deep Learning Models**: Enhanced prediction accuracy with neural networks -- **Natural Language Processing**: Automated report generation and insights -- **Computer Vision Integration**: Image-based hygiene assessment -- **Behavioral Analytics**: User pattern analysis and optimization -- **Autonomous Decision Making**: Self-optimizing cleaning schedules - -### IoT Innovations -- **Next-Gen Sensors**: Advanced environmental and biological sensors -- **Energy Harvesting**: Self-powered sensor networks -- **Edge AI**: Local artificial intelligence processing -- **5G Integration**: Ultra-low latency communication -- **Mesh Networking**: Self-healing sensor networks - -### Global Expansion -- **Multi-language Support**: Full internationalization -- **Regional Compliance**: Local regulation adaptation -- **Cultural Adaptation**: Region-specific user experience -- **Global Analytics**: Cross-location performance comparison -- **Partnership Integration**: Third-party service connectivity - -## ๐Ÿ“„ License & Support - -This project is created for hackathon and demonstration purposes. Feel free to use, modify, and extend as needed for your specific requirements. - -### Technical Support -- **Documentation**: Comprehensive guides and API documentation -- **Community Forum**: User community and knowledge sharing platform -- **Training Materials**: Video tutorials and implementation guides -- **Professional Support**: 24/7 technical assistance available - -### Maintenance & Updates -- **Automated Updates**: Self-updating system components -- **Health Monitoring**: Continuous system health checks -- **Performance Optimization**: Automatic performance tuning -- **Data Management**: Automated backup and cleanup processes - ---- - -**Version**: 2.0 Enhanced - Complete IoT-Enabled System -**Last Updated**: December 2024 -**Status**: Working on notification and system design. -**Team**: Trinity Hackathon - Smart Toilet Hygiene Monitoring System - - -