Optimizing Distance‐Based Classification in Hyperspectral Imaging: a Tutorial on the Influence of Spectral Pretreatments

ABSTRACT One of the particularities of spectral imaging when compared to single point spectroscopy is the importance of spectral pretreatments to minimize environmental and sample‐related effects, such as shadows, shapes, or variations in illumination. However, the influence of spectral pretreatments on distance metrics is rarely considered in any great depth. This work explores and discusses the effects of combining different spectral pretreatments with the most commonly used distance metrics. A case study on the classification of recyclable materials is used as an example. MATLAB code scripts and functions are provided and referenced through the article to allow the reader to follow and implement the process step by step. The theoretical basis for the calculation and choice of different pretreatments and distance metrics is explained in depth, and the classification performance of the different combinations of pretreatments and distance metrics is discussed in the light of these. Results show that distance metrics based on angle or correlation (i.e., Spectral Angle Mapper or Spectral Correlation Mapper) could be used with or without pretreatments without significantly impacting the classification results. Classification based on Euclidean and Cityblock distances was the most computationally efficient but was also the most affected by multiplicative effects in the spectra and thus benefited the most from pretreatments such as standard normal variate (SNV) or from combining SNV and second derivative. Lastly, Mahalanobis distance showed the best classification performance for nonpretreated spectra but showed the worst performance for SNV pretreated spectra, illustrating the importance of assessing spectral similarity between calibration and validation datasets on pretreated spectra when using Mahalanobis distance, particularly when applying spectral pretreatments. This work provides practical insights into the effects that the parameters used have on the results of distance‐based classification in terms of the performance of classification models. Considering this issue can greatly improve classification performance when assessing the potential of hyperspectral imaging systems for a particular application.

Authors

Institutions

Publication Details

Journal
Journal of Chemometrics
Published
2026-01-15
DOI
https://doi.org/10.1002/cem.70101
Primary Topic
Remote-Sensing Image Classification
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Optimizing Distance‐Based Classification in Hyperspectral Imaging: a Tutorial on the Influence of Spectral Pretreatments

Nazan Altun, A. A. Gowen, Ana Herrero‐Langreo
Journal of Chemometrics
Remote-Sensing Image Classification
article

Optimizing Distance‐Based Classification in Hyperspectral Imaging: a Tutorial on the Influence of Spectral Pretreatments

Nazan Altun, A. A. Gowen, Ana Herrero‐Langreo
article en

Abstract

ABSTRACT One of the particularities of spectral imaging when compared to single point spectroscopy is the importance of spectral pretreatments to minimize environmental and sample‐related effects, such as shadows, shapes, or variations in illumination. However, the influence of spectral pretreatments on distance metrics is rarely considered in any great depth. This work explores and discusses the effects of combining different spectral pretreatments with the most commonly used distance metrics. A case study on the classification of recyclable materials is used as an example. MATLAB code scripts and functions are provided and referenced through the article to allow the reader to follow and implement the process step by step. The theoretical basis for the calculation and choice of different pretreatments and distance metrics is explained in depth, and the classification performance of the different combinations of pretreatments and distance metrics is discussed in the light of these. Results show that distance metrics based on angle or correlation (i.e., Spectral Angle Mapper or Spectral Correlation Mapper) could be used with or without pretreatments without significantly impacting the classification results. Classification based on Euclidean and Cityblock distances was the most computationally efficient but was also the most affected by multiplicative effects in the spectra and thus benefited the most from pretreatments such as standard normal variate (SNV) or from combining SNV and second derivative. Lastly, Mahalanobis distance showed the best classification performance for nonpretreated spectra but showed the worst performance for SNV pretreated spectra, illustrating the importance of assessing spectral similarity between calibration and validation datasets on pretreated spectra when using Mahalanobis distance, particularly when applying spectral pretreatments. This work provides practical insights into the effects that the parameters used have on the results of distance‐based classification in terms of the performance of classification models. Considering this issue can greatly improve classification performance when assessing the potential of hyperspectral imaging systems for a particular application.

Journal of ChemometricsVol. 40(2)
University College Dublin (IE)
Openalex Percentile: Top 87%
Remote-Sensing Image Classification
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.