Philly 250 Maritime Defense Hackathon · 48 hours · Finalist

Tactical maritime domain awareness through edge-first multi-sensor data fusion.

An edge-first, cloud-independent maritime threat detection system for the Strait of Hormuz, built on an encrypted peer-to-peer mesh of Raspberry Pi 5s, ESP32 nodes and a Jetson Orin Nano, all for about $450.

Team
3 builders
When
Mar 27-29, 2026
Result
Finalist
Hardware
~$450

My roleI built the encrypted ESP32 mesh, the dashboard and mobile app, and the incident-replay validation.

Project Overview

Mar 2026

The problem

Existing maritime surveillance leans on cloud infrastructure, adds 200-1000ms of latency, and falls apart in denied or degraded environments. Around 21 million barrels of oil pass through the Strait of Hormuz every day.

Adversaries exploit those gaps with AIS spoofing, dark transits, coordinated fast-boat attacks and mine-laying, all hard to see for cloud-dependent systems.

What it does

Hormuz Watch is an edge-first, fully offline maritime domain awareness system. Each AIS report is scored in under 15 ms on a Raspberry Pi 5, on about $450 of hardware, with no cloud at all.

We built an encrypted peer-to-peer mesh: Raspberry Pi 5s for edge ML detection, ESP32 nodes for the relay, and a Jetson Orin Nano running a local LLM for threat assessment, all over AES-256-GCM.

<15 msScoring per AIS report
~$450Total hardware
18.8MAIS reports trained on
5/5Real US incidents caught

System Architecture

4 phases
Phase 1

Detect

Edge ML anomaly scoring on a Raspberry Pi 5 with an Isolation Forest + autoencoder ensemble. Each AIS report (18 features) is scored in under 15 ms.

Phase 2

Relay

An AES-256-GCM encrypted ESP32 mesh over ESP-NOW. Every packet is the same 238 bytes and cover traffic goes out every 5 seconds, so watching the mesh doesn't reveal when an alert is sent.

Phase 3

Analyze

A local LLM (Ollama + Phi-3 Mini) on a Jetson Orin Nano, with a RAG vault of 150+ intelligence documents for contextual threat assessment.

Phase 4

Act

A dashboard with Leaflet mapping and WebSocket broadcast, plus a React Native app for tactical awareness on the move.

Hardware Stack

Total ~$450

Raspberry Pi 5Edge detection nodes

$75 each

Runs the AIS ingestion pipeline and the ML scoring engine. Two nodes, Pi-Larak and Pi-Fujairah, run the model trained on 18.8M AIS reports and talk to the mesh over USB serial at 115200 baud.

ESP32 mesh nodesEncrypted relay network

~$10 each

Peer-to-peer ESP-NOW radio on 2.4GHz with about 150m of range (LoRa is the planned upgrade for longer links). Fixed 238-byte encrypted packets with cover traffic every 5 seconds.

Jetson Orin NanoCommand node

~$250

JetPack 6 running Ollama + Phi-3 Mini (a 3.8B-parameter model), a FastAPI backend, a serial listener that decrypts mesh traffic, and WebSocket broadcast to every connected dashboard.

  • Python
  • PyTorch
  • scikit-learn
  • ONNX
  • FastAPI
  • WebSockets
  • Ollama
  • Phi-3 Mini
  • ESP32
  • ESP-NOW
  • AES-256-GCM
  • Raspberry Pi 5
  • Jetson Orin Nano
  • React Native
  • Leaflet

Built with Kiumbura N. Githinji and Isaac SassonEdge-node software under 20MB (models ~5MB)

Machine Learning Engine

Runs on the Pi

Ensemble

Trained on 18.8 million real AIS reports from NOAA MarineCadastre (USCG records, June 2024). Two models, blended:

  • Isolation Forestweight 0.6

    100 trees, 200K subsample, ~4.7MB. Catches global anomalies in vessel behavior.

  • PyTorch autoencoderweight 0.4

    18 → 12 → 6 → 12 → 18, exported to ONNX, ~4KB. Catches subtle reconstruction errors in trajectories.

Total model footprint ~5MB · 82 vessel-type baselines

Feature engineering

18 features per AIS report, over a sliding window of the last 20 reports per vessel (MMSI), including:

  • Vessel-type z-scores

    Speed over ground, speed delta, heading change rate, course over ground, time gap.

  • Static

    Vessel name, vessel class, dimensions, speed-to-size ratio.

  • Location

    Distance to shipping lanes, ports and geographic chokepoints.

  • Windowed

    Heading std dev, speed trend, course std dev, rolling anomaly count.

Encrypted Mesh Network

ESP32 · ESP-NOW

238-byte packet

  • Magic byte (0xAA)1B
  • Version (v1)1B
  • Packet type1B
  • TTL (time to live)1B
  • Timestamp4B
  • Payload length2B
  • Encrypted payload (AES)200B
  • GCM auth tag16B
  • Nonce (random)12B

Security & routing

  • AES-256-GCM

    Every packet is encrypted and authenticated, and every packet is exactly 238 bytes. A failed GCM tag check flags tampering.

  • Cover traffic

    Dummy packets go out every 5 seconds, the same size as real ones, so traffic analysis can't pick real alerts out of the noise.

  • Flood relay with dedup

    A TTL of 3 hops with FNV-1a hash deduplication in a 16-entry ring buffer per node, so packets reach every node without looping.

Intelligence & LLM

Runs on the Jetson

RAG intelligence vault

150+ structured intelligence documents power the threat assessment, with a 94% cross-reference rate through wiki-style links between them.

  • Incidents11

    Stena Impero, Gulf of Oman, Fujairah

  • Vessels30

    Known good/bad profiles, MMSI, sanctions

  • Entities26

    IRGC, IRISL, 22 shell companies

  • Tactics / TTPs16

    Fast-boat swarms, AIS dark transit, mines

  • Geography18

    Hormuz, Bandar Abbas, TSS lanes

  • Red flags15

    Behavioral and structural anomaly indicators

  • Sanctions10

    OFAC advisory context, SDN mappings

  • References28

    Intel reports, OSINT, published analysis

Local LLM threat assessment

Ollama + Phi-3 Mini runs entirely on the Jetson Orin Nano with no cloud, answering in under 2 seconds. It turns each alert into a structured threat card.

Query workflow

  1. 1
    Alert trigger

    The ML anomaly score crosses a severity threshold.

  2. 2
    Vault search

    Top 5 chunks retrieved by term frequency (~2,000 characters of context).

  3. 3
    Cross-reference

    Zone matching, OFAC SDN list checks, multi-sensor fusion.

  4. 4
    LLM assessment

    Phi-3 Mini reads the alert data plus vault context through a structured prompt.

  5. 5
    Threat card

    Title, summary, indicators, confidence score, recommended action.

If the LLM is unavailable, threat cards fall back to rule-based generation, so every layer degrades gracefully.

Validation Results

Real data + incident replays
5/5Real US incidents caught
5/5Hormuz replays flagged
137/sScoring throughput

5 Hormuz incidents, reconstructed

  • Stena Impero seizure2019

    Three fast boats at 35 knots, tanker AIS blackout, forced course reversal.

  • Gulf of Oman tanker attacks2019

    Limpet mine damage, rapid deceleration signature.

  • Fujairah port sabotage2019

    Four anchored tankers, simultaneous AIS gaps, a coordinated pattern.

  • Mercer Street drone attack2021

    Three drone strikes, a 20-minute AIS gap, vessel slowed to 3 knots.

  • Mine-laying patrolHistorical

    Stop-start pattern every 500m at 3 knots in a shipping lane.

How we validated

Real data first: we ran 5 real US incident days from NOAA's historical AIS archive (March to June 2024) through the ML ensemble, and it caught all 5. The scores are below.

For the live demo, we rebuilt 5 historical Strait of Hormuz incidents as AIS replays from public reports (NTSB, IMO, news coverage), 672 AIS reports in all. Each one has its own signature, from fast-boat swarms and AIS blackouts to stop-start mine-laying. The ensemble flagged all 5 with the right severity, scoring 137 reports per second.

Real US incidents (anomaly score, lower = more anomalous)

  • MV DALI (Baltimore bridge)-0.586
  • M/V Michipicoten (Lake Superior)-0.554
  • APL Qingdao (Chesapeake)-0.408
  • MSC Michigan VII-0.406
  • Pelican Island (Galveston)287 of 607 flagged

Next: measuring the false-alarm rate on normal traffic. Recall so far is on these 5 incidents.

Next project
HackRU Fall 2025

Simulare

Ask about something that's hard to picture, like the Coriolis force. Simulare pulls the answer from undergrad physics textbooks, builds a simulation you can tweak, and a voice agent talks you through it and quizzes you after.