Aedes aegypti mosquitoes spread dengue, Zika, chikungunya and yellow fever, and they thrive alongside people, living indoors and breeding in small amounts of water. One way to suppress them is the sterile insect technique: releasing male mosquitoes infected with Wolbachia bacteria, whose matings with wild females produce no offspring. But the approach works only if virtually no females are released, since an infected female could establish a new population. In this talk, we show how Google’s Project Debug uses computer vision to sort mosquitoes by sex at industrial scale. We walk through the sorter, the real-time classifier that distinguishes males from females, and the human quality control and data collection that keep improving it. We close with hard-won lessons: build around what works first, make sure the classifier fails safely when its inputs go wrong and design the system to detect hardware failures, which cause most sorting errors.

