Many insects process visual information to make decisions about controlling their flying skills and movements- flies must decide whether to pursue prey, avoid a predator, maintain their flight trajectory or land based on their perceptions.
Click here for original story, Revealing how flies make decisions on the fly to survive
Source: Phys.org