The model hears three seconds of sound and answers one question: is there a drone in it? It has to stay quiet for everything else a city makes.
I started from BEATs, a large sound model that already knows a lot of everyday noises, and trained only its last few layers on drone and non-drone clips. The clips come from public collections and the client's own recordings. The finished model was then converted to run on a small device, and I checked that the converted one gives the same answers.
It learned the equipment. The drone clips and the traffic clips came from different recorders, and every recorder leaves its own hiss and tone. The model picked up on that and ignored the drone. The cure was to add quiet recordings from every recorder and teach the model that those mean “nothing here”. An empty-recording test is now part of every training run.
A good test score meant little. A model could do well on my test set and still be close to useless on drone recordings from somewhere new. So I keep a set of outside recordings that never go near training, and I pick the model that does best on those.
Silence gave it away. Short clips were filled out to three seconds with silence, and the model learned that a silent ending meant one particular source. Short clips are now repeated to fill the time.
Louder meant drone. The drone clips were much louder than the background clips, so volume alone was a strong hint. Making everything equally loud caused other problems. Going halfway worked best.
An alarm level that moved. I was setting the alarm level on recordings that overlapped with the training data, so it shifted with every run. It is now set on separate city recordings and stays put.
Two clips cut from the same video, which the model never trained on. The number under each three-second window is the drone score; the alarm goes off above 0.473.
Audio: YouTube, “DJI Mavic Air High Wind Tests”.