Inspiration
A pothole is more than a damaged road. A burst pipe is more than a maintenance complaint. A blocked drainage system is more than an inconvenience. These failures can disrupt access to schools, healthcare, employment and essential services, particularly in communities where infrastructure maintenance resources are already stretched.
As a civil engineering student in South Africa, I have become increasingly interested in the gap between identifying an infrastructure problem and getting it resolved.
A resident might report a water leak, another might report the same leak from a different location, and a third might upload a photograph. Yet those reports can remain disconnected, even though they describe a single infrastructure failure.
Meanwhile, maintenance teams must decide which problems require attention, which crews are equipped to respond and how to allocate limited resources.
I asked myself a question:
What if citizen reports could become actionable engineering intelligence instead of simply another entry in a complaints database?
That question inspired Civitas.
Built around EvoHacks 2's theme, Projects for Social Good, Civitas explores how artificial intelligence, geospatial reasoning and transparent decision-making can help communities communicate infrastructure problems and help responsible teams coordinate their response.
The goal is straightforward: make infrastructure reporting more informative, prioritization more explainable and the path from reporting to resolution more transparent.
What it does
Civitas is an AI-assisted infrastructure incident intelligence and coordination platform.
It connects citizen reporting with a structured operational workflow for reviewing, prioritizing and responding to infrastructure problems.
The platform is designed around five connected capabilities.
1. Intelligent infrastructure reporting
Citizens report infrastructure problems such as potholes, burst water pipes, blocked drains, flooding and damaged public infrastructure.
Reports can include descriptions, photographs and geographic locations. Rather than requiring residents to understand technical engineering terminology, Civitas uses AI-assisted analysis to help translate their observations into structured incident information.
2. Geospatial duplicate detection
Multiple reports may describe the same incident.
Civitas evaluates geographical proximity and incident similarity to identify potential duplicates. Instead of treating every submission as an unrelated maintenance problem, the system can help coordinators recognize related reports and consolidate their understanding of an incident.
3. Explainable incident prioritization
Not all infrastructure failures have the same consequences.
Civitas uses rule-based prioritization to evaluate relevant incident characteristics and identify cases that may require earlier attention.
A key design principle is explainability. Coordinators should be able to understand why an incident received a particular priority rather than relying on an unexplained AI-generated decision.
4. Resource-aware response coordination
Identifying a problem is only the beginning. Maintenance teams must also decide how to respond.
Civitas considers factors such as incident priority, crew specialization, availability and geographic proximity when recommending assignments.
The objective is to support more informed resource allocation while keeping operational decisions under human control.
5. Infrastructure operations visibility
A map-based interface brings incident locations, priorities and operational information into a common workspace.
The broader workflow connects incident review, maintenance coordination and status tracking, making it easier to understand what has been reported, what requires attention and what progress has been made.
What makes Civitas different is the connection between these capabilities.
It is designed to move beyond recording complaints toward helping decision-makers understand relationships between reports, evaluate priorities and coordinate practical responses.
How we built it
Civitas was developed as a full-stack web application, combining a modern responsive interface with backend services, AI-assisted analysis and deterministic engineering logic.
The system was designed around a deliberate separation of responsibilities.
AI for interpretation. Gemini-based multimodal processing was selected to help interpret unstructured reports and photographs, extracting observations into structured data.
Deterministic algorithms for operational decisions. Geospatial matching, incident prioritization and resource-assignment logic were designed as explicit computational processes rather than leaving every decision to a language model.
Geospatial visualization for situational awareness. A map-based interface provides geographical context and helps users understand the distribution of incidents.
Structured data for continuity. Incident records, review decisions and operational updates are organized into persistent workflows so that information can move between reporting, assessment and response.
Human oversight for accountability. AI-generated observations and algorithmic recommendations are intended to support human judgment, not replace qualified engineering assessments or authorized operational decisions.
The development process involved defining the problem, designing the product architecture, implementing the connected workflows and refining the interface for usability.
Claude Code was used as an AI-assisted development tool. Architectural decisions, engineering assumptions, functionality and project documentation must remain understandable and reviewable by the developer.
This distinction is important because Civitas is not intended to demonstrate AI-generated code alone. Its technical value lies in how the underlying components work together to address a real operational problem.
Challenges we ran into
Turning incomplete reports into useful information
Citizen reports are naturally inconsistent. People describe the same problem using different language, and photographs do not always reveal the underlying cause.
The challenge was designing a workflow that extracts useful observations without treating AI interpretations as verified engineering facts.
Identifying duplicates without combining unrelated incidents
Geographical proximity alone does not prove that two reports concern the same failure. Two potholes can exist on the same road, while reports of one flooding incident can come from different locations.
This made duplicate detection a more interesting engineering challenge than simply comparing coordinates.
Balancing prioritization with explainability
An infrastructure priority score must be understandable. A system that labels something critical without explaining the supporting factors is difficult to trust.
We therefore focused on separating information extraction from rule-based evaluation and preserving human oversight.
Matching incidents to limited resources
The nearest maintenance crew is not necessarily the right crew. Availability, specialization and competing assignments also matter.
This required thinking about incident coordination as a constrained resource-allocation problem rather than a simple distance calculation.
Balancing technical depth with usability
Civitas brings together AI, maps, operational information and decision-making tools. The challenge was presenting these capabilities in an interface that remains understandable to citizens and useful to coordinators.
The objective was to expose the reasoning that matters without overwhelming users with technical complexity.
Accomplishments that we're proud of
1. Approaching infrastructure management as an interconnected system
Civitas brings together problems that are often treated separately: citizen reporting, duplicated information, incident assessment and operational coordination.
2. Designing AI as one component of a broader engineering solution
Rather than positioning AI as an all-knowing infrastructure expert, the architecture combines AI-assisted interpretation with explicit rules, geospatial calculations and human review.
3. Making explainability central to the product
A core objective is that operational recommendations should be inspectable, understandable and open to correction.
4. Connecting civil engineering knowledge with software engineering
Civitas reflects the intersection of physical infrastructure, digital systems and public-service delivery.
5. Building for a meaningful social-good application
The project is motivated by a practical question: how can technology help communities communicate infrastructure problems more effectively and help limited maintenance resources be used more intelligently?
What we learned
Building Civitas reinforced an important lesson: the value of AI does not come from automating every decision. It comes from applying it where it can improve a larger, well-designed system.
Image interpretation can help organize a report, but it cannot independently establish the structural condition of a bridge. Geographic proximity can suggest related incidents, but it does not prove that they share the same cause.
Reliable engineering systems must make these distinctions explicit.
We also learned that software architecture matters most when different components need to work together. A reporting interface, a spatial matching algorithm and a crew-assignment engine only create meaningful value when information can move consistently between them.
Finally, the project reinforced the importance of accessibility, transparent assumptions and keeping humans responsible for consequential decisions.
The broader lesson is that solving social problems requires more than advanced technology. It requires understanding the people, constraints and real-world decisions surrounding that technology.
What's next for Civitas
Civitas is an initial step toward more intelligent, accessible and accountable infrastructure management.
Our next priorities are:
Municipal validation: Work with infrastructure professionals and local authorities to understand operational requirements and evaluate the system against realistic maintenance workflows.
Improved geospatial intelligence: Refine incident correlation, infrastructure asset relationships and prioritization using verified data and expert feedback.
Community accessibility: Expand support for low-bandwidth reporting, additional languages and mobile-first communication channels.
Operational integrations: Explore responsible integration with existing municipal maintenance and asset-management systems.
Evidence-based evaluation: Measure duplicate detection accuracy, triage efficiency, assignment quality and usability through structured testing.
Responsible deployment: Strengthen privacy, security, reliability and governance before introducing the platform into consequential operational environments.
Our long-term vision is to help communities move from fragmented infrastructure complaints toward coordinated, evidence-informed responses.
Because reporting an infrastructure problem should be the beginning of a solution, not the end of the conversation.
Built With
- auth.js
- drizzle-orm
- maplibre-gl
- neon
- netlify
- next.js
- openstreetmap
- playwright
- postgresql
- react
- recharts
- tailwindcss
- typescript
- vitest
- zod