Improved Dirichlet mixture model clustering algorithm for medical data anomaly detection

Lili Wu, Majid Khan Majahar Ali, Pei Shan Fam, Ying Tian, Li TaoInt. J. Bio Inspired Comput 2025

Introduction

Medical insurance systems worldwide face staggering financial losses—estimated in the hundreds of billions of dollars annually—due to fraud, improper payments, and over-diagnosis. Detecting these anomalies is notoriously difficult because medical records consist of a complex mix of discrete data (e.g., diagnosis codes) and continuous data (e.g., costs). Furthermore, the lack of pre-labeled "fraudulent" cases makes supervised machine learning difficult to apply. This paper presents ILOF-DPMM, a novel unsupervised approach that combines Bayesian nonparametric clustering with advanced outlier detection to identify anomalous medical expenses with high precision.

Methodology

The proposed ILOF-DPMM (Improved Local Outlier Factor based on Dirichlet Process Mixture Model) algorithm follows a multi-stage pipeline designed to handle high-dimensional medical data:

  • Feature Engineering: The authors utilize Random Forest to identify influential discrete factors and t-SNE (t-distributed Stochastic Neighbor Embedding) for dimensionality reduction of continuous cost data, ensuring stability in clustering.
  • Nonparametric Clustering (DPMM): Unlike traditional K-means, the Dirichlet Process Mixture Model automatically determines the optimal number of clusters based on the data's inherent structure.
  • Anomaly Scoring (Improved LOF): The system calculates a CBLOF (Clustering-Based Local Outlier Factor) score using a joint similarity measure. This measure separately evaluates discrete features (based on support) and continuous features (based on the DPMM’s probability density function) before combining them into a unified metric.

Experimental Setup and Datasets

The model was validated using three primary sources to ensure robustness across different domains:

  1. UCI Credit Card Fraud Detection Dataset: A benchmark for initial validation.
  2. KDD-cup99 Dataset: A standard network intrusion detection dataset.
  3. Real-world Medical Insurance Data: 30,920 hospital records focusing on bronchopneumonia and multiple cerebral infarction.

Results and Discussion

The ILOF-DPMM algorithm consistently outperformed standard methods such as LOF, K-means-LOF, and Deep Clustering across all tested metrics.

Detection Efficiency

A key advantage of ILOF-DPMM is its ability to identify anomalies early in the inspection process. For instance, on the Credit Card dataset, the model achieved an accuracy of 0.982 and a recall of 0.996. As shown in the performance tables, the proposed method reaches 100% anomaly detection significantly faster than baseline models.

Anomaly detection rate (%) for the Credit Card dataset across varying data volumes.

In the KDD-cup99 benchmark, ILOF-DPMM reached 0.990 accuracy and achieved perfect recall (1.0). The efficiency of the joint similarity measure allows the system to flag 100% of anomalies within the top 15% of suspected records, demonstrating superior performance over standard LOF.

Anomaly detection rate (%) for the KDD-cup99 dataset across varying data volumes.

Stability and Adaptability

The authors found that pre-processing continuous data with t-SNE significantly improved the stability of DPMM clustering boundaries compared to PCA. Because the model is unsupervised, it can adapt to changing treatment patterns or new types of fraud without requiring manual rule updates or expensive data re-labeling.

Conclusion

ILOF-DPMM provides a flexible and highly accurate framework for medical anomaly detection. By effectively integrating discrete and continuous data through a joint similarity metric, it offers a practical solution for real-time fraud monitoring. Future work will focus on optimizing computational complexity for massive data streams and integrating the tool directly into clinical workflows to prevent over-diagnosis at the point of care.

Summary updated

BibTeX
@article{wu2025improved,
  author = {Lili Wu and Majid Khan Majahar Ali and Pei Shan Fam and Ying Tian and Li Tao},
  title = {{Improved Dirichlet mixture model clustering algorithm for medical data anomaly detection}},
  journal = {Int. J. Bio Inspired Comput.},
  year = {2025},
  doi = {10.1504/ijbic.2025.143652},
}
Figure