Spectral Haar Binarizer: Compact Boolean Contrast Representations for Hyperspectral Classification
Organizations: Institute of Theoretical and Applied Informatics, Polish Academy of Sciences, Bałtycka 5, 44-100, Gliwice, Poland
Abstract
Tsetlin Machines offer an interpretable, hardware-friendly alternative to conventional machine learning models, but applying them to continuous hyperspectral measurements requires converting spectral signals into Boolean representations. Standard binarisation methods typically discretise each spectral band independently, potentially discarding important relationships between neighbouring wavelengths. In this paper, we introduce the Spectral Haar Binarizer (SHB), a contrast-based spectral representation method that constructs Boolean predicates from differences between selected spectral intervals. Inspired by Haar-like contrast features, the method uses an AdaBoost-style selection procedure to obtain a compact set of discriminative spectral predicates. We evaluate SHB on five heterogeneous hyperspectral datasets covering forensic blood detection, agricultural and urban remote sensing, and rainforest tree-species classification. Across binary and multiclass tasks, SHB consistently outperforms standard per-band binarisation strategies and provides the strongest or near-strongest results across classifiers. In binary tasks, TM-SHB achieves the best average performance, while RF-SHB is strongest in multiclass settings. Bayesian and rank-based analyses confirm that SHB's advantage is robust across datasets and not driven by isolated cases. The results show that representing continuous hyperspectral measurements is a central processing step for efficient classification. That contrast-based Boolean features provide an effective bridge between information-rich sensor measurements and compact, logic-based processing.
Figures & tables
| Task | Method | Avg Acc | Avg BAcc | Avg F1 |
| B | TM-SHB | |||
| RF-SHB | ||||
| RF-Raw | ||||
| RF-Std | ||||
| RF-MO-T | ||||
| RF-MO-OH |
| Task Type | Control ( ) | Baseline ( ) | |||
| Binary | TM-SHB | RF-SHB | 8.34% | 91.08% | 0.57% |
| TM-Std | 99.55% | 0.00% | 0.45% | ||
| RF-Std | 99.84% | 0.00% | 0.16% | ||
| RF-Raw | 99.46% | 0.00% | 0.54% | ||
| TM-MultiOtsu-Thermometer | 99.72% | 0.00% | 0.28% | ||
| TM-KMeans-Thermometer | 99.77% | 0.00% | 0.23% |
| Method | Macro-F1 | Bal-Acc | ||||
| Bin. | Multi. | Total | Bin. | Multi. | Total | |
| RF-SHB | 26 | 15 | 41 | 24 | 15 | 39 |
| TM-SHB | 26 | 10 | 36 | 26 | 12 | 38 |
| RF-Raw | 17 | 12 | 29 | 15 | 11 | 26 |
| RF-Std | 12 | 4 | 16 | 9 | 4 | 13 |
| RF-MultiOtsu-Thermometer | 10 | 5 | 15 | 7 | 5 | 12 |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Task / Pair | Method | Test Acc | Test BAcc | Test F1 |
| Multiclass | RF-SHB | |||
| TM-SHB | ||||
| RF-Raw | ||||
| RF-Quantile-OneHot | ||||
| RF-Quantile-Thermometer | ||||
| RF-Std |
| Task / Pair | Method | Test Acc | Test BAcc | Test F1 |
| Multiclass | RF-Raw | |||
| TM-SHB | ||||
| RF-SHB | ||||
| TM-KMeans-OneHot | ||||
| TM-KMeans-Thermometer | ||||
| TM-MultiOtsu-OneHot |
| Task / Pair | Method | Test Acc | Test BAcc | Test F1 |
| Multiclass | RF-SHB | |||
| TM-SHB | ||||
| RF-Raw | ||||
| RF-MultiOtsu-OneHot | ||||
| RF-MultiOtsu-Thermometer | ||||
| RF-KMeans-OneHot |
| Task / Pair | Method | Test Acc | Test BAcc | Test F1 |
| Multiclass | RF-SHB | |||
| TM-SHB | ||||
| RF-Raw | ||||
| RF-MultiOtsu-Thermometer | ||||
| RF-MultiOtsu-OneHot | ||||
| RF-Std |
| Task / Pair | Method | Test Acc | Test BAcc | Test F1 |
| Multiclass | RF-SHB | |||
| RF-Raw | ||||
| TM-SHB | ||||
| RF-Quantile-OneHot | ||||
| RF-Quantile-Thermometer | ||||
| RF-Std |
Hyperspectral Image Classification
Hyperspectral image classification assigns land-cover, material, or biological labels using the spectral and spatial information in image pixels.
See all 58 papers