Comparison of signature-based IDS, which relies on known patterns, and anomaly-based IDS, which detects deviations from a baseline of normal activity.