D2H-AD is a novel anomaly detection framework built on Hyperdimensional Computing a brain-inspired paradigm encoding information as high-dimensional binary vectors. Unlike prior HDC approaches relying on reconstruction error or single prototype distance, D2H-AD fuses local density estimation and relative distance metrics computed directly in hyperdimensional space. The result: a non-linear decision boundary that catches both isolated outliers and small anomalous clusters that single-metric methods miss, with no labeled training data required and sub-millisecond inference suitability for edge hardware.
Traditional anomaly detection SVMs, Isolation Forests, Autoencoders breaks down at the edge. SVMs require quadratic kernel matrices. Autoencoders need 10–100 gradient epochs, millions of floating-point parameters, and fail when anomalies lie near the learned manifold. Isolation Forests work in original feature space where the curse of dimensionality degrades every distance metric they rely on.
HDC represents data as high-dimensional binary vectors (D = 10,000). Distance concentrates stably. Noise tolerance is structurally guaranteed binary hypervectors survive up to 25% bit flips without degrading similarity structure. And the entire compute stack reduces to XOR, popcount, integer addition, and majority vote: operations that map to digital logic without floating-point units.
Every data point is a vector of n features. The encoding phase maps each point to a binary hypervector of dimension D = 10,000 in a single deterministic pass no gradient descent, no iteration, no training data required.
The core innovation. Prior HDC anomaly detectors use a single metric: HDAD reconstructs from a prototype; ODHD measures distance to a class hypervector. D2H-AD computes two complementary metrics in hyperdimensional space and fuses them multiplicatively creating a non-linear decision boundary that neither metric achieves alone.
Classical density methods (DBSCAN, LOF) operate in original feature space where high dimensionality degrades every distance metric. D2H-AD exploits the concentration of measure in D = 10,000 dimensional space where Hamming distances are stable by construction. The fusion is computed on the same distance matrix already built for density estimation no extra overhead.
Evaluated on five ODDS benchmark datasets against HDAD, ODHD, One-Class SVM, Isolation Forest, and Autoencoder. D2H-AD achieves the highest ROC-AUC and F1 score in every single comparison. All p-values < 0.05 (Wilcoxon) and p ≪ 0.001 (t-test) across five runs per dataset.
| Method | WBC | MNIST | CARDIO | LYMPHO | SATI2 |
|---|---|---|---|---|---|
| D2H-AD | 0.928 | 0.837 | 0.872 | 0.985 | 0.982 |
| ODHD | 0.916 | 0.791 | 0.857 | 0.983 | 0.934 |
| Isolation Forest | 0.859 | 0.761 | 0.868 | 0.796 | 0.890 |
| Autoencoder | 0.849 | 0.695 | 0.861 | 0.610 | 0.851 |
| HDAD | 0.825 | 0.781 | 0.828 | 0.852 | 0.931 |
| One-Class SVM | 0.829 | 0.741 | 0.770 | 0.796 | 0.760 |
The ablation isolates what hyperdimensional encoding itself contributes, independent of the density-distance scoring mechanism. A Euclidean baseline applies the identical A = δ/ρ formula in L2-normalized original feature space. D2H-AD beats it on every dataset by an average of 5.4% ROC-AUC.
The WBC (6.2%) and MNIST (6.9%) gains are the largest precisely the datasets with complex or overlapping class boundaries where low-dimensional distance metrics degrade fastest. This is concentration of measure doing its work: in D = 10,000 dimensions, normal and anomalous neighborhoods separate naturally.
D2H-AD is not only competitive it is architecturally designed for hardware that cannot run deep learning. The entire inference stack operates without floating-point arithmetic. Memory scales linearly at O(mD + nD) bits. For typical datasets this is orders of magnitude smaller than autoencoder parameter stores.
THE
ANOMALY
SCORE
DOESN'T
NEED A
PROTOTYPE.