Real-Field CNN Detection of the Olive Fruit Fly: Towards Smarter Pest Monitoring in Olive Orchards | Research Square window.SnipcartSettings = { analytics: { enabled: false } }; (function() { var accessVector = localStorage.getItem('access_vector') || ''; window.dataLayer = window.dataLayer || []; if (accessVector) { window.dataLayer.push({ user: { profile: { profileInfo: { snid: accessVector } } } }); } })(); (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-K279D39R'); Browse Preprints In Review Journals COVID-19 Preprints AJE Video Bytes Research Tools Research Promotion AJE Professional Editing AJE Rubriq About Preprint Platform In Review Editorial Policies Our Team Advisory Board Help Center Sign In Submit a Preprint Cite Share Download PDF Research Article Real-Field CNN Detection of the Olive Fruit Fly: Towards Smarter Pest Monitoring in Olive Orchards Tomislav Kos, Anđelo Zdrilić, Ana Gašparović Pinto, Šimun Kolega, and 3 more This is a preprint; it has not been peer reviewed by a journal. https://doi.org/ 10.21203/rs.3.rs-7741828/v1 This work is licensed under a CC BY 4.0 License Status: Posted Version 1 posted You are reading this latest preprint version Abstract The olive fruit fly (Bactrocera oleae Rossi, 1790) is the most damaging pest of olive cultivation, threatening both yield and quality of olive oil across the Mediterranean. Early and accurate detection of adult flies is a cornerstone of integrated pest management, yet conventional monitoring methods based on manual trap inspection remain slow and labor-intensive. In this study, we developed and validated a convolutional neural network (CNN) model trained exclusively on a real-field dataset of 4,278 images collected in olive orchards in Zadar County, Croatia. The model was designed to distinguish B. oleae adults from other insects captured on adhesive traps. It achieved a mean average precision (mAP) of 0.74, with particularly strong performance for the olive fly class (AP = 0.81) and high accuracy at Intersection over Union (IoU) = 50% (AP50 = 0.95). Our results demonstrate that CNN-based detection models trained on field data can provide fast, reliable, and scalable pest monitoring solutions. This approach holds promise for reducing the reliance on manual inspections and supports the development of more sustainable and precise pest management strategies in olive production. Bactrocera oleae Rossi 1790 Oleae europaea L. integrated pest management (IPM) precision agriculture convolutional neural networks (CNNs) Full Text Cite Share Download PDF Status: Posted Version 1 posted You are reading this latest preprint version Research Square lets you share your work early, gain feedback from the community, and start making changes to your manuscript prior to peer review in a journal. As a division of Research Square Company, we’re committed to making research communication faster, fairer, and more useful. We do this by developing innovative software and high quality services for the global research community. Our growing team is made up of researchers and industry professionals working together to solve the most critical problems facing scientific publishing. Also discoverable on Platform About Our Team In Review Editorial Policies Advisory Board Help Center Resources Author Services Accessibility API Access RSS feed Manage Cookie Preferences © Research Square 2026 | ISSN 2693-5015 (online) Privacy Policy Terms of Service Do Not Sell My Personal Information {"props":{"pageProps":{"initialData":{"identity":"rs-7741828","acceptedTermsAndConditions":true,"allowDirectSubmit":true,"archivedVersions":[],"articleType":"Research Article","associatedPublications":[],"authors":[{"id":523853439,"identity":"976802bd-8941-4371-9ab7-7ddb963f2211","order_by":0,"name":"Tomislav Kos","email":"","orcid":"","institution":"","correspondingAuthor":false,"prefix":"","firstName":"Tomislav","middleName":"","lastName":"Kos","suffix":""},{"id":523853440,"identity":"6b214093-40f5-4f6b-9e95-4ecb3a7f317e","order_by":1,"name":"Anđelo Zdrilić","email":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAAyAQMAAABI0h/eAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAvElEQVRIiWNgGAWjYHACA4aEAgkGfiDrAAMbQwKRWgwkGCQbSNICRgdAbGK08Pcf3vbhgYGFvPGN3IMHf5Qx5Jk3ENAiceBY8Qygwwy33chLOCBxjqFY5gAhaw72GIP8kmB2I8fggGEbQ+IMQjrkD/NAtBjPAGpJJEaLwTGoFgMJoJaDxGgxPMNWDNJiOOPMG4ODDeckCGuRO394M+OPijp5/vYc448/ymwIa0EHEqRqGAWjYBSMglGADQAAVX09nQdg2gsAAAAASUVORK5CYII=","orcid":"https://orcid.org/0009-0009-4267-4998","institution":"Sveuciliste u Zadru","correspondingAuthor":true,"prefix":"","firstName":"Anđelo","middleName":"","lastName":"Zdrilić","suffix":""},{"id":523853441,"identity":"3b495678-8200-4b31-ab7a-510621429c08","order_by":2,"name":"Ana Gašparović Pinto","email":"","orcid":"","institution":"","correspondingAuthor":false,"prefix":"","firstName":"Ana","middleName":"Gašparović","lastName":"Pinto","suffix":""},{"id":523853442,"identity":"29b3ca7f-f0ca-40da-8a6d-ae76765cda2e","order_by":3,"name":"Šimun Kolega","email":"","orcid":"","institution":"","correspondingAuthor":false,"prefix":"","firstName":"Šimun","middleName":"","lastName":"Kolega","suffix":""},{"id":523853443,"identity":"afb9d327-bf0a-4925-8cd6-6bac767c8d99","order_by":4,"name":"Marko Zorica","email":"","orcid":"","institution":"","correspondingAuthor":false,"prefix":"","firstName":"Marko","middleName":"","lastName":"Zorica","suffix":""},{"id":523853444,"identity":"dbd015c4-cacd-49d9-8498-e91ed7dfe23a","order_by":5,"name":"Dana Čirjak","email":"","orcid":"","institution":"","correspondingAuthor":false,"prefix":"","firstName":"Dana","middleName":"","lastName":"Čirjak","suffix":""},{"id":523853445,"identity":"b74f1014-bdea-41b4-93fd-0cba04d08f37","order_by":6,"name":"Ivana Pajač Živković","email":"","orcid":"","institution":"","correspondingAuthor":false,"prefix":"","firstName":"Ivana","middleName":"Pajač","lastName":"Živković","suffix":""}],"badges":[],"createdAt":"2025-09-29 12:02:41","currentVersionCode":1,"declarations":"","doi":"10.21203/rs.3.rs-7741828/v1","doiUrl":"https://doi.org/10.21203/rs.3.rs-7741828/v1","draftVersion":[],"editorialEvents":[],"editorialNote":"","failedWorkflow":false,"files":[{"id":93585259,"identity":"2048eed3-4945-4fca-9279-17a2375fb095","added_by":"auto","created_at":"2025-10-15 11:13:48","extension":"tif","order_by":0,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":5182520,"visible":true,"origin":"","legend":"","description":"","filename":"fig.1.tif","url":"https://assets-eu.researchsquare.com/files/rs-7741828/v1/a0b5c8e6b78aa917edcf4c45.tif"},{"id":93585784,"identity":"53029cb7-dfaa-46e7-a1b8-e75f4ee2ca25","added_by":"auto","created_at":"2025-10-15 11:21:47","extension":"png","order_by":1,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":708964,"visible":true,"origin":"","legend":"","description":"","filename":"fig.2.png","url":"https://assets-eu.researchsquare.com/files/rs-7741828/v1/339fb83aeee87ffd74d65e25.png"},{"id":93585257,"identity":"dbca8bd8-f9f3-452c-b107-b7f723fbc289","added_by":"auto","created_at":"2025-10-15 11:13:47","extension":"png","order_by":3,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1649053,"visible":true,"origin":"","legend":"","description":"","filename":"fig.3.png","url":"https://assets-eu.researchsquare.com/files/rs-7741828/v1/4cab9c6206eb5c1b0ca46637.png"},{"id":93585256,"identity":"0a4a2cc2-7128-4e28-91f5-4cd855aec8c7","added_by":"auto","created_at":"2025-10-15 11:13:47","extension":"jpg","order_by":4,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":178886,"visible":true,"origin":"","legend":"","description":"","filename":"fig.4.jpg","url":"https://assets-eu.researchsquare.com/files/rs-7741828/v1/3ea45001a58074356660a738.jpg"},{"id":93585253,"identity":"3664b91b-68f9-4ecf-8a2c-17c57a67868f","added_by":"auto","created_at":"2025-10-15 11:13:47","extension":"xml","order_by":5,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":8699,"visible":true,"origin":"","legend":"","description":"","filename":"jpdpJPDPD2501615.xml","url":"https://assets-eu.researchsquare.com/files/rs-7741828/v1/631011d06463b2f89375e1e9.xml"},{"id":93585254,"identity":"f68bd5d8-b3fa-485f-b4ea-2f6f8e66fc7b","added_by":"auto","created_at":"2025-10-15 11:13:47","extension":"xml","order_by":6,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1090,"visible":true,"origin":"","legend":"","description":"","filename":"JPDPD250161523539.go.xml","url":"https://assets-eu.researchsquare.com/files/rs-7741828/v1/ceebf9cf569ad6ca544b7a74.xml"},{"id":93585255,"identity":"2e121cf6-0d6a-4a8f-bb60-404fca8eb250","added_by":"auto","created_at":"2025-10-15 11:13:47","extension":"xml","order_by":7,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":837,"visible":true,"origin":"","legend":"","description":"","filename":"JPDPD2501615Import.xml","url":"https://assets-eu.researchsquare.com/files/rs-7741828/v1/bbc5176e6c810e16338fef2a.xml"},{"id":94986496,"identity":"909c60c7-1f8b-48f8-ad84-e9f86212326f","added_by":"auto","created_at":"2025-11-03 07:00:22","extension":"pdf","order_by":1,"title":"","display":"","copyAsset":false,"role":"manuscript-pdf","size":730818,"visible":true,"origin":"","legend":"","description":"","filename":"RealFieldCNNDetectionoftheOliveFruitFly.pdf","url":"https://assets-eu.researchsquare.com/files/rs-7741828/v1_covered_a65fa4f9-2296-4e99-94f9-af8f10061366.pdf"}],"financialInterests":"","formattedTitle":"Real-Field CNN Detection of the Olive Fruit Fly: Towards Smarter Pest Monitoring in Olive Orchards","fulltext":[],"fulltextSource":"","fullText":"","funders":[],"hasAdminPriorityOnWorkflow":false,"hasManuscriptDocX":false,"hasOptedInToPreprint":true,"hasPassedJournalQc":"","hasAnyPriority":false,"hideJournal":true,"highlight":"","institution":"","isAcceptedByJournal":false,"isAuthorSuppliedPdf":true,"isDeskRejected":"","isHiddenFromSearch":false,"isInQc":false,"isInWorkflow":false,"isPdf":true,"isPdfUpToDate":true,"isWithdrawnOrRetracted":false,"journal":{"display":true,"email":"
[email protected]","identity":"researchsquare","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":true,"externalIdentity":"","sideBox":"","snPcode":"","submissionUrl":"/submission","title":"Research Square","twitterHandle":"researchsquare","acdcEnabled":true,"dfaEnabled":false,"editorialSystem":"","reportingPortfolio":"","inReviewEnabled":false,"inReviewRevisionsEnabled":true},"keywords":"Bactrocera oleae Rossi 1790, Oleae europaea L., integrated pest management (IPM), precision agriculture, convolutional neural networks (CNNs)","lastPublishedDoi":"10.21203/rs.3.rs-7741828/v1","lastPublishedDoiUrl":"https://doi.org/10.21203/rs.3.rs-7741828/v1","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"manuscriptAbstract":"The olive fruit fly (Bactrocera oleae Rossi, 1790) is the most damaging pest of olive cultivation, threatening both yield and quality of olive oil across the Mediterranean. Early and accurate detection of adult flies is a cornerstone of integrated pest management, yet conventional monitoring methods based on manual trap inspection remain slow and labor-intensive. In this study, we developed and validated a convolutional neural network (CNN) model trained exclusively on a real-field dataset of 4,278 images collected in olive orchards in Zadar County, Croatia. The model was designed to distinguish B. oleae adults from other insects captured on adhesive traps. It achieved a mean average precision (mAP) of 0.74, with particularly strong performance for the olive fly class (AP = 0.81) and high accuracy at Intersection over Union (IoU) = 50% (AP50 = 0.95).\nOur results demonstrate that CNN-based detection models trained on field data can provide fast, reliable, and scalable pest monitoring solutions. This approach holds promise for reducing the reliance on manual inspections and supports the development of more sustainable and precise pest management strategies in olive production.","manuscriptTitle":"Real-Field CNN Detection of the Olive Fruit Fly: Towards Smarter Pest Monitoring in Olive Orchards","msid":"","msnumber":"","nonDraftVersions":[{"code":1,"date":"2025-10-15 11:13:43","doi":"10.21203/rs.3.rs-7741828/v1","editorialEvents":[{"type":"communityComments","content":0}],"status":"published","journal":{"display":true,"email":"
[email protected]","identity":"researchsquare","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":true,"externalIdentity":"","sideBox":"","snPcode":"","submissionUrl":"/submission","title":"Research Square","twitterHandle":"researchsquare","acdcEnabled":true,"dfaEnabled":false,"editorialSystem":"","reportingPortfolio":"","inReviewEnabled":false,"inReviewRevisionsEnabled":true}}],"origin":"","ownerIdentity":"7a660667-527a-4be7-a29e-54fdaa582959","owner":[],"postedDate":"October 15th, 2025","published":true,"recentEditorialEvents":[],"rejectedJournal":[],"revision":"","amendment":"","status":"posted","subjectAreas":[],"tags":[],"updatedAt":"2025-10-31T12:24:42+00:00","versionOfRecord":[],"versionCreatedAt":"2025-10-15 11:13:43","video":"","vorDoi":"","vorDoiUrl":"","workflowStages":[]},"version":"v1","identity":"rs-7741828","journalConfig":"researchsquare"},"__N_SSP":true},"page":"/article/[identity]/[[...version]]","query":{"redirect":"/article/rs-7741828","identity":"rs-7741828","version":["v1"]},"buildId":"XKTyCvWXoU3ODBz1xrDgd","isFallback":false,"isExperimentalCompile":false,"dynamicIds":[84888],"gssp":true,"scriptLoader":[]}
Text is read by the "Ask this paper" AI Q&A widget below.
Extraction quality varies by source — PMC NXML preserves structure
cleanly, OA-HTML may include some navigation residue, and OA-PDF can
have broken hyphenation. The publisher copy
(via DOI)
is the canonical version.