FastSegFormer: A knowledge distillation-based method for real-time semantic segmentation of surface defects in navel oranges

被引:11
作者
Cai, Xiongjiang [1 ,2 ]
Zhu, Yun [1 ,2 ]
Liu, Shuwen [1 ,2 ]
Yu, Zhiyue [1 ,2 ]
Xu, Youyun [3 ]
机构
[1] Gannan Normal Univ, Sch Phys & Elect Informat, Ganzhou 341000, Peoples R China
[2] Natl Navel Orange Engn Res Ctr, Ganzhou, Peoples R China
[3] Nanjing Univ Posts & Telecommun, Natl Engn Res Ctr Commun & Networking, Nanjing 210003, Peoples R China
关键词
semantic segmentation; fastsegfomer; lightweight model; navel orange; defect detection; VISION DETECTION;
D O I
10.1016/j.compag.2023.108604
中图分类号
S [农业科学];
学科分类号
09 ;
摘要
Navel oranges are valued citrus fruits with a strong market presence, and detecting defects is crucial in their sorting due to common diseases and abnormalities during growth and transport. Deep learning, particularly semantic segmentation, is revolutionizing the fruit sorting industry by overcoming the limitations of traditional defect detection and enhancing the accuracy of classifying complex defects in navel oranges. The FastSegFormer network, enabling real-time fruit defect detection, addresses this challenge with our introduced Multi-scale Pyramid (MSP) module for its architecture and a semi-resolution reconstruction branch post-feature fusion. We suggested a multi-resolution knowledge distillation strategy to further increase the network's segmentation accuracy. We developed a navel orange defect segmentation dataset, trained, and evaluated our FastSegFormer-E model, designed for memory-constrained devices. It outperforms ENet by 3.15%, achieving a mIoU of 88.78% on the test set. The FastSegFormer-P model, tailored for high-speed detection, was tested on the mid-range RTX3060 graphics card, surpassing ENet by 3.7% with a mIoU of 89.33% and reaching 108 frames/s. The results demonstrate that the FastSegFormer-E model attains enhanced detection accuracy with reduced memory usage, whereas the FastSegFormer-P model stands out by striking an optimal balance between top-tier detection accuracy and rapid processing speed. Deploying the algorithm system on the same platform as pipeline sorting, 20 frame/s was achieved on a Jetson Nano with very low computational power. The model significantly improves the detection of subtle and intricate edge defects, achieving real-time speeds. Our proposed algorithm enhances the fineness of fruit sorting, resolves the limitation of existing algorithms that apply to a narrow range of fruit sorting scenarios, and provides an efficient and accurate solution for large-scale navel orange defect detection.
引用
收藏
页数:14
相关论文
共 37 条
[1]   Developmental metabolomics to decipher and improve fleshy fruit quality [J].
Allwood, J. William ;
Gibon, Yves ;
Osorio, Sonia ;
Araujo, Wagner L. ;
Vallarino, Jos E. G. ;
Petriacq, Pierre ;
Moing, Annick .
PLANT METABOLOMICS IN FULL SWING, 2021, 98 :3-34
[2]  
Azizah LM, 2017, 2017 7TH IEEE INTERNATIONAL CONFERENCE ON CONTROL SYSTEM, COMPUTING AND ENGINEERING (ICCSCE), P242, DOI 10.1109/ICCSCE.2017.8284412
[3]  
de Luna RG, 2019, PROCEEDINGS OF THE IEEE 2019 9TH INTERNATIONAL CONFERENCE ON CYBERNETICS AND INTELLIGENT SYSTEMS (CIS) ROBOTICS, AUTOMATION AND MECHATRONICS (RAM) (CIS & RAM 2019), P356, DOI 10.1109/CIS-RAM47153.2019.9095778
[4]  
Dosovitskiy A, 2021, Arxiv, DOI arXiv:2010.11929
[5]   Real-time defects detection for apple sorting using NIR cameras with pruning-based YOLOV4 network [J].
Fan, Shuxiang ;
Liang, Xiaoting ;
Huang, Wenqian ;
Zhang, Vincent Jialong ;
Pang, Qi ;
He, Xin ;
Li, Lianjie ;
Zhang, Chi .
COMPUTERS AND ELECTRONICS IN AGRICULTURE, 2022, 193
[6]   Defect Detection in Fruit and Vegetables by Using Machine Vision Systems and Image Processing [J].
Firouz, Mahmoud Soltani ;
Sardari, Hamed .
FOOD ENGINEERING REVIEWS, 2022, 14 (03) :353-379
[7]   A Comprehensive Overhaul of Feature Distillation [J].
Heo, Byeongho ;
Kim, Jeesoo ;
Yun, Sangdoo ;
Park, Hyojin ;
Kwak, Nojun ;
Choi, Jin Young .
2019 IEEE/CVF INTERNATIONAL CONFERENCE ON COMPUTER VISION (ICCV 2019), 2019, :1921-1930
[8]  
Hinton G, 2015, Arxiv, DOI arXiv:1503.02531
[9]  
Holder CJ, 2022, Arxiv, DOI arXiv:2206.08605
[10]  
HongJun Wang, 2020, 2020 IEEE International Conference on Mechatronics and Automation (ICMA), P1083, DOI 10.1109/ICMA49215.2020.9233575