Rule-Based Anomaly Pattern Detection for Detecting Disease Outbreaks

Weng-Keen Wong, Andrew W. Moore, Gregory F. Cooper, Michael M. WagnerAAAI 2002

Abstract

This paper presents an algorithm for performing early detection of disease outbreaks by searching a database of emergency department cases for anomalous patterns. Traditional techniques for anomaly detection are unsatisfactory for this problem because they identify individual data points that are rare due to particular combinations of features. Instead, we propose a rule-based anomaly detection algorithm, WSARE (What’s Strange About Recent Events), that characterizes each anomalous pattern with a rule. The significance of each rule is carefully evaluated using Fisher's Exact Test and a randomization test. Our algorithm is compared against a standard detection algorithm by measuring the number of false positives and the timeliness of detection. Results indicate that our algorithm has significantly better detection times for common significance thresholds while having a slightly higher false positive rate.

Introduction

Early detection of an epidemic is a critical challenge for public health. Monitoring Emergency Department (ED) data for "signals" of an outbreak is common, but traditional anomaly detection methods often fail. They typically focus on individual outliers—such as a single patient with an extremely rare combination of symptoms—which are often noise. In contrast, an epidemic manifests as a subtle but significant increase in a specific group (e.g., an unusual cluster of young adults with respiratory issues). Furthermore, the high dimensionality of ED data (age, gender, symptoms, location) makes manual monitoring impossible. A "naive" system that only monitors total patient counts will miss outbreaks concentrated in small, specific demographics.

Methods: The WSARE Algorithm

The proposed algorithm, WSARE (What’s Strange About Recent Events), treats anomaly detection as a rule-learning problem. It searches for simple rules, typically with one or two components (e.g., Gender = Male AND Age_Decile = 5), that characterize a group of patients.

Defining "Normal" and Rule Evaluation

To account for seasonal variations and day-of-week effects, WSARE compares "today’s" data against a baseline of data from exactly five, six, seven, and eight weeks prior. The significance of a rule is evaluated using Fisher’s Exact Test on a 2x2 contingency table that compares the proportion of matching records today versus the historical baseline.

Contingency Table for Rule Evaluation

Statistical Rigor and Randomization

To address the Multiple Testing Problem—where searching thousands of rules might yield a "significant" result by pure chance—the authors use a Randomization Test. The algorithm "races" against randomized versions of the same data (with dates shuffled) to see if the best rule found on real data is truly rarer than what chance would produce. Additionally, the False Discovery Rate (FDR) method is applied to manage false alarms over long-term monitoring.

Evaluation and Results

WSARE was evaluated using a sophisticated simulator that modeled a city of 1,000 people, nine background diseases, and a specific epidemic targeting males in their 50s. It was also tested on a real-world dataset of ~70,000 records collected over 505 days from a major US city.

Performance and Timeliness

In simulations, WSARE detected outbreaks significantly earlier than a standard "naive" detector. At common significance thresholds, WSARE caught the epidemic days before the baseline.

Detection Time vs. False Positives

While WSARE produced slightly more false positives than the baseline (approximately 3 more over the test period), this is a tolerable trade-off for the massive gain in detection speed. On real ED data, WSARE also identified data quality issues, such as a day where a hospital failed to report any cases after 6:00 PM—an anomaly critical for system integrity.

Conclusion

WSARE provides interpretable, actionable alerts by outputting specific rules that public health officials can immediately investigate. Its ability to automatically adjust for context (like day-of-week effects) and handle high-dimensional data makes it a robust tool for biosurveillance. Future work will focus on reducing the computational cost of the randomization test and exploring more sophisticated time-series modeling for baseline selection.

Summary updated

BibTeX
@inproceedings{wong2002rule,
  author = {Weng-Keen Wong and Andrew W. Moore and Gregory F. Cooper and Michael M. Wagner},
  title = {{Rule-Based Anomaly Pattern Detection for Detecting Disease Outbreaks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2002},
  url = {https://openreview.net/forum?id=Bk-H20gd-r},
}
Figure