Inspired by global unrest, Riot uses artificial intelligence, film and gaming technologies to help unpick how people react in stressful situations