Graham Taylor and colleagues build a biologically-based algorithm that can distinguish individual fruit flies.