Applying AI for Threat Detection in the World of Cybersecurity