Scientists are placing computer chip backpacks on dragonflies to record the insects’ brain activity as they fly and capture prey.