Facebook pixel tracking

The Science and Information (SAI) Organization publishes open-access peer-reviewed journals in computer science and artificial intelligence.

Contact Info
Website thesai.org
Follow Us
Contact Info
Follow Us
Research Article | Open Access |

YOLOv8s-Swin: Enhanced Tomato Ripeness Detection for Smart Agriculture

Author 1: Jalal Uddin Md Akbar Author 2: Syafiq Fauzi Kamarulzaman
International Journal of Advanced Computer Science and Applications (IJACSA) · Vol. 16, No. 8 · Published 2025

DOI: 10.14569/IJACSA.2025.0160897

Abstract

Accurate object detection and classification are paramount in precision agriculture for assessing ripeness stages and optimizing yield, particularly for high-value crops like toma-toes. Traditional manual inspection methods are laborious, time-consuming, and error-prone. Furthermore, existing deep learning models often struggle with real-world agricultural challenges such as varying lighting, occlusions from foliage or other fruits, and dense clustering of small objects. To address these limitations and enhance tomato production efficiency and quality in diverse agricultural conditions, this study introduces YOLOv8s-Swin, an advanced object detection model. YOLOv8s-Swin integrates the powerful YOLOv8s architecture with a Swin Transformer module (C3STR) to capture global and local contextual information, crucial for robust small object detection. It also incorporates Focus, Depthwise Convolution (DWconv), Spatial Pyramid Pooling with Contextual Spatial Pyramid Convolution (SPPCSPC), and C2 modules for preserving fine details, reducing computational overhead, enhancing multi-scale feature fusion, and improving high-level semantic feature extraction, respectively. The Wise Intersection over Union (WIoU) loss function is adopted to enhance localization and address convergence issues. Evaluated on a comprehensive tomato image dataset, YOLOv8s-Swin demonstrated superior performance with a mean Average Precision (mAP@0.5) of 88.3%, precision of 84.4%, recall of 79.9%, and an F1-Score of 0.821. This significantly surpasses the base YOLOv8s (84.7%mAP@0.5, 0.795 F1-Score) and other models like Faster R-CNN, SSD, YOLOv4, YOLOv5s, and YOLOv7, all under identical conditions. Maintaining a competitive inference speed of 166.67 FPS, YOLOv8s-Swin offers a robust and efficient solution for AI-driven crop management and sustainable food production.

Keywords

How to Cite this Article

Akbar, J. U. M., & Kamarulzaman, S. F. (2025). YOLOv8s-Swin: Enhanced Tomato Ripeness Detection for Smart Agriculture. International Journal of Advanced Computer Science and Applications, 16(8). https://doi.org/10.14569/IJACSA.2025.0160897

Akbar, Jalal Uddin Md, and Syafiq Fauzi Kamarulzaman. "YOLOv8s-Swin: Enhanced Tomato Ripeness Detection for Smart Agriculture." International Journal of Advanced Computer Science and Applications, vol. 16, no. 8, 2025, https://doi.org/10.14569/IJACSA.2025.0160897.

@article{Akbar2025,
  title     = {YOLOv8s-Swin: Enhanced Tomato Ripeness Detection for Smart Agriculture},
  journal   = {International Journal of Advanced Computer Science and Applications},
  volume    = {16},
  number    = {8},
  year      = {2025},
  publisher = {The Science and Information Organization},
  author    = {Jalal Uddin Md Akbar and Syafiq Fauzi Kamarulzaman},
  doi       = {10.14569/IJACSA.2025.0160897},
  url       = {https://doi.org/10.14569/IJACSA.2025.0160897}
}

Open Access — licensed under a Creative Commons Attribution 4.0 International License. Unrestricted use, distribution, and reproduction in any medium, even commercially, as long as the original work is properly cited.

Call for Papers - Important Dates

Volume 17 No. 11, November 2026
Paper Submission Due October 25, 2026
Review Notification November 15, 2026
Publication Date November 30, 2026