Transformer based Multi-task Fusion Network for Food SpoilageDetection and Shelf life Forecasting
Abstract
Food wastage is one of the critical challenges in the agricultural supply chain, and accurate and effective spoilage detectioncan help to reduce it. Further, it is highly important to forecast the spoilage information. This aids the longevity of thesupply chain management in the agriculture field. This motivated us to propose fusion based architectures by combiningCNN with LSTM and DeiT transformer for the following multi-tasks simultaneously: (i) vegetable classification, (ii) foodspoilage detection, and (iii) shelf life forecasting. We developed a dataset by capturing images of vegetables from theirfresh state until they were completely spoiled. From the experimental analysis it is concluded that the proposed fusionarchitectures CNN+CNN-LSTM and CNN+DeiT Transformer outperformed several deep learning models such as CNN,VGG16, ResNet50, Capsule Networks, and DeiT Transformers. Overall, CNN + DeiT Transformer yielded F1-score of0.98 and 0.61 in vegetable classification and spoilage detection respectively and mean squared error (MSE) and symmetricmean absolute percentage error (SMAPE) of 3.58, and 41.66% respectively in spoilage forecasting. Further, the reliabilityof the fusion models was validated on noisy images and integrated with LIME to visualize the model decisions.
// Source
Authors: Mounika Kanulla, Rajasree Dadigi, Sailaja Thota, Vivek Yelleti
Institutions: SRM University, Andhra Pradesh