How venkatasiva-18/earthpulse-ai works
EarthPulse AI is a community environmental monitoring and reporting platform: people submit geolocated pollution reports or environmental measurements, view map-based reports and analysis, and authorities manage reports and grievances. React screens call a Spring Boot REST API; documented Java–Python ProcessBuilder integration runs prediction models, with MySQL as the documented database. The graph preserves the major ML capabilities described in the README. Backend implementation details were not sampled, so its internal call relationships are omitted.
Main entry points: App.jsx App routing · predict.py Prediction runtime · controller REST controllers · Dashboard.jsx Map and reports
Components 22
Web experience
- App routing
frontend/src/App.jsx - Login and registration
frontend/src/components/Login.jsx - Registration and location
frontend/src/components/Register.jsx - Map and reports
frontend/src/components/Dashboard.jsx - Water analyzer UI
frontend/src/components/WaterQualityAnalyzer.jsx - Industrial risk UI
frontend/src/components/IndustrialRiskAnalyzer.jsx - Authority dashboard
frontend/src/components/AuthorityDashboard.jsx - Administration
frontend/src/components/AdminDashboard.jsx - Grievance interface
frontend/src/components/Grievances.jsx - Notifications UI
frontend/src/components/Notifications.jsx - User profile
frontend/src/components/Profile.jsx - Contact form
frontend/src/components/Contact.jsx
Application backend
- REST controllers
EarthPulseAI/src/main/java/com/example/EarthPulseAI/controller - Domain services
EarthPulseAI/src/main/java/com/example/EarthPulseAI/service
ML analysis
- Prediction runtime
EarthPulseAI/ml/predict.py - Water classification
EarthPulseAI/ml/water_quality.py - Industrial risk model
EarthPulseAI/ml/industrial_risk.py - Report NLP model
EarthPulseAI/ml/train_nlp.py - Remediation analysis
EarthPulseAI/ml/remediate.py - ML visualization
EarthPulseAI/ml/visualize_results.py
Persistent data
- MySQL database
Other components
- Platform users
Connections 25
- Platform users → App routing: uses
- App routing → Login and registration: routes to
frontend/src/App.jsx - App routing → Registration and location: routes to
frontend/src/App.jsx - App routing → Map and reports: routes to
frontend/src/App.jsx - App routing → Authority dashboard: routes to
frontend/src/App.jsx - App routing → Administration: routes to
frontend/src/App.jsx - App routing → Grievance interface: routes to
frontend/src/App.jsx - App routing → Notifications UI: renders
frontend/src/App.jsx - App routing → User profile: routes to
frontend/src/App.jsx - App routing → Contact form: routes to
frontend/src/App.jsx - Map and reports → Water analyzer UI: renders
frontend/src/components/Dashboard.jsx - Map and reports → Industrial risk UI: renders
frontend/src/components/Dashboard.jsx - Map and reports → REST controllers: requests data
frontend/src/components/Dashboard.jsx - Water analyzer UI → REST controllers: submits analysis
frontend/src/components/WaterQualityAnalyzer.jsx - Registration and location → REST controllers: registers
frontend/src/components/Register.jsx - Login and registration → REST controllers: authenticates
frontend/src/components/Login.jsx - Authority dashboard → REST controllers: updates reports
frontend/src/components/AuthorityDashboard.jsx - REST controllers → Domain services: delegates
- Domain services → Prediction runtime: launches process
README.md - Prediction runtime → Water classification: supports
- Prediction runtime → Industrial risk model: supports
- Prediction runtime → Report NLP model: supports
- Prediction runtime → Remediation analysis: supports
- Prediction runtime → ML visualization: supports
- Domain services → MySQL database: persists data