Detection of hazelnut rancidity inside chocolate tablets using near-infrared hyperspectral imaging
Near-infrared hyperspectral imaging (NIR-HSI) was evaluated as a non-destructive tool to detect hazelnut rancidity directly inside commercial chocolate bars, without separating the nuts from the chocolate matrix. Chocolate bars containing fresh or deliberately oxidized hazelnuts were imaged and analysed using a spectral unmixing strategy to separate chocolate and hazelnut contributions, yielding a residual component dominated by the nut signal where rancidity-related differences became more evident. ASCA applied to the original preprocessed spectra showed that rancidity explained 13.09% of the total variance (p = 0.001), confirming a significant and interpretable spectral effect despite the dominant chocolate background. A PLS-DA model built on the residual spectra successfully discriminated fresh from rancid hazelnuts and correctly classified all chocolate bars in an independent validation set, using fewer latent variables than a model based on the original data. These results demonstrate the feasibility of in situ detection of hazelnut rancidity within chocolate tablets and support NIR-HSI, combined with chemometric modelling, as a promising approach for non-destructive quality control in heterogeneous confectionery products.
Authors
- Ángel García-Pizarro (ORCID: https://orcid.org/0000-0002-3549-9767)
- Jokin Ezenarro
- Núria Vera-i-Valls
- Daniel Schorn-García
Institutions
- University of Copenhagen (DK)
- Universitat Rovira i Virgili (ES)
Publication Details
- Journal
- Spectrochimica Acta Part A Molecular and Biomolecular Spectroscopy
- Published
- 2026-01-20
- DOI
- https://doi.org/10.1016/j.saa.2026.127505
- Primary Topic
- Spectroscopy and Chemometric Analyses
- Type
- article
- Field-Weighted Citation Impact
- 0.00