Md. Fazlay Rabbi, Al Hasib Mahamud, Md. Redwan Hossen, Md. Jakaria Mahmud, Mustofa Ahmed
{"title":"基于粗YOLOv11存在滤波、视觉变换和任意分割模型的多模型水果品质评价","authors":"Md. Fazlay Rabbi, Al Hasib Mahamud, Md. Redwan Hossen, Md. Jakaria Mahmud, Mustofa Ahmed","doi":"10.1002/ail2.70045","DOIUrl":null,"url":null,"abstract":"<p>Manual inspection of fruit quality is slow and subjective, and it does not scale to high-throughput sorting. This paper presents a multi-model deep learning pipeline for coarse fruit-presence filtering, ripeness classification and pixel-level spoilage segmentation. YOLOv11n is used only as an image-level presence filter and is not claimed to localise fruit; four classifiers (EfficientNetV2-S, ConvNeXt-Base, DeiT-Small and Swin-V2-Tiny) predict one of nine ripeness classes across three fruit types; Grad-CAM heatmaps expose what each classifier attends to; and the Segment Anything Model (SAM ViT-H) generates fine-grained masks evaluated against manually annotated spoilage regions using ground-truth-derived box prompts. The final classification experiment uses a fixed stratified partition of 13,964 training, 2990 validation and 3002 test images. Each classifier is trained for 20 epochs with each of four seeds (42–45). Mean test accuracy <span></span><math>\n <semantics>\n <mrow>\n <mo>±</mo>\n </mrow>\n <annotation>$$ \\pm $$</annotation>\n </semantics></math> sample standard deviation is <span></span><math>\n <semantics>\n <mrow>\n <mn>99.86</mn>\n <mo>%</mo>\n <mo>±</mo>\n <mn>0.03</mn>\n <mo>%</mo>\n </mrow>\n <annotation>$$ 99.86\\%\\pm 0.03\\% $$</annotation>\n </semantics></math> for EfficientNetV2-S, <span></span><math>\n <semantics>\n <mrow>\n <mn>99.84</mn>\n <mo>%</mo>\n <mo>±</mo>\n <mn>0.02</mn>\n <mo>%</mo>\n </mrow>\n <annotation>$$ 99.84\\%\\pm 0.02\\% $$</annotation>\n </semantics></math> for ConvNeXt-Base, <span></span><math>\n <semantics>\n <mrow>\n <mn>99.80</mn>\n <mo>%</mo>\n <mo>±</mo>\n <mn>0.06</mn>\n <mo>%</mo>\n </mrow>\n <annotation>$$ 99.80\\%\\pm 0.06\\% $$</annotation>\n </semantics></math> for DeiT-Small and <span></span><math>\n <semantics>\n <mrow>\n <mn>99.76</mn>\n <mo>%</mo>\n <mspace></mspace>\n <mo>±</mo>\n <mspace></mspace>\n <mn>0.02</mn>\n <mo>%</mo>\n </mrow>\n <annotation>$$ 99.76\\%\\kern0.5em \\pm \\kern0.5em 0.02\\% $$</annotation>\n </semantics></math> for Swin-V2-Tiny. Exact two-sided McNemar tests on paired seed-42 predictions, with Holm correction across six comparisons, find no significant differences at <span></span><math>\n <semantics>\n <mrow>\n <mi>α</mi>\n <mo>=</mo>\n <mn>0.05</mn>\n </mrow>\n <annotation>$$ \\alpha =0.05 $$</annotation>\n </semantics></math> (minimum adjusted <span></span><math>\n <semantics>\n <mrow>\n <mi>p</mi>\n <mo>=</mo>\n <mn>0.3750</mn>\n </mrow>\n <annotation>$$ p=0.3750 $$</annotation>\n </semantics></math>). The mean-accuracy ranking is descriptive, not evidence of statistical superiority. Uncertainty describes training variation on a fixed split. A separate inference-only SAM evaluation on 127 manually annotated rotten-fruit images yields IoU <span></span><math>\n <semantics>\n <mrow>\n <mn>0.790</mn>\n <mo>±</mo>\n <mn>0.172</mn>\n </mrow>\n <annotation>$$ 0.790\\pm 0.172 $$</annotation>\n </semantics></math> and Dice <span></span><math>\n <semantics>\n <mrow>\n <mn>0.870</mn>\n <mo>±</mo>\n <mn>0.136</mn>\n </mrow>\n <annotation>$$ 0.870\\pm 0.136 $$</annotation>\n </semantics></math> (mean <span></span><math>\n <semantics>\n <mrow>\n <mo>±</mo>\n </mrow>\n <annotation>$$ \\pm $$</annotation>\n </semantics></math> SD across images). These results quantify pixel-wise segmentation agreement conditional on correct spatial localisation, not end-to-end automatic spoilage detection. The pipeline runs in real time on controlled, single-fruit webcam inputs; spatial object-detection performance is neither claimed nor evaluated because tight ground-truth bounding boxes are unavailable.</p>","PeriodicalId":72253,"journal":{"name":"Applied AI letters","volume":"8 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2026-10-26","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://onlinelibrary.wiley.com/doi/epdf/10.1002/ail2.70045","citationCount":"0","resultStr":"{\"title\":\"Multi-Model Fruit Quality Assessment With Coarse YOLOv11 Presence Filtering, Vision Transformers and the Segment Anything Model\",\"authors\":\"Md. Fazlay Rabbi, Al Hasib Mahamud, Md. Redwan Hossen, Md. Jakaria Mahmud, Mustofa Ahmed\",\"doi\":\"10.1002/ail2.70045\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<p>Manual inspection of fruit quality is slow and subjective, and it does not scale to high-throughput sorting. This paper presents a multi-model deep learning pipeline for coarse fruit-presence filtering, ripeness classification and pixel-level spoilage segmentation. YOLOv11n is used only as an image-level presence filter and is not claimed to localise fruit; four classifiers (EfficientNetV2-S, ConvNeXt-Base, DeiT-Small and Swin-V2-Tiny) predict one of nine ripeness classes across three fruit types; Grad-CAM heatmaps expose what each classifier attends to; and the Segment Anything Model (SAM ViT-H) generates fine-grained masks evaluated against manually annotated spoilage regions using ground-truth-derived box prompts. The final classification experiment uses a fixed stratified partition of 13,964 training, 2990 validation and 3002 test images. Each classifier is trained for 20 epochs with each of four seeds (42–45). Mean test accuracy <span></span><math>\\n <semantics>\\n <mrow>\\n <mo>±</mo>\\n </mrow>\\n <annotation>$$ \\\\pm $$</annotation>\\n </semantics></math> sample standard deviation is <span></span><math>\\n <semantics>\\n <mrow>\\n <mn>99.86</mn>\\n <mo>%</mo>\\n <mo>±</mo>\\n <mn>0.03</mn>\\n <mo>%</mo>\\n </mrow>\\n <annotation>$$ 99.86\\\\%\\\\pm 0.03\\\\% $$</annotation>\\n </semantics></math> for EfficientNetV2-S, <span></span><math>\\n <semantics>\\n <mrow>\\n <mn>99.84</mn>\\n <mo>%</mo>\\n <mo>±</mo>\\n <mn>0.02</mn>\\n <mo>%</mo>\\n </mrow>\\n <annotation>$$ 99.84\\\\%\\\\pm 0.02\\\\% $$</annotation>\\n </semantics></math> for ConvNeXt-Base, <span></span><math>\\n <semantics>\\n <mrow>\\n <mn>99.80</mn>\\n <mo>%</mo>\\n <mo>±</mo>\\n <mn>0.06</mn>\\n <mo>%</mo>\\n </mrow>\\n <annotation>$$ 99.80\\\\%\\\\pm 0.06\\\\% $$</annotation>\\n </semantics></math> for DeiT-Small and <span></span><math>\\n <semantics>\\n <mrow>\\n <mn>99.76</mn>\\n <mo>%</mo>\\n <mspace></mspace>\\n <mo>±</mo>\\n <mspace></mspace>\\n <mn>0.02</mn>\\n <mo>%</mo>\\n </mrow>\\n <annotation>$$ 99.76\\\\%\\\\kern0.5em \\\\pm \\\\kern0.5em 0.02\\\\% $$</annotation>\\n </semantics></math> for Swin-V2-Tiny. Exact two-sided McNemar tests on paired seed-42 predictions, with Holm correction across six comparisons, find no significant differences at <span></span><math>\\n <semantics>\\n <mrow>\\n <mi>α</mi>\\n <mo>=</mo>\\n <mn>0.05</mn>\\n </mrow>\\n <annotation>$$ \\\\alpha =0.05 $$</annotation>\\n </semantics></math> (minimum adjusted <span></span><math>\\n <semantics>\\n <mrow>\\n <mi>p</mi>\\n <mo>=</mo>\\n <mn>0.3750</mn>\\n </mrow>\\n <annotation>$$ p=0.3750 $$</annotation>\\n </semantics></math>). The mean-accuracy ranking is descriptive, not evidence of statistical superiority. Uncertainty describes training variation on a fixed split. A separate inference-only SAM evaluation on 127 manually annotated rotten-fruit images yields IoU <span></span><math>\\n <semantics>\\n <mrow>\\n <mn>0.790</mn>\\n <mo>±</mo>\\n <mn>0.172</mn>\\n </mrow>\\n <annotation>$$ 0.790\\\\pm 0.172 $$</annotation>\\n </semantics></math> and Dice <span></span><math>\\n <semantics>\\n <mrow>\\n <mn>0.870</mn>\\n <mo>±</mo>\\n <mn>0.136</mn>\\n </mrow>\\n <annotation>$$ 0.870\\\\pm 0.136 $$</annotation>\\n </semantics></math> (mean <span></span><math>\\n <semantics>\\n <mrow>\\n <mo>±</mo>\\n </mrow>\\n <annotation>$$ \\\\pm $$</annotation>\\n </semantics></math> SD across images). These results quantify pixel-wise segmentation agreement conditional on correct spatial localisation, not end-to-end automatic spoilage detection. The pipeline runs in real time on controlled, single-fruit webcam inputs; spatial object-detection performance is neither claimed nor evaluated because tight ground-truth bounding boxes are unavailable.</p>\",\"PeriodicalId\":72253,\"journal\":{\"name\":\"Applied AI letters\",\"volume\":\"8 1\",\"pages\":\"\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2026-10-26\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"https://onlinelibrary.wiley.com/doi/epdf/10.1002/ail2.70045\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Applied AI letters\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://onlinelibrary.wiley.com/doi/10.1002/ail2.70045\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Applied AI letters","FirstCategoryId":"1085","ListUrlMain":"https://onlinelibrary.wiley.com/doi/10.1002/ail2.70045","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
摘要
人工检查水果质量是缓慢和主观的,它不适合高通量的分选。提出了一种多模型深度学习管道,用于水果粗存在度过滤、成熟度分类和像素级腐败分割。YOLOv11n仅用作图像级存在过滤器,并没有声称可以定位水果;四个分类器(EfficientNetV2-S、ConvNeXt-Base、DeiT-Small和swwin - v2 - tiny)预测三种水果的九种成熟度等级中的一种;Grad-CAM热图揭示了每个分类器所关注的内容;片段任意模型(SAM vvi - h)生成细粒度掩模,使用基于事实的框提示对手动注释的损坏区域进行评估。最后的分类实验采用固定的分层分割,训练图像13964张,验证图像2990张,测试图像3002张。每个分类器用4个种子(42-45)中的每一个训练20个epoch。平均检测精度±$$ \pm $$样本标准差为99.86 % ± 0.03 % $$ 99.86\%\pm 0.03\% $$ for EfficientNetV2-S, 99.84 % ± 0.02 % $$ 99.84\%\pm 0.02\% $$ for ConvNeXt-Base, 99.80 % ± 0.06 % $$ 99.80\%\pm 0.06\% $$ for DeiT-Small and 99.76 % ± 0.02 % $$ 99.76\%\kern0.5em \pm \kern0.5em 0.02\% $$ for Swin-V2-Tiny. Exact two-sided McNemar tests on paired seed-42 predictions, with Holm correction across six comparisons, find no significant differences at α = 0.05 $$ \alpha =0.05 $$ (minimum adjusted p = 0.3750 $$ p=0.3750 $$ ). The mean-accuracy ranking is descriptive, not evidence of statistical superiority. Uncertainty describes training variation on a fixed split. A separate inference-only SAM evaluation on 127 manually annotated rotten-fruit images yields IoU 0.790 ± 0.172 $$ 0.790\pm 0.172 $$ and Dice 0.870 ± 0.136 $$ 0.870\pm 0.136 $$ (mean ± $$ \pm $$ SD across images). These results quantify pixel-wise segmentation agreement conditional on correct spatial localisation, not end-to-end automatic spoilage detection. The pipeline runs in real time on controlled, single-fruit webcam inputs; spatial object-detection performance is neither claimed nor evaluated because tight ground-truth bounding boxes are unavailable.
Multi-Model Fruit Quality Assessment With Coarse YOLOv11 Presence Filtering, Vision Transformers and the Segment Anything Model
Manual inspection of fruit quality is slow and subjective, and it does not scale to high-throughput sorting. This paper presents a multi-model deep learning pipeline for coarse fruit-presence filtering, ripeness classification and pixel-level spoilage segmentation. YOLOv11n is used only as an image-level presence filter and is not claimed to localise fruit; four classifiers (EfficientNetV2-S, ConvNeXt-Base, DeiT-Small and Swin-V2-Tiny) predict one of nine ripeness classes across three fruit types; Grad-CAM heatmaps expose what each classifier attends to; and the Segment Anything Model (SAM ViT-H) generates fine-grained masks evaluated against manually annotated spoilage regions using ground-truth-derived box prompts. The final classification experiment uses a fixed stratified partition of 13,964 training, 2990 validation and 3002 test images. Each classifier is trained for 20 epochs with each of four seeds (42–45). Mean test accuracy sample standard deviation is for EfficientNetV2-S, for ConvNeXt-Base, for DeiT-Small and for Swin-V2-Tiny. Exact two-sided McNemar tests on paired seed-42 predictions, with Holm correction across six comparisons, find no significant differences at (minimum adjusted ). The mean-accuracy ranking is descriptive, not evidence of statistical superiority. Uncertainty describes training variation on a fixed split. A separate inference-only SAM evaluation on 127 manually annotated rotten-fruit images yields IoU and Dice (mean SD across images). These results quantify pixel-wise segmentation agreement conditional on correct spatial localisation, not end-to-end automatic spoilage detection. The pipeline runs in real time on controlled, single-fruit webcam inputs; spatial object-detection performance is neither claimed nor evaluated because tight ground-truth bounding boxes are unavailable.