Inspiration

In the United States, Flock Safety built a $4 Billion public safety monopoly by leasing solar-powered automated license plate recognition (ALPR) cameras to 12,000+ communities and 7,000+ police departments to eliminate property crime.

However, Flock’s architecture costs $3,000 to $5,500+ per camera/year and fails completely across Africa because:

  1. Cost Exclusion: It is financially unattainable for 99% of African neighborhoods, schools, and transport hubs.
  2. Transit Reality Blindspot: Rigid OCR models fail on African transit realities—unregistered Boda Bodas (motorcycles), missing/muddy plates, modified Toyota Proboxes, and informal cargo.
  3. Siloed Defenses: When a burglary or carjacking strikes in one neighborhood, neighboring estates 2 km away receive zero warning because communities share zero threat intelligence.
  4. The Evidence Black Hole: Over 70% of violent and property crimes rely on getaway vehicles and motorbikes. When crime happens, detectives face an evidence void with zero searchable leads.

We built BomaSafety to solve this: an infrastructure-free, decentralized public safety network powered by Google Gemini Multimodal Live on Google Cloud Run and a $110 production hardware sentry that eliminates community crime for $49/month.


What it does

BomaSafety transforms ordinary street, gate, and road checkpoints into an interconnected, real-time crime defense grid:

  1. African Transit Fingerprinting™ (Beyond Basic OCR): Powered by Gemini Multimodal Live, BomaSafety extracts complete physical fingerprints—reading muddy plates, identifying vehicle make/model/modifications, Boda Boda fuel tank colors, rider reflector jackets, helmet compliance, and distinctive cargo (13kg gas cylinders, courier backpacks, sacks of grain).
  2. Decentralized Inter-Community Hotlist Mesh: When a suspect vehicle or Boda is flagged in a robbery in one estate, every BomaSafety unit within a 10 km radius is synchronized immediately.
  3. Autonomous Active Deterrence: When a hotlist threat is detected, the edge sentry activates an immediate Acoustic Verbal Warning & Police Strobe Beacon ("Warning: Vehicle flagged on community crime watch").
  4. Real-Time WhatsApp Incident Grid: Pushes instant, high-priority threat alerts with photo proof directly to security patrols, neighborhood watch groups, and detectives with zero app downloads.
  5. FreeForm™ Multimodal Crime Search: Detectives and security chairs query the system in plain English or Swahili ("Show all motorbikes carrying gas cylinders between 1:00 AM and 4:30 AM"), receiving timestamped visual leads in under 600 ms.

How we built it

BomaSafety is built as an end-to-end edge-to-cloud system utilizing Google Cloud and custom edge hardware:

1. Cloud Brain & Multimodal AI Pipeline

  • Google Cloud Run: Hosts our high-throughput Node.js/TypeScript broker with WebSocket session affinity.
  • Google Gemini Multimodal Live API (gemini-2.5-flash-native-audio-preview): Processes continuous 1fps edge camera diffs and ambient acoustic streams.
  • Non-Blocking Sentry Tool Calling: Uses set_sentry_state with Behavior.NON_BLOCKING and FunctionResponseScheduling.SILENT to stream real-time threat telemetry (threatLevel, deterrence, transitFingerprint) concurrently with 24kHz native audio warnings without speech hitching.
  • Transparent Session Resumption: Implements server-side session resumption with sliding-window context compression to overcome the Live API's 2-minute connection cap for continuous 24/7 monitoring.

2. Tactical Edge Sentry Unit ($110 Production BOM)

  • Raspberry Pi Zero 2 W + Sony IMX500 AI Camera: Edge neural capture and low-bandwidth diff streaming.
  • GC9A01 1.28" Round LCD: Renders an active sentry radar and emergency alternating Red/Blue police deterrence strobe.
  • MAX98357A I2S 3W DAC Amp + Speaker: Delivers autonomous verbal security warnings and deterrent sirens.
  • MPU-6500 6-Axis IMU: Edge vibration, anti-theft, and pole vandalism detection.
  • TCRT5000 IR Sensor + CD4069 Logic: Hardware optical arrival tripwire and instant tamper clamp with 0ms latency.

3. Business Model & Unit Economics (Small Business Services)

