DEVELOPING A PREDICTIVE DIGITAL TWIN FOR A FOOD PRODUCT BASED ON EDGE ML AND IOT SENSORS
DOI:
https://doi.org/10.32014/2026.2518-1726.402Keywords:
Digital Twin, Edge ML, smart sensors, shelf life prediction, food safetyAbstract
This paper examines the research on developing a predictive digital twin for food products, aiming to reduce food losses and establish the basis for intelligent quality management. The extent to which the proposed study is relevant is largely due to the necessity to address the world problem of food loss and the need to introduce the technologies of Industry 4.0 into the agri-food industry. The main idea is to work out a solution in the context of which a product status in real-time will be monitored with the help of edge computing (Edge ML) by means of using the data provided by IoT sensors and forecasting its quality, e.g., the remaining shelf life. The approaches include smart sensors (temperature, humidity, gas level), ESP32 microcontroller as transmitters of collected data, MQTT protocol to transfer data, and Raspberry Pi 5 firmware used to process data in locations. Predictive analysis by use of XGBoost (Extreme Gradient Boosting). The experiments carried out on the Golden Delicious apples showed that the Gradient Boosting model produced very high prediction accuracy because the R 2 Score was 0.9936 in the training set. These results validate the great potential of Edge ML technology as a means of creating reliable, energy-efficient, and dynamic digital twins based on real-time data. The practical value of the given work is predicated on the fact that the proposed prototype can serve as the foundation for the creation of commercial monitoring systems. The advantage of such systems is that they would also help producers and retailers manage inventory and logistics proactively, thereby reducing losses due to spoilage and making the food industry more sustainable.




