OMB-YOLO-tiny: A Lightweight Detection Model for Damaged Pleurotus ostreatus Based on Enhanced YOLOv8n
Abstract
1. Introduction
- Addressing the critical gap in damage recognition for edible fungi: we established OMB-YOLO—a Pleurotus ostreatus damage detection model derived from YOLOv8n—using a self-collected and self-built dataset. Through pruning methods, the refined OMB-YOLO-tiny version achieved nearly 50% parameter reduction while retaining detection accuracy. This approach addresses two critical limitations—model lightweighting and intelligent damage recognition—thereby advancing smart agriculture technologies within the edible fungi sector.
- Within the feature extraction network, this study replaces the original backbone with GhostHGNetv2, achieving significant reductions in model parameters and computational demands while maintaining high detection accuracy. GhostHGNetv2 is a lightweight and efficient convolutional neural network architecture that employs HGStem (High-Resolution Group Stem) in its first layer to enhance fine-grained feature capture capabilities while preserving computational efficiency. The implementation of HGStem establishes a robust foundation for subsequent feature extraction and processing. Long-range attention mechanisms are incorporated to enhance model performance, particularly optimizing lightweight operations. Furthermore, the integration of Squeeze-Excitation Blocks elevates feature representation capabilities, ultimately boosting overall model efficacy [14].
- The feature fusion network employs SlimNeck, a lightweight neck design paradigm. First, GSConv—a lightweight convolution method—replaces Standard Convolution (SC), reducing computational costs to approximately 60–70% of SC’s while maintaining equivalent learning capacity. Building upon GSConv, we introduce GSbottleneck and develop the VoV-GSCSP module (Cross-Stage Partial Network with GSConv). The VoV-GSCSP module reduces computational and architectural complexity while preserving sufficient accuracy, achieving optimal accuracy–complexity trade-offs. To enhance small-target detection precision for damaged Pleurotus ostreatus, we integrate the Attention-based Scale Fusion (ASF) mechanism into SlimNeck [15]. ASF leverages the Scale Sequence Feature Fusion (SSFF) module to strengthen multi-scale feature extraction capabilities, and utilizes the Triple Feature Encoder (TPE) to fuse multi-scale feature maps for enriched detail representation. Additionally, the Channel and Position Attention Mechanism (CPAM) is incorporated to focus on channel-wise and spatial information for small targets—particularly damaged areas, thereby boosting small-target detection performance in Pleurotus ostreatus damage assessment [16].
- To achieve further model lightweighting, this study employs the DepGraph universal structured pruning methodology. This approach guarantees synchronous pruning across heterogeneous layers while ensuring all parameters in pruned groups remain functionally insignificant, thereby preventing significant post-pruning performance degradation. Comparative analysis demonstrates DepGraph’s superior adaptation for lightweighting Pleurotus ostreatus damage detection models over alternative pruning techniques [17].
2. Materials and Methods
2.1. Data Acquisition
2.2. Data Preprocessing
2.3. Base Model Selection and Improvement Methodology
2.3.1. YOLOv8 and OMB-YOLO
2.3.2. Enhancement of Feature Extraction Network
2.3.3. Attentional Scale Sequence Fusion (ASF)
2.3.4. SlimNeck Lightweight Neck Network
2.3.5. DepGraph Model Pruning Methodology
- (1)
- Inter-layer dependency: A dependency is consistently induced for connected layers .
- (2)
- Intra-layer dependency: If and share the same pruning scheme, denoted sch() = sch(), a dependency exists.
3. Results
3.1. Experimental Environment and Parameters
3.2. Evaluation Metrics
3.3. Pruning Experiments
3.4. Ablation Studies
3.5. Comparative Experiments
3.6. Discussion
4. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Shi, L.; Wei, Z.; You, H.; Wang, J.; Bai, Z.; Yu, H.; Ji, R.; Bi, C. OMC-YOLO: A Lightweight Grading Detection Method for Oyster Mushrooms. Horticulturae 2024, 10, 742. [Google Scholar] [CrossRef]
- You, H.; Li, Z.; Wei, Z.; Zhang, L.; Bi, X.; Bi, C.; Li, X.; Duan, Y. A Blueberry Maturity Detection Method Integrating Attention-Driven Multi-Scale Feature Interaction and Dynamic Upsampling. Horticulturae 2025, 11, 600. [Google Scholar] [CrossRef]
- Zhang, L.; You, H.; Wei, Z.; Li, Z.; Jia, H.; Yu, S.; Zhao, C.; Lv, Y.; Li, D. DGS-YOLOv8: A Method for Ginseng Appearance Quality Detection. Agriculture 2024, 14, 1353. [Google Scholar] [CrossRef]
- Akdoğan, C.; Özer, T.; Oğuz, Y. PP-YOLO: Deep Learning Based Detection Model to Detect Apple and Cherry Trees in Orchard Based on Histogram and Wavelet Preprocessing Techniques. Comput. Electron. Agric. 2025, 232, 110052. [Google Scholar] [CrossRef]
- Ma, Z.; Dong, N.; Gu, J.; Cheng, H.; Meng, Z.; Du, X. STRAW-YOLO: A Detection Method for Strawberry Fruits Targets and Key Points. Comput. Electron. Agric. 2025, 230, 109853. [Google Scholar] [CrossRef]
- Javanmardi, S.; Ashtiani, S.-H.M. AI-Driven Deep Learning Framework for Shelf Life Prediction of Edible Mushrooms. Postharvest Biol. Technol. 2025, 222, 113396. [Google Scholar] [CrossRef]
- Nuankaew, W.S.; Sombutthai, P.; Monkhuan, W.; Sararat, T.; Nuankaew, P. Harnessing AI for Agriculture: Oyster Mushroom Disease Detection with IoT and Web Application on Growing Bags Using Deep Learning. In Proceedings of the 2025 Joint International Conference on Digital Arts, Media and Technology with ECTI Northern Section Conference on Electrical, Electronics, Computer and Telecommunications Engineering (ECTI DAMT & NCON), Nan, Thailand, 29 January–1 February 2025; pp. 606–611. [Google Scholar]
- Zahan, N.; Hasan, M.Z.; Malek, M.A.; Reya, S.S. A Deep Learning-Based Approach for Edible, Inedible and Poisonous Mushroom Classification. In Proceedings of the 2021 International Conference on Information and Communication Technology for Sustainable Development (ICICT4SD), Dhaka, Bangladesh, 27–28 February 2021; pp. 440–444. [Google Scholar]
- Subramani, S.; Imran, A.F.; Abhishek, T.T.M.; Yaswanth, J. Deep Learning Based Detection of Toxic Mushrooms in Karnataka. Procedia Comput. Sci. 2024, 235, 91–101. [Google Scholar] [CrossRef]
- Wang, Y.; Yang, L.; Chen, H.; Hussain, A.; Ma, C.; Al-gabri, M. Mushroom-YOLO: A Deep Learning Algorithm for Mushroom Growth Recognition Based on Improved YOLOv5 in Agriculture 4.0. In Proceedings of the 2022 IEEE 20th International Conference on Industrial Informatics (INDIN), Perth, Australia, 25–28 July 2022; pp. 239–244. [Google Scholar]
- Lu, C.-P.; Liaw, J.-J.; Wu, T.-C.; Hung, T.-F. Development of a Mushroom Growth Measurement System Applying Deep Learning for Image Recognition. Agronomy 2019, 9, 32. [Google Scholar] [CrossRef]
- Cong, P.; Feng, H.; Lv, K.; Zhou, J.; Li, S. MYOLO: A Lightweight Fresh Shiitake Mushroom Detection Model Based on YOLOv3. Agriculture 2023, 13, 392. [Google Scholar] [CrossRef]
- Ma, H.; Ma, H.; Ji, J.; Cui, H. FES-YOLOv5s: A Lightweight Model for Agaricus Bisporus Detection. IEEE Access 2024, 12, 71219–71231. [Google Scholar] [CrossRef]
- Dai, D.; Wu, H.; Wang, Y.; Ji, P. LHSDNet: A Lightweight and High-Accuracy SAR Ship Object Detection Algorithm. Remote Sens. 2024, 16, 4527. [Google Scholar] [CrossRef]
- Cao, L.; Wang, Q.; Luo, Y.; Hou, Y.; Cao, J.; Zheng, W. YOLO-TSL: A Lightweight Target Detection Algorithm for UAV Infrared Images Based on Triplet Attention and Slim-Neck. Infrared Phys. Technol. 2024, 141, 105487. [Google Scholar] [CrossRef]
- Kang, M.; Ting, C.-M.; Ting, F.F.; Phan, R.C.-W. ASF-YOLO: A Novel YOLO Model with Attentional Scale Sequence Fusion for Cell Instance Segmentation. Image Vis. Comput. 2024, 147, 105057. [Google Scholar] [CrossRef]
- Fang, G.; Ma, X.; Song, M.; Mi, M.B.; Wang, X. DepGraph: Towards Any Structural Pruning. Available online: https://arxiv.org/abs/2301.12900v2 (accessed on 4 March 2025).
- Matarneh, S.; Elghaish, F.; Al-Ghraibah, A.; Abdellatef, E.; Edwards, D.J. An Automatic Image Processing Based on Hough Transform Algorithm for Pavement Crack Detection and Classification. Smart Sustain. Built Environ. 2023, 14, 1–22. [Google Scholar] [CrossRef]
- Hussain, M. YOLO-v1 to YOLO-v8, the Rise of YOLO and Its Complementary Nature toward Digital Manufacturing and Industrial Defect Detection. Machines 2023, 11, 677. [Google Scholar] [CrossRef]
- Sohan, M.; Sai Ram, T.; Rami Reddy, C.V. A Review on YOLOv8 and Its Advancements. In Data Intelligence and Cognitive Informatics; Jacob, I.J., Piramuthu, S., Falkowski-Gilski, P., Eds.; Springer Nature: Singapore, 2024; pp. 529–545. [Google Scholar]
- Wu, T.; Dong, Y. YOLO-SE: Improved YOLOv8 for Remote Sensing Object Detection and Recognition. Appl. Sci. 2023, 13, 12977. [Google Scholar] [CrossRef]
- Dong, P.; Wang, D.; Wang, Y.; Zong, G. Surface Defect Detection of Cigarette Packs Based on Improved YOLOv8. In Proceedings of the 2024 9th International Conference on Intelligent Computing and Signal Processing (ICSP), Xi’an, China, 19–21 April 2024; pp. 1745–1749. [Google Scholar]
- Yue, M.; Zhang, L.; Huang, J.; Zhang, H. Lightweight and Efficient Tiny-Object Detection Based on Improved YOLOv8n for UAV Aerial Images. Drones 2024, 8, 276. [Google Scholar] [CrossRef]
- Cao, J.; Bao, W.; Shang, H.; Yuan, M.; Cheng, Q. GCL-YOLO: A GhostConv-Based Lightweight YOLO Network for UAV Small Object Detection. Remote Sens. 2023, 15, 4932. [Google Scholar] [CrossRef]
- Zhang, T.; Xu, W.; Luo, B.; Wang, G. Depth-Wise Convolutions in Vision Transformers for Efficient Training on Small Datasets. Neurocomputing 2025, 617, 128998. [Google Scholar] [CrossRef]
- Wang, S.; Jiang, H.; Li, Z.; Yang, J.; Ma, X.; Chen, J.; Tang, X. PHSI-RTDETR: A Lightweight Infrared Small Target Detection Algorithm Based on UAV Aerial Photography. Drones 2024, 8, 240. [Google Scholar] [CrossRef]
- Wang, W.; Wang, C.; Lei, S.; Xie, M.; Gui, B.; Dong, F. An Improved Object Detection Algorithm for UAV Images Based on Orthogonal Channel Attention Mechanism and Triple Feature Encoder. IET Image Process. 2025, 19, e70061. [Google Scholar] [CrossRef]
- Duan, Y.; Qu, J.; Zhang, L.; Qu, X.; Yang, D. LGRF-Net: A Novel Hybrid Attention Network for Lightweight Global Road Feature Extraction. IEEE Trans. Geosci. Remote Sens. 2024, 62, 1–15. [Google Scholar] [CrossRef]
- Li, H.; Li, J.; Wei, H.; Liu, Z.; Zhan, Z.; Ren, Q. Slim-Neck by GSConv: A Lightweight-Design for Real-Time Detector Architectures. J. Real-Time Image Process. 2024, 21, 62. [Google Scholar] [CrossRef]
- Chen, K.; Du, B.; Wang, Y.; Wang, G.; He, J. The Real-Time Detection Method for Coal Gangue Based on YOLOv8s-GSC. J. Real-Time Image Process. 2024, 21, 37. [Google Scholar] [CrossRef]
- Sanchez, S.A.; Romero, H.J.; Morales, A.D. A Review: Comparison of Performance Metrics of Pretrained Models for Object Detection Using the TensorFlow Framework. IOP Conf. Ser. Mater. Sci. Eng. 2020, 844, 012024. [Google Scholar] [CrossRef]
Damage Category | Cap Tear | Cap Missing | Cap Broken | Pleat Broken | Total |
---|---|---|---|---|---|
Specimen Count | 262 | 221 | 245 | 176 | 904 |
Type | mAP@0.5 | mAP@0.5:0.95 | Params | FPS |
---|---|---|---|---|
lamp | 89.25 | 67.11 | 1.74 | 87.3 |
random | 90.11 | 67.38 | 1.84 | 89.1 |
L1 | 90.03 | 67.92 | 1.73 | 90.3 |
group_hessian | 89.75 | 68.35 | 1.77 | 89.7 |
group_taylor | 90.08 | 68.20 | 1.82 | 90.8 |
DepGraph | 90.14 | 68.71 | 1.72 | 93.1 |
GhostHGNetv2 | SlimNeck | ASF | mAP@0.5 | mAP@0.5:0.95 | Params | GFLOPs | FPS |
---|---|---|---|---|---|---|---|
× | × | × | 87.64 | 64.97 | 3.01 | 8.1 | 91.3 |
√ | × | × | 88.77 | 63.43 | 2.31 | 6.8 | 95.7 |
× | √ | × | 88.26 | 62.48 | 2.80 | 7.3 | 94.1 |
× | × | √ | 88.98 | 65.05 | 3.04 | 8.5 | 93.5 |
√ | √ | × | 88.17 | 63.63 | 2.09 | 6.0 | 91.9 |
√ | × | √ | 89.73 | 65.82 | 2.37 | 7.5 | 96.8 |
× | √ | √ | 89.54 | 66.50 | 2.93 | 8.2 | 92.6 |
√ | √ | √ | 90.11 | 66.47 | 2.24 | 6.9 | 91.2 |
Model | mAP@0.5 | mAP@50:95 | Params | GFLOPs | FPS |
---|---|---|---|---|---|
Faster RCNN | 37.82 | 16.57 | 28.48 | 941.17 | 99.3 |
YOLOv3tiny | 66.52 | 41.61 | 11.57 | 18.9 | 79.2 |
YOLOv5s | 86.57 | 61.24 | 7.02 | 14.4 | 86.2 |
YOLOv6s | 78.21 | 54.73 | 17.19 | 44.12 | 66.3 |
YOLOv7tiny | 73.12 | 55.72 | 5.74 | 13.1 | 71.1 |
YOLOv10 | 87.33 | 62.31 | 2.57 | 8.2 | 104.2 |
YOLO11n | 84.90 | 59.40 | 2.59 | 6.3 | 83.1 |
OMB-YOLO | 90.11 | 66.47 | 2.24 | 6.9 | 91.2 |
OMB-YOLO-tiny | 90.14 | 68.71 | 1.72 | 5.6 | 93.1 |
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 (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Shi, L.; Bai, Z.; Yin, X.; Wei, Z.; You, H.; Liu, S.; Wang, F.; Qi, X.; Yu, H.; Bi, C.; et al. OMB-YOLO-tiny: A Lightweight Detection Model for Damaged Pleurotus ostreatus Based on Enhanced YOLOv8n. Horticulturae 2025, 11, 744. https://doi.org/10.3390/horticulturae11070744
Shi L, Bai Z, Yin X, Wei Z, You H, Liu S, Wang F, Qi X, Yu H, Bi C, et al. OMB-YOLO-tiny: A Lightweight Detection Model for Damaged Pleurotus ostreatus Based on Enhanced YOLOv8n. Horticulturae. 2025; 11(7):744. https://doi.org/10.3390/horticulturae11070744
Chicago/Turabian StyleShi, Lei, Zhuo Bai, Xiangmeng Yin, Zhanchen Wei, Haohai You, Shilin Liu, Fude Wang, Xuexi Qi, Helong Yu, Chunguang Bi, and et al. 2025. "OMB-YOLO-tiny: A Lightweight Detection Model for Damaged Pleurotus ostreatus Based on Enhanced YOLOv8n" Horticulturae 11, no. 7: 744. https://doi.org/10.3390/horticulturae11070744
APA StyleShi, L., Bai, Z., Yin, X., Wei, Z., You, H., Liu, S., Wang, F., Qi, X., Yu, H., Bi, C., & Ji, R. (2025). OMB-YOLO-tiny: A Lightweight Detection Model for Damaged Pleurotus ostreatus Based on Enhanced YOLOv8n. Horticulturae, 11(7), 744. https://doi.org/10.3390/horticulturae11070744