Submitted:
23 August 2025
Posted:
26 August 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Materials and Methods
2.1. Image Acquisition Platform
2.2. Image Acquisition and Preprocessing
2.2.1. Image Acquisition
2.2.2. Image Preprocessing
2.3. Soybean Seed Segmentation Algorithm Based on Multiple Corner Features
2.3.1. ORB Corner Detection Algorithm
2.3.2. Soybean Seed Segmentation Algorithm Based on LightGBM
2.4. Partitioning Algorithm Verification
2.5. Soybean Seed Dataset
3. Design of a Soybean Seed Detection Model Based on MobileViT
3.1. MobileViT-L Module
3.1.1. Using Depthwise Separable Convolution Modules to Reduce Model Parameter count
3.1.2. Simplifying Global Association Modeling Using Dimension Reconstruction
3.1.3. Enhancing the Extraction of Local and Global Features Through Dynamic Channel Recalibration
3.2. MV2-CBAM Module
3.3. Evaluation Indicators
4. Results and Analysis
4.1. MobileViT-SD Model Detection Results and Analysis
4.2. The Impact of Attention Mechanisms on Model Performance
4.2.1. The impact of CBAM Module Embedding Location on Model Performance
4.2.2. Impact of Different Attention Mechanisms on Model Performance
4.3. Ablation Experiment
4.4. Comparative Analysis with Existing Classical Models
5. Conclusions
References
- Sui, Y.; Zhao, X.; Ding, J.; Sun, S.; Tong, Y.; Ma, W.; Zhao, Y. A Nondestructive and Rapid Method for in Situ Measurement of Crude Fat Content in Soybean Grains. Food Chemistry 2025, 491, 144862. [CrossRef]
- Sreechithra, T.V.; Sakhare, S.D. Impact of Processing Techniques on the Nutritional Quality, Antinutrients, and in Vitro Protein Digestibility of Milled Soybean Fractions. Food Chemistry 2025, 485, 144565. [CrossRef]
- Montanha, G.S.; Perez, L.C.; Brandão, J.R.; De Camargo, R.F.; Tavares, T.R.; De Almeida, E.; Pereira De Carvalho, H.W. Profile of Mineral Nutrients and Proteins in Soybean Seeds (Glycine Max (L.) Merrill): Insights from 95 Varieties Cultivated in Brazil. Journal of Food Composition and Analysis 2024, 134, 106536. [CrossRef]
- Xu, L.; Xie, G.; Zhou, X.; Liu, Y.; Fang, Z. Catalytic Pyrolysis of Soybean Oil with CaO/Bio-Char Based Catalyst to Produce High Quality Biofuel. Journal of Renewable Materials 2022, 10, 3107–3118. [CrossRef]
- Madayag, J.V.M.; Domalanta, M.R.B.; Maalihan, R.D.; Caldona, E.B. Valorization of Extractible Soybean By-Products for Polymer Composite and Industrial Applications. Journal of Environmental Chemical Engineering 2025, 13, 115703. [CrossRef]
- Nguyen, K.Q.; Hussain, A.S.; Araujo, A.N.; Strebel, L.M.; Corby, T.L.; Rhodes, M.A.; Bruce, T.J.; Cuéllar-Anjel, J.; Davis, D.A. Effects of Different Soybean Protein Sources on Growth Performance, Feed Utilization Efficiency, Intestinal Histology, and Physiological Gene Expression of Pacific White Shrimp (Litopenaeus Vannamei) in Green Water and Indoor Biofloc System. Aquaculture 2026, 611, 743021. [CrossRef]
- Cai, L.; Gong, X.; Ding, H.; Li, S.; Hao, D.; Yu, K.; Ma, Q.; Sun, X.; Muneer, M.A. Vermicomposting with Food Processing Waste Mixtures of Soybean Meal and Sugarcane Bagasse. Environmental Technology & Innovation 2022, 28, 102699. [CrossRef]
- Zheng, Y.; Ma, X.; Li, L.; Yang, L.; Yu, H.; Zhao, Y.; Liu, H. Purine Content of Different Soybean Products and Dynamic Transfer in Food Processing Techniques 2025.
- Hammond, B.G.; Jez, J.M. Impact of Food Processing on the Safety Assessment for Proteins Introduced into Biotechnology-Derived Soybean and Corn Crops. Food and Chemical Toxicology 2011, 49, 711–721. [CrossRef]
- Zhang, D.; Sun, X.; Hu, B.; Li, W.-X.; Ning, H. QTN Mapping, Gene Prediction and Molecular Design Breeding of Seed Protein Content in Soybean. The Crop Journal 2025, S2214514125001631. [CrossRef]
- Duan, Z.; Xu, L.; Zhou, G.; Zhu, Z.; Wang, X.; Shen, Y.; Ma, X.; Tian, Z.; Fang, C. Unlocking Soybean Potential: Genetic Resources and Omics for Breeding. Journal of Genetics and Genomics 2025, S1673852725000414. [CrossRef]
- Kovalskyi, S.; Koval, V. Comparison of Image Processing Techniques for Defect Detection.
- Dang, C.; Wang, Z.; He, Y.; Wang, L.; Cai, Y.; Shi, H.; Jiang, J. The Accelerated Inference of a Novel Optimized YOLOv5-LITE on Low-Power Devices for Railway Track Damage Detection. IEEE Access 2023, 11, 134846–134865. [CrossRef]
- Subramanian, M.; Lingamuthu, V.; Venkatesan, C.; Perumal, S. Content-Based Image Retrieval Using Colour, Gray, Advanced Texture, Shape Features, and Random Forest Classifier with Optimized Particle Swarm Optimization. International Journal of Biomedical Imaging 2022, 2022, 1–14. [CrossRef]
- Liu, D.; Ning, X.; Li, Z.; Yang, D.; Li, H.; Gao, L. Discriminating and Elimination of Damaged Soybean Seeds Based on Image Characteristics. Journal of Stored Products Research 2015, 60, 67–74. [CrossRef]
- de Medeiros, A.D.; Capobiango, N.P.; da Silva, J.M.; da Silva, L.J.; da Silva, C.B.; dos Santos Dias, D.C.F. Interactive Machine Learning for Soybean Seed and Seedling Quality Classification. Scientific Reports 2020, 10, 11267. [CrossRef]
- Wei, Y.; Li, X.; Pan, X.; Li, L. Nondestructive Classification of Soybean Seed Varieties by Hyperspectral Imaging and Ensemble Machine Learning Algorithms. Sensors 2020, 20, 6980. [CrossRef]
- Waqas, M.; Naseem, A.; Humphries, U.W.; Hlaing, P.T.; Dechpichai, P.; Wangwongchai, A. Applications of Machine Learning and Deep Learning in Agriculture: A Comprehensive Review. Green Technologies and Sustainability 2025, 3, 100199. [CrossRef]
- Huang, Z.; Wang, R.; Cao, Y.; Zheng, S.; Teng, Y.; Wang, F.; Wang, L.; Du, J. Deep Learning Based Soybean Seed Classification. Computers and Electronics in Agriculture 2022, 202, 107393. [CrossRef]
- Kaler, N.; Bhatia, V.; Mishra, A.K. Deep Learning-Based Robust Analysis of Laser Bio-Speckle Data for Detection of Fungal-Infected Soybean Seeds. IEEE Access 2023, 11, 89331–89348. [CrossRef]
- Sable, A.; Singh, P.; Kaur, A.; Driss, M.; Boulila, W. Quantifying Soybean Defects: A Computational Approach to Seed Classification Using Deep Learning Techniques. Agronomy 2024, 14, 1098. [CrossRef]
- Zhao, G.; Quan, L.; Li, H.; Feng, H.; Li, S.; Zhang, S.; Liu, R. Real-Time Recognition System of Soybean Seed Full-Surface Defects Based on Deep Learning. Computers and Electronics in Agriculture 2021, 187, 106230. [CrossRef]
- CHEN Siyu; ZHU Hongyuan; YU Tian; WANG Zhenxu; QIAO Rui; LIU Chunshan Research on Identifying Abnormal Soybean Grains Based on Opt-MobileNetV3. Transactions of the Chinese Society for Agricultural Machinery 2023, 54, 359–365, doi:910.6041/j.issn.1000-1298.2023.S2.042.(in Chinese with English abstract).
- Mehta, S.; Rastegari, M. MobileViT: Light-Weight, General-Purpose, and Mobile-Friendly Vision Transformer 2022.
- Jiang, P.; Xu, Y.; Wang, C.; Zhang, W.; Lu, N. CSMViT: A Lightweight Transformer and CNN Fusion Network for Lymph Node Pathological Images Diagnosis. IEEE Access 2024, 12, 155365–155378. [CrossRef]
- Zhang, M.; Lin, Z.; Tang, S.; Lin, C.; Zhang, L.; Dong, W.; Zhong, N. Dual-Attention-Enhanced MobileViT Network: A Lightweight Model for Rice Disease Identification in Field-Captured Images. Agriculture 2025, 15, 571. [CrossRef]
- Wang, Y.; Zhang, W.; Chen, D.; Zhang, G.; Gong, T.; Liang, Z.; Yin, A.; Zhang, Y.; Ding, W. Defects Detection in Metallic Additive Manufactured Structures Utilizing Multi-Modal Laser Ultrasonic Imaging Integrated with an Improved MobileViT Network. Optics & Laser Technology 2025, 187, 112802. [CrossRef]
- Rublee, E.; Rabaud, V.; Konolige, K.; Bradski, G. ORB: An Efficient Alternative to SIFT or SURF. In Proceedings of the 2011 International Conference on Computer Vision; 2011; pp. 2564–2571.
- Ke, G.; Meng, Q.; Finley, T.; Wang, T.; Chen, W.; Ma, W.; Ye, Q.; Liu, T.-Y. LightGBM: A Highly Efficient Gradient Boosting Decision Tree.
- Liu, X.; Sui, Q.; Chen, Z. Real Time Weed Identification with Enhanced Mobilevit Model for Mobile Devices. Sci Rep 2025, 15, 27323. [CrossRef]
- Jin, K.; Zhang, J.; Liu, N.; Li, M.; Ma, Z.; Wang, Z.; Zhang, J.; Yin, F. Improved MobileVit Deep Learning Algorithm Based on Thermal Images to Identify the Water State in Cotton. Agricultural Water Management 2025, 310, 109365. [CrossRef]
- Chollet, F. Xception: Deep Learning with Depthwise Separable Convolutions 2017.
- Feng, Y.; Liu, C.; Han, J.; Lu, Q.; Xing, X. Identification of Wheat Seedling Varieties Based on MssiapNet. Front. Plant Sci. 2024, 14, 1335194. [CrossRef]
- Dubey, S.R.; Singh, S.K.; Chaudhuri, B.B. Activation Functions in Deep Learning: A Comprehensive Survey and Benchmark 2022.
- Woo, S.; Park, J.; Lee, J.-Y.; Kweon, I.S. CBAM: Convolutional Block Attention Module 2018.
- Ma, B.; Hua, Z.; Wen, Y.; Deng, H.; Zhao, Y.; Pu, L.; Song, H. Using an Improved Lightweight YOLOv8 Model for Real-Time Detection of Multi-Stage Apple Fruit in Complex Orchard Environments. Artificial Intelligence in Agriculture 2024, 11, 70–82. [CrossRef]
- Mu, J.; Sun, L.; Ma, B.; Liu, R.; Liu, S.; Hu, X.; Zhang, H.; Wang, J. TFEMRNet: A Two-Stage Multi-Feature Fusion Model for Efficient Small Pest Detection on Edge Platforms. AgriEngineering 2024, 6, 4688–4703. [CrossRef]

















