{"title":"Comparative Analysis of CNN Architectures with Optuna-Assisted Hyperparameter Optimization for Classifying Drought-Stressed Soybean Seeds","authors":"Rustem Ustun, Banu Ulu, Muhammad Amjid, Burak Ulu, Bulent Uzun, Necati Çetin","doi":"10.1007/s12161-026-03204-7","DOIUrl":null,"url":null,"abstract":"<p>The reduction in soybean yield and quality due to drought makes rapid and non-destructive grading at the seed level critical. In this study, five genotypes × four irrigation treatments (20 classes) were discriminated using RGB images in a scalable DL pipeline. ResNet-18, ConvNeXt-Tiny/Base, DenseNet-121, and EfficientNet-B1 were trained using transfer learning. HPO was performed with Optuna, and the accuracy, F1 score, ROC-AUC, and resource consumption were reported. On a held-out test set that was disjoint from model selection, EfficientNet-B1 achieved the best accuracy of 94.8% (AUC = 0.9990), followed by DenseNet-121 96.2% (AUC = 0.9993), ResNet-18 92.9% (AUC = 0.9985), ConvNeXt-Base 92.1% (AUC = 0.9981) and ConvNeXt-Tiny 94.0% (AUC = 0.9985). In terms of efficiency, ResNet-18 was balanced at 2232 s and 46.9 MB, with the lowest inference latency (15.5 ms). Grad-CAM foci pointed to the hilum, edge contours, and shell texture. The results showed that 20-class genotype × irrigation discrimination is possible with high accuracy using RGB images, while Grad-CAM provided qualitative support that the models generally focused on seed-related regions rather than background areas. EfficientNet-B1 is recommended when the highest accuracy with a small model footprint is required, whereas ResNet-18 provides the lowest latency on the tested workstation and may be a suitable candidate for future edge-device benchmarking. These capabilities point to potential future directions, including rapid pre-screening prototypes, human-in-the-loop active learning, multi-location validation, on-device inference tests, and RGB+NIR fusion, which remain to be demonstrated.</p>","PeriodicalId":561,"journal":{"name":"Food Analytical Methods","volume":"19 10","pages":""},"PeriodicalIF":3.0000,"publicationDate":"2026-07-29","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Food Analytical Methods","FirstCategoryId":"97","ListUrlMain":"https://link.springer.com/article/10.1007/s12161-026-03204-7","RegionNum":3,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"FOOD SCIENCE & TECHNOLOGY","Score":null,"Total":0}
引用次数: 0
Abstract
The reduction in soybean yield and quality due to drought makes rapid and non-destructive grading at the seed level critical. In this study, five genotypes × four irrigation treatments (20 classes) were discriminated using RGB images in a scalable DL pipeline. ResNet-18, ConvNeXt-Tiny/Base, DenseNet-121, and EfficientNet-B1 were trained using transfer learning. HPO was performed with Optuna, and the accuracy, F1 score, ROC-AUC, and resource consumption were reported. On a held-out test set that was disjoint from model selection, EfficientNet-B1 achieved the best accuracy of 94.8% (AUC = 0.9990), followed by DenseNet-121 96.2% (AUC = 0.9993), ResNet-18 92.9% (AUC = 0.9985), ConvNeXt-Base 92.1% (AUC = 0.9981) and ConvNeXt-Tiny 94.0% (AUC = 0.9985). In terms of efficiency, ResNet-18 was balanced at 2232 s and 46.9 MB, with the lowest inference latency (15.5 ms). Grad-CAM foci pointed to the hilum, edge contours, and shell texture. The results showed that 20-class genotype × irrigation discrimination is possible with high accuracy using RGB images, while Grad-CAM provided qualitative support that the models generally focused on seed-related regions rather than background areas. EfficientNet-B1 is recommended when the highest accuracy with a small model footprint is required, whereas ResNet-18 provides the lowest latency on the tested workstation and may be a suitable candidate for future edge-device benchmarking. These capabilities point to potential future directions, including rapid pre-screening prototypes, human-in-the-loop active learning, multi-location validation, on-device inference tests, and RGB+NIR fusion, which remain to be demonstrated.
期刊介绍:
Food Analytical Methods publishes original articles, review articles, and notes on novel and/or state-of-the-art analytical methods or issues to be solved, as well as significant improvements or interesting applications to existing methods. These include analytical technology and methodology for food microbial contaminants, food chemistry and toxicology, food quality, food authenticity and food traceability. The journal covers fundamental and specific aspects of the development, optimization, and practical implementation in routine laboratories, and validation of food analytical methods for the monitoring of food safety and quality.