Artificial intelligence idea could fight terrorism