Detection and counting marigold flowers using drone images and YOLOv8 in complex environments

Authors

DOI:

https://doi.org/10.1590/2447-536X.v32.e323014

Keywords:

Artificial intelligence, precision agriculture, small detection, UAV

Abstract

A contagem manual de flores de calêndula (Calendula officinalis L.) é uma tarefa exigente em força de trabalho, podendo comprometer a precisão das estimativas de produtividade e a determinação do momento ideal de colheita, especialmente em áreas de grande escala. Este estudo teve como objetivo avaliar o desempenho de cinco versões do modelo de detecção de objetos YOLOv8 (Nano, Small, Medium, Large e X-Large) para a detecção e contagem de flores de calêndula utilizando imagens RGB de alta resolução adquiridas por veículos aéreos não tripulados (VANTs). O delineamento experimental incluiu a aquisição de imagens com um drone multiespectral, o recorte e a anotação das imagens, e o treinamento dos modelos no Google Colab com o otimizador Adam. Foram analisadas métricas de desempenho como precisão, recall, mAP50, mAP50–95 e perda de classificação, bem como a correlação dos modelos com a contagem manual por meio do coeficiente de Pearson, RMSE, MAE e R². O modelo Large apresentou o melhor desempenho, alcançando mais de 90% de precisão e mAP50, e um R² de 0,895. Embora o modelo X-Large tenha oferecido precisão semelhante, exigiu significativamente mais recursos computacionais. Em contraste, o modelo Small mostrou-se uma alternativa computacionalmente eficiente, com desempenho comparável aos modelos maiores. Os resultados demonstram a viabilidade da integração de imagens obtidas por VANTs e do YOLOv8 para a detecção automatizada e precisa de flores, reduzindo a subjetividade e a demanda de força de trabalho no manejo da floricultura. Essa abordagem mostra potencial para aplicações mais amplas na agricultura de precisão, especialmente em culturas com estruturas florais pequenas e densas.

Downloads

Download data is not yet available.

References

AK, G.; ZENGIN, G.; CEYLAN, R.; MAHOMOODALLY, M.F.; JUGREET, S.; MOLLICA, A.; STEFANUCCI, A. Chemical composition and biological activities of essential oils from Calendula officinalis L. flowers and leaves. Flavour Fragrance Journal, v.36, p.554-563, 2021. https://doi.org/10.1002/ffj.3661

AL-SNAFI, A.E. The chemical constituents and pharmacological effects of Calendula officinalis – A review. Indian Journal of Pharmaceutical Science & Research, v.5, n.3, p.172-185, 2015.

BADGUJAR, C.H.; POULOSE, A.; GAN, H. Agricultural object detection with You Only Look Once (YOLO) Algorithm: A bibliometric and systematic literature review. Computers and Electronics in Agriculture, v.223, 109090, 2024. https://doi.org/10.1016/j.compag.2024.109090

BAH, M.D.; DERICQUEBOURG, E.; HAFIANE, A.; CANALS, R. Deep learning based classification system for identifying weeds using high-resolution UAV Imagery. Intelligent Computing, v.2, p.176-187, 2018. https://doi.org/10.1007/978-3-030-01177-2_13

BAI, Y.; YU, J.; YANG, S.; NING, J. An improved YOLO algorithm for detecting flowers and fruits on strawberry seedlings. Biosystems Engineering, v.237, p.1-12, 2024. https://doi.org/10.1016/j.biosystemseng.2023.11.008

BAZAME, H.C.; MOLIN, J.P.; ALTHOFF, D.; MARTELLO, M. Detection, classification, and mapping of coffee fruits during harvest with computer vision. Computers and Electronics in Agriculture, v.183, 106066, 2021. https://doi.org/10.1016/j.compag.2021.106066

CHALCHAT, J.C.; GARRY, R.P.H.; MICHET, A. Chemical composition of essential oil of Calendula officinalis L. (Pot Marigold). Flavour and Fragrance Journal, v.6, p.189-192, 1991. https://doi.org/10.1002/ffj.2730060306

CHEN, Z.; SU, R.; WANG, Y.; CHEN, G.; WANG, Z.; YIN, P. WANG, J. Automatic estimation of apple orchard blooming levels using the improved YOLOv5. Agronomy, v.12(10), p.2483, 2022. https://doi.org/10.3390/agronomy12102483

CITADINI-ZANETTE, V.; NEGRELLE, R.R.B.; BORBA, E.T. Calendula officinalis L. (Asteraceae): aspectos botânicos, ecológicos e usos. Visão Acadêmica, v.13, n.1, p.31261-31273, 2012. https://doi.org/10.5380/acd.v13i1.30013

CORRÊA JÚNIOR, C.; MING, L.C.; SCHEFFER, M.C. Cultivo de plantas medicinais, condimentares e aromáticas. Jaboticabal: FUNEP, 1994.

DIWAN, T.; ANIRUDH, G.; TEMBHURNE, J.V. Object detection using YOLO: challenges, architectural successors, datasets and applications. Multimedia Tools and Applications, v.82, p.9243-9275, 2023. https://doi.org/10.1007/s11042-022-13644-y

EBERLE, C.A.; FORCELLA, F.; GESCH, R.; PETERSON, D.; EKLUND, J. Seed germination of calendula in response to temperature. Industrial Crops and Products, v.52, p.199-204, 2014. https://doi.org/10.1016/j.indcrop.2013.10.031

EGI, Y.; HAJYZADEH, M.; EYCEYURT, E. Drone-computer communication based tomato generative organ counting model using YOLO V5 and deep-sort. Agriculture, v.12, p.1290, 2022. https://doi.org/10.3390/agriculture12091290

FAN, Z.; QIN, Z.; LIU, W.; CHEN, M.; QIU, Z. SS-YOLOv8: A lightweight algorithm for surface litter detection. Applied Sciences, v.14, n.20, p.9283, 2024. https://doi.org/10.3390/app14209283

GE, Y.; LIN, S.; ZHANG, Y.; LI, Z.; CHENG, H.; DONG, J.; SHAO, S.; ZHANG, J.; QI, X.; WU, Z. Tracking and counting of tomato at different growth period using an improving YOLO-deepsort network for inspection robot. Machines, v.10, n.6, p.489, 2022. https://doi.org/10.3390/machines10060489

GUO, H.; CHEN, H.; WU, T. MSDP-Net: A YOLOv5-based safflower corolla object detection and spatial positioning network. Agriculture, v.15, n.8, p.855, 2025. https://doi.org/10.3390/agriculture15080855

HERRERA, D.; ESCUDERO-VILLA, P.; CÁRDENAS, E.; ORTIZ, M.; VARELA-ALDÁS, J. Combining image classification and unmanned aerial vehicles to estimate the state of explorer roses. AgriEngineering, v.6, n.2, p.1008-1021, 2024. https://doi.org/10.3390/agriengineering6020058

HU, J.; FAN, C.; WANG, Z.; RUAN, J.; WU, S. Fruit detection and counting in apple orchards based on improved YOLOv7 and multi- object tracking methods. Sensors, v.23, n.13, p.5903, 2023. https://doi.org/10.3390/s23135903

JING, R.; NIU, Q.; TIAN, Y.; ZHANG, H.; ZHAO, Q.; LI, Z.; ZHOU, X.; LI, D. Sunflower-YOLO: Detection of sunflower capitula in UAV remote sensing images. European Journal of Agronomy, v.160, 127332, 2024. https://doi.org/10.1016/j.eja.2024.127332

JOCHER, G. Ultralytics/yolov5: v7.0 – YOLOv5 SOTA realtime instance segmentation. GitHub, 2022. Available at: <https://github.com/ultralytics/yolov5>. Acessed on: 26 fev. 2026.

JUNOS, M.H.; KHAIRUDDIN, A.S.M.; THANNIRMALAI, S.; DAHARI, M. Automatic detection of oil palm fruits from UAV images using an improved YOLO model. The Visual Computer, v.38, p.2341- 2355, 2022. https://doi.org/10.1007/s00371-021-02116-3

KHALID, K.A.; SILVA, J.A.T. Yield, essential oil and pigment content of Calendula officinalis L. flower heads cultivated under salt stress conditions. Scientia Horticulturae, v. 126, n. 2, p.297-305, 2010. https://doi.org/10.1016/j.scienta.2010.07.023

KINGMA, D.P.; BA, J. ADAM: A Method for Stochastic Optimization. The 3rd International Conference for Learning Representations, v.9, 2014. https://doi.org/10.48550/arXiv.1412.6980

KRÓL, B.; PASZKO, T. Harvest date as a factor affecting crop yield, oil content and fatty acid composition of the seeds of calendula (Calendula officinalis L.) cultivars. Industrial Crops and Products, v.97, p.242-251, 2017. https://doi.org/10.1016/j.indcrop.2016.12.029

LI, G.; SUO, R.; ZHAO, G.; GAO, C.; FU, L.; SHI, F.; DHUPIA, J.; LI, R.; CUI, Y. Real-time detection of kiwifruit flower and bud simultaneously in orchard using YOLOv4 for robotic pollination. Computers and Electronics in Agriculture, v.193, p.106641, 2022. https://doi.org/10.1016/j.compag.2021.106641

LI, J.; LI, Y.; QIAO, J.; LI, L.; WANG, X.; YAO, J.; LIAO, G. Automatic counting of rapeseed inflorescences using deep learning method and UAV RGB imagery. Frontiers Plant Science, v.14, p.1101143, 2023. https://doi.org/10.3389/fpls.2023.1101143

LI, W.; FU, H.; YU, L.; CRACKNELL, A. deep learning based oil palm tree detection and counting for high-resolution remote sensing images. Remote Sensing, v.9, n.1, p. 22, 2017. https://doi.org/10.3390/rs9010022

LIU, J.; ZHAO, G.; LIU, S.; LIU, Y.; YANG, H.; SUN, J.; YAN, Y.; FAN, G.; WANG, J.; ZHANG, H. New Progress in intelligent picking: online detection of apple maturity and fruit diameter based on machine vision. Agronomy, v.14, n.4, p.721, 2024. https://doi.org/10.3390/agronomy14040721

LIU, Q.; ZHANG, Y.; YANG, G. Small unopened cotton boll counting by detection with MRF-YOLO in the wild. Computers and Electronics in Agriculture, v.204, p.107576, 2023. https://doi.org/10.1016/j. compag.2022.107576

MANN, H.M.R.; LOSIFIDIS, A.; JEPSEN, J.U.; WELKER, J.M.; LOONEN, M.J.J.E.; HOYE, T.T. Automatic flower detection and phenology monitoring using time-lapse cameras and deep learning. Remote Sensing in Ecology and Conservation, v.8, n.6, p.765-777, 2022. https://doi.org/10.1002/rse2.275

OSSIPOV, V.; KHAZIEVA, F.; BALEEV, D.; SALMINEN, J.-P.; SIDELNIKOV, N. Comparative metabolomics of ligulate and tubular flowers of two cultivars of Calendula officinalis L. Metabolites, v.14, n.3, p.140, 2024. https://doi.org/10.3390/metabo14030140

PADILLA, R.; NETTO, S.L.; SILVA, E.A.B. A survey on performance metrics for object-detection algorithms. International Conference on Systems, Signals and Image Processing (IWSSIP), p.237-242, 2020. https://doi.org/10.1109/IWSSIP48289.2020.9145130

PENG, J.; WANG, D.; ZHU, W.; YANG, T.; LIU, Z.; REZAEI, E.E.; LI, J.; SUN, Z.; XIN, X. Combination of UAV and deep learning to estimate wheat yield at ripening stage: The potential of phenotypic features. International Journal of Applied Earth Observation and Geoinformation, v.124, p.103494, 2023. https://doi.org/10.1016/j.jag.2023.103494

QI, C.; GAO, J.; PEARSON, S.; HARMAN, H.; CHEN, K.; SHU, L. Tea chrysanthemum detection under unstructured environments using the TC- YOLO model. Expert Systems with Applications, 193, 116473, 2022. https://doi.org/10.1016/j.eswa.2021.116473

SHANG, Y.; XU, X.; JIAO, Y.; WANG, Z.; HUA, Z.; SONG, H. Using lightweight deep learning algorithm for real-time detection of apple flowers in natural environments. Computers and Electronics in Agriculture, p.107765, 2023. https://doi.org/10.1016/j.compag.2023.107765

TAN, C.; SUN, J.; PATERSON, A.H.; SONG, H.; LI, C. Three-view cotton flower counting through multi-object tracking and RGB-D imagery. Biosystems Engineering, v.246, p.233-247, 2024. https://doi.org/10.1016/j.biosystemseng.2024.08.010

VANDERMAESERI, J.; ROMBOUTS, B.; DELALIEUX, S.; BYLEMANS, D.; REMY, S. Drone-acquired data in support of Belgian fruit production. IEEE International Geoscience and Remote Sensing Symposium IGARSS, p.6292-6295, 2021. https://doi.org/10.1109/IGARSS47720.2021.9554559

WINDRIM, L.; BRYSON, M.; MCLEAN, M.; RANDLE, J.; STONE, C. Automated mapping of woody debris over harvested forest plantations using UAVs, High-Resolution Imagery, and Machine Learning. Remote Sensing, v.11, n.6. 2019. https://doi.org/10.3390/rs11060733

YANG, Q.; SHI, L.; HAN, J.; ZHA, Y.; ZHU, P. Deep convolutional neural networks for rice grain yield estimation at the ripening stage using UAV- based remotely sensed images. Field Crops Research, v.235, p.142-153, 2019. https://doi.org/10.1016/j.fcr.2019.02.022

YARAK, K.; WITAYANGKURN, A.; KRITIYUTANONT, K.; ARUNPLOD, C.; SHIBASAKI, R. Oil palm tree detection and health classification on high-resolution imagery using deep learning. Agriculture, v.11, n.2, p.183, 2021. https://doi.org/10.3390/agriculture11020183

ZHANG, S., YANG, Y., TU, L., FU, T., CHEN, S., CEN, F., YANG, S.; ZHAO, Q.; GAO, Z.; HE, T. Comparison of YOLO-based sorghum spike identification detection models and monitoring at the flowering stage. Plant Methods, v.21, p.20, 2025. https://doi.org/10.1186/s13007-025- 01338-z

ZHANG, X.; HAN, L.; DONG, Y.; SHI, Y.; HUANG, W.; HAN, L.; GONZÁLEZ-MORENO, P.; MA, H.; YE, H.; SOBEIH, T. A Deep learning-based approach for automated yellow rust disease detection from high-resolution hyperspectral UAV images. Remote Sensing, v.11, n.3, p.1554, 2019. https://doi.org/10.3390/rs11131554

ZHAO, K.; LI, J; SHI, W.; QI, L.; YU, C.; ZHANG, W. Field-based soybean flower and pod detection using an improved YOLOv8-VEW Method. Agriculture, v.14, n.8, p.1423, 2024. https://doi.org/10.3390/agriculture14081423

Downloads

Published

2026-04-29

How to Cite

Barboza, T. O. C., Fernandez, G. V., Inácio, F. D., Pinto, L. S., Reis, M. V. D., & Santos, A. F. D. (2026). Detection and counting marigold flowers using drone images and YOLOv8 in complex environments. Ornamental Horticulture, 32, 1–8. https://doi.org/10.1590/2447-536X.v32.e323014

Issue

Section

Articles