```html Seastead Man Overboard (MOB) Safety System

⚓ Seastead Man Overboard Safety System

An open-source, phone-based MOB detection and rapid-response concept — designed for the TriFoiler Seastead but usable on any vessel today.

1. The Man Overboard Problem — By the Numbers

~250+ MOB deaths per year in the U.S. (recreational boating)
~1,000+ Estimated MOB deaths per year worldwide
~50% Fatality rate once a person enters the water
~6 min Average survival time in cold water (15 °C / 60 °F)

The U.S. Coast Guard's Recreational Boating Statistics reports that over the past decade, drowning consistently accounts for roughly 75–80 % of all recreational boating fatalities. Of those, a large share involves a person falling overboard — often from vessels where there was no personal flotation device (PFD) worn and no automated alarm.

Globally, the World Health Organization estimates ~236,000 drowning deaths per year across all contexts. Maritime-specific MOB fatalities are harder to pin down because many incidents in developing nations and on commercial fishing boats go unreported, but conservative international estimates place recreational and small-vessel MOB deaths at well over 1,000 per year.

Why Traditional Yachts Are So Dangerous for MOB

Why the TriFoiler Seastead is inherently safer: The NACA 0030 foil trimaran configuration with SWL (Small Waterplane Area) legs provides exceptional stability — virtually no heeling or rolling. Deck work is minimized (no sails to trim). The vessel can stop and reverse in seconds via six rim-drive thrusters. These factors alone dramatically reduce the probability of a person falling overboard and dramatically improve the speed of recovery.

2. Proposed Phone-Based MOB Detection System

The core idea is elegant: leverage the smartphones everyone already carries as wearable MOB beacons, communicating with a base station computer on the vessel. No proprietary hardware to buy. No special transceivers to strap on. Just an open-source app and a server.

System Architecture

📱 Phone App
Worn on person
📶 BLE / Wi-Fi
Periodic heartbeat
🖥️ Base Station
Tracks all phones
✅ All OK
Green status
📱 Phone App
Signal lost (fall / water)
❌ No Heartbeat
3 sec timeout
🚨 ALARM!
Audible + visual
🔄 STOP & REVERSE
6 sec → auto-return

2.1 Heartbeat Protocol

Each phone running the app sends a small "I'm here" packet to the base station at a regular interval — ideally once per second over Bluetooth Low Energy (BLE), falling back to Wi-Fi if BLE is unavailable.

2.2 Zero-G Detection (Optional — Battery-Intensive)

Modern smartphones contain accelerometers capable of detecting free-fall. When a person steps off the deck or is swept overboard, the phone experiences a brief near-zero-g event (typically 0.0–0.2 g for 0.3–0.8 seconds), followed by a high-g impact with the water.

2.3 Water Submersion Detection (Signal Loss)

Key physics advantage: Both Wi-Fi (2.4 GHz / 5 GHz) and Bluetooth (2.4 GHz) signals are almost completely absorbed by water within a few centimeters. The moment a phone enters the water, the wireless link drops instantly — regardless of signal strength before submersion. This is a built-in, physics-based "water contact sensor" that requires zero additional hardware.

2.4 Alarm and Auto-Return Logic

Time Elapsed Event Action
0 s Last successful heartbeat received Normal operation
1 s Missed heartbeat #1 Base sends ping to phone requesting re-check-in
2 s Missed heartbeat #2 Base sends second ping; logs warning
3 s Missed heartbeat #3 AUDIBLE ALARM on bridge + visual indicator (flashing red on screen)
4–5 s No response after alarm Confirm: check if phone is still connected to Wi-Fi but failing app-level check. Log GPS positions.
6 s Confirmed loss FAST STOP — all thrusters to zero. Begin reversing to last known position between last good heartbeat and alarm trigger.
6+ s Recovery mode Reverse to estimated fall location; deploy ladder lights; sound external horn; begin search pattern if needed.

The 3-second alarm / 6-second stop thresholds are deliberately chosen to balance false alarm tolerance against speed of response. At a cruising speed of, say, 8 knots (~4 m/s), a 6-second delay means the vessel is only ~24 meters from the fall point — easily within reversing distance.

3. Phone App Design

3.1 Keeping the App Alive

The biggest practical challenge for phone-based MOB detection is keeping the app running. Both iOS and Android aggressively "kill" background apps to save battery. Here's how to handle it:

⚠️ Challenge

  • iOS limits background networking; may suspend the app after ~30 seconds in background.
  • Android "Doze" mode and "App Standby Buckets" can defer network access.
  • Users may accidentally force-close the app.
  • Battery optimization on some Android OEM skins (Samsung, Xiaomi, Huawei) is especially aggressive.

✅ Solutions

  • iOS: Use Background App Refresh + Core Bluetooth "bluetooth-central" background mode — BLE connections can persist indefinitely in background.
  • Android: Use a Foreground Service with a persistent notification (Android requires this). This is the "never kill" mechanism.
  • Prompt users to disable battery optimization for this app (Android settings → Battery → Unrestricted).
  • Add a "health check" icon on the phone's lock screen / notification shade so the user can visually confirm the app is running.
  • Samsung/Xiaomi/Huawei: Guide users through OEM-specific steps to "lock" the app in memory (pin it in the recent-apps view, or add to "protected apps" list).
Yes — the answer to "can the user tell their phone to never put this app to sleep?" is YES, but it requires manual steps.
On Android: Settings → Apps → [App Name] → Battery → select "Unrestricted" (or "Don't optimize"). On iOS: Settings → General → Background App Refresh → enable for this app. The app should guide users through this on first launch with a step-by-step tutorial.

3.2 Battery Life Impact

Battery drain depends on the communication method and update frequency:

Mode Update Rate Est. Battery Drain Notes
BLE Heartbeat (recommended) 1 Hz 3–6% per day BLE is designed for exactly this — tiny packets, minimal power. This is comparable to wearing a smartwatch.
Wi-Fi Heartbeat 1 Hz 10–20% per day Wi-Fi radio uses more power than BLE. Acceptable for short voyages.
BLE + Accelerometer (Zero-G) 1 Hz + 100 Hz accel 15–30% per day Accelerometer polling is the main drain. Most phones will still last a full day, but charging at night becomes necessary.
BLE only, 5 Hz 5 Hz 5–10% per day Higher resolution for position interpolation. Slightly more drain but still very manageable.
Bottom line: With BLE heartbeat mode (the default), most phones will experience only 3–6% additional battery drain per day — essentially unnoticeable. Most users will comfortably make it through the day on one charge. Even with the accelerometer enabled, a modern phone (4,000+ mAh battery) will easily last 12–16 hours, well beyond a typical day of seasteading.

3.3 Connectivity Strategy

// Pseudocode: Connectivity priority function sendHeartbeat() { if (bleConnected) { // BLE: ~0.01 mJ per packet — preferred ble.write(SERVICE_UUID, HEARTBEAT_CHAR, payload); } else if (wifiConnected) { // Wi-Fi: ~1 mJ per packet — fallback udp.send(BASE_IP, HEARTBEAT_PORT, payload); } else { // No connection — could be water submersion! logOfflineHeartbeat(payload); // cache for later } } // Try BLE first, re-scan every 30s if not connected setInterval(tryReconnectBLE, 30_000);

3.4 Phone Dead Battery Handling

If a phone's battery dies, the heartbeat stops and the system will trigger the alarm. This is a correct behavior — it's a "fail-safe" design. A dead phone is treated exactly like a person overboard: alarm sounds, vessel stops, crew investigates.

To minimize false alarms from this:

4. Base Station / Server Software

The base station runs on any computer aboard the vessel. It could be a Raspberry Pi ($35), an old laptop, or the main navigation computer.

4.1 What It Needs to Do

4.2 Hardware Requirements

Essentially any computer with:

Would most existing family yachts have a suitable computer? Absolutely. Modern yachts increasingly have a chart plotter or navigation PC running software like OpenCPN, Expedition, or even just a tablet. A Raspberry Pi 4 or Pi Zero 2W is more than sufficient and costs under $50. Many yachts already have onboard Wi-Fi from a cellular router or Starlink terminal. The server code could literally run on an old smartphone in a pinch.

4.3 Pseudocode: Base Station Alarm Logic

const HEARTBEAT_TIMEOUT_WARN = 3_000; // 3 seconds const HEARTBEAT_TIMEOUT_ALARM = 6_000; // 6 seconds const RETRY_INTERVAL = 1_000; // retry ping every 1s for each registered device { elapsed = now() - device.lastHeartbeat; if (elapsed > RETRY_INTERVAL && !device.retrySent) { sendRetryPing(device); device.retrySent = true; } if (elapsed > HEARTBEAT_TIMEOUT_WARN && device.state == NORMAL) { device.state = WARNING; playLocalAlarm(); // bridge buzzer logWarning(device); } if (elapsed > HEARTBEAT_TIMEOUT_ALARM && device.state == WARNING) { device.state = ALARM; playFullAlarm(); // all speakers + external horn vessel.emergencyStop(); vessel.reverseTo(device.lastKnownPositions); activateSearchMode(); } }

5. Optional: Door Contact Sensor

An optional enhancement: place a magnetic reed switch (cost: ~$2–5) on each exterior door. If a door opens and no phone is detected nearby (via BLE RSSI), a warning sounds reminding the person to take their phone.

6. Can AI Write This? How Hard Is It?

6.1 Short Answer: Very Feasible, Even Easy

A phone-based MOB heartbeat app is not complex software. It involves:

  1. A timer that sends a small UDP or BLE packet once per second.
  2. A simple server that listens for packets and tracks timeouts.
  3. An alarm trigger (audio file playback or GPIO relay).
  4. A basic web UI showing green/red status per device.
Compared to the old days of mobile development: You mentioned the pain of getting to "Hello World" in Java phone apps — that era is gone. Modern cross-platform tools and AI coding assistants have made this dramatically easier. What used to take weeks of setup now takes hours.

6.2 AI Coding Tools and Approach

Tool What It Does Use For
Claude Code / Cursor / GitHub Copilot AI pair programmer — writes code from natural language descriptions Both the phone app and server code
React Native / Expo Cross-platform mobile framework (iOS + Android from one codebase) Phone app — write once, run on both platforms
Flutter Alternative cross-platform framework by Google Phone app — excellent BLE libraries available
Node.js + Express Lightweight server framework Base station server
Python + Flask Simple server framework Base station server — easy GPIO control on Raspberry Pi
Tauri / Electron Desktop app framework If you want a standalone dashboard app

6.3 Estimated Development Timeline with AI Assistance

Day 1 (2–4 hours): Set up project scaffolding. Ask AI to generate a React Native app with BLE heartbeat sending and a Python server with UDP listener and timeout detection. Get basic "phone talks to server" working.
Day 2 (3–5 hours): Add alarm logic, GPS logging, web dashboard. Test with two phones. Tune timeout values.
Day 3 (2–4 hours): Add zero-G accelerometer detection option. Add battery level warnings. Polish UI.
Day 4–5 (4–6 hours): Testing in the field. Handle edge cases: airplane mode, phone calls interrupting BLE, OS background restrictions, etc.
Week 2 (ongoing): Polish, documentation, open-source release, community feedback.

Total for a working prototype: roughly 1–2 weeks of part-time effort with AI assistance. For a single experienced developer, the AI can generate 80–90% of the code; the human provides architecture decisions, testing, and edge-case handling.

AI isn't perfect: BLE handling on mobile is notoriously fiddly across different phone models and OS versions. AI-generated BLE code may need testing and tweaking on real devices. The server-side code and web dashboard, however, are very straightforward and AI handles them well.

7. Existing Projects and Prior Art

Several commercial and open-source projects address MOB detection. Here's a survey:

🔴 MOB Guardian (by Fell Marine)

Commercial Wearable Beacon ~$300–500

A dedicated wearable beacon that communicates with a base unit. Sounds alarm when submerged or out of range. Requires buying proprietary hardware for each person.

🔴 Raymarine LifeTag / MOB System

Commercial Integrated ~$600+

Integrated into Raymarine's marine electronics. Tags worn on PFDs. Triggers alarm and marks GPS position. Excellent but expensive and locked into one ecosystem.

🟡 OSMA (Open Source Marine Alarm)

Open Source Arduino-based

A few hobby projects exist using Arduino/ESP32 boards with BLE scanning to detect wristband beacons. Not phone-based — they use cheap BLE beacons worn on the wrist. The approach is valid but requires purchasing hardware.

🟡 Navionics / iSailor MOB Features

App Feature

Several marine chart apps have a "MOB" button that drops a waypoint when pressed. But these are manual — the person falling overboard must press the button themselves, which is often impossible.

🟢 No fully open-source, phone-as-beacon MOB system found

Gap in the Market

After extensive searching, no existing open-source project implements the exact concept described here: using each person's own smartphone as the MOB beacon via an app, with automatic detection based on heartbeat loss and optional accelerometer zero-G detection. This appears to be a genuine gap. The closest analogs are:

  • Apple Watch Fall Detection — detects hard falls and auto-calls emergency services, but is land-focused and doesn't integrate with vessel systems.
  • Garmin inReach / PLB — satellite emergency beacons, but require manual activation and are expensive ($300–400+).
  • Strava Beacon / Garmin LiveTrack — share your location with contacts, but no heartbeat timeout or vessel integration.

Key Lessons from Existing Systems

  1. False alarm rate is the #1 killer of MOB systems. If a system alarms too often (e.g., every time someone's phone briefly loses BLE), crews will disable it. The 3-second warning + 6-second action approach with retries is designed to minimize this.
  2. User compliance is the #2 challenge. Dedicated beacons get left in drawers. Phones are always carried — this is the key advantage of the phone-based approach.
  3. Integration with vessel controls is rare. Most systems just sound an alarm. Automatic stop-and-return is a significant safety upgrade that your seastead enables with its electric thruster system.
  4. Range matters. BLE range on a boat is typically 15–30 meters. On a vessel the size of your triangle (70 ft / 21 m on the long sides), a single BLE base station centrally placed should cover the entire vessel.

8. Issues to Be Careful Of

8.1 False Alarms — The System Killer

8.2 Security and Privacy

8.3 Environmental Considerations

8.4 Liability

9. Seastead-Specific Advantages

Your TriFoiler Seastead design has several features that make this MOB system especially effective compared to traditional yachts:

Feature MOB Safety Benefit
SWL foil legs + wide triangle Extreme stability — virtually no heeling or rolling → far less chance of falling overboard
6 rim-drive thrusters Can stop from any speed in seconds and reverse precisely to the fall location
No sails No need to go on deck in heavy weather to adjust sails — eliminates the #1 cause of MOB on sailboats
Ladders on each leg When the seastead returns, the person can swim to any leg and climb up — even solo
Enclosed truss living area Large glass windows allow crew to visually spot a person in the water from inside
Dinghy on tow Can be quickly deployed for water rescue if the person is too far to swim to a leg
Starlink connectivity Can send automated distress messages (DSC, satellite SOS) with exact GPS coordinates
Solar-powered Base station can run 24/7 with no fuel cost — always-on monitoring
Combined safety estimate: Between the inherent stability (reducing fall probability by ~80% vs. a sailboat), instant detection (vs. minutes-to-hours on traditional boats), and rapid automated return (vs. 5–15 minute manual recovery), the overall MOB fatality risk could plausibly be reduced by 90–95% compared to a conventional family yacht.

10. Getting Started — A Practical Roadmap

This project is well-suited for an immediate open-source launch, even before the seastead is built. It would be valuable on any boat today.

Recommended First Steps

  1. Create a GitHub repository — e.g., open-mob-detector — with a clear README, MIT license, and contribution guidelines.
  2. Build the MVP: React Native (Expo) app + Python server. Use Cursor or Claude Code to scaffold the project. Target: heartbeat over Wi-Fi (simplest), alarm sound, basic web dashboard.
  3. Add BLE support — the key power-saving feature. Test on 3–4 different phone models.
  4. Real-world testing: Use it on a dinghy, small boat, or even a car trip to validate reliability.
  5. Community building: Post on r/sailing, r/boating, Cruisers Forum, and Hacker News. The open-source + life-safety angle should attract contributors.
  6. Iterate: Add zero-G detection, door sensors, dinghy integration, thruster auto-return interface — progressively.

Suggested Project Structure

open-mob-detector/ ├── README.md ├── LICENSE # MIT — maximally permissive ├── docs/ │ ├── setup-guide.md │ ├── phone-compatibility.md │ └── hardware-options.md ├── app/ # React Native (Expo) phone app │ ├── App.tsx │ ├── src/ │ │ ├── heartbeat.ts # BLE + Wi-Fi heartbeat sender │ │ ├── zeroG.ts # Accelerometer fall detection │ │ ├── battery.ts # Battery monitoring + warnings │ │ └── settings.ts # User preferences │ └── app.json ├── server/ # Base station (Python or Node.js) │ ├── main.py │ ├── device_tracker.py │ ├── alarm_controller.py # Audio / GPIO / network alarm │ ├── gps_logger.py │ └── web_dashboard/ │ ├── index.html │ └── dashboard.js ├── hardware/ # Optional hardware guides │ ├── door-sensor.md │ ├── buzzer-circuit.md │ └── raspberry-pi-setup.md └── tests/ ├── heartbeat_test.py └── alarm_logic_test.py

11. Conclusion

Man overboard remains one of the deadliest risks in recreational boating, killing hundreds of people per year. The root causes are delayed detection and slow recovery — both of which your seastead design inherently solves.

The proposed phone-based MOB detection system is:

This is genuinely a "do it now" project. The seastead is still being designed, but this software could be built, tested, and released within weeks. It would immediately benefit the global boating community and generate interest and contributors for the broader seastead project. It's the kind of project that makes people say, "Why doesn't this already exist?" — and the answer is simply: it should, and now it can.
```