TY - JOUR
T1 - A digital twin approach for real-time monitoring of amasi acidity using non-invasive computer vision, IoT, and machine learning
AU - Adeleke, Ismail
AU - Nwulu, Nnamdi
AU - Adebo, Oluwafemi Ayodeji
N1 - Publisher Copyright:
© 2025 The Authors
PY - 2026/4
Y1 - 2026/4
N2 - Maintaining precise fermentation control in dairy products such as amasi is essential for consistent quality, yet conventional testing is labour-intensive and unsuitable for real-time control. We present an integrated digital twin platform that combines non-invasive computer vision, IoT sensors, and machine learning with closed-loop PID temperature and stirring control. A Raspberry Pi captured 7666 time-synchronised images and continuous sensor streams (pH, total titratable acidity (TTA), and electrical conductivity (EC)) fused with metadata (temperature, inoculation, pasteurization). Eight feature extraction strategies: four image-only [convolutional neural network (CNN)-based deep embeddings, local binary patterns (LBP) + Gabor texture, LAB (where L represents lightness, a denotes the green-red axis, and b indicates the blue-yellow axis) colour histograms, and edge detection] and four hybrids were evaluated with a fully connected neural network, XGBoost and Random Forest regressors. Ensemble models on the fully integrated feature set delivered the best performance (Random Forest: R2 = 0.9537, MSE = 0.0708, MAE = 0.1256). Temperature-compensated EC was calibrated as a continuous proxy for TTA, yielding R2= 0.9279, RMSE = 0.1889 mL/g, and MAE = 0.1445 mL/g. An ablation analysis showed that CNN embeddings, colour histograms, and sensor metadata are critical to accuracy; texture provides modest additional gains when fused, while edge features offer limited standalone value. This approach enables continuous, non-invasive acidity monitoring and reduces reliance on frequent manual titrations by supplying calibrated EC-based estimates with quantified uncertainty. Its modular, low-cost hardware and cloud-hosted digital twin makes the approach also scalable to other fermented dairy products.
AB - Maintaining precise fermentation control in dairy products such as amasi is essential for consistent quality, yet conventional testing is labour-intensive and unsuitable for real-time control. We present an integrated digital twin platform that combines non-invasive computer vision, IoT sensors, and machine learning with closed-loop PID temperature and stirring control. A Raspberry Pi captured 7666 time-synchronised images and continuous sensor streams (pH, total titratable acidity (TTA), and electrical conductivity (EC)) fused with metadata (temperature, inoculation, pasteurization). Eight feature extraction strategies: four image-only [convolutional neural network (CNN)-based deep embeddings, local binary patterns (LBP) + Gabor texture, LAB (where L represents lightness, a denotes the green-red axis, and b indicates the blue-yellow axis) colour histograms, and edge detection] and four hybrids were evaluated with a fully connected neural network, XGBoost and Random Forest regressors. Ensemble models on the fully integrated feature set delivered the best performance (Random Forest: R2 = 0.9537, MSE = 0.0708, MAE = 0.1256). Temperature-compensated EC was calibrated as a continuous proxy for TTA, yielding R2= 0.9279, RMSE = 0.1889 mL/g, and MAE = 0.1445 mL/g. An ablation analysis showed that CNN embeddings, colour histograms, and sensor metadata are critical to accuracy; texture provides modest additional gains when fused, while edge features offer limited standalone value. This approach enables continuous, non-invasive acidity monitoring and reduces reliance on frequent manual titrations by supplying calibrated EC-based estimates with quantified uncertainty. Its modular, low-cost hardware and cloud-hosted digital twin makes the approach also scalable to other fermented dairy products.
KW - Fermentation
KW - Non-invasive monitoring
KW - Prediction
KW - Process control
KW - Real-time system
KW - Sustainable food production
KW - Total titratable acidity (TTA)
KW - pH monitoring
UR - https://www.scopus.com/pages/publications/105020820210
U2 - 10.1016/j.foodcont.2025.111809
DO - 10.1016/j.foodcont.2025.111809
M3 - Article
AN - SCOPUS:105020820210
SN - 0956-7135
VL - 182
JO - Food Control
JF - Food Control
M1 - 111809
ER -