Using Artificial Intelligence in Intrusion Detection Systems