Homophily outlier detection in non-IID categorical data

Guansong Pang, Longbing Cao, Ling Chen

Introduction: The IID Fallacy

Most outlier detection algorithms operate under the assumption that data points are independent and identically distributed (IID). However, in real-world scenarios—such as medical diagnostics or network security—features are often deeply coupled. For instance, symptoms of a specific disease do not occur in isolation; they form a coordinated pattern. Traditional methods that treat features independently often fail to detect "subtle" outliers: data points that appear normal in isolation but exhibit anomalous coordinated behaviors across multiple dimensions.

The CUOT Framework

To address these limitations, this research introduces the Coupled Unsupervised Outlier Detection (CUOT) framework. CUOT shifts the focus from individual data objects to the underlying relationships between feature values. It constructs a value-value graph, where each node represents a specific categorical value (e.g., "Gender: Male" or "Education: PhD") and edges represent the strength of their coupling.

The CUOT framework models categorical data as a value-value graph, capturing dependencies between specific feature values.

The framework is operationalized through two primary algorithms:

  1. CBRW (Coupled Biased Random Walks): This algorithm assigns initial "outlierness" scores based on value frequency and uses biased random walks to propagate these scores across the graph. A value's score increases if it frequently co-occurs with other anomalous values.
  2. SDRW (Subgraph Densities-augmented Random Walks): An advancement over CBRW designed for high-noise environments. It utilizes a "Lift" measure instead of simple conditional probability to better distinguish meaningful couplings from random noise and employs dense subgraph mining to identify clusters of outlying values.
The CUOT architecture processes raw data into a graph representation to compute final outlier scores.

Key Insights: Outlier Homophily

The central premise of this work is the homophily of outliers: the tendency for rare and inconsistent feature values to "bind" together. By modeling these relationships as a graph, the algorithm can effectively "follow the trail" of an anomaly. Operating at the value level provides a fine-grained perspective that allows for outlying feature selection, identifying which specific attributes contribute most to a point's anomalous nature.

Furthermore, the transition from probability-based measures to "Lift" in the SDRW algorithm is crucial. Lift penalizes common, "normal" co-occurrences, allowing the model to focus on rare, highly-correlated pairings that are indicative of suspicious behavior.

Performance and Robustness

The researchers benchmarked CUOT against five state-of-the-art competitors (including iForest and FPOF) across 15 diverse real-world datasets. The results demonstrate significant advantages:

  • Accuracy: On the most complex datasets, CUOT achieved a 10% to 28% improvement in AUC.
  • Efficiency: Despite the complexity of graph modeling, the random walk approach remains faster than traditional pattern-based methods.
  • Noise Tolerance: SDRW proved exceptionally robust, maintaining high performance even when a significant portion of the features were irrelevant noise.

Conclusion and Future Directions

While CUOT currently focuses on pairwise couplings, it represents a significant step toward modeling non-IID categorical data. Future work aims to integrate deep learning for more complex value embeddings, explore feature-feature interaction graphs, and extend the framework to handle mixed categorical and numerical datasets without the need for discretization.

Summary updated

BibTeX
@article{pang2021homophily,
  author = {Guansong Pang and Longbing Cao and Ling Chen},
  title = {{Homophily outlier detection in non-IID categorical data}},
  journal = {Data Min. Knowl. Discov.},
  year = {2021},
  doi = {10.1007/s10618-021-00750-y},
}
Figure