Artificial intelligence could help warn us of another Dallas