Improving the Detection Rate of Rarely Appearing Intrusions in Network-Based Intrusion Detection Systems