Skip to content
Open access

A Sign-Symmetric Reformulation of the Hassanat Distance for Data with Negative Feature Values

Jul 2026 · Symmetry · Vol 18, pp. 1225 · 0 citations · 57 references

TL;DR

The Sign-Symmetric Hassanat Distance (SHasD), a single branch-free formula D(a,b)=|a−b|/(1+max(|a|,|b|)) that is invariant under the reflection x↦−x, coincides exactly with HasD on non-negative data, and removes the conditional shift entirely.

Abstract

The Hassanat Distance (HasD) is a bounded, non-convex metric widely used in k-nearest-neighbor (KNN) classification for its robustness to noise, outliers, and heterogeneous feature scales. Its definition, however, breaks a natural symmetry: through a sign-dependent shift it assigns different distances to mirror-image pairs such as (1,2) and (−1,−2), distorting neighborhoods exactly in the value ranges that modern preprocessing (z-scoring, principal component analysis (PCA), learned embeddings) produces. We introduce the Sign-Symmetric Hassanat Distance (SHasD), a single branch-free formula D(a,b)=|a−b|/(1+max(|a|,|b|)) that is invariant under the reflection x↦−x, coincides exactly with HasD on non-negative data, and removes the conditional shift entirely. We prove SHasD is a metric, and we derive a range-normalized companion, SHasD-R, that additionally restores ray monotonicity and the [0,1) per-dimension bound. On 23 datasets across three normalization regimes and ten distance measures, SHasD improves significantly on HasD on data containing negative values (mean gain +1.1 percentage points, up to +7.4; Wilcoxon p=0.0026, Holm-corrected) and attains the best mean rank of the compared measures on signed, heavy-tailed, outlier-rich data, while preserving HasD’s robustness. An additive per-dimension decomposition yields a built-in interpretation of every prediction.

Read PDF

Similar papers

Quasibinary Classifier for Images with Zero and Multiple Labels

It is shown in a variety of image classification settings and on several datasets, that quasibinary classifiers are considerably better in classification settings where regular binary and softmax classifiers suffer, including zero-label and multi-label classification.

Shuai Liao, E. Gavves, Changyong Oh et al. · 0 citations
Preprint Aug 2026

Orthogonal Polynomial Approximation for Matrix Log Normalization in Global Covariance Pooling

Global Covariance Pooling (GCP) improves deep networks by capturing second-order feature statistics, and is especially effective for fine-grained recognition. Because covariance matrices live on the Symmetric Positive Definite (SPD) manifold, a normalization step is required before the Euclidean classifier. The faithfu...

Md Rifat Ur Rahman, Md Raihan Khan, Md Sakib Hossain Shovon et al. · 0 citations
Preprint Aug 2026

A Fixed-Radius Distance-Band Benchmark for Dimensionality-Reduction Fidelity

A membership-restricted Shepard rho resolves single-point and minority-population questions that many-pair statistics cannot -- questions on which even DREAMS, a recent local-plus-global hybrid, fails silently.

Y. Takaeda · 0 citations
Preprint Jul 2026

Directional Kernel Mean Difference: A Fast Signed Statistic for Univariate Distribution Comparison

We introduce the Directional Kernel Mean Difference (DKMD), a signed statistic for univariate distribution comparison that preserves the direction of distributional shifts. Unlike the squared Maximum Mean Discrepancy (MMD), which discards directional information by squaring the RKHS distance, DKMD integrates the differ...

Shijie Zhong, Jiangfeng Fu · 0 citations
Preprint Aug 2026

Sparse and robust geometric twin support vector machine via asymmetric RoBoSS loss function

A novel asymmetric, robust, bounded, sparse and smooth (aR) loss function for $l_1-norm penalized geometric twin SVM (aRSGTSVM) to handle classification and regression tasks and develops a fast and stable proximal gradient descent based solving algorithm.

Kai Qi, Xin-Jie Huang, Hongchun Wang · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.