Pan Yixuan, Wang Yujie, Zhou Yuzhe, Zhou Jiacheng, Chen Manxi, Liu Dongling, Li Feier, Liu Can, Zeng Mingwan, Jiang Dongjing, Yuan Xiangyang, Wu Hejun
College of Science, Sichuan Agricultural University, No.46, Xin Kang Road, Ya'an 625014, China.
College of Information Engineering, Sichuan Agricultural University, No.46, Xin Kang Road, Ya'an 625014, China.
Foods. 2025 May 19;14(10):1805. doi: 10.3390/foods14101805.
The detection of fish freshness is crucial for ensuring food safety. This study addresses the limitations of traditional detection methods, which rely on laboratory equipment and complex procedures, by proposing a smartphone-based detection method, termed FreshFusionNet, that utilizes a pitaya peel pH intelligent indicator film in conjunction with multimodal deep learning. The pitaya peel indicator film, prepared using high-pressure homogenization technology, demonstrates a significant color change from dark red to yellow in response to the volatile alkaline substances released during fish spoilage. To construct a multimodal dataset, 3600 images of the indicator film were captured using a smartphone under various conditions (natural light and indoor light) and from multiple angles (0° to 120°), while simultaneously recording pH values, total volatile basic nitrogen (TVB-N), and total viable count (TVC) data. Based on the lightweight MobileNetV2 network, a Multi-scale Dilated Fusion Attention module (MDFA) was designed to enhance the robustness of color feature extraction. A Temporal Convolutional Network (TCN) was then used to model dynamic patterns in chemical indicators across spoilage stages, combined with a Context-Aware Gated Fusion (CAG-Fusion) mechanism to adaptively integrate image and chemical temporal features. Experimental results indicate that the overall classification accuracy of FreshFusionNet reaches 99.61%, with a single inference time of only 142 ± 40 milliseconds (tested on Xiaomi 14). This method eliminates the need for professional equipment and enables real-time, non-destructive detection of fish spoilage through smartphones, providing consumers and the food supply chain with a low-cost, portable quality-monitoring tool, thereby promoting the intelligent and universal development of food safety detection technology.
鱼类新鲜度的检测对于确保食品安全至关重要。本研究针对传统检测方法的局限性,即依赖实验室设备和复杂程序,提出了一种基于智能手机的检测方法,称为FreshFusionNet,该方法利用火龙果果皮pH智能指示膜结合多模态深度学习。采用高压均质技术制备的火龙果果皮指示膜,在鱼类腐败过程中释放的挥发性碱性物质作用下,呈现出从深红色到黄色的显著颜色变化。为构建多模态数据集,使用智能手机在各种条件(自然光和室内光)下从多个角度(0°至120°)拍摄了3600张指示膜图像,同时记录pH值、总挥发性盐基氮(TVB-N)和总活菌数(TVC)数据。基于轻量级的MobileNetV2网络,设计了一个多尺度扩张融合注意力模块(MDFA)来增强颜色特征提取的鲁棒性。然后使用时间卷积网络(TCN)对腐败各阶段化学指标的动态模式进行建模,并结合上下文感知门控融合(CAG-Fusion)机制来自适应地整合图像和化学时间特征。实验结果表明,FreshFusionNet的总体分类准确率达到99.61%,单次推理时间仅为142±40毫秒(在小米14上测试)。该方法无需专业设备,能够通过智能手机对鱼类腐败进行实时、无损检测,为消费者和食品供应链提供了一种低成本、便携式的质量监测工具,从而推动食品安全检测技术的智能化和普及化发展。