EMFQ-FNet: Explainable Vision–Gas Sensor Fusion for IoT-Based Food Quality Inspection
Yanamadri SmileeResearch Scholar, Department of CSE, School of Computing, Mohan Babu University, Tirupati, Andhra Pradesh, India. smileesmilees012@gmail.com0009-0001-5822-9495
Dr.K. Reddy MadhaviProfessor, Department of CSE, School of Computing, Mohan Babu University, Tirupati, Andhra Pradesh, India kreddymadhavi@gmail.com0000-0002-0826-054X
Keywords: Food Quality Inspection, Multimodal Deep Learning, Gas Sensor Array, Internet of Things, Explainable Artificial Intelligence, Grad-CAM, Shelf-Life Prediction.
Abstract
Problem: The current method of food quality and safety inspection is still largely manual, labor-intensive, single-sensor based and slow, making it hard to be scaled across distributed and high-volume food supply chains. The inability to see deterioration in the chemical or odour before it becomes visible in the system and the lack of interpretability of vision-only systems reduces trust in automated decisions for safety. Methodology: The proposed work in this paper is titled Explainable Multimodal Food Quality Fusion Network (EMFQ-FNet), an Internet of Things (IoT) based architecture for the joint analysis of RGB images and responses from a gas-sensor array. A CNN captures visual features, a one-dimensional convolutional encoder captures temporal patterns relevant to the gas from nine metal-oxide (MQ) gas sensors, and a feature-level fusion layer fuses the projected representations. Joint classification and regression heads identify the quality status and predict the remaining shelf-life, Gradient-weighted Class Activation Mapping (Grad-CAM) provides insights into the image regions contributing to the decisions, and a rule based on the classification and regression head's confidence scores classifies each sample as safe or reject. It was concluded that the EMFQ-FNet model performed excellently, with an accuracy of 93.18%, precision of 92.76%, recall of 92.43%, F1-score of 92.59%, and shelf-life RMSE of 2.64 days. These are relative improvements of 4.72, 4.59, 4.49 and 4.54 percentage points and an RMSE reduction of 0.63 days for a CNN–Vision Transformer compared to the strongest baseline. p value obtained by one way ANOVA and Tukey HSD tests for all five metrics were < 0.001 and the 95% confidence interval for accuracy was 92.83 – 93.53%. Conclusion: Combining visual with olfactory evidence, results in a more accurate, more interpretable and more reliable food inspection than single-modality approaches, which paves the way for continuous food quality monitoring by IoT.