Skip to content

Avadhoot4757/Velora-Smart-City-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

23 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“¦ Tech & Infra:

  • Pub/Sub (sensor ingestion)

  • BigQuery (infra context)

  • Vertex AI / Gemini (media verification)

  • Firestore (output storage)

βœ… Agent 2: Commuter Rerouter + Parking Guide (Public)

Purpose: Compute personalized and safe reroutes + parking suggestions for affected users.

πŸ”· Inputs:

  • verified_incident_report from Agent 1

  • parkingDB (live parking availability)

  • AOI_API (Areas of Interest: schools, hospitals, malls)

  • user_personal_DB (frequent routes, commute preferences)

βš™οΈ Processing:

  • User IP β†’ Real-time congestion prediction

  • Personalized rerouting:

    • Minimize disruption

    • Prefer quiet, safer, better AQI routes

    • Avoid noise/hazard areas

  • Parking recommender

  • Fallback to shortest Google Maps route if personalization fails

🟒 Output:

Plain textANTLR4BashCC#CSSCoffeeScriptCMakeDartDjangoDockerEJSErlangGitGoGraphQLGroovyHTMLJavaJavaScriptJSONJSXKotlinLaTeXLessLuaMakefileMarkdownMATLABMarkupObjective-CPerlPHPPowerShell.propertiesProtocol BuffersPythonRRubySass (Sass)Sass (Scss)SchemeSQLShellSwiftSVGTSXTypeScriptWebAssemblyYAMLXML { "user_id": "u567", "reroute": { "start": "Home", "end": "Office", "recommended_path": [ ... ] }, "parking_suggestion": { "location": "Indiranagar Parking Lot A", "availability": "High" }, "fallback": "https://maps.google.com/?q=..." }

πŸ“¦ Tech & Infra:

  • Firestore (incident + user data)

  • Google Maps APIs (routes, distance matrix, traffic)

  • Custom ML (optional) for congestion prediction

  • Pub/Sub (can also subscribe to incident updates)

πŸ”’ Agent 3: Severity & Dispatch Agent (Authorized)

Purpose: Prioritize civic emergencies and dispatch authority teams.

πŸ”· Inputs:

  • verified_incident_report from Agent 1

  • firestore_emergency_team_data (location, availability)

βš™οΈ Processing:

  • Calculate severity score (impact radius Γ— type Γ— trust)

  • Categorize incident:

    • Medical

    • Infrastructure

    • Law & Order

  • Match with nearest available authority team

  • Update live dashboard and send notification

🟒 Output:

Plain textANTLR4BashCC#CSSCoffeeScriptCMakeDartDjangoDockerEJSErlangGitGoGraphQLGroovyHTMLJavaJavaScriptJSONJSXKotlinLaTeXLessLuaMakefileMarkdownMATLABMarkupObjective-CPerlPHPPowerShell.propertiesProtocol BuffersPythonRRubySass (Sass)Sass (Scss)SchemeSQLShellSwiftSVGTSXTypeScriptWebAssemblyYAMLXML { "incident_id": "abc123", "severity_score": 7.8, "team_id": "team12", "category": "Medical", "dispatched": true }

πŸ“¦ Tech & Infra:

  • Firestore

  • Vertex AI / Rule Engine for severity calculation

  • Push notifications (FCM) for dispatch alerts

  • Firebase Auth (admin access only)

πŸ”’ Agent 4: Pattern Analyzer & Policy Recommender (Authorized)

Purpose: Detect systemic issues, suggest city-level interventions.

πŸ”· Inputs:

  • All incident + agent data

  • BigQuery (historical incidents, traffic patterns, infra outages)

  • Environmental data (AQI, noise, rainfall, etc.)

βš™οΈ Processing:

  • Semantic pattern matching (e.g., repeated potholes on X road)

  • Cause modeling (e.g., construction near drains β†’ flooding)

  • LLM-driven policy suggestions (fix root cause)

🟒 Output:

Plain textANTLR4BashCC#CSSCoffeeScriptCMakeDartDjangoDockerEJSErlangGitGoGraphQLGroovyHTMLJavaJavaScriptJSONJSXKotlinLaTeXLessLuaMakefileMarkdownMATLABMarkupObjective-CPerlPHPPowerShell.propertiesProtocol BuffersPythonRRubySass (Sass)Sass (Scss)SchemeSQLShellSwiftSVGTSXTypeScriptWebAssemblyYAMLXML { "pattern": "Repeated waterlogging", "location": "Koramangala 5th Block", "cause": "Poor drainage + road slope", "recommendation": "Drainage rework + AI-led cleaning schedule" }

πŸ“¦ Tech & Infra:

  • BigQuery, Firestore

  • Gemini / Vertex AI + Retrieval

  • Admin dashboard with actionables

  • Firebase Auth (restricted to city admin)

πŸ”’ Agent 5: Crowd & Stampede Response Manager (Authorized)

Purpose: Respond to extreme events (stampede, protest, jams) using live data + drones.

πŸ”· Inputs:

  • All agent outputs

  • Real-time Pub/Sub sensor streams (crowd + vehicle)

  • Bangalore Police/Drone API (simulated)

βš™οΈ Processing:

  • Detect surge: crowd density + incident + traffic anomalies

  • Generate crowd management plan (reroute, alert, drone deploy)

  • Recommend drone-based traffic control

  • Update dashboard and send auth alerts

🟒 Output:

Plain textANTLR4BashCC#CSSCoffeeScriptCMakeDartDjangoDockerEJSErlangGitGoGraphQLGroovyHTMLJavaJavaScriptJSONJSXKotlinLaTeXLessLuaMakefileMarkdownMATLABMarkupObjective-CPerlPHPPowerShell.propertiesProtocol BuffersPythonRRubySass (Sass)Sass (Scss)SchemeSQLShellSwiftSVGTSXTypeScriptWebAssemblyYAMLXML { "location": "MG Road", "risk": "Stampede", "action": "Alert + reroute + drone monitor", "drone_dispatched": true }

πŸ“¦ Tech & Infra:

  • Pub/Sub, Firestore

  • Vertex AI for surge modeling

  • Drone API or simulator

  • Firebase Auth, Admin dashboard

🌐 Common Infra & APIs

ServiceUsed ForPub/SubIngest sensor data / push reportsFirestoreStore structured dataBigQueryHistorical analyticsVertex AI / Gemini ProLLMs for reasoning + verificationGoogle Maps APIsRouting, Traffic, Parking, Geo-locationFirebase AuthAccess controlFirebase HostingDashboard frontendFCMAuthority notifications (Agent 3, 5)

πŸ›  Tech Stack

  • Backend: Python (Flask / FastAPI), Firebase Functions

  • Frontend: React.js (hosted on Firebase)

  • Cloud Infra: GCP (Firestore, Pub/Sub, BigQuery, Vertex AI)

  • LLM/AI: Gemini Pro, Custom ML Models

  • Security: Firebase Auth (role-based)

  • Other APIs: Drone API (mock/simulated), Google Maps, AQI/Noise APIs

πŸ§ͺ Setup & Deployment

1. Clone the Repository

Plain textANTLR4BashCC#CSSCoffeeScriptCMakeDartDjangoDockerEJSErlangGitGoGraphQLGroovyHTMLJavaJavaScriptJSONJSXKotlinLaTeXLessLuaMakefileMarkdownMATLABMarkupObjective-CPerlPHPPowerShell.propertiesProtocol BuffersPythonRRubySass (Sass)Sass (Scss)SchemeSQLShellSwiftSVGTSXTypeScriptWebAssemblyYAMLXML git clone https://github.com/your-org/civic-response-system.git cd civic-response-system

2. Deploy Backend Functions

Plain textANTLR4BashCC#CSSCoffeeScriptCMakeDartDjangoDockerEJSErlangGitGoGraphQLGroovyHTMLJavaJavaScriptJSONJSXKotlinLaTeXLessLuaMakefileMarkdownMATLABMarkupObjective-CPerlPHPPowerShell.propertiesProtocol BuffersPythonRRubySass (Sass)Sass (Scss)SchemeSQLShellSwiftSVGTSXTypeScriptWebAssemblyYAMLXML cd backend firebase deploy --only functions

3. Frontend Setup & Deploy

Plain textANTLR4BashCC#CSSCoffeeScriptCMakeDartDjangoDockerEJSErlangGitGoGraphQLGroovyHTMLJavaJavaScriptJSONJSXKotlinLaTeXLessLuaMakefileMarkdownMATLABMarkupObjective-CPerlPHPPowerShell.propertiesProtocol BuffersPythonRRubySass (Sass)Sass (Scss)SchemeSQLShellSwiftSVGTSXTypeScriptWebAssemblyYAMLXML cd frontend npm install npm run build firebase deploy --only hosting

4. Configure Pub/Sub & BigQuery

  • Create necessary topics and subscriptions in GCP Console.

  • Connect BigQuery tables for historical context.

5. Set Firebase Auth Rules

  • Grant admin access only to authorized city authorities for:

    • Agent 3: Severity & Dispatch

    • Agent 4: Policy Recommender

    • Agent 5: Crowd Manager

πŸ§‘β€πŸ’» Contributors

πŸ“„ License

Licensed under the MIT License.

πŸ“Έ Optional: Dashboard UI Screenshots

Add screenshots of incident visualizer, dispatch dashboard, reroute UX, and policy dashboard here if available.

Plain textANTLR4BashCC#CSSCoffeeScriptCMakeDartDjangoDockerEJSErlangGitGoGraphQLGroovyHTMLJavaJavaScriptJSONJSXKotlinLaTeXLessLuaMakefileMarkdownMATLABMarkupObjective-CPerlPHPPowerShell.propertiesProtocol BuffersPythonRRubySass (Sass)Sass (Scss)SchemeSQLShellSwiftSVGTSXTypeScriptWebAssemblyYAMLXML Let me know if you want this uploaded to a GitHub repo, generated as a `.md` file for download, or customized further with your exact folder structure or contributors!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors