{'fraction_non_alphanumeric': 0.01772816808929744, 'fraction_numerical': 0.003939592908732764, 'mean_word_length': 5.0476190476190474, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
The response of a selfish herd to an attack from outside the group perimeter.

According to the selfish herd hypothesis, animals can decrease predation risk by moving toward one another if the predator can appear anywhere and will attack the nearest target. Previous studies have shown that aggregations can form using simple movement rules designed to decrease each animal's Domain of Danger. However, if the predator attacks from outside the group's perimeter, these simple movement rules might not lead to aggregation. To test whether simple selfish movement rules would decrease predation risk for those situations when the predator attacks from outside the flock perimeter, we constructed a computer model that allowed flocks of 75 simulated fiddler crabs to react to one another, and to a predator attacking from 7 m away. We attacked simulated crab flocks with predators of different sizes and attack speeds, and computed relative predation risk after 120 time steps. Final trajectories showed flight toward the center of the flock, but curving away from the predator. Path curvature depended on the predator's size and approach speed. The average crab experienced a greater decrease in predation risk when the predator was small or slow moving. Regardless of the predator's size and speed, however, predation risk always decreased as long as crabs took their flock-mates into account. We conclude that, even when flight away from an external predator occurs, the selfish avoidance of danger can lead to aggregation.