Scientists track behavior of intestinal bacteria in response to chemical stimuli