| Test Environment | Attributes |
|---|---|
| Operating System | Windows10 |
| Graphics card | RTX3090 |
| Processor | Intel-i9-12900k |
| Programming languages | Python3.8.19 |
| Deep learning frameworks | Pytorch |
| CUDA | 11.2 |
| CUDNN | 8.1.1 |
| category | Precision/% | Recall/% | F1-score/% |
|---|---|---|---|
| Broken grains | 95.69 | 98.23 | 96.94 |
| Immature grains | 100.00 | 100.00 | 100.00 |
| Intact grains | 99.18 | 100.00 | 99.59 |
| Skin-damaged grains | 99.08 | 94.74 | 96.86 |
| Spotted grains | 98.04 | 99.01 | 98.52 |
| Average | 98.40 | 98.40 | 98.38 |
| Embedding Method | Accuracy/% | Precision/% | Recall/% | F1-score/% |
|---|---|---|---|---|
| None | 95.53 | 95.52 | 95.57 | 95.50 |
| Pre-expansion embedding | 97.13 | 97.07 | 97.14 | 97.08 |
| Post-expansion embedding | 98.03 | 97.99 | 98.03 | 98.00 |
| Dual embedding | 97.49 | 97.43 | 97.50 | 97.45 |
| Method | Accuracy/% | Precision/% | Recall/% | F1-score/% |
|---|---|---|---|---|
| None | 95.53 | 95.52 | 95.57 | 95.50 |
| SE | 97.13 | 97.10 | 97.18 | 97.10 |
| ECA | 97.49 | 97.45 | 97.53 | 97.47 |
| SimAM | 97.67 | 97.63 | 97.69 | 97.65 |
| CBAM | 98.03 | 97.99 | 98.03 | 98.00 |
| Model | Factors | Accuracy /% |
F1-score /% |
Model Size/M |
||||
|---|---|---|---|---|---|---|---|---|
| DSC | THD | DCR | CBAM | Mish | ||||
| MobileViT | × | × | × | × | × | 95.53 | 95.50 | 3.77 |
| √ | × | × | × | × | 96.78 | 96.76 | 2.82 | |
| √ | √ | × | × | × | 96.42 | 96.39 | 1.77 | |
| √ | × | √ | × | × | 96.60 | 96.42 | 2.93 | |
| √ | √ | √ | × | × | 97.13 | 97.08 | 1.86 | |
| √ | √ | √ | √ | × | 98.03 | 98.03 | 2.08 | |
| √ | √ | × | √ | × | 97.50 | 97.48 | 1.99 | |
| √ | √ | √ | √ | √ | 98.39 | 98.38 | 2.09 | |
| Model | Accuracy/% | Precision/% | Recall/% | F1-score/% | Model size/M | Inference time/ms |
|---|---|---|---|---|---|---|
| Vgg16 | 95.35 | 95.36 | 95.39 | 95.32 | 528.80 | 12.36 |
| ConvNeXt | 98.57 | 98.59 | 98.57 | 98.56 | 106.20 | 5.27 |
| ResNet50 | 98.03 | 98.01 | 98.04 | 97.91 | 96.58 | 6.53 |
| DenseNet121 | 97.14 | 97.08 | 97.17 | 97.10 | 31.02 | 7.19 |
| EfficientNetB0 | 96.42 | 96.39 | 96.45 | 96.40 | 18.46 | 3.28 |
| MoblieNetV2 | 97.32 | 97.26 | 97.35 | 97.28 | 12.60 | 2.47 |
| RegNetX-200MF | 96.06 | 96.03 | 96.10 | 96.03 | 10.41 | 1.81 |
| MoblieNetV3 | 95.17 | 95.20 | 95.21 | 95.15 | 8.51 | 1.95 |
| ShuffleNetV2 | 95.71 | 96.69 | 95.73 | 95.66 | 5.35 | 1.76 |
| MobileViT-XXS | 95.53 | 95.52 | 95.57 | 95.50 | 3.77 | 2.06 |
| MobileViT-SD | 98.39 | 98.40 | 98.40 | 98.38 | 2.09 | 1.04 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).