Enhancing Intrusion Detection with AI: A Two-Tier Approach