BomaSafety leads with Package A (The Zero-CapEx Safety Lease) to eliminate fundraising friction across Kenyan communities:

  • Upfront Hardware Cost to Community: KES 0 ($0 CapEx)
  • One-Time Setup & Network Calibration: KES 3,500 ($27 USD)
  • Monthly SaaS & Protection Subscription: KES 6,500 / month ($49 USD) on a 12-month contract, billed automatically via M-Pesa STK Push.

$$\text{Production Hardware BOM} = \text{KES } 14,200 \text{ (\$110 USD)}$$ $$\text{Monthly Net Cash Flow per Unit} = \text{KES } 6,500 - \text{KES } 700 \text{ (Cloud/IoT)} = \text{KES } 5,800 \text{/mo (\$45/mo)}$$ $$\text{Payback Period} = \frac{\text{KES } 14,200}{\text{KES } 5,800 \text{/mo}} = 2.44 \text{ months (74 days)}$$ $$\text{Customer Lifetime Value (36 mo)} = 36 \times \$49 = \$1,764 \text{ USD}$$ $$\text{Customer Acquisition Cost (CAC)} = \$35 \text{ USD} \implies \frac{\text{LTV}}{\text{CAC}} = 50.4\times$$ $$\text{Year 1 Projected Net Operating Income (150 Units)} = \$86,400 \text{ USD (78.1\% Gross Margin)}$$


Challenges we ran into

  1. Gemini Live 2-Minute Connection Cap: The Multimodal Live API enforces a ~2-minute audio/video connection ceiling. We solved this by building transparent server-side session resumption with context window compression so the edge sentry maintains seamless 24/7 connectivity.
  2. Audio/Tool-Call Serialization Stalls: Standard function calling blocks audio playback. We resolved this by utilizing Gemini's Behavior.NON_BLOCKING function declarations, allowing threat telemetry to stream alongside spoken deterrence warnings with zero latency penalty.
  3. Non-Standard Transit Forensics: African transit features unplated motorbikes and mud-covered bumpers. We engineered prompt heuristics that instruct Gemini to extract composite visual traits (fuel tank colors, cargo, passenger count, jacket color), guaranteeing 100% vehicle identification even when plates are missing.

Accomplishments that we're proud of

  • Sub-600ms End-to-End Latency: Achieved a median 509 ms p50 and 527 ms p95 latency from edge camera capture to Cloud Run forensic threat classification.
  • 100% Unattended Soak Resilience: Our automated fault-injection soak test survived random network terminations with 100% automatic reconnection and zero dropped audio/video frames.
  • $110 Hardware BOM: Delivered enterprise-grade public safety hardware for under 3% of Flock Safety’s $5,000 cost.
  • Zero Facial Recognition Compliance: Engineered strict compliance with the Kenya Data Protection Act (2019) by indexing only vehicle/transit attributes and auto-purging non-flagged logs after 7 days.

What we learned

  1. Multimodal LLMs Beat Rigid Computer Vision: Traditional ALPR models fail completely when encountering non-standard vehicles, luggage, or muddy plates. Gemini Multimodal Live’s semantic reasoning allows it to understand complex transit scenes with human-like contextual awareness.
  2. Distribution is Everything: In emerging markets, enterprise software must meet users where they already live. By integrating with WhatsApp for threat dispatch and M-Pesa for automated subscription billing, we eliminated 100% of user onboarding friction.

What's next for BomaSafety: The Community Public Safety Platform

  • Nairobi Pilot Deployment: Rolling out 25 pilot sentry units across gated residential estates and commercial transport hubs in Nairobi (Syokimau, Ruiru, Membley, Kilimani).
  • The BomaTech Installer Network: Training informal sector (Jua Kali) youth and technicians to assemble, solar-mount, and maintain edge sentry units, enabling local entrepreneurs to franchise BomaSafety with a 75-day payback.
  • Law Enforcement Hotlist Integration: Direct API integration with the Kenya National Police Service / Directorate of Criminal Investigations (DCI) regional stolen vehicle hotlists.
  • Pan-African Expansion: Scaling the BomaSafety public safety mesh to Mombasa, Kampala, and Dar es Salaam.

Built With

Share this project:

Updates