Real-time prediction of shelf-life of soymilk using a surface-enhanced Raman spectroscopy (SERS) fiber and convolutional neural networks

Abstract

Predicting the shelf-life of food is important for reducing food waste and ensuring consumer safety. The shelf-life of food products is predicted using models generated from data obtained from microbial, flavor, compositional and sensory analyses. However, these methods are laborious, expensive, time-consuming, and impractical for real-time analyses. In this study, a surface-enhanced Raman spectroscopy (SERS) fiber was used together with convolutional neural networks (CNNs) to develop models and predict the remaining shelf-life of soymilk during accelerated storage at 25 °C. The fiber detected the presence of different volatile organic compounds (VOCs) and varying concentrations of dimethyl sulfide during storage. In the early days of storage (days 0–5), the presence of VOCs responsible for the beany and grassy odor typical of soymilk was detected. On day 9, the presence of ketones, esters and some aldehydes was detected in the headspace. Using CNN models, the SERS spectra showed strong correlations with key quality and safety indicators including optical density (R = 0.85, RMSE = 0.04), pH (R = 0.87, RMSE = 0.32), microbial count (R = 0.91, RMSE = 0.69 log10 CFU ml−1), electrical conductivity (R = 0.92, RMSE = 0.07 mV), particle size (R = 0.94, RMSE = 212.59 nm), and zeta-potential (R = 0.94, RMSE = 1.28 mS cm−1). The SERS spectra also showed strong correlations with the remaining shelf-life (R = 0.95, RMSE = 1.30 days). Separate spectra were used to externally validate the remaining shelf-life and microbial count models. The results demonstrated strong predictive performance, with the model achieving accurate predictions for the remaining shelf-life and microbial count. These findings support the potential of the SERS fiber–CNN approach for practical shelf-life prediction. More tests are needed for different food products and conditions.

Graphical abstract: Real-time prediction of shelf-life of soymilk using a surface-enhanced Raman spectroscopy (SERS) fiber and convolutional neural networks

Transparent peer review

To support increased transparency, we offer authors the option to publish the peer review history alongside their article.

View this article’s peer review history

Article information

Article type
Paper
Submitted
25 Jul 2025
Accepted
19 Nov 2025
First published
17 Dec 2025
This article is Open Access
Creative Commons BY license

Sustainable Food Technol., 2026, Advance Article

Real-time prediction of shelf-life of soymilk using a surface-enhanced Raman spectroscopy (SERS) fiber and convolutional neural networks

B. Adainoo, Z. Gao and L. He, Sustainable Food Technol., 2026, Advance Article , DOI: 10.1039/D5FB00423C

This article is licensed under a Creative Commons Attribution 3.0 Unported Licence. You can use material from this article in other publications without requesting further permissions from the RSC, provided that the correct acknowledgement is given.

Read more about how to correctly acknowledge RSC content.

Social activity

Spotlight

Advertisements