Skip to content
aryan105825Public

About

Real-time subsea infrastructure inspection with Google Gemini, combining multimodal AI and sensor fusion for intelligent underwater risk assessment.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

🌊 Abyss.ai

AI-Powered Subsea Infrastructure Monitoring, Built on Google Gemini

Abyss.ai is a vision + telemetry command dashboard for Autonomous Underwater Vehicles (AUVs). Built in 10 hours for HackDays Delhi (Theme: Beneath the Water), it uses Gemini's multimodal reasoning to detect, score, and explain subsea infrastructure risk in real time — fusing what the AI sees with what the hardware feels.


⚡ For Judges — 30-Second Orientation

  • Hard requirements: ✅ Working demo below · ✅ Full source code · ✅ Gemini 3.6 Flash is the core reasoning engine, not a bolt-on
  • Fastest way to evaluate us: click "Live Judge Test" in the top-right of the dashboard, upload any photo of underwater damage/corrosion from your phone, and watch the real Gemini API round-trip return structured JSON in front of you.
  • What's real vs. staged: see the transparency section below — we'd rather you trust the 70% that's real than be impressed by 100% that isn't.

🌊 Why This Fits "Beneath the Water"

Most theme submissions go literal-ocean (cleanup, marine life) or purely metaphorical. Abyss.ai sits in the more technical reading of the theme: the physical infrastructure that already lives beneath the water — subsea internet cables, oil/gas pipelines, coral zones near drilling sites — and the fact that monitoring it is still slow, expensive, and human-bottlenecked.


📉 The Problem & Business Impact

Monitoring deep-sea infrastructure today means AUVs surfacing, hard drives being physically extracted, and hours of manual video review before anyone knows if there's a problem.

Based on typical offshore vessel-day costs and review ratios cited in industry reporting, manual AUV footage review runs operators roughly $30,000/day in vessel time, at about 4 hours of human review per 1 hour of footage. Abyss.ai's automated frame-by-frame analysis targets cutting that review time by an estimated ~95%, flagging critical anomalies the moment they appear instead of hours or days later.

(These are estimates based on published industry review ratios, not a customer-validated figure — happy to walk through the math if asked.)


🧠 Meaningful AI Integration — Gemini 3.6 Flash

This isn't a text-generation wrapper. We stream image buffers — AUV camera frames and sonar spectrograms — directly into Gemini's multimodal vision pipeline. The model is prompted to act as a Subsea Infrastructure Analyst: it identifies structural anomalies (corrosion, leaks, ecological damage), assigns a confidence score, and returns a strict JSON schema that feeds directly into the dashboard and the risk engine below — no manual parsing, no unstructured text to clean up.


🧮 Sensor Fusion & The Risk Algorithm

Our core technical bet: don't trust vision alone. We fuse Gemini's visual confidence with live physical telemetry (pressure deviation from expected baseline at depth) so a visual anomaly is contextualized against what the hardware is actually experiencing.

$$R(t) = \left( \alpha \cdot C_{gemini} \right) + \left( \beta \cdot \frac{| P_{current} - P_{baseline} |}{P_{baseline}} \right)$$

Variable Meaning
$R(t)$ Computed risk score (0.0–1.0)
$C_{gemini}$ Gemini's visual-damage confidence output
$P_{current}$ Live ambient pressure telemetry
$P_{baseline}$ Expected pressure at current depth
$\alpha, \beta$ Operator-tunable weighting coefficients (defaults: 0.7 / 0.3)

$\alpha$ and $\beta$ are exposed as live draggable sliders in the dashboard's Settings panel, so an operator can weight visual vs. physical signal differently depending on mission type. These are operator-tunable defaults, not values calibrated against real damage data — we're upfront about that distinction.


🔬 What's Real vs. Simulated

Full transparency, so you can spend your evaluation time in the right place:

Component Status Notes
Gemini 3.6 Flash vision analysis 🟢 Real Live API call, triggered on demand via "Live Judge Test"
Structured JSON parsing 🟢 Real Enforced schema, feeds dashboard directly
Risk fusion calculation $R(t)$ 🟢 Real Runs live against telemetry + Gemini output
Dashboard UI / auth (Clerk) 🟢 Real Functional sign-in, not a static mock
AUV hardware telemetry 🟡 Simulated No physical AUV available in Delhi — local Node.js generator produces realistic pressure/depth streams
AUV camera feed 🟡 Simulated Looped underwater footage stands in for a live feed
Usage-based billing dashboard 🟡 Simulated UI built with local state to demonstrate the intended SaaS flow — no live metering or payment processing wired up

💼 SaaS Architecture & Business Model

Abyss.ai is architected as a multi-tenant SaaS so multiple offshore operators (drilling, telecom) can use it with isolated mission data — not a single-tenant demo app.

  • Multi-tenancy: Clerk handles organization-based sign-in and routing; Supabase Row-Level Security scopes mission logs per tenant.
  • Intended pricing model: pay-per-mission-hour of footage processed, so operators avoid investing in dedicated on-vessel AI hardware.
  • MVP cost posture: built entirely on free/generous tiers (Google AI Studio, Supabase, Vercel, Clerk) to keep infrastructure cost near zero while validating the concept — production-scale Gemini usage would move to a paid, volume-priced tier before onboarding real customers.

🛠️ Technical Architecture

Layer Technology Purpose
Frontend Next.js 14, Tailwind CSS, shadcn/ui High-contrast operator command dashboard
Hosting Vercel (serverless functions) API routes and deployment
Auth & Multi-tenancy Clerk Org-based sign-in and routing
AI Engine Google Gemini 3.6 Flash API Multimodal visual anomaly analysis → structured JSON
Database Supabase (PostgreSQL) Mission logs, telemetry history, RLS-scoped tenant data
Data Stream Custom Node.js mock generator Simulates high-frequency AUV pressure/depth telemetry

🚀 If We Had More Time

Being upfront about the next steps we'd take past the 10-hour mark, rather than pretending they're already done:

  • Wire real Stripe metering to the billing dashboard
  • Replace the looped video feed with a real-time video stream input
  • Validate $\alpha$/$\beta$ against a labeled dataset of real subsea damage imagery instead of operator-set defaults
  • Load-test the Gemini pipeline against AI Studio's free-tier rate limits to size the production pricing tier accurately

💻 Getting Started (Judge/Reviewer Quickstart)

git clone https://github.com/aryan105825/abyss-ai.git
cd abyss-ai
npm install
cp .env.example .env.local

Add your keys to .env.local (none require a credit card):

GEMINI_API_KEY="your_ai_studio_key"
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY="your_clerk_pub_key"
CLERK_SECRET_KEY="your_clerk_secret"
NEXT_PUBLIC_SUPABASE_URL="your_supabase_url"
NEXT_PUBLIC_SUPABASE_ANON_KEY="your_supabase_anon_key"
npm run dev

Open http://localhost:3000, sign in as a demo user, and click "Live Judge Test" in the top-right to trigger a real Gemini 3.6 Flash multimodal call.

About

Real-time subsea infrastructure inspection with Google Gemini, combining multimodal AI and sensor fusion for intelligent underwater risk assessment.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages