Scientists can build an early-warning system for trolls