English

Outlier Detection Using Vector Cosine Similarity by Adding a Dimension

Machine Learning 2026-01-06 v1

Abstract

We propose a new outlier detection method for multi-dimensional data. The method detects outliers based on vector cosine similarity, using a new dataset constructed by adding a dimension with zero values to the original data. When a point in the new dataset is selected as the measured point, an observation point is created as the origin, differing only in the new dimension by having a non-zero value compared to the measured point. Vectors are then formed from the observation point to the measured point and to other points in the dataset. By comparing the cosine similarities of these vectors, abnormal data can be identified. An optimized implementation (MDOD) is available on PyPI: https://pypi.org/project/mdod/.

Keywords

Cite

@article{arxiv.2601.00883,
  title  = {Outlier Detection Using Vector Cosine Similarity by Adding a Dimension},
  author = {Zhongyang Shen},
  journal= {arXiv preprint arXiv:2601.00883},
  year   = {2026}
}

Comments

This is an updated version of the paper originally published in ICAIIC 2024 (DOI: 10.1109/ICAIIC60209.2024.10463442). Changes include minor typographical and grammatical corrections, as well as an added description of an optimized open-source Python implementation (MDOD) available on PyPI at https://pypi.org/project/mdod/

R2 v1 2026-07-01T08:48:52.160Z