OW-YOLO: An Improved YOLOv8s Lightweight Detection Method for Obstructed Walnuts

Walnut detection in mountainous and hilly regions often faces significant challenges due to obstructions, which adversely affect model performance. To address this issue, we collected a dataset comprising 2379 walnut images from these regions, with detailed annotations for both obstructed and non-ob...

Full description

Saved in:
Bibliographic Details
Main Authors: Haoyu Wang, Lijun Yun, Chenggui Yang, Mingjie Wu, Yansong Wang, Zaiqing Chen
Format: Article
Language:English
Published: MDPI AG 2025-01-01
Series:Agriculture
Subjects:
Online Access:https://www.mdpi.com/2077-0472/15/2/159
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1832589505248362496
author Haoyu Wang
Lijun Yun
Chenggui Yang
Mingjie Wu
Yansong Wang
Zaiqing Chen
author_facet Haoyu Wang
Lijun Yun
Chenggui Yang
Mingjie Wu
Yansong Wang
Zaiqing Chen
author_sort Haoyu Wang
collection DOAJ
description Walnut detection in mountainous and hilly regions often faces significant challenges due to obstructions, which adversely affect model performance. To address this issue, we collected a dataset comprising 2379 walnut images from these regions, with detailed annotations for both obstructed and non-obstructed walnuts. Based on this dataset, we propose OW-YOLO, a lightweight object detection model specifically designed for detecting small, obstructed walnuts. The model’s backbone was restructured with the integration of the DWR-DRB (Dilated Weighted Residual-Dilated Residual Block) module. To enhance efficiency and multi-scale feature fusion, we incorporated the HSFPN (High-Level Screening Feature Pyramid Network) and redesigned the detection head by replacing the original head with the more efficient LADH detection head while removing the head processing 32 × 32 feature maps. These improvements effectively reduced model complexity and significantly enhanced detection accuracy for obstructed walnuts. Experiments were conducted using the PyTorch framework on an NVIDIA GeForce RTX 4060 Ti GPU. The results demonstrate that OW-YOLO outperforms other models, achieving an mAP@0.5 (mean average precision) of 83.6%, mAP@[0.5:0.95] of 53.7%, and an F1 score of 77.9%. Additionally, the model’s parameter count decreased by 49.2%, weight file size was reduced by 48.1%, and computational load dropped by 37.3%, effectively mitigating the impact of obstruction on detection accuracy. These findings provide robust support for the future development of walnut agriculture and lay a solid foundation for the broader adoption of intelligent agriculture.
format Article
id doaj-art-d77ab9a1eae94ed3b37bcf435ccf0284
institution Kabale University
issn 2077-0472
language English
publishDate 2025-01-01
publisher MDPI AG
record_format Article
series Agriculture
spelling doaj-art-d77ab9a1eae94ed3b37bcf435ccf02842025-01-24T13:15:56ZengMDPI AGAgriculture2077-04722025-01-0115215910.3390/agriculture15020159OW-YOLO: An Improved YOLOv8s Lightweight Detection Method for Obstructed WalnutsHaoyu Wang0Lijun Yun1Chenggui Yang2Mingjie Wu3Yansong Wang4Zaiqing Chen5School of Information, Yunnan Normal University, Kunming 650500, ChinaSchool of Information, Yunnan Normal University, Kunming 650500, ChinaSchool of Information, Yunnan Normal University, Kunming 650500, ChinaSchool of Information, Yunnan Normal University, Kunming 650500, ChinaSchool of Information, Yunnan Normal University, Kunming 650500, ChinaSchool of Information, Yunnan Normal University, Kunming 650500, ChinaWalnut detection in mountainous and hilly regions often faces significant challenges due to obstructions, which adversely affect model performance. To address this issue, we collected a dataset comprising 2379 walnut images from these regions, with detailed annotations for both obstructed and non-obstructed walnuts. Based on this dataset, we propose OW-YOLO, a lightweight object detection model specifically designed for detecting small, obstructed walnuts. The model’s backbone was restructured with the integration of the DWR-DRB (Dilated Weighted Residual-Dilated Residual Block) module. To enhance efficiency and multi-scale feature fusion, we incorporated the HSFPN (High-Level Screening Feature Pyramid Network) and redesigned the detection head by replacing the original head with the more efficient LADH detection head while removing the head processing 32 × 32 feature maps. These improvements effectively reduced model complexity and significantly enhanced detection accuracy for obstructed walnuts. Experiments were conducted using the PyTorch framework on an NVIDIA GeForce RTX 4060 Ti GPU. The results demonstrate that OW-YOLO outperforms other models, achieving an mAP@0.5 (mean average precision) of 83.6%, mAP@[0.5:0.95] of 53.7%, and an F1 score of 77.9%. Additionally, the model’s parameter count decreased by 49.2%, weight file size was reduced by 48.1%, and computational load dropped by 37.3%, effectively mitigating the impact of obstruction on detection accuracy. These findings provide robust support for the future development of walnut agriculture and lay a solid foundation for the broader adoption of intelligent agriculture.https://www.mdpi.com/2077-0472/15/2/159walnutobject detectionobstruct problemlightweight model
spellingShingle Haoyu Wang
Lijun Yun
Chenggui Yang
Mingjie Wu
Yansong Wang
Zaiqing Chen
OW-YOLO: An Improved YOLOv8s Lightweight Detection Method for Obstructed Walnuts
Agriculture
walnut
object detection
obstruct problem
lightweight model
title OW-YOLO: An Improved YOLOv8s Lightweight Detection Method for Obstructed Walnuts
title_full OW-YOLO: An Improved YOLOv8s Lightweight Detection Method for Obstructed Walnuts
title_fullStr OW-YOLO: An Improved YOLOv8s Lightweight Detection Method for Obstructed Walnuts
title_full_unstemmed OW-YOLO: An Improved YOLOv8s Lightweight Detection Method for Obstructed Walnuts
title_short OW-YOLO: An Improved YOLOv8s Lightweight Detection Method for Obstructed Walnuts
title_sort ow yolo an improved yolov8s lightweight detection method for obstructed walnuts
topic walnut
object detection
obstruct problem
lightweight model
url https://www.mdpi.com/2077-0472/15/2/159
work_keys_str_mv AT haoyuwang owyoloanimprovedyolov8slightweightdetectionmethodforobstructedwalnuts
AT lijunyun owyoloanimprovedyolov8slightweightdetectionmethodforobstructedwalnuts
AT chengguiyang owyoloanimprovedyolov8slightweightdetectionmethodforobstructedwalnuts
AT mingjiewu owyoloanimprovedyolov8slightweightdetectionmethodforobstructedwalnuts
AT yansongwang owyoloanimprovedyolov8slightweightdetectionmethodforobstructedwalnuts
AT zaiqingchen owyoloanimprovedyolov8slightweightdetectionmethodforobstructedwalnuts