How to implement AI in cybersecurity