terminal
Initializing System0%
NEURAL NETWORKSFULL-STACK ARCHITECTURESYSTEM DESIGNQUANTUM COMPUTINGAI SYSTEMS
arrow_backBack to all projects
AI System

CivicLens — AI Civic Reporting Platform

An AI-powered platform that empowers citizens to report civic issues like potholes, waste, and infrastructure damage directly to municipal authorities in real-time.

Next.jsGemini AIFirebaseTailwind CSSTypeScript

The Challenge

Citizens lack a streamlined, transparent channel to report infrastructure issues to local government. Existing systems are slow, opaque, and offer no feedback loop — leading to citizen frustration and unresolved problems.

The Solution

Built a full-stack platform with role-based dashboards: citizens can submit geo-tagged reports with photos, while authorities get an analytics dashboard with AI-generated insights, status breakdowns, and report distribution charts. Gemini AI classifies incoming issues and generates actionable summaries.

Key Architecture

Citizen App → Next.js Frontend → Firebase Auth/Firestore → Gemini AI (Classification + Insights) → Authority Dashboard (Analytics, Surveillance & Monitoring)

Code Highlight


// AI-powered issue classification using Gemini
async function classifyReport(description: string, imageUrl: string) {
  const model = genAI.getGenerativeModel({ model: "gemini-pro-vision" });
  
  const result = await model.generateContent([
    "Classify this civic issue into a category (Pothole, Garbage, " +
    "Street Light, Water, Other) and assess severity (Low/Medium/High).",
    { text: description },
    { inlineData: { data: imageBase64, mimeType: "image/jpeg" } }
  ]);

  return {
    category: result.response.category,
    severity: result.response.severity,
    aiInsight: result.response.summary
  };
}
        

Key Outcomes

  • check_circleDual-role platform serving both citizens and municipal authorities
  • check_circleAI-driven issue classification with automatic severity assessment
  • check_circleReal-time analytics dashboard with status breakdown and report distribution