Datasets:

DOI:
License:
CoCoaSpec / README.md
mhmdjouni's picture
Update README.md
8f4f581 verified
metadata
license: cc-by-4.0

CoCoaSpec Dataset: A Multimodal Hyperspectral Cocoa Beans with Physicochemical Annotations

Overview

The CoCoaSpec dataset is a multimodal hyperspectral imaging dataset of Colombian cocoa beans with detailed physicochemical annotations.
It was created to support research on non-destructive cocoa quality assessment, spectral data analysis, and multimodal data fusion.

The dataset includes hyperspectral images acquired with four different devices, along with reference physicochemical measurements and metadata.

Contents

  • Hyperspectral cubes (raw and preprocessed)
  • RGB images (EOS M50 camera)
  • Physicochemical annotations (fermentation degree, moisture content, etc.)
  • Calibration & metadata (dark/flat fields, wavelength centers, camera metadata, acquisition conditions, calibration details, sample identifiers)

Data Structure

The dataset is organized as follows:

data/
├── scenes/                 # Scene-level acquisitions across devices
├── resources/              # Calibration and metadata resources
│ ├── dark_fields/
│ ├── flat_fields/
│ ├── metadata/             # cameras.json, campaign_metadata.json
│ ├── wavelengths/          # per-device band centers
│ └── physicochemical.csv   # physicochemical information
├── README.md
└── dataset.zip                # Full dataset as a single archive

How to Use

You can load the dataset with the Hugging Face datasets library:

from datasets import load_dataset

# Login using e.g. `huggingface-cli login` to access this dataset
ds = load_dataset("ecos-nord-ginp-uis/CoCoaSpec")

Code (Loading, Preprocessing, Visualization)

Example Python scripts for loading, visualization, and preprocessing are available in the public GitHub repository:
https://github.com/kebincontreras/CoCoaSpec

License

This dataset is released under the Creative Commons Attribution 4.0 International (CC BY 4.0) license.

Citation

If you use this dataset, please cite:

Latest (no DOI, stable across updates):

@dataset{contreras2025cocoaspec,
  author    = {Contreras, Kebin and Jouni, Mohamad and Dalla Mura, Mauro and Bacca, Jorge},
  title     = {CoCoaSpec: Multimodal Hyperspectral Cocoa Beans with Physicochemical Annotations},
  year      = {2025},
  publisher = {Hugging Face},
  url       = {https://huggingface.co/datasets/ecos-nord-ginp-uis/CoCoaSpec}
  note      = {Please cite a versioned DOI when available; see the dataset page for the latest DOI.}
}

Versioned (preferred for reproducibility):

  1. Open the dataset page and check the latest DOI.
  2. Copy the DOI into this template:
@dataset{contreras2025cocoaspec,
  author    = {Contreras, Kebin and Jouni, Mohamad and Dalla Mura, Mauro and Bacca, Jorge},
  title     = {CoCoaSpec: Multimodal Hyperspectral Cocoa Beans with Physicochemical Annotations},
  year      = {2025},
  publisher = {Hugging Face},
  doi       = {<paste-versioned-DOI-here>},
  url       = {https://doi.org/<paste-versioned-DOI-here>},
  note      = {Version: <vX or date>}
}

➡️ Get the latest DOI: see the “Cite this dataset” badge on the dataset page.

Acknowledgements

This dataset was developed at Universidad Industrial de Santander (Colombia) in collaboration with Université Grenoble Alpes – GIPSA-Lab (France).
We thank all contributors for their efforts in acquisition, annotation, and validation.

Contact

For questions, suggestions, or issues regarding this dataset, please contact (primary first):

Please mention “CoCoaSpec dataset” in the subject line when reaching out.