Visible and Hyperspectral Imaging for Quality Assessment of Milk: Property Characterisation and Identification

Massimo Martinelli, Elena Tomassi, Nafiou Arouna, Morena Gabriele, Laryssa Perez Fabbri +6 more
2/12/2026
eess.IVcs.AIcs.LG

No confident code implementation found for this paper.

Abstract

Rapid and non-destructive assessment of milk quality is crucial to ensuring both nutritional value and food safety. In this study, we investigated the potential of visible and hyperspectral imaging as cost-effective and quick-response alternatives to conventional chemical analyses for characterizing key properties of cowś milk. A total of 52 milk samples were analysed to determine their biochemical composition (polyphenols, antioxidant capacity, and fatty acids) using spectrophotometer methods and standard gas-liquid and high-performance liquid chromatography (GLC/HPLC). Concurrently, visible (RGB) images were captured using a standard smartphone, and hyperspectral data were acquired in the near-infrared range. A comprehensive analytical framework, including eleven different machine learning algorithms, was employed to correlate imaging features with biochemical measurements. Analysis of visible images accurately distinguished between fresh samples and those stored for 12 days (100 percent accuracy) and achieved perfect discrimination between antibiotic-treated and untreated groups (100 percent accuracy). Moreover, image-derived features enabled perfect prediction of the polyphenols content and the antioxidant capacity using an XGBoost model. Hyperspectral imaging further achieved classification accuracies exceeding 95 percent for several individual fatty acids and 94.8 percent for treatment groups using a Random Forest model. These findings demonstrate that both visible and hyperspectral imaging, when coupled with machine learning, are powerful, non-invasive tools for the rapid assessment of milkś chemical and nutritional profiles, highlighting the strong potential of imaging-based approaches for milk quality assessment.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{martinelli2026visible,
  title  = {Visible and Hyperspectral Imaging for Quality Assessment of Milk: Property Characterisation and Identification},
  author = {Massimo Martinelli and Elena Tomassi and Nafiou Arouna and Morena Gabriele and Laryssa Perez Fabbri and Luisa Pozzo and Bianca Castiglioni and Paola Cremonesi and Giuseppe Conte and Davide Moroni and Laura Pucci},
  year   = {2026},
  eprint = {2602.12313},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.12313v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.12313.svg)](https://codeofpaper.com/paper/2602.12313)

Discussion