HyperCookies A hyperspectral dataset of cookies for spectral-spatial machine learning
Authors:
- Gerardo Mora JimenaGJGerardo Mora Jimena
- Astrid TempelaereATAstrid Tempelaere
- Junyan LiJLJunyan Li
- Mariette SchönfeldMSMariette Schönfeld
- Noah SteidleNSNoah Steidle
- Hendrik BlockeelHBHendrik Blockeel
- Bart De KetelaereBKBart De Ketelaere
- Mariya IshtevaMIMariya Ishteva
- Wannes MeertWMWannes Meert
- Ward MelisWMWard Melis
- Pieter VerbovenPVPieter Verboven
- Wouter SaeysWouter Saeys
Preprint
- 6 November 2026
- preprint
- Published by Springer Nature in Research Square
Abstract
Hyperspectral imaging (HSI) combines spatial and spectral information, producing high-dimensional datasets for which machine learning (ML) methods have become a key tool for classification. However, publicly available HSI datasets that explicitly require the joint exploitation of both spatial and spectral dimensions for classification remain limited. Here, we present HyperCookies, a carefully annotated HSI dataset comprising images of 160 cookies belonging to four classes defined by both spectral and spatial characteristics. Spectral variation is introduced through chocolate droplets with different cocoa contents, and spatial variation is represented by two topping arrangements. HSI data were acquired using two complementary line-scan cameras covering the visible and near-infrared (VNIR, 400–1000 nm) and short-wave infrared (SWIR, 900–1700 nm) ranges. The cookies were imaged both before and after baking, enabling the study of processing-induced changes. Baseline experiments using both spectral ML classifiers and image-based convolutional neural networks demonstrate that neither spectral nor spatial information alone is sufficient to reliably discriminate all four classes. The HyperCookies dataset is therefore made publicly available as a challenging and realistic benchmark for the development and evaluation of methods that jointly exploit spectral and spatial information in hyperspectral images.Keywords
All Related Versions
Funding Information
- KU Leuven (C2E/23/007)
This publication has 31 references indexed in Scilit:
- Deep learning-enhanced Vis–NIR spectroscopy for early and stage-specific detection of cucumber mosaic virus in cucumber leaves with explainable modelsBiosystems Engineering, 2026
- A multimodal imaging dataset for quality grading of Canadian wild rice kernels using RGB and VNIR hyperspectral dataData in Brief, 2026
- Near-infrared spectroscopy for comprehensive analysis of dark chocolate compositionFood Chemistry, 2024
- Fusing spectral and spatial features of hyperspectral reflectance imagery for differentiating between normal and defective blueberriesSmart Agricultural Technology, 2024
- Hyperspectral imaging technology for quality and safety evaluation of horticultural products: A review and celebration of the past 20-year progressPostharvest Biology and Technology, 2020
- Non-destructive detection of blackspot in potatoes by Vis-NIR and SWIR hyperspectral imagingFood Control, 2016
- Hyperspectral image analysis. A tutorialAnalytica Chimica Acta, 2015
- LabelMe: A Database and Web-Based Tool for Image AnnotationInternational Journal of Computer Vision, 2007
- Syntheses of Novel Derivatives of 2‐Acetylfuro[2,3‐a]carbazoles, Benzo[1,2‐b]‐1,4‐thiazepino[2,3‐a]carbazoles and 1‐Acetyloxycarbazole‐2‐carbaldehydes.ChemInform, 2006
- Partial least squares for discriminationJournal of Chemometrics, 2003