Listening to a mangrove grow back
You can measure a replanted mangrove with a tape measure. You can count saplings, measure trunk girth, and photograph the canopy from a drone. None of that tells you whether the forest has come back to life. For that, you listen to the birds.
For the last few months I've been working with Oceanus Conservation, a marine conservation NGO restoring mangroves in Cagwait, Surigao del Sur, in the southern Philippines. With acoustic recorders on loan from National Geographic, their field team placed three Song Meters across a single coastline at Bitaugan West: one by an open fishpond, one inside a replanted mangrove, and one in old, mature mangrove a few hundred metres away.
Every five minutes, day and night, each recorder wakes up and captures two minutes of audio. Over a single migrant season — roughly October to March — three recorders produce around 450 recorder-days of sound: roughly 750 gigabytes of WAV files.
Their research question is wonderfully direct, and it's the reason I wanted to help:
Is the replanted mangrove starting to sound like the old mangrove — and can machine learning help a small field team answer that without spending their lives wearing headphones?
Why conservation needs ML — and why off-the-shelf ML isn't enough
Oceanus already uses an acoustic platform (Synature) that clusters bird sounds so biologists can verify them by ear. It works, up to a point. Two bottlenecks show up immediately in the field: first, human listening time is the scarcest resource in conservation. A small team managing nurseries, community surveys, and field logistics cannot review tens of thousands of clips every month. Second, automated clustering misses species the biologists know are sitting right above their heads — especially regional endemics and winter migrants passing through the coast.
My role is the ML side: building an acoustic pipeline on top of Google's Perch 2.0 — a bird vocalization model trained on nearly 15,000 sound classes worldwide — and turning raw audio into ecological answers the team can actually trust and use.
The first surprise came as soon as we ran Perch across the three habitats on the same shared days (and restricted its output to the 59 species documented on the site, so it stopped guessing European robins in Mindanao). Even before training a single custom classifier, the habitats separated cleanly — and the replanted area already sounded far more like the old mangrove than the open fishpond.
The pattern makes ecological sense. Little Egrets hunt in the open fishpond and never register inside the replanted or old mangrove. Canopy and forest-edge birds — Golden-bellied Gerygone, Common Kingfisher, Zebra Dove — show up in both the replanted area and the mature mangrove at remarkably similar rates. One season is only a snapshot, not a multi-year trend, but you can already hear the acoustic signature of a forest returning.
What the daylight surveys couldn't see
Oceanus also runs traditional ocular (visual) bird surveys. Comparing visual counts against 24-hour audio turned up one of the best moments of the project so far: a loud, unmistakable caller that Perch kept flagging as a Common Moorhen across all three recorders, peaking around 20:00 — and calling almost exclusively between 18:00 and 05:00.
Common Moorhen had never been recorded in a single Bitaugan West visual survey. For a while I treated it as our most suspicious model guess — maybe a different rail, maybe a frog. Then the field team uploaded a fresh batch of verified clips, including a brand-new Common Moorhen folder: 237 clips, 100% of them at night, matching Perch's hourly curve almost to the hour. Visual surveys happen in daylight; the mangrove has a second shift after dark.
Real-world conservation ML is mostly plumbing and honesty
Papers about bioacoustics usually show neat ROC curves on clean benchmark datasets. Field conservation looks nothing like that. Almost every engineering decision in this project was forced by physical reality:
- 750 GB of audio vs. 62 GB of free disk. I can't store a season of WAVs on a laptop. So the pipeline streams recordings from Google Drive in batches, band-limits everything to 12 kHz (keeping 24 kHz Song Meters compatible with future 48 kHz AudioMoths without losing accuracy), saves only Perch's compact embeddings (~21 MB per recorder-day), and deletes the local WAVs.
- Slow uploads and an 8-watt charger. Uploads from rural Mindanao arrive in batches over slow internet, and running Perch on efficiency cores takes days per batch. Instead of waiting for every file, the pipeline processes in layers — first one recording per hour across every day (`:00`), then `:30`, then `:15/:45`, then the rest — so ecological comparisons stay unbiased even while data is still arriving.
- Hardware fails quietly in salt air. In February 2025, the old-mangrove recorder's detections collapsed from 15.5% of recordings to 2.0% while the fishpond recorder next door stayed normal. Checking the spectrogram showed why: everything above 4 kHz was gone, replaced by a loud, clipping low rumble — a wet or degraded microphone. Without catching that, a chart would have proudly reported that "birds vanished from the old mangrove in February."
- Data sovereignty and slow internet. The audio belongs to Oceanus Conservation, not the public web. So instead of hosting a cloud app, the team gets a single self-contained offline HTML dashboard stored in their own Drive — download once, explore habitats, hours, seasons, and example calls without an internet connection.
Where it gets genuinely hard
Having a model agree on common birds is the easy part. In fact, Perch agreed with 3,965 out of 3,965 clips the team had already filed across 11 species — which sounds triumphant until you realize it means we had zero confirmed mistakes to test our blind spots against, and several common birds from the sight surveys were barely showing up in the model's output at all.
One of those birds — the bright yellow, flute-voiced Black-naped Oriole — turned into a detective story about clip lengths, drifting timestamps, global softmax probabilities, and why a model trained on the whole world can be too polite to name a bird sitting right in front of the microphone. That's the next post.