-
-
Live chart: 128 real ships from Finland's open AIS feed, with simulated whales and hydrophones. Orange is ship noise drowning out calls.
-
Guided demo: a hydrophone hears Kana, an orca. TERN ISLAND is heading for her at 15 knots, a 75% chance a strike would be lethal.
-
TERN ISLAND slows to 10 knots and the risk drops to 31%. Real ships don't get these advisories; the chart shows what would happen.
-
Our from-scratch neural network classifies a real NOAA right whale recording it never trained on. Your labels retrain it on the spot.
-
Listen together: 3 people on one live hydrophone. Two flagged an orca within 20 s, so the room confirmed it. (Staged for the screenshot.)
-
Rush hour: a 60-second round where you click ships heading for a whale to slow them to 10 knots.
Inspiration
Ship strikes are one of the main human causes of death for large whales, including the endangered North Atlantic right whale. Speed decides whether a strike is lethal. On the lethality curve from Vanderlaan and Taggart (2007), which SirenSong uses for every ship on its chart, a strike at 19 knots is lethal about 95% of the time and one at 10 knots about 31%. Speed limits work, but only where and when whales are known to be. Whales call, so you can find them by listening.
What it does
SirenSong shows a nautical chart with real ships, live from Fintraffic's open AIS feed for the Baltic Sea, and simulated whales placed in their path. Simulated hydrophones record 1.5-second clips, turn them into spectrograms, and run them through a small neural network. When it hears a whale, SirenSong estimates where the whale is. For each ship heading for it, SirenSong works out the strike risk and drafts the advisory that ship's bridge would receive: slow to 10 knots.
- Risk hotspots show where fast ships cross whale zones and suggest a 10-knot zone.
- Fast-forward 45 min and What if ships obeyed show what slowing down would change.
- Listening room: when the detector is less than 70% sure, the clip comes to you. Your answer becomes training data, and the detector retrains on the spot.
- Real recordings: four NOAA hydrophone recordings (right whales, a humpback and orcas) and a live hydrophone stream from Orcasound in the Salish Sea test the detector on sound it never trained on.
- Listen together: strangers anywhere listen to the same live hydrophone. When two people flag the same moment, it becomes a confirmed detection for the whole room, shown next to the AI's reading. Every label anyone gives trains one shared detector.
- To make it engaging for students, the whales are characters whose trust you earn, and a 60-second Rush hour round lets you slow ships yourself.
What is real and what is simulated: the ship positions, the coastline, the whale recordings and the live hydrophone audio are real. The whales on the Baltic chart are simulated, because these species don't live there. Real ships never receive the advisories.
How we built it
The AI in the project. The whale detector is a neural network we wrote from scratch in JavaScript, with no ML library. It has one hidden layer of 32 units and a softmax over five classes: right whale, orca, humpback, ship noise and ambient sea. It is trained with the Adam optimizer, on log-frequency spectrogram features of synthetic calls, in the browser each time the page loads. Labels from the listening room are added as active learning.
The rest of the stack. A Node.js server with no dependencies proxies the Digitraffic AIS feed and Orcasound's live HLS streams, and the app is a single HTML page using Canvas and the Web Audio API. Listen together uses Server-Sent Events for live updates and gives listeners anonymous names; there is no free text.
How well it works. We wrote tools/evaluate.js, which runs the exact code shipped in the app. The results are in EVALUATION.md:
| Held-out synthetic field clips, 10 seeds | Accuracy |
|---|---|
| Always guess one class | 20.0% |
| 5-nearest neighbour, same features | 52.4% |
| Nearest centroid, same features | 65.7% |
| Our neural network | 79.5% (range 75.5% to 84.5%) |
- Active learning works. With 90 simulated volunteer labels, accuracy rises from 78.3% to 85.8% on a 1,000-clip set. The same number of random labels reaches 81.4%. More training with no new labels stays at 78.5%.
- On real recordings it never trained on, it names the right species in 62% to 67% of the windows that contain a call. That is no better than the simple nearest-centroid baseline. For now it is a demonstration of the method, not a tool ready for use at sea.
AI tools. We used Claude Code, an AI coding assistant. It wrote most of the code from our design and direction. We chose the problem, the data sources and the science, then tested and corrected the code and decided what went in. During this hackathon we used Claude Code agents to test the live feeds against the real services, build the evaluation, test the app in a real browser and fix the bugs found, and build Listen together. We reviewed every change before committing it.
Earlier work. SirenSong was first built on 21 November 2026 at EurekaHacks Jr, a hackathon on marine animal conservation, which falls within STEM2Connect's dates. On 29 November we:
- tested both live feeds against the real services for the first time;
- fixed eight bugs;
- added the evaluation and Listen together;
- rewrote the README.
Challenges we ran into
- No public whale feed exists, and the species we can recognise don't live in the Baltic. So the whales are simulated, the ships are real, and the app labels which is which everywhere.
- Synthetic data versus the real ocean. The network fits its synthetic training clips perfectly. It scores about 80% on noisier held-out clips, and on real recordings it is no better than a much simpler method. Real hydrophones colour the sound in their own way, so the app measures each window against the recording's own noise floor, band by band.
- Live services we couldn't test at first. We first built against stand-ins. Testing against the real services found a bug no stand-in would have shown: a stopped hydrophone leaves its last recording online, and the app would have played hours-old sound as live. It now says the station is offline.
Accomplishments that we're proud of
- A neural network written without any ML library that trains in the browser in seconds.
- Real, live data: 128 real ships on the Helsinki–Tallinn chart, and real underwater sound from four Orcasound hydrophones.
- An honest evaluation with baselines, multiple seeds and real recordings. We published the result that didn't flatter us.
- Listen together, where people and the AI work together in the area where the AI alone isn't good enough.
- Testing every feature in a real browser, and fixing seven bugs that had shipped.
What we learned
- How sound becomes something a computer can classify: FFTs, spectrograms and log-frequency bands.
- How a neural network learns, from the forward pass to softmax and the Adam optimizer, because we built one without a library.
- That one accuracy number means nothing on its own. It needs a held-out set, a baseline and a test on real data.
- That active learning lets people fix a model's weak spots with only a few labels, because the labels are chosen where the model is unsure. Random labels helped less than half as much.
- How to work with an AI coding assistant: it is fast, but you have to check what it builds.
What's next for SirenSong
- Train and test on real labelled recordings from NOAA's and Orcasound's archives instead of synthetic calls.
- Use real whale-presence data where it exists, such as right whale acoustic detections from buoys off the US east coast.
- Send advisories through a real channel: the voluntary slow-zone notices that already exist.
Built With
- claude
- digitraffic-ais
- html
- javascript
- noaa
- node.js
- openstreetmap
- orcasound
- server-sent-events
- web-audio-api