"Previously it was thought piranhas shoaled as it enabled them to form a cooperative hunting group. However, we have found that it is primarily a defensive behaviour," she said.
Piranhas face constant attack from predators including river dolphins, caiman -- a relative of the crocodile -- and bigger fish, such as the giant piracucu.
"Their cautious behaviour is crucial to avoid being eaten," Magurran said.