Abstract
It is a well-known fact that proper nutrition is essential for human beings to live healthy lives. For thousands of years, it has been considered that dates are one of the best nutrient providers. To have better-quality dates and to enhance the shelf life of dates, it is vital to preserve dates in optimal conditions that contribute to food security. Hence, it is crucial to know the shelf life of different types of dates. In current practice, shelf life assessment is typically based on manual visual inspection, which is subjective, error-prone, and requires considerable expertise, making it difficult to scale across large storage facilities. Traditional cold storage systems, whilst being capable of monitoring temperature and humidity, lack the intelligence to detect spoilage or predict shelf life in real-time. In this study, we present a novel IoT-based shelf life estimation system that integrates multichannel gas sensors and a lightweight machine learning model deployed on an edge device. Unlike prior approaches, our system captures the real-time emissions of spoilage-related gases (methane, nitrogen dioxide, and carbon monoxide) along with environmental data to classify the freshness of date fruits. The model achieved a classification accuracy of 91.9% and an AUC of 0.98 and was successfully deployed on an Arduino Nano 33 BLE Sense board. This solution offers a low-cost, scalable, and objective method for real-time shelf life prediction. This significantly improves reliability and reduces postharvest losses in the date supply chain.