The idea of bacteria as diverse, complex perceptive entities that can hunt prey in packs, remember past experiences and interact with the moods and perceptions of their human hosts sounds like the plot of some low-budget science fiction movie. But these are exactly some of the traits that scientists attribute to “bacterial cognition,” which treats the microscopic creatures as something like information processing systems.