Layered Approach Using Conditional Random Fields for Intrusion Detection