Real-time FFB ripeness detection using IoT-enabled YOLOv8n on Raspberry Pi 4 edge devices for precision agriculture
Abstract
This paper presents the development of an edge device for cost-effective implementation in agricultural environments. Experimental evaluations demonstrate accuracy and real-time performance, showcasing its potential for adoption in the industry. The proposed system provides a reliable tool for timely and accurate monitoring of fresh fruit bunch (FFB) ripeness, facilitating optimized crop management practices. The system employs the YOLOv8n model, renowned for its efficiency in real-time object detection tasks, and is adapted to run on the resource-constrained Raspberry Pi 4. To ensure seamless operation on edge devices, model optimization techniques such as quantization and hardware acceleration are implemented, enabling rapid decision-making based on live data feeds. A dataset comprising 4,194 annotated FFB images was utilized, with a [3,681:348:165] training-validation-test split. Performance evaluation demonstrated an average precision of 0.898 and a mean average precision (mAP) of 0.952. The system potentially enhances yield quality and sustainability while supporting data-driven decision-making in precision agriculture.
Keywords
Full Text:
PDFReferences
M. Nahiduzzaman et al., “Deep learning-based real-time detection and classification of tomato ripeness stages using YOLOv8 on raspberry Pi,” Eng. Res. Express, vol. 7, no. 1, p. 015219, Mar. 2025.
N. Mishra and S. Pandya, "Internet of Things applications, security challenges, attacks, intrusion detection, and future visions: A systematic review," IEEE Access, vol. 9, pp. 59353-59377, 2021.
T. Raj, F. H. Hashim, A. B. Huddin, A. Hussain, M. F. Ibrahim, and P. M. Abdul, “Classification of oil palm fresh fruit maturity based on carotene content from Raman spectra,” Sci. Rep., vol. 11, 2021.
M. Farhan, M. N. Akhtar, and E. A. Bakar, “Efficient real-time palm oil tree detection and counting using YOLOv8 deployed on edge devices,” J. Umm Al-Qura Univ. Eng. Archit., vol. 16, no. 4, pp. 1293–1308, Dec. 2025.
X. Shi, Y. Tao, and S.-C. Lin, “Deep neural network-based prediction of B-cell epitopes for SARS-CoV and SARS-CoV-2: Enhancing Vaccine Design through Machine Learning,” in 2024 4th International Signal Processing, Communications and Engineering Management Conference (ISPCEM), IEEE, Nov. 2024, pp. 259–263.
B. Xiao, M. H. Nguyen, and W. Q. Yan, “Apple ripeness identification using deep learning,” Geom. Vis., vol. 1386, pp. 53–67, 2021.
N. O. M. Salim and A. K. Mohammed, “Comparative analysis of classical machine learning and deep learning methods for fruit image recognition and classification,” Trait. du Signal, vol. 41, no. 3, pp. 1331–1343, Jun. 2024.
H. Herman, T. W. Cenggoro, A. Susanto, and B. Pardamean, “Deep learning for oil palm fruit ripeness classification with DenseNet,” in Proc. 2021 Int. Conf. Inf. Manag. Technol. (ICIMTech), vol. 1, pp. 116–119, 2021.
W. Cho, S. K. Kim, M. H. Na, and I. S. Na, “Fruit ripeness prediction based on DNN feature induction from sparse dataset,” CMC-Comput. Mater. Continua, vol. 69, pp. 4003–4024, 2021.
S. Ashari, G. J. Yanris, and I. Purnama, “Oil palm fruit ripeness detection using deep learning,” Sinkron, vol. 7, no. 2, pp. 649–656, May 2022.
Y. A. A. Soetrisno, E. Handoyo, Sumardi, and E. W. Sinuraya, “Oil palm level of ripeness classification using EfficientDet-Lite CNN architecture,” J. Oil Palm Res., vol. 36, no. 4, pp. 618–629, 2024.
J. Y. Goh, Y. Md Yunos, and M. S. Mohamed Ali, “Fresh fruit bunch ripeness classification methods: A review,” Food Bioprocess Technol., vol. 18, no. 1, pp. 183–206, Jan. 2025.
N. Khamis, H. Selamat, S. A. Ghazalli, N. I. M. Saleh, and N. Yusoff, “Comparison of palm oil fresh fruit bunches (FFB) ripeness classification technique using deep learning method,” in Proc. 2022 13th Asian Control Conf. (ASCC), pp. 64–68, 2022.
I. Bonet, M. Gongora, F. Acevedo, and I. Ochoa, “Deep learning model to predict the ripeness of oil palm fruit,” in Proceedings of the 16th International Conference on Agents and Artificial Intelligence, SCITEPRESS - Science and Technology Publications, 2024, pp. 1068–1075.
J. W. Lai, H. R. Ramli, L. I. Ismail, and W. Z. W. Hasan, “Real-time detection of ripe oil palm fresh fruit bunch based on YOLOv4,” IEEE Access, vol. 10, pp. 95763–95770, 2022.
A. Vijayakumar and S. Vairavasundaram, “YOLO-based object detection models: A review and its applications,” Multimed. Tools Appl., vol. 83, no. 35, pp. 83535–83574, Mar. 2024.
M. Hussain, “YOLO-v1 to YOLO-v8, the rise of YOLO and its complementary nature toward digital manufacturing and industrial defect detection,” Machines, vol. 11, no. 7, 2023.
J. R. Terven, D. M. C. Esparza, and J. A. Romero-González, “A comprehensive review of YOLO architectures in computer vision: From YOLOv1 to YOLOv8 and YOLO-NAS,” Mach. Learn. Knowl. Extr., vol. 5, pp. 1680–1716, 2023.
M. Hussain, “YOLOv1 to v8: Unveiling each variant – a comprehensive review of YOLO,” IEEE Access, vol. 12, pp. 42816–42833, 2024.
C. Wang and G. Liang, “Overview of research on object detection based on YOLO,” in Proceedings of the 4th International Conference on Artificial Intelligence and Computer Engineering, New York, NY, USA: ACM, Nov. 2023, pp. 257–265.
T. S. Gunawan, M. Kartiwi, H. Mansor, and N. M. Yusoff, “Palm fruit ripeness detection and classification using various YOLOv8 models,” in Proc. 2023 IEEE 9th Int. Conf. Smart Instrum., Meas. Appl. (ICSIMA), Oct. 17–18, 2023.
A. Murthy, Prathwini, and S. Kulkarni, “An exploration of deep learning-based object detection and classification in yakshagana imagery with YOLOv3,” in 2024 5th International Conference on Electronics and Sustainable Communication Systems (ICESC), IEEE, Aug. 2024, pp. 991–997.
A. Septiarini, H. Hamdani, H. R. Hatta, and A. A. Kasim, “Image-based processing for ripeness classification of oil palm fruit,” in 2019 5th International Conference on Science in Information Technology (ICSITech), IEEE, Oct. 2019, pp. 23–26.
F. A. Junior and Suharjito, “Video based oil palm ripeness detection model using deep learning,” Heliyon, vol. 9, no. 1, p. e13036, Jan. 2023.
R. Gholami, H. D. Jahromi and S. Sedaghat, "Design and implementation of a near real-time human detection robot using YOLO framework and IoT technologies," in IEEE Access, vol. 13, pp. 175960-175983, 2025.
A. Ahmed Ali Aboluhom and I. Kandilli, “Face recognition using deep learning on Raspberry Pi,” Comput. J., vol. 67, no. 10, pp. 3020–3030, Oct. 2024.
I. Lazarevich, M. Grimaldi, R. Kumar, S. Mitra, S. Khan, and S. Sah, “YOLOBench: Benchmarking efficient object detectors on embedded systems,” in 2023 IEEE/CVF International Conference on Computer Vision Workshops (ICCVW), IEEE, Oct. 2023, pp. 1161–1170.
D. R. Reddy, C. Chella, K. B. Ravi Teja, H. Rose Baby, and P. Kodali, “Autonomous vehicle based on deep Q-learning and YOLOv3 with data augmentation,” in 2021 International Conf. on Communication, Control and Information Sciences (ICCISc), IEEE, Jun. 2021, pp. 1–7.
T. Kumar, R. Brennan, A. Mileo, and M. Bendechache, “Image data augmentation approaches: A comprehensive survey and future directions,” IEEE Access, vol. 12, pp. 187536–187571, 2024.
K. Maharana, S. Mondal, and B. Nemade, “A review: Data pre-processing and data augmentation techniques,” Glob. Transitions Proc., vol. 3, no. 1, pp. 91–99, Jun. 2022.
D. Ocharo, H. C. Nganga, and S. Kiambi, “Automatic PPE monitoring system for construction workers using YOLO algorithm based on deep reinforcement learning,” Int. J. Comput. Appl., vol. 186, no. 48, pp. 10–15, 2024.
M. H. P. Rosa, P. S. De Jesus, T. G. De Campos, F. C. Amate, and C. E. Dos Santos, “AI-based system for threat detection in academic environments,” Int. J. Commun. Inf. Technol., vol. 5, no. 2, pp. 93–100, 2024.
A. F. Japar, H. R. Ramli, N. M. H. Norsahperi and W. Z. W. Hasan, "Oil palm loose fruit detection using YOLOv4 for an autonomous mobile robot collector," IEEE Access, vol. 12, pp. 138582-138593, 2024.
S. Puttinaovarat, S. Chai-Arayalert, and W. Saetang, “Oil palm bunch ripeness classification and plantation verification platform: leveraging deep learning and geospatial analysis and visualization,” ISPRS Int. J. Geo-Information, vol. 13, no. 5, p. 158, May 2024.
S. J. Purba, W. F. Tandion, and E. Irwansyah, “Comparison of the latest version of deep learning YOLO model in automatically detecting the ripeness level of oil palm fruit in PTPN IV, North Sumatra, Indonesia,” in Proc. Int. Conf. Inf. Technol. Comput. (ICITCOM), Yogyakarta, Indonesia, pp. 295–300, 2024.
Harmiansyah, E. P. Sembiring, E. T. Oviana, and Supriyanto, “Detection of new oil palm fruit bunches based on deep learning,” IOP Conf. Ser. Earth Environ. Sci., vol. 1379, no. 1, p. 012003, Aug. 2024.
N. Mamat, M. F. Othman, R. Abdulghafor, A. A. Alwan, and Y. Gulzar, “Enhancing image annotation technique of fruit classification using a deep learning approach,” Sustainability, vol. 15, no. 2, p. 901, Jan. 2023.
Article Metrics
Metrics powered by PLOS ALM
Refbacks
- There are currently no refbacks.
Copyright (c) 2025 Nurul Hazlina Noordin, Rosdiyana Samad, Abdul Haikal Abdul Malek

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.




