Skip to content
#data science Dataset Open access

Mid-infrared spectral dataset and machine learning tools for defect detection in green and roasted coffee

Oct 2026 · Mendeley Data
Spectroscopy and Chemometric Analyses

Abstract

This repository provides a comprehensive mid-infrared (FTIR) spectral dataset of defect-free and defective coffee beans at both green and roasted processing stages, together with spectral preprocessing workflows and machine learning tools for defect classification. The dataset includes spectra acquired in the wavenumber range of 4000–650 cm⁻¹ using ATR-FTIR spectroscopy, representing Control samples (defect-free) and five industry-relevant defect categories: bitten, discolored, insect-damaged (drill bit), sour (vinegar), and black defects. To support robust spectral analysis and facilitate reproducible modeling, the repository also includes spectra preprocessed using commonly applied chemometric techniques, including baseline correction, Standard Normal Variate (SNV), Multiplicative Scatter Correction (MSC), and Savitzky–Golay first and second derivative transformations. These preprocessing methods allow users to evaluate the influence of spectral correction strategies on classification performance and feature extraction. In addition to the spectral datasets, this repository provides R-based machine learning workflows for the simultaneous classification of defective and non-defective coffee samples in both green and roasted states. The computational tools include Support Vector Machine (SVM) and Random Forest (RF) algorithms, together with scripts for data preprocessing, model calibration, validation, and performance evaluation. These tools enable reproducible development and benchmarking of classification models for spectroscopy-based food quality assessment. This dataset may be valuable for researchers in food science, spectroscopy, chemometrics, and machine learning, as well as for coffee industry stakeholders interested in developing rapid, non-destructive quality control systems. Furthermore, the availability of both spectral data and computational tools facilitates reuse in applications such as food authentication, defect detection, and the development of data-driven quality monitoring strategies in agri-food systems.

View source

Similar papers

#computer vision Review Sep 2017

Agile Software Development Methods: Review and Analysis

This publication proposes a definition and a classification of agile software development approaches and analyses ten software development methods that can be characterized as being "agile" against the defined criterion.

P. Abrahamsson, O. Salo, Jussi Ronkainen et al. · 727 citations · ⚡54
#computer vision Jun 2008

The impact of agile practices on communication in software development

The study shows that agile practices improve both informal and formal communication, but indicates that, in larger development situations involving multiple external stakeholders, a mismatch of adequate communication mechanisms can sometimes even hinder the communication.

M. Pikkarainen, Jukka Haikara, O. Salo et al. · 401 citations · ⚡48
#machine learning Review Open access Oct 2014

Software development in startup companies: A systematic mapping study

The results indicate that software engineering work practices are chosen opportunistically, adapted and configured to provide value under the constrains imposed by the startup context.

Nicolò Paternoster, Carmine Giardino, M. Unterkalmsteiner et al. · 394 citations · ⚡54

Trajectory Balance: Improved Credit Assignment in GFlowNets

It is proved that any global minimizer of the trajectory balance objective can define a policy that samples exactly from the target distribution, and empirically demonstrate the benefits of the trajectories balance objective for GFlowNet convergence, diversity of generated samples, and robustness to long action sequenc...

Esmeralda S. Whitammer, Moksh Jain, Emmanuel Bengio et al. · 302 citations · ⚡60

Related blog posts

Microsoft Research Blog Oct 6, 2026

What AI gets wrong and what failure teaches us

Jennifer Neville did not want to go into computer science—but that’s exactly where she landed. Neville discusses the starts and stops that led to her professional sweet spot and her work identifying “surprising failures” making it hard for AI to handle complexity.  The post What AI gets wrong and what failure teaches us appeared first on Microsoft Research.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.