För att förstå en koppling mellan immunförsvaret och beteende, beskriver vi en metod för att mäta motorisk beteende<em> Drosophila</em> Under bakteriell infektion samt förmåga flugor att montera ett immunsvar genom övervakning överlevnad, bakteriell belastning, och i realtid aktivitet hos en viktig regulator av medfödd immunitet, NFkB.