AI-powered threat detection