Threat Detection Using Artificial Intelligence