Para comprender un enlace entre la respuesta inmunitaria y el comportamiento, se describe un método para medir el comportamiento locomotor en<em> Drosophila</em> Durante la infección bacteriana, así como la habilidad de las moscas para montar una respuesta inmune por la supervivencia de seguimiento, la carga bacteriana, y en tiempo real de la actividad de un regulador clave de la inmunidad innata, NFkB.