A Sign-Symmetric Reformulation of the Hassanat Distance for Data with Negative Feature Values
Abstract
1. Introduction
- Contributions.
- We identify and characterize the reflection asymmetry of HasD on negative values, and we show that its negative branch collapses to a translation-invariant transform of , structurally different from its positive branch (Section 4).
- We propose the Sign-Symmetric Hassanat Distance (SHasD), a single, branch-free formula that coincides exactly with HasD on non-negative inputs and is invariant under sign reflection. We prove it is a metric and analyze its properties, and we derive a range-normalized companion, SHasD-R, which is additionally monotone along rays and bounded in per dimension (Section 5). We further show that both metrics induce the standard Euclidean topology on , have the same convergent and Cauchy sequences as the Euclidean metric, and are complete (Section 5.4), and we exhibit SHasD as the unique backward-compatible member of a general family of admissible sign-symmetric normalizations (Section 5.5).
- We evaluate SHasD against HasD and seven other distance measures with KNN on 23 datasets covering four scenarios—natively negative features, PCA-projected real data, z-score- and -normalized classics, and signed data with native heavy-tailed outliers (financial returns and contaminated generators)—including a k-sweep and noise/outlier robustness experiments (Section 6 and Section 7). SHasD improves significantly on HasD on the datasets with negative values, attains the best mean rank of the ten compared measures under native outliers, and it preserves HasD’s robustness.
2. Related Work
- Position within generalized distance structures.
3. Background: The Hassanat Distance
4. The Problem: Reflection Asymmetry on Negative Values
5. SHasD: A Sign-Symmetric, Branch-Free Reformulation
- Notation.
5.1. Elementary Properties
- Why was this not done before?
5.2. SHasD Is a Metric
5.3. Ray Monotonicity and the SHasD-R Variant
5.4. Topological and Analytical Properties
- (i)
- a sequence converges to p in d if and only if ; hence d induces the standard (Euclidean) topology on ;
- (ii)
- is d-Cauchy if and only if it is Euclidean-Cauchy; consequently is a complete metric space;
- (iii)
- the compact subsets of are exactly the closed and (Euclidean-)bounded sets;
- (iv)
- the equivalence is topological but not uniform: the identity map is Lipschitz (with constant relative to ), but its inverse is not uniformly continuous.
5.5. A Generalized Family of Admissible Normalizations
5.6. Importing Global Geometry: Norm-and-Direction Augmentation
6. Experimental Setup
6.1. Datasets
6.2. Protocol
- Statistical analysis.
7. Results
7.1. Main Comparison
- Multi-measure rank analysis.
7.2. Effect of k
7.3. The Bounded Regime
7.4. Native Outliers: Group C
7.5. Robustness to Noise and Outliers
7.6. Interpretability: Where and Why the Metrics Differ
7.7. Runtime
8. Discussion and Limitations
9. Conclusions
- Practical guidance.
- Future directions.
- Reproducibility.
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
Appendix A. Implementation Validation

References
- Fix, E.; Hodges, J.L. Discriminatory Analysis, Nonparametric Discrimination: Consistency Properties; Technical Report; USAF School of Aviation Medicine: Dayton, OH, USA, 1951; p. 4. [Google Scholar]
- Cover, T.; Hart, P. Nearest neighbor pattern classification. IEEE Trans. Inf. Theory 1967, 13, 21–27. [Google Scholar] [CrossRef]
- Abu Alfeilat, H.A.; Hassanat, A.B.; Lasassmeh, O.; Tarawneh, A.S.; Alhasanat, M.B.; Eyal Salman, H.S.; Prasath, V.B.S. Effects of distance measure choice on k-nearest neighbor classifier performance: A review. Big Data 2019, 7, 221–248. [Google Scholar] [CrossRef] [PubMed]
- Cha, S.-H. Comprehensive survey on distance/similarity measures between probability density functions. Int. J. Math. Model. Methods Appl. Sci. 2007, 1, 300–307. [Google Scholar]
- Deza, M.M.; Deza, E. Encyclopedia of Distances; Springer: Berlin/Heidelberg, Germany, 2009. [Google Scholar]
- Li, J.; Li, J.; Wang, C.; Verbeek, F.J.; Schultz, T.; Liu, H. Outlier detection using iterative adaptive mini-minimum spanning tree generation with applications on medical data. Front. Physiol. 2023, 14, 1233341. [Google Scholar] [CrossRef] [PubMed]
- Dai, W.; Fan, R.; Nan, J. Simultaneous fault diagnosis for control valve using feature fusion and multilabel classification framework considering fault similarity. IEEE Trans. Instrum. Meas. 2025, 74, 3519211. [Google Scholar] [CrossRef]
- Geng, J.; Zhao, S.; Weizhe, W.; Li, Q. Adaptive graph partitioning for clustering datasets with heterogeneous density. ACM Trans. Knowl. Discov. Data 2025, 20, 2. [Google Scholar] [CrossRef]
- Zhang, H.; Jiang, L.; Yu, L. Attribute and instance weighted naive Bayes. Pattern Recognit. 2021, 111, 107674. [Google Scholar] [CrossRef]
- Moussaoui, A.; Radenović, S. Fuzzy metric spaces: A survey on fixed point results, contraction principles and simulation functions. Fixed Point Theory Algorithms Sci. Eng. 2025, 2025, 24. [Google Scholar] [CrossRef]
- Hassanat, A.B. Dimensionality invariant similarity measure. J. Am. Sci. 2014, 10, 221–226. [Google Scholar]
- Hassanat, A.; Alkafaween, E.; Tarawneh, A.S.; Elmougy, S. Applications review of Hassanat distance metric. In Proceedings of the 2022 International Conference on Emerging Trends in Computing and Engineering Applications (ETCEA22), Amman, Jordan; IEEE: Piscataway, NJ, USA, 2022; pp. 1–6. [Google Scholar]
- Tarawneh, A.S. HasLoss: A novel Hassanat distance-based loss function for binary classification. Front. Artif. Intell. 2026, 8, 1690830. [Google Scholar] [CrossRef] [PubMed]
- Hofer, E.; Mohrenschildt, M.V. Locally-Scaled Kernels and Confidence Voting. Mach. Learn. Knowl. Extr. 2024, 6, 1126–1144. [Google Scholar] [CrossRef]
- Jiřina, M.; Krayem, S. The Distance Function Optimization for the Near Neighbors-Based Classifiers. ACM Trans. Knowl. Discov. From Data 2022, 16, 101. [Google Scholar] [CrossRef] [PubMed]
- Uddin, S.; Haque, I.; Lu, H.; Moni, M.A.; Gide, E. Comparative performance analysis of K-nearest neighbour (KNN) algorithm and its different variants for disease prediction. Sci. Rep. 2022, 12, 6256. [Google Scholar] [CrossRef] [PubMed]
- Lin, K.Y.C. Optimizing variable selection and neighbourhood size in the K-nearest neighbour algorithm. Comput. Ind. Eng. 2024, 191, 110142. [Google Scholar] [CrossRef]
- Lin, K.Y.C. Optimizing hyperparameters in the k-NN classifier to maximize Fβ score. In Proceedings of the AIP Conference Proceedings; AIP Publishing LLC: Melville, NY, USA, 2025; p. 400027. [Google Scholar] [CrossRef]
- Hassanat, A.B.; Alkasasbeh, A.A.; Alkafaween, E.; Lasassmeh, O.; Almohammadi, K.; Alrashidi, M.; Alzahrani, A.; Alamri, M.; Tarawneh, A.S. On the Optimality of in k-Nearest Neighbor Classification: Sub-Optimality Rates, Dimension-Aware Selection, and Hassanat Distance Comparison. Preprints 2026. [Google Scholar] [CrossRef]
- Guo, Z.; Liu, G.; Liu, W.; Ni, Z.; Jiang, F. GWKNN: An enhanced k-nearest neighbor algorithm with G metric reconstruction and Grey Wolf Optimizer. Sci. Rep. 2026, 16, 8857. [Google Scholar] [CrossRef] [PubMed]
- Hadi, D.; Kurniawan, I.; Mubais, A.; Sulistyawati, D.R. Feature selection and distance metric comparison of the k-nearest neighbor algorithm on large software effort estimation datasets. In Proceedings of the AIP Conference Proceedings; AIP Publishing LLC: Melville, NY, USA, 2026; p. 070067. [Google Scholar] [CrossRef]
- Hassanat, A.B.; Tarawneh, A.S.; Alhasanat, A.S.; Alghamdi, M.; Almohammadi, K.; Tarawneh, Z. ICT: Iterative clustering with training: Preliminary results. In Proceedings of the 2025 International Conference on New Trends in Computing Sciences (ICTCS); IEEE: Piscataway, NJ, USA, 2025; pp. 97–104. [Google Scholar] [CrossRef]
- Bidye, P.; Borkar, P.; Rakesh, N. High performance GPU implementation of KNN algorithm: A review. MethodsX 2025, 42, 103633. [Google Scholar] [CrossRef] [PubMed]
- Ehsani, R.; Drabløs, F. Robust distance measures for k-NN classification of cancer data. Cancer Inform. 2020, 19, 1176935120965542. [Google Scholar] [CrossRef] [PubMed]
- Na, J.; Wang, Z.; Lv, S.; Xu, Z. An extended k nearest neighbors-based classifier for epilepsy diagnosis. IEEE Access 2021, 9, 73910–73923. [Google Scholar] [CrossRef]
- Sujdha, C.; Selvi, R.T.; Bharathidason, S. Improving the Classification Performance for the Effective Diagnosis of Diseases Using Optimized Weighted KNN on Clinical Dataset. Indian J. Sci. Technol. 2025, 18, 215–222. [Google Scholar] [CrossRef]
- Al-Khlifeh, E.; Tarawneh, A.S.; Almohammadi, K.; Alrashidi, M.; Hassanat, R.; Hassanat, A.B. Decision tree-based learning and laboratory data mining: An efficient approach to amebiasis testing. Parasites Vectors 2025, 18, 33. [Google Scholar] [CrossRef] [PubMed]
- Yusran, M.; Sadik, K.; Soleh, A.M.; Suhaeni, C. Effect of Feature Normalization and Distance Metrics on K-Nearest Neighbors Performance for Diabetes Disease Classification. J. Math. Comput. Stat. 2025, 8, 341–354. [Google Scholar] [CrossRef]
- Febriani, S.M.N.N.; Setyoningrum, N.G.; Mulyani, E.D.S.; Putra, Y.P.; Fauzi, R.R. Sentiment analysis of public emotions on Twitter during COVID-19 pandemic using k-Nearest Neighbors algorithm. In Proceedings of the AIP Conference Proceedings; AIP Publishing LLC: Melville, NY, USA, 2025; p. 040011. [Google Scholar] [CrossRef]
- Nasiri, E.; Milanova, M.; Nasiri, A. Video Surveillance Framework Based on Real-Time Face Mask Detection and Recognition. In Proceedings of the 2021 International Conference on INnovations in Intelligent SysTems and Applications (INISTA); IEEE: Piscataway, NJ, USA, 2021; pp. 1–7. [Google Scholar] [CrossRef]
- Nasiri, E.; Milanova, M.; Nasiri, A. Masked face detection using artificial intelligent techniques. In New Approaches for Multidimensional Signal Processing: Proceedings of International Workshop, NAMSP 2021; Springer: Cham, Switzerland, 2022; pp. 3–34. [Google Scholar] [CrossRef]
- Anwar, M.; Hellwich, O. An Embedded Neural Network Approach for Reinforcing Deep Learning: Advancing Hand Gesture Recognition. J. Univers. Comput. Sci. 2024, 30, 957. [Google Scholar] [CrossRef]
- Zhu, J.; Ma, X.; Yu, D.; Li, Y.; Zhao, Y. Image quality difference perception ability: A BIQA model effectiveness metric based on model falsification method. Expert Syst. Appl. 2025, 260, 125349. [Google Scholar] [CrossRef]
- Wang, L.; Wu, H.; Yu, Y.; Yu, W.; Chen, S.; Wang, J. Gate-conv SVDD: An anomaly detection framework for fault inspection of photovoltaic panels using UAVs. IEEE Internet Things J. 2025, 12, 7890–7902. [Google Scholar] [CrossRef]
- Kancharla, C.R.; Vankeirsbilck, J.; Vanoost, D.; Boydens, J.; Hallez, H. Latent dimensions of auto-encoder as robust features for inter-conditional bearing fault diagnosis. Appl. Sci. 2022, 12, 965. [Google Scholar] [CrossRef]
- Bisht, K.S.; Ahamad, N.; Awasthi, S. Efficient Fault Classification in Distributed Generation Systems using M-KNN and Grid Search Techniques. Int. Energy J. 2025, 25, 45–56. [Google Scholar] [CrossRef]
- Bisht, K.S.; Ahamad, N.; Awasthi, S. A Comprehensive Analysis of Various KNN Algorithms for Fault Classification in a Smart Grid. J. Inst. Eng. Ser. B 2026, 107, 435–446. [Google Scholar] [CrossRef]
- Sarakum, T.; Sukpancharoen, S. Non-destructive sweetness classification of Khao Tang Kwa pomelos using machine learning with acoustic and image processing. J. Food Compos. Anal. 2025, 142, 107385. [Google Scholar] [CrossRef]
- Kozubal, J.V.; Kania, T.; Tarawneh, A.S.; Hassanat, A.; Lawal, R. Ultrasonic assessment of cement-stabilized soils: Deep learning experimental results. Measurement 2023, 223, 113793. [Google Scholar] [CrossRef]
- Hase, V.J.; Bhalerao, Y.J.; Verma, S.; Wakchaure, V.; Vikhe, G. Intelligent threshold prediction in hybrid mesh segmentation using machine learning classifiers. Int. J. Manag. Technol. Eng. 2018, 8, 1426–1442. [Google Scholar]
- Begovic, M.; Causevic, S.; Memic, B.; Haskovic, A. AI-aided traffic differentiated QoS routing and dynamic offloading in distributed fragmentation optimized SDN-IoT. Int. J. Eng. Res. Technol. 2020, 13, 1880–1895. [Google Scholar]
- Alkanhel, R.; Chaaf, A.; Samee, N.A.; Alohali, M.A.; Muthanna, M.S.A.; Poluektov, D.; Muthanna, A. DEDG: Cluster-based delay and energy-aware data gathering in 3D-UWSN with optimal movement of multi-AUV. Drones 2022, 6, 283. [Google Scholar] [CrossRef]
- Valenzuela, N.P.; Zabala-Blanco, D.; Guaña-Moya, J.; Játiva, P.P.; Cañizares, M.R.; Azurdia-Meza, C. Visible Light Positioning for 2D Indoor Environments via the Standard Extreme Learning Machine. In Proceedings of the 2025 IEEE Latin-American Conference on Communications (LATINCOM); IEEE: Piscataway, NJ, USA, 2025; pp. 219–224. [Google Scholar] [CrossRef]
- Shi, Q.; Bao, Y.; Shen, Q.; Shi, Z.; Gao, R. Dynamic and Multi-Graph Approaches for Connected Traffic Flow Prediction. In Connected Vehicles Traffic Prediction: Emerging GNN Methods; Springer: Cham, Switzerland, 2025; pp. 105–139. [Google Scholar] [CrossRef]
- Al-Nuaimi, D.H.; Isa, N.A.M.; Akbar, M.F.; Abidin, I.S.Z. AMC2-Pyramid: Intelligent pyramidal feature engineering and multi-distance decision making for automatic multi-carrier modulation classification. IEEE Access 2021, 9, 137560–137583. [Google Scholar] [CrossRef]
- Özarı, Ç.; Can, E.N.; Aliçi, A. Forecasting sustainable development level of selected Asian countries using M-EDAS and k-NN algorithm. Int. J. Soc. Sci. Educ. Res. 2023, 9, 101–112. [Google Scholar]
- Feng, L.; Sinchai, A. Time series forecasting using transfer learning with an attention-revamped transformer: A case study of financial instruments. Arab. J. Sci. Eng. 2025, 50, 19569–19595. [Google Scholar] [CrossRef]
- Torkzaban, M. Bankruptcy Prediction Models: A Comparative Analysis. Ph.D. Thesis, University of Padua, Padova, Italy, 2024. [Google Scholar]
- Pintong, K.P. Towards Lightweight Real-Time Identification, Classification, and Detection of Algorithm Behavior in Embedded Systems via the Power Side Channel. Ph.D. Thesis, State University of New York at Binghamton, Vestal, NY, USA, 2025. [Google Scholar]
- Veerachamy, R.; Ramar, R. Agricultural Irrigation Recommendation and Alert (AIRA) system using optimization and machine learning in Hadoop for sustainable agriculture. Environ. Sci. Pollut. Res. 2022, 29, 19955–19974. [Google Scholar] [CrossRef] [PubMed]
- Hazard, C.J.; Resnick, M.; Beel, J.; Xia, J.; Mack, C.; Glennie, D.; Fulp, M.; Maze, D.; Bassett, A.; Koistinen, M. A Theory of the Mechanics of Information: Generalization Through Measurement of Uncertainty (Learning is Measuring). arXiv 2025, arXiv:2510.22809. [Google Scholar] [CrossRef]
- Kartal, E.; Çalişkan, F.; Eskişehirli, B.B.; Özen, Z. P-adic distance and k-Nearest Neighbor classification. Neurocomputing 2024, 578, 127400. [Google Scholar] [CrossRef]
- Ondiek, J.O.; Ogada, K.; Mwalili, T. K-Nearest Neighbor Classification Accuracy Approach Using Weighted Distance Metrics and Three-Way. In Proceedings of Tenth International Congress on Information and Communication Technology: ICICT 2025; Springer Nature: Cham, Switzerland, 2025; Volume 4, p. 13. [Google Scholar]
- Czerwik, S. Contraction mappings in b-metric spaces. Acta Math. Et. Inform. Univ. Ostrav. 1993, 1, 5–11. [Google Scholar]
- Matthews, S.G. Partial metric topology. Ann. N. Y. Acad. Sci. 1994, 728, 183–197. [Google Scholar] [CrossRef]
- Amini-Harandi, A. Metric-like spaces, partial metric spaces and fixed points. Fixed Point Theory Appl. 2012, 2012, 204. [Google Scholar] [CrossRef]
- Kramosil, I.; Michálek, J. Fuzzy metrics and statistical metric spaces. Kybernetika 1975, 11, 336–344. [Google Scholar]
- George, A.; Veeramani, P. On some results in fuzzy metric spaces. Fuzzy Sets Syst. 1994, 64, 395–399. [Google Scholar] [CrossRef]
- Moussaoui, A.; Taş, N. New perturbed parametric metric spaces for distance modeling: Fixed-point analysis with applications to the fixed-circle problem. Fixed Point Theory Algorithms Sci. Eng. 2026, 2026, 15. [Google Scholar] [CrossRef]
- Corazza, P. Introduction to metric-preserving functions. Am. Math. Mon. 1999, 106, 309–323. [Google Scholar] [CrossRef][Green Version]
- Hassanat, A.B.; Alqaralleh, M.K.; Tarawneh, A.S.; Almohammadi, K.; Alamri, M.; Alzahrani, A.; Altarawneh, G.A.; Alhalaseh, R. A novel outlier-robust accuracy measure for machine learning regression using a non-convex distance metric. Mathematics 2024, 12, 3623. [Google Scholar] [CrossRef]
- Rockafellar, R.T. Convex Analysis; Princeton University Press: Princeton, NJ, USA, 1970. [Google Scholar]
- Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; Blondel, M.; Prettenhofer, P.; Weiss, R.; Dubourg, V.; et al. Scikit-learn: Machine learning in Python. J. Mach. Learn. Res. 2011, 12, 2825–2830. [Google Scholar]
- Alvarez, R.M.; Nagler, J. Economics, issues and the Perot candidacy: Voter choice in the 1992 presidential election. Am. J. Political Sci. 1995, 39, 714–744. [Google Scholar] [CrossRef]
- LeCun, Y.; Bottou, L.; Bengio, Y.; Haffner, P. Gradient-based learning applied to document recognition. Proc. IEEE 1998, 86, 2278–2324. [Google Scholar] [CrossRef]
- Breiman, L. Bias, Variance, and Arcing Classifiers; Technical Report; Statistics Department, University of California: Berkeley, CA, USA, 1996; 460p. [Google Scholar]
- Breiman, L.; Friedman, J.; Olshen, R.; Stone, C. Classification and Regression Trees; Wadsworth: Belmont, CA, USA, 1984. [Google Scholar]
- Dua, D.; Graff, C. UCI Machine Learning Repository; University of California: Irvine, CA, USA, 2019. [Google Scholar]
- Venables, W.N.; Ripley, B.D. Modern Applied Statistics with S, 4th ed.; Springer: Berlin/Heidelberg, Germany, 2002. [Google Scholar]
- Huber, P.J. Robust estimation of a location parameter. Ann. Math. Stat. 1964, 35, 73–101. [Google Scholar] [CrossRef]
- Lance, G.N.; Williams, W.T. Computer programs for hierarchical polythetic classification (‘similarity analyses’). Comput. J. 1966, 9, 60–64. [Google Scholar] [CrossRef]
- Demšar, J. Statistical comparisons of classifiers over multiple data sets. J. Mach. Learn. Res. 2006, 7, 1–30. [Google Scholar]










| Measure | Metric | Sign-Symmetric | Bounded/Coord. | Ray-Monotone | Robust (Emp.) | =HasD |
|---|---|---|---|---|---|---|
| HasD | ✓ | × | ✓ | ✓ | ✓ | |
| SHasD | ✓ | ✓ | partial | ✓ | ✓ | |
| SHasD-R | ✓ | ✓ | ✓ | ✓ | ✓ | |
| SHasD + ND | ✓ | ✓ | — | moderate | × | |
| Bray–Curtis | × | ✓ | unbounded | × | × | × |
| Canberra | ✓ | ✓ | × | ✓ | × | |
| Euclidean | ✓ | ✓ | unbounded | ✓ | × | × |
| Dataset | Source | n | d | Classes | % Neg |
|---|---|---|---|---|---|
| digits_pca32 | UCI optdigits, PCA-32 (real) | 1797 | 32 | 10 | 49.8 |
| mnist3k_pca32 | MNIST subset, PCA-32 (real) | 3000 | 32 | 10 | 50.1 |
| ringnorm | Breiman 1996 generator [66] | 1000 | 20 | 2 | 41.1 |
| threenorm | Breiman 1996 generator [66] | 1000 | 20 | 2 | 50.0 |
| twonorm | Breiman 1996 generator [66] | 1000 | 20 | 2 | 49.9 |
| vote92 | R pscl::vote92 (real survey) | 909 | 8 | 3 | 13.3 |
| waveform21 | Breiman et al. 1984 generator [67] | 1000 | 21 | 3 | 19.8 |
| waveform40 | Breiman et al. 1984 generator [67] | 1000 | 40 | 3 | 33.8 |
| wdbc_pca10 | UCI WDBC, z+PCA-10 (real) | 569 | 10 | 2 | 52.4 |
| biopsy | R MASS::biopsy = UCI BCW original (real) | 683 | 9 | 2 | 0.0 |
| crabs | R MASS::crabs (real) | 200 | 5 | 4 | 0.0 |
| digits | sklearn/UCI (real) | 1797 | 64 | 10 | 0.0 |
| glass_fgl | R MASS::fgl = UCI forensic glass (real) | 214 | 9 | 6 | 6.4 |
| iris | sklearn/UCI (real) | 150 | 4 | 3 | 0.0 |
| pima | R MASS::Pima = UCI Pima (real) | 532 | 7 | 2 | 0.0 |
| wdbc | sklearn/UCI (real) | 569 | 30 | 2 | 0.0 |
| wine | sklearn/UCI (real) | 178 | 13 | 3 | 0.0 |
| bmw_vol | evir::bmw daily log-returns 1973–1996 (real) | 3000 | 5 | 2 | 45.1 |
| garch_fx | Ecdat::Garch FX log-returns 1980–1987 (real) | 1866 | 4 | 2 | 50.3 |
| siemens_vol | evir::siemens daily log-returns (real) | 3000 | 5 | 2 | 44.6 |
| threenorm_t | threenorm, t(2.5) noise (heavy-tailed synthetic) | 1000 | 20 | 2 | 49.6 |
| twonorm_t | twonorm, t(2.5) noise (heavy-tailed synthetic) | 1000 | 20 | 2 | 50.0 |
| waveform21_t | waveform, t(2.5) noise (heavy-tailed synthetic) | 1000 | 21 | 3 | 22.1 |
| Dataset | SHasD | SHasD-R | HasD | Euclid. | Manh. | Cheby. | Canb. | BrayC. | Cosine | Lorentz. |
|---|---|---|---|---|---|---|---|---|---|---|
| digits_pca32 | 97.52 | 96.91 | 94.49 | 98.80 | 98.64 | 97.97 | 95.99 | 98.72 | 98.80 | 97.69 |
| mnist3k_pca32 | 91.57 | 91.05 | 90.47 | 93.20 | 92.88 | 91.37 | 87.67 | 93.28 | 93.80 | 91.85 |
| ringnorm | 72.55 | 74.95 | 65.20 | 68.00 | 67.65 | 65.25 | 82.30 | 86.85 | 70.65 | 66.70 |
| threenorm | 74.80 | 72.10 | 70.25 | 75.80 | 75.20 | 72.70 | 71.70 | 78.00 | 78.25 | 71.85 |
| twonorm | 92.20 | 91.15 | 89.65 | 93.70 | 93.20 | 92.05 | 91.80 | 93.55 | 94.60 | 92.10 |
| vote92 | 64.91 | 65.73 | 66.01 | 64.41 | 63.87 | 63.26 | 64.08 | 63.37 | 64.24 | 64.85 |
| waveform21 | 75.20 | 74.90 | 74.40 | 75.90 | 76.10 | 75.30 | 70.90 | 76.55 | 73.70 | 74.95 |
| waveform40 | 70.65 | 71.55 | 71.15 | 78.00 | 76.60 | 74.20 | 66.35 | 74.85 | 72.80 | 74.05 |
| wdbc_pca10 | 93.76 | 93.32 | 92.44 | 96.13 | 96.92 | 94.03 | 88.23 | 96.75 | 95.87 | 94.11 |
| Mean | 81.46 | 81.30 | 79.34 | 82.66 | 82.34 | 80.68 | 79.89 | 84.66 | 82.52 | 80.91 |
| Mean rank | 5.67 | 6.56 | 8.33 | 3.00 | 4.00 | 6.44 | 8.33 | 2.89 | 3.89 | 5.89 |
| Dataset | SHasD | SHasD-R | HasD | Euclid. | Manh. | Cheby. | Canb. | BrayC. | Cosine | Lorentz. |
|---|---|---|---|---|---|---|---|---|---|---|
| biopsy | 96.19 | 96.78 | 96.71 | 95.47 | 96.56 | 94.95 | 96.41 | 96.86 | 96.12 | 96.56 |
| crabs | 86.75 | 86.75 | 86.25 | 89.25 | 86.75 | 88.75 | 82.25 | 86.00 | 94.25 | 86.75 |
| digits | 97.89 | 97.52 | 97.55 | 97.14 | 97.94 | 94.44 | 96.22 | 97.78 | 97.25 | 97.86 |
| digits_pca32 | 97.72 | 97.39 | 97.14 | 97.41 | 97.75 | 92.52 | 95.99 | 98.14 | 97.72 | 97.66 |
| glass_fgl | 75.70 | 74.75 | 75.00 | 71.52 | 74.08 | 66.62 | 76.14 | 76.42 | 71.68 | 75.23 |
| iris | 93.67 | 93.67 | 92.33 | 94.67 | 92.67 | 95.33 | 93.33 | 93.33 | 85.67 | 92.33 |
| mnist3k_pca32 | 90.85 | 90.43 | 89.82 | 91.88 | 91.48 | 86.22 | 87.70 | 92.40 | 92.92 | 90.32 |
| pima | 70.67 | 69.36 | 68.70 | 67.66 | 68.13 | 68.58 | 67.86 | 71.14 | 70.19 | 68.04 |
| ringnorm | 70.10 | 73.20 | 66.50 | 68.35 | 67.50 | 65.70 | 82.55 | 86.00 | 63.45 | 67.40 |
| threenorm | 74.85 | 72.80 | 71.05 | 75.75 | 75.60 | 72.75 | 71.05 | 77.05 | 77.15 | 72.20 |
| twonorm | 91.80 | 91.30 | 89.60 | 93.85 | 93.20 | 92.15 | 92.20 | 93.60 | 94.65 | 92.20 |
| vote92 | 64.58 | 64.19 | 64.85 | 64.80 | 64.14 | 64.69 | 64.30 | 65.29 | 64.63 | 64.42 |
| waveform21 | 73.35 | 73.45 | 73.90 | 74.90 | 75.30 | 71.95 | 69.95 | 72.35 | 71.40 | 74.60 |
| waveform40 | 73.00 | 72.45 | 71.80 | 72.65 | 74.15 | 62.50 | 71.15 | 70.75 | 67.20 | 73.75 |
| wdbc | 95.87 | 95.60 | 96.05 | 95.25 | 95.52 | 94.11 | 96.22 | 95.34 | 95.26 | 95.96 |
| wdbc_pca10 | 91.91 | 90.68 | 89.72 | 91.39 | 90.34 | 90.51 | 88.05 | 92.27 | 90.16 | 90.16 |
| wine | 98.06 | 98.06 | 97.78 | 95.23 | 97.76 | 92.66 | 96.09 | 96.91 | 94.66 | 98.59 |
| Mean | 84.88 | 84.61 | 83.81 | 84.54 | 84.64 | 82.03 | 83.97 | 85.98 | 83.79 | 84.35 |
| Mean rank | 4.26 | 5.21 | 6.18 | 5.18 | 4.74 | 7.65 | 7.03 | 3.56 | 5.88 | 5.32 |
| Dataset | SHasD | SHasD-R | HasD | Euclid. | Manh. | Cheby. | Canb. | BrayC. | Cosine | Lorentz. |
|---|---|---|---|---|---|---|---|---|---|---|
| biopsy | 96.34 | 96.20 | 96.56 | 95.76 | 96.71 | 95.25 | 96.27 | 96.34 | 95.91 | 96.49 |
| crabs | 87.25 | 87.25 | 86.25 | 90.00 | 86.75 | 88.25 | 83.25 | 87.00 | 91.00 | 86.75 |
| digits | 98.33 | 98.22 | 98.08 | 98.80 | 98.58 | 97.97 | 96.38 | 98.55 | 98.78 | 98.39 |
| digits_pca32 | 98.11 | 98.05 | 98.00 | 98.08 | 98.33 | 95.02 | 95.74 | 97.97 | 98.08 | 98.00 |
| glass_fgl | 73.86 | 73.64 | 75.25 | 70.12 | 74.06 | 67.10 | 69.61 | 73.58 | 70.35 | 74.53 |
| iris | 94.00 | 94.00 | 93.67 | 96.00 | 94.00 | 96.33 | 93.33 | 94.00 | 90.00 | 94.00 |
| mnist3k_pca32 | 91.58 | 91.43 | 91.33 | 92.53 | 91.93 | 88.67 | 88.05 | 92.82 | 92.73 | 91.55 |
| pima | 70.38 | 69.91 | 69.07 | 68.78 | 68.23 | 71.22 | 72.55 | 71.04 | 67.47 | 68.79 |
| ringnorm | 68.90 | 70.05 | 67.75 | 68.45 | 67.90 | 65.75 | 80.40 | 87.05 | 73.40 | 67.75 |
| threenorm | 73.80 | 73.75 | 72.40 | 75.85 | 74.90 | 71.65 | 70.20 | 76.70 | 77.10 | 73.05 |
| twonorm | 92.65 | 92.55 | 92.35 | 93.55 | 92.95 | 92.05 | 92.10 | 93.25 | 94.60 | 92.20 |
| vote92 | 63.26 | 63.98 | 65.35 | 64.20 | 64.08 | 61.77 | 63.37 | 63.81 | 64.09 | 66.01 |
| waveform21 | 74.25 | 74.55 | 74.70 | 74.95 | 75.35 | 73.45 | 69.60 | 72.80 | 71.10 | 74.95 |
| waveform40 | 72.40 | 73.15 | 73.10 | 74.25 | 74.10 | 65.60 | 66.45 | 69.95 | 69.05 | 73.60 |
| wdbc | 95.34 | 95.17 | 95.34 | 95.26 | 95.17 | 93.94 | 95.08 | 95.34 | 94.29 | 94.90 |
| wdbc_pca10 | 92.97 | 93.23 | 93.14 | 93.76 | 93.94 | 93.41 | 80.67 | 93.05 | 93.23 | 93.94 |
| wine | 96.65 | 96.93 | 98.06 | 95.25 | 97.21 | 92.96 | 95.77 | 96.93 | 95.52 | 98.04 |
| Mean | 84.71 | 84.83 | 84.73 | 85.03 | 84.95 | 82.96 | 82.87 | 85.89 | 84.51 | 84.88 |
| Mean rank | 5.15 | 5.44 | 5.50 | 4.09 | 3.88 | 7.88 | 8.00 | 4.68 | 5.44 | 4.94 |
| Dataset | SHasD | SHasD-R | HasD | Euclid. | Manh. | Cheby. | Canb. | BrayC. | Cosine | Lorentz. |
|---|---|---|---|---|---|---|---|---|---|---|
| bmw_vol | 50.55 | 50.55 | 50.73 | 50.52 | 50.58 | 51.08 | 52.35 | 50.60 | 48.80 | 50.68 |
| garch_fx | 84.97 | 84.97 | 84.97 | 84.35 | 85.02 | 83.74 | 84.22 | 84.62 | 84.30 | 85.02 |
| siemens_vol | 52.10 | 52.10 | 52.08 | 52.17 | 52.08 | 52.08 | 51.83 | 51.72 | 49.32 | 52.07 |
| threenorm_t | 69.40 | 68.10 | 66.30 | 64.15 | 66.90 | 59.50 | 70.40 | 70.35 | 62.45 | 68.65 |
| twonorm_t | 87.10 | 85.70 | 83.90 | 80.50 | 83.10 | 70.50 | 86.35 | 86.75 | 77.25 | 84.30 |
| waveform21_t | 68.25 | 68.65 | 68.35 | 63.70 | 67.70 | 58.10 | 65.55 | 66.20 | 63.10 | 69.15 |
| Mean | 68.73 | 68.34 | 67.72 | 65.90 | 67.56 | 62.50 | 68.45 | 68.37 | 64.20 | 68.31 |
| Mean rank | 3.67 | 4.17 | 4.75 | 6.83 | 4.92 | 7.92 | 4.83 | 5.00 | 9.17 | 3.75 |
| Mode | Level | SHasD | SHasD-R | HasD | Euclid. | Manh. | Cheby. | Canb. | BrayC. | Cosine | Lorentz. |
|---|---|---|---|---|---|---|---|---|---|---|---|
| noise | 10% | 80.46 | 80.70 | 79.39 | 76.90 | 79.87 | 74.05 | 80.83 | 79.58 | 76.40 | 80.60 |
| noise | 30% | 75.86 | 76.02 | 74.50 | 74.61 | 75.60 | 69.94 | 76.33 | 76.28 | 74.32 | 75.68 |
| noise | 50% | 70.99 | 70.81 | 68.20 | 70.66 | 71.53 | 67.44 | 70.48 | 72.12 | 72.30 | 71.47 |
| outlier | 10% | 73.62 | 73.04 | 71.71 | 50.41 | 55.05 | 46.57 | 75.25 | 53.31 | 49.48 | 70.69 |
| outlier | 30% | 59.90 | 58.45 | 58.35 | 38.96 | 42.54 | 37.87 | 61.60 | 40.38 | 37.79 | 52.24 |
| outlier | 50% | 47.18 | 47.93 | 48.62 | 35.80 | 37.71 | 34.70 | 49.73 | 38.36 | 37.84 | 43.65 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Alaydaa, M.S.; Alotibi, G.N.; Tarawneh, A.S.; Hassanat, A.B. A Sign-Symmetric Reformulation of the Hassanat Distance for Data with Negative Feature Values. Symmetry 2026, 18, 1225. https://doi.org/10.3390/sym18071225
Alaydaa MS, Alotibi GN, Tarawneh AS, Hassanat AB. A Sign-Symmetric Reformulation of the Hassanat Distance for Data with Negative Feature Values. Symmetry. 2026; 18(7):1225. https://doi.org/10.3390/sym18071225
Chicago/Turabian StyleAlaydaa, Mohammad Saad, Gaseb N. Alotibi, Ahmad S. Tarawneh, and Ahmad B. Hassanat. 2026. "A Sign-Symmetric Reformulation of the Hassanat Distance for Data with Negative Feature Values" Symmetry 18, no. 7: 1225. https://doi.org/10.3390/sym18071225
APA StyleAlaydaa, M. S., Alotibi, G. N., Tarawneh, A. S., & Hassanat, A. B. (2026). A Sign-Symmetric Reformulation of the Hassanat Distance for Data with Negative Feature Values. Symmetry, 18(7), 1225. https://doi.org/10.3390/sym18071225

