Spotting the events that might lead to a major period of upheaval is notoriously difficult. Could artificial intelligence be the crystal ball we need?