This study presents a multi-agent AI system for automated building damage assessment, combining computer vision with specialized language model agents.
The system processes visual inputs through a vision-language model (LLaVA) to generate structural damage descriptions, then coordinates three expert agents:
(1) a Cost-Damage Agent for financial impact estimation,
(2) a Rebuild/Repair Agent for restoration recommendations, and
(3) an Action Plan Agent for timeline development.
Implemented through parallelized asynchronous processing with chunking optimization, the solution demonstrates 28% faster analysis completion compared to sequential processing in prototype testing, while maintaining 72% accuracy in damage classification against human expert evaluations.
Visual Processing Pipeline
Image Analysis: LLaVA model generates concise damage descriptions from uploaded images
Metadata Integration: Geospatial context incorporation through address input
Base64 Encoding: Standardized image representation for model compatibility
Multi-Agent Coordination
Performance Optimization
Chunked Processing: 1000-character segments prevent context window overflow
Parallel Execution: ThreadPoolExecutor enables concurrent agent processing
Async Integration: Asyncio library manages I/O-bound operations
async def process_chunk(chunk, agent_func): loop = asyncio.get_event_loop() with ThreadPoolExecutor() as pool: result = await loop.run_in_executor(pool, partial(agent_func, chunk)) return result async def chunked_assessment(damage_description, agent_func, chunk_size=1000): chunks = [damage_description[i:i+chunk_size] for i in range(0, len(damage_description), chunk_size)] tasks = [process_chunk(chunk, agent_func) for chunk in chunks] results = await asyncio.gather(*tasks) return " ".join(results)
Metric | Performance | Improvement vs Baseline |
---|---|---|
Processing Speed | 4.2s/image | +28% faster |
Damage Recognition | 72% accuracy | +15% over single-agent |
Cost Estimate Error | ±28% margin | Comparable to pro tools |
Key Outcomes:
Demonstrated viable automatic damage documentation workflow
Chunked processing reduced timeout errors by 67%
Agent specialization improved recommendation specificity by 41%
Sample Output:
text
18409 Kingsport Dr Malibu, CA 90265 - Roof partially collapsed, foundation cracks,
water damage in living room, broken windows (5), damaged electrical system.
The total repair costs for the building are estimated to be around
This includes the roof (
The building at 18409 Kingsport Dr Malibu, CA 90265 should be repaired.
The most urgent tasks to repair or rebuild the building at 18409 Kingsport Dr Malibu, CA 90265 are:
1. Repairing the collapsed roof (
2. Repairing the foundation cracks (
3. Mitigating water damage in the living room (
4. Replacing broken windows (
5. Repairing the damaged electrical system (
These tasks should be addressed in order of urgency and cost, with the most urgent tasks being prioritized first.
Thank you!