Bulletin of Electrical Engineering and Informatics
Vol 15, No 5: October 2026

OdeSIS: in-depth analysis of outlier detection positioning using median absolute deviation

Alvincent E. Danganan (Tarlac State University)



Article Info

Publish Date
01 Oct 2026

Abstract

Outliers are easy to overlook, but they quietly skew data analysis and the decisions built on it. This study examined how the median absolute deviation (MAD) algorithm performs when applied before or after K-means clustering. To test this, the study used a synthetic dataset with five deliberately inserted outliers and an augmented version of the Iris setosa dataset containing three anomalies. MAD was applied first, then again after clustering with two and three clusters. The results were clear. When MAD ran first, it detected every outlier with 100% accuracy rate and zero false positives. After clustering, its performance slipped, false positives appeared, and it failed to flag genuinely present outliers. K-means is likely the culprit. Its mean-based centroids get dragged toward anomalous points, so outliers get absorbed into clusters where they no longer look unusual, and MAD stops flagging them. These findings suggest MAD works best as a pre-processing step. Detecting anomalies before clustering improves outlier identification, preserves the underlying data, and prevents stray points from steering cluster formation.

Copyrights © 2026






Journal Info

Abbrev

EEI

Publisher

Subject

Electrical & Electronics Engineering

Description

Bulletin of Electrical Engineering and Informatics (Buletin Teknik Elektro dan Informatika) ISSN: 2089-3191, e-ISSN: 2302-9285 is open to submission from scholars and experts in the wide areas of electrical, electronics, instrumentation, control, telecommunication and computer engineering from the ...