← Latest papers
💻 computer science

HyperCookies A hyperspectral dataset of cookies for spectral-spatial machine learning

This paper introduces HyperCookies, a publicly available hyperspectral imaging dataset of 160 cookies with varied cocoa contents and topping arrangements, designed to serve as a challenging benchmark for developing machine learning methods that effectively combine spectral and spatial information for classification.

Original authors: Gerardo Mora Jimena, Astrid Tempelaere, Junyan Li, Mariette Schönfeld, Noah Steidle, Hendrik Blockeel, Bart De Ketelaere, Mariya Ishteva, Wannes Meert, Ward Melis, Pieter Verboven, Wouter Saeys

Published 2026-11-06
📖 5 min read🧠 Deep dive

Original authors: Gerardo Mora Jimena, Astrid Tempelaere, Junyan Li, Mariette Schönfeld, Noah Steidle, Hendrik Blockeel, Bart De Ketelaere, Mariya Ishteva, Wannes Meert, Ward Melis, Pieter Verboven, Wouter Saeys

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). ✨ This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

In the world of seeing, our eyes and the standard cameras we carry in our pockets are limited to a narrow slice of reality. They capture light in three broad bands—red, green, and blue—creating images that look familiar to us but miss a vast amount of information hidden in the spectrum. Many materials, from the leaves of a plant to the surface of a cookie, reflect light in ways that look identical to our eyes but possess unique chemical fingerprints when viewed across hundreds of specific wavelengths. This is the realm of hyperspectral imaging, a technology that captures not just a picture, but a detailed chemical report for every single pixel in that picture. While this technology has long been used to sort crops or inspect industrial parts, a persistent challenge has remained: how to teach computers to use both the chemical data and the visual shape of an object at the same time. Most existing datasets allow computers to solve problems by looking at just the chemistry or just the shape, but real-world tasks often demand that a machine understand how the two are intertwined.

A team of researchers at KU Leuven in Belgium has addressed this gap by creating a new benchmark called HyperCookies. They did not simply gather images of food; they engineered a specific puzzle that forces a computer to look at both the chemical composition and the physical arrangement of a cookie to solve it. The researchers baked 160 handmade cookies, each decorated with chocolate droplets. The trick lies in the ingredients and the layout. They used two types of chocolate: one with 54 percent cocoa and another with 80 percent cocoa. To the naked eye, and even to a standard camera, these two chocolates look almost exactly the same. However, their chemical makeup is different enough that a hyperspectral camera can distinguish them. The researchers then arranged these droplets on the cookies in four distinct patterns: some in a circle with the darker chocolate on the outside, others with the darker chocolate in the middle, and others in checkerboard or diagonal layouts.

The goal was to create a dataset where a computer could not win by relying on a single modality. If a machine tried to identify the cookie type using only the chemical signature of the chocolate, it would fail because the average chemical mix of the whole cookie looked too similar across the different classes. If it tried to identify the cookie using only the visual pattern, it would also fail because the two types of chocolate are visually indistinguishable in standard light. To succeed, an algorithm had to learn to see the pattern and know which chemical was where. The researchers captured these cookies using two specialized cameras that scan the light spectrum, one covering the visible and near-infrared range and the other covering the short-wave infrared range. They took pictures of the cookies both before they were baked and after they came out of the oven, introducing the natural changes that heat causes to the dough and the chocolate.

When the researchers tested standard machine learning tools on this new dataset, the results were clear and humbling. They tried using methods that look only at the chemical data, averaging the spectrum of the whole cookie, and these methods performed no better than random guessing. They also tried using powerful image-recognition networks that look only at the shape and texture of the cookie, and these too struggled to tell the classes apart. The best results they achieved with these separate approaches hovered around 40 to 50 percent accuracy, far below the level needed for a reliable system. This outcome was not a failure of the technology, but a confirmation of the dataset's design. It proved that for this specific task, looking at the chemistry alone or the shape alone is not enough. The information required to solve the puzzle is locked in the relationship between the two.

The paper presents the HyperCookies dataset as a public resource for scientists to develop and test new methods that can fuse these two types of information. By providing pre-sliced groups of data for training and testing, the researchers ensure that future studies can be compared fairly. The dataset includes detailed records of the cookies, noting even minor imperfections like cracks or smeared chocolate that occurred during baking, allowing researchers to test how robust their models are against real-world messiness. The work does not claim to have solved the problem of cookie classification, nor does it suggest a new way to bake better treats. Instead, it offers a rigorous test ground. It shows that while current tools are excellent at seeing either the chemical or the spatial, the next generation of artificial intelligence needs to learn to see them together, just as a human expert might, to navigate the complex, multi-layered reality of the physical world.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →