Drosophila melanogaster er anvendelige til at studere genetiske eller miljømæssige manipulationer, der påvirker adfærd, såsom spontan lokomotorisk aktivitet. Her beskriver vi en protokol, der bruger skærme med infrarøde stråler og data analyse software til at kvantificere spontan motorisk aktivitet.