Cost-effective IoT hyperspectral prototype for distributed agri-food product monitoring
Abstract
Hyperspectral imaging (HSI) is a non-destructive technique that is employed to assess quality parameters and integrate monitoring across the supply chain in the context of Industry 4.0. Although promising, HSI faces challenges such as high cost and equipment requirements. However, advances in technology and 3D printing are enabling low-cost solutions that still need to be validated in the field. This work presents the development of a low-cost hyperspectral prototype, built using 3D elements and commercially available electronic components, and operating in the spectral range from 400 nm to 1000 nm. Furthermore, two types of gratings have been compared. In the first part of the study, the calibration process using RGB LEDs and a halogen lamp is described in detail. The second part of the study presents the results of a few applications on a food matrix under controlled light conditions, which were conducted to evaluate the performance of the prototype. The extracted spectra were normalised and subsequently pre-processed with either SNV (Standard Normal Variate) transform or the Savitzky–Golay (SG) derivative. Finally, the data were explored with PCA (Principal Component Analysis), which confirmed the ability of the prototype to distinguish samples of different colours (first trial), assess the decay of different apple samples (second trial) and differentiate between healthy and damaged tissues (third trial). The experimental results were consistent with the anticipated outcomes, and both types of grating demonstrated favourable performance.
References
- Casson, A., Giovenzana, V., Frigerio, V., Zambelli, M., Beghi, R., Pampuri, A., et al. (2022). Beyond the eco-design of case-ready beef packaging: The relationship between food waste and shelf-life as a key element in life cycle assessment. Food Pack. Shelf Life 34:100943. DOI: https://doi.org/10.1016/j.fpsl.2022.100943
- Davies, M., Stuart, M.B., Hobbs, M.J., McGonigle, A.J., Willmott, J.R. (2022). Image correction and in situ spectral calibration for low-cost, smartphone hyperspectral imaging. Remote Sens. (Basel) 14;1152. DOI: https://doi.org/10.3390/rs14051152
- Giovenzana, V., Beghi, R., Civelli, R., Guidetti, R. (2015). Optical techniques for rapid quality monitoring along minimally processed fruit and vegetable chain. Trends Food Sci. Tech. 46:331-338. DOI: https://doi.org/10.1016/j.tifs.2015.10.006
- Grossi, M., Bendini, A., Valli, E., Gallina Toschi, T. (2023). Field-deployable determinations of peroxide index and total phenolic content in olive oil using a promising portable sensor system. Sensors (Basel) 23:5002. DOI: https://doi.org/10.3390/s23115002
- Habel, R., Kudenov, M., Wimmer, M. (2912). Practical spectral photography. In Computer Graphics Forum, p. 449–458. Oxford, Blackwell Publishing Ltd. DOI: https://doi.org/10.1111/j.1467-8659.2012.03024.x
- Hassoun, A., Aït-Kaddour, A., Abu-Mahfouz, A.M., Bhojraj Rathod, N., Bader, F., Barba, F.J., et al. (2022). The fourth industrial revolution in the food industry-Part I: Industry 4.0 technologies. Crit. Rev. Food Sci. Nutr. 63:6547-6563. DOI: https://doi.org/10.1080/10408398.2022.2034735
- Hassoun, A., Jagtap, S., Garcia-Garcia, G., Trollman, H., Pateiro, M., Lorenzo, J.M., et al. (2023). Food quality 4.0: From traditional approaches to digitalized automated analysis. J. Food Eng. 337:111216. DOI: https://doi.org/10.1016/j.jfoodeng.2022.111216
- Kourti, T. (2006). The process analytical technology initiative and multivariate process analysis, monitoring and control. Anal. Bioanal. Chem. 384.1043-1048. DOI: https://doi.org/10.1007/s00216-006-0303-y
- Lu, Y., Huang, Y., Lu, R. (2017). Innovative hyperspectral imaging-based techniques for quality evaluation of fruits and vegetables: a review. Appl. Sci. (Basel) 7:189. DOI: https://doi.org/10.3390/app7020189
- Özdoğan, G., Lin, X., Sun, D.W. (2021). Rapid and noninvasive sensory analyses of food products by hyperspectral imaging: Recent application developments. Trends Food Sci. Technol. 111:151-165. DOI: https://doi.org/10.1016/j.tifs.2021.02.044
- Palmer, C., Loewen, E. G. (2005). Diffraction grating handbook. Rochester, MKS – Newport.
- Pampuri, A., Tugnolo, A., Bianchi, D., Giovenzana, V., Beghi, R., Fontes, N., et al. (2021a). Optical specifications for a proximal sensing approach to monitor the vine water status in a distributed and autonomous fashion. Biosyst. Eng. 212:388-398. DOI: https://doi.org/10.1016/j.biosystemseng.2021.11.007
- Pampuri, A., Tugnolo, A., Giovenzana, V., Casson, A., Guidetti, R., Beghi, R. (2021b). Design of cost-effective LED based prototypes for the evaluation of grape (Vitis vinifera L.) ripeness. Comput. Electron. Agr. 189:106381. DOI: https://doi.org/10.1016/j.compag.2021.106381
- Riihiaho, K.A., Eskelinen, M.A., Pölönen, I. (2021). A do-it-yourself hyperspectral imager brought to practice with open-source python. Sensors (Basel) 21:1072. DOI: https://doi.org/10.3390/s21041072
- Salazar-Vazquez, J., Mendez-Vazquez, A. (2020). A plug-and-play hyperspectral imaging sensor using low-cost equipment. HardwareX 7:e00087. DOI: https://doi.org/10.1016/j.ohx.2019.e00087
- Sigernes, F., Syrjäsuo, M., Storvold, R., Fortuna, J., Grøtte, M.E., Johansen, T.A. (2018). Do it yourself hyperspectral imager for handheld to airborne operations. Opt. Express 26:6021-6035. DOI: https://doi.org/10.1364/OE.26.006021
- Stuart, M.B., McGonigle, A.J.S., Davies, M., Hobbs, M.J., Boone, N.A., Stanger, L.R., et al. (2021). Low-cost hyperspectral imaging with a smartphone. J. Imaging 7:136. DOI: https://doi.org/10.3390/jimaging7080136
- Stuart, M.B., Stanger, L.R., Hobbs, M.J., Pering, T.D., Thio, D., McGonigle, A.J.S., Willmott, J.R. (2020). Low-cost hyperspectral imaging system: design and testing for laboratory-based environmental applications. Sensors (Basel) 20:3293. DOI: https://doi.org/10.3390/s20113293
- Vignati, S., Tugnolo, A., Giovenzana, V., Pampuri, A., Casson, A., Guidetti, R., Beghi, R. (2023). Hyperspectral imaging for fresh-cut fruit and vegetable quality assessment: basic concepts and applications. Appl. Sci. (Basel) 13:9740. DOI: https://doi.org/10.3390/app13179740
- Wu, D., Sun, D.W. (2013). Advanced applications of hyperspectral imaging technology for food quality and safety analysis and assessment: A review - Part I: Fundamentals. Innov. Food Sci. Emerg. 19:1-14. DOI: https://doi.org/10.1016/j.ifset.2013.04.014
Metrics
Citations and online attention from Dimensions, Altmetric and PlumX.
License
Copyright (c) 2025 the Author(s)

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
PAGEPress has chosen to apply the Creative Commons Attribution NonCommercial 4.0 International License (CC BY-NC 4.0) to all manuscripts to be published.