A gibbon survey used to work like this. Before dawn, teams of people climbed to listening posts on ridges a few hundred metres apart. When the gibbons sang, each team wrote down the time and took a compass bearing on every song. Back at camp the bearings were drawn on a map, and wherever lines from two posts crossed, that was a group. It took weeks, it could not be done in rain, and it depended on people whose ears were good and whose patience was better.
Many surveys still work that way. But over the past decade a second method has grown up beside it, and it rests on three ideas that are worth understanding even if you never go near a forest.
Idea one: a recorder never gets tired
An autonomous recording unit is a weatherproof box with a microphone, a memory card and a timer. It costs less than a decent pair of binoculars. Strapped to a tree, it records for a set period every morning for months.
A grid of thirty recorders therefore produces something no human team can: thousands of hours of sound, from every site, on every morning, including the wet ones. Camera traps do the same job for animals that walk past instead of calling.
The catch is obvious. Nobody is going to listen to four thousand hours of forest.
Idea two: a classifier is a very fast, slightly unreliable listener
This is where machine learning comes in, and it is less mysterious than it sounds.
A recording is first turned into a spectrogram, a picture of sound with time along the bottom, pitch up the side and loudness as brightness. A gibbon's song appears as a rising series of curved lines, as recognisable as handwriting. Once sound is a picture, the methods developed for recognising images apply. A neural network is shown several thousand labelled examples, some containing the song and some containing rain, cicadas, other primates and chainsaws, and learns to tell them apart.
Two numbers describe how good it is, and they pull against each other:
- Recall is the share of real songs it finds. Miss too many and you conclude the gibbons are gone.
- Precision is the share of its detections that are real. Too many false alarms and you conclude they are everywhere.
You can trade one for the other by moving a threshold, but you cannot have both at their maximum. Good projects therefore do something unglamorous: a person listens to a random sample of the detections, and a random sample of what was rejected, and measures both error rates for this forest, this season, these microphones. A classifier trained in one valley can do badly in the next, because the background noise is different.
Idea three: not hearing an animal does not mean it is not there
This is the part most often skipped, and it matters more than the machine learning.
Suppose a recorder ran for ten mornings and picked up gibbons on three of them. The naive reading is "present". Now suppose another recorder picked up nothing in ten mornings. The naive reading is "absent". But gibbons do not sing every day. If a group that is present is detected on only three mornings in ten, then silence across ten mornings still happens, just by chance, at a meaningful number of occupied sites.
Occupancy models deal with exactly this. They use the pattern of repeat visits to estimate two things at once: the probability that a site is occupied, and the probability of detecting the species on a given visit if it is there. The repeat visits are what make this possible, which is why recorders that run for many mornings are so valuable. One morning per site, however good the equipment, cannot separate "absent" from "quiet today".
The same reasoning applies far beyond wildlife. Any time you count things with an imperfect detector, whether faults on a production line or fraud in a ledger, the number you observe is a floor. The honest estimate needs a model of what you missed.
What the method cannot do
It is easy to oversell this, so three cautions.
It tells you about presence more readily than numbers. Hearing a song tells you a group exists. Working out how many groups there are from overlapping songs on several recorders is much harder and is still an active research problem.
It needs field knowledge at both ends. Somebody has to decide where the recorders go, and a bad layout cannot be rescued by a good model. Somebody also has to know that a particular call is a different species of gibbon, or a bird that imitates one.
The data are only as good as the labels. If the people labelling training examples disagree about what counts as a song, the classifier inherits their confusion and reports it with great confidence.
Trying it yourself
You do not need a research grant. A phone left on a windowsill at dawn makes a usable recording. Free software will show you the spectrogram, and seeing a dawn chorus laid out as a picture is worth doing once for its own sake. Several open projects publish bird classifiers that run on a laptop.
Then do the part the professionals do. Listen to twenty of the clips the software flagged and count how many it got right. Listen to twenty it ignored. You will have measured precision and a rough recall with a pencil, and you will trust the output about as much as it deserves.
The people on the ridges before dawn have not been replaced. They are checking the machine's work now, and going to the places the grid says are worth the climb.



