Inspiration

Fewer than 400 North Atlantic right whales are left, and ship strikes are one of the main things killing them. The frustrating part is that the fix is known: a ship that slows down is far less likely to kill a whale it hits. Ships don't slow down because they don't know a whale is there. We wanted to build the missing link between hearing a whale and telling a ship.

We also wanted people to care. A risk score doesn't make anyone feel anything, so we gave each whale a face.

What it does

SirenSong is a whale early-warning system that runs on live data.

  • Listens. Hydrophones record the water beside the busiest shipping lanes. A neural network reads each 1.5-second spectrogram and names what it hears: right whale, orca, humpback, ship noise or open water.
  • Finds the ships. It pulls live ship positions for the Gulf of Finland and Ă…land Sea, projects each vessel's track, and scores its strike risk against every detected whale.
  • Advises. Ships on a dangerous course get a request to slow to 10 knots. You can read the exact message a ship's bridge would receive.
  • Learns. When the detector is unsure, the clip goes to a listening room where a person labels it, and the detector retrains on the spot.
  • Recommends. It maps where fast ships cross whale zones and suggests where a 10-knot zone would remove the most risk.
  • Makes you care. Rin, Kana and Mio are a right whale, an orca and a humpback. Their expressions and lines are driven by the live data: when a fast ship heads for Rin, she panics. You can talk to them, feed them, and take over the radio to protect them.

It also plays live underwater sound from Orcasound's hydrophones in the Salish Sea and runs the detector on it as it arrives, and it includes Rush hour, a 60-second arcade round on real coastline.

Strike risk uses a published speed-lethality curve:

$$P(\text{lethal}) = \frac{1}{1 + e^{\,4.89 - 0.41v}}$$

where \(v\) is ship speed in knots. That gives about 95% at 19 knots and 31% at 10.

How we built it

  • One HTML file, no framework. The whole app is plain JavaScript and canvas.
  • Detector from scratch. Audio at 8 kHz, a 512-point FFT, 432 log-frequency features, and a small neural network (32 hidden units) trained in the browser on 300 synthetic clips each time the page loads.
  • Live ships. A zero-dependency Node.js server proxies Finland's open AIS feed (Fintraffic / Digitraffic).
  • Real coastline. OpenStreetMap land polygons, rasterised into a water grid. Hydrophone sites, whale ranges and simulated lanes are derived from it with A* path-finding instead of being hard-coded.
  • Live hydrophone. The server fetches Orcasound's stream segments; the browser pulls the audio out of the MPEG-TS container itself and feeds it to the detector.
  • Real test recordings. Four NOAA whale recordings, cut into windows and measured against each recording's own noise floor.

Challenges we ran into

  • Our first version couldn't reach any live data, so we moved to a small local server.
  • Real recordings were first heard as ship noise. A hydrophone's background hum looked like an engine to a detector trained on clean synthetic sound. Measuring each recording against its own noise floor fixed it.
  • Live sea noise fools the detector. On the live hydrophone it called ordinary noise a whale. We made it require agreement across windows and segments, and we say plainly that it isn't reliable there yet.
  • The whales don't live where the ship data is. Free live ship data exists for the Baltic; these three species don't. The whale positions are simulated, and the app says so.
  • Real ships can't be told anything. The chart shows a "what if" twin of each advised ship slowing down, with an outline where the real ship is.

Accomplishments that we're proud of

  • A detector that trained only on synthetic calls recognised all four real whale recordings as the right species. In our tests it heard the whale in 8 of 16 and 15 of 34 right whale windows, 31 of 60 humpback windows and 30 of 60 orca windows.
  • Labelling works: in our test, 61 labels lifted accuracy on unseen clips from 80% to 89%.
  • It runs on live ships and a live hydrophone, not a recording of a demo.
  • It is honest about what is real and what is simulated, in the app itself.

What we learned

  • Synthetic training data gets you surprisingly far, and then real-world noise finds every assumption you made.
  • Normalising against the right baseline mattered more than the model.
  • Putting a face on the data changes how people react to it.
  • Saying what doesn't work yet makes the rest more believable.

What's next for SirenSong

  • Move to waters where these whales live, with a ship feed and hydrophones there.
  • Train on real recordings, with every listener's label improving the detector.
  • Make the detector reliable on live sea noise.
  • Publish the suggested 10-knot zones so the people who set speed limits can use them.

Built With

Share this project:

Updates

Submission history