A YOLOv8n-based hybrid approach for detecting and metrically estimating the length of chopped maize stalks | 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 A YOLOv8n-based hybrid approach for detecting and metrically estimating the length of chopped maize stalks Ben Che, Jun Fu, Fengshuang Liu, Zhao Xue, Yiqiang Zheng, Jindai Liu This is a preprint; it has not been peer reviewed by a journal. https://doi.org/ 10.21203/rs.3.rs-7676961/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 Efficient, precise measurement of chopped maize-stalk length is vital for biomass processing and sustainable residue use. Yet fragmented segments—with irregular shapes, curvature, overlap, and low contrast—challenge lightweight detectors and degrade length estimation. We propose a lightweight, two-stage hybrid framework: an optimized YOLOv8n first localizes stalk and calibration regions, and a calibrated geometric module then refines these ROIs to segment, skeletonize, and convert pixel arc length to millimeters. The detector integrates RepELAN for richer spatial features, Coordinate Attention for direction-aware sensitivity, an LSCD head for robust multi-scale prediction, and WIoU for precise box regression. On our dataset, the optimized YOLOv8n attains 96.90% detection accuracy and surpasses representative lightweight baselines. The ROI-based measurement stage applies contour enhancement and skeletonization, followed by washer-based pixel-to-length conversion, yielding a mean absolute error of 2.16 mm (3.63% relative error). Together, this integrated detection–measurement pipeline offers a practical solution for automated residue management, improving straw-utilization efficiency and supporting sustainable agricultural production. Maize stalks Hybrid framework YOLOv8n Length measurement Image processing Full Text Additional Declarations No competing interests reported. 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-7676961","acceptedTermsAndConditions":true,"allowDirectSubmit":true,"archivedVersions":[],"articleType":"Research Article","associatedPublications":[],"authors":[{"id":526189217,"identity":"8cec3c80-e36f-434c-9425-3016badca4c7","order_by":0,"name":"Ben Che","email":"","orcid":"","institution":"Jilin University","correspondingAuthor":false,"prefix":"","firstName":"Ben","middleName":"","lastName":"Che","suffix":""},{"id":526189219,"identity":"009dbdd7-e078-4376-a6be-b9da85c83e50","order_by":1,"name":"Jun Fu","email":"","orcid":"","institution":"Jilin University","correspondingAuthor":false,"prefix":"","firstName":"Jun","middleName":"","lastName":"Fu","suffix":""},{"id":526189222,"identity":"9e03c615-9307-4c21-9771-63eb6c587636","order_by":2,"name":"Fengshuang Liu","email":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAAyAQMAAABI0h/eAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAzUlEQVRIie3OsQrCMBCA4QuFuJxmval9hQYHBV+mTp0EXUonaQjYxQco+BR9g0pX6ezgIPgCHeug2Cq4JqNg/uUI3McFwOX6wSYeQAsp+SwfntyCcA9YAaf5lGlrAj1hu3SZedZkhFJ1nGKtMYQ2qUEcMtPHUGpEWqmesKKpgS6VkcxuQB/ijXc1hBSZr6gupJgN5GFLMowoehNmR/hGY0VSab4+7psY6WwgQtSluj+3gcx1ee2ShS8KA/kmM4Cqn2i53xfYr7pcLte/9QLnLzdiztIN1QAAAABJRU5ErkJggg==","orcid":"","institution":"Jilin University","correspondingAuthor":true,"prefix":"","firstName":"Fengshuang","middleName":"","lastName":"Liu","suffix":""},{"id":526189223,"identity":"59422f93-3e5b-44f9-a836-6cd7d1da398a","order_by":3,"name":"Zhao Xue","email":"","orcid":"","institution":"Jilin University","correspondingAuthor":false,"prefix":"","firstName":"Zhao","middleName":"","lastName":"Xue","suffix":""},{"id":526189224,"identity":"6a635a6a-3a2b-4a81-ae8b-40729b6ac939","order_by":4,"name":"Yiqiang Zheng","email":"","orcid":"","institution":"Jilin University","correspondingAuthor":false,"prefix":"","firstName":"Yiqiang","middleName":"","lastName":"Zheng","suffix":""},{"id":526189226,"identity":"d8f14ced-8430-4815-b38a-5634f84a0b37","order_by":5,"name":"Jindai Liu","email":"","orcid":"","institution":"Jilin University","correspondingAuthor":false,"prefix":"","firstName":"Jindai","middleName":"","lastName":"Liu","suffix":""}],"badges":[],"createdAt":"2025-09-22 13:38:29","currentVersionCode":1,"declarations":"","doi":"10.21203/rs.3.rs-7676961/v1","doiUrl":"https://doi.org/10.21203/rs.3.rs-7676961/v1","draftVersion":[],"editorialEvents":[],"editorialNote":"","failedWorkflow":false,"files":[{"id":93146547,"identity":"4ddf4cdc-fc2c-4740-997c-b0c9c578cb4f","added_by":"auto","created_at":"2025-10-09 13:55:49","extension":"docx","order_by":0,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":3399715,"visible":true,"origin":"","legend":"","description":"","filename":"manuscript1.docx","url":"https://assets-eu.researchsquare.com/files/rs-7676961/v1/962f8cf875e1d5531924136e.docx"},{"id":93146534,"identity":"fc2120da-a6da-44ec-a649-80e8affc5697","added_by":"auto","created_at":"2025-10-09 13:55:49","extension":"json","order_by":1,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":7334,"visible":true,"origin":"","legend":"","description":"","filename":"1c4472ec822e4386b3fdc65efc068912.json","url":"https://assets-eu.researchsquare.com/files/rs-7676961/v1/32e748d774a44ea53ef1dbd8.json"},{"id":93147137,"identity":"2e80bf71-b65a-441f-a369-92f3c0f67d00","added_by":"auto","created_at":"2025-10-09 14:03:49","extension":"xml","order_by":2,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":126823,"visible":true,"origin":"","legend":"","description":"","filename":"1c4472ec822e4386b3fdc65efc0689121enriched.xml","url":"https://assets-eu.researchsquare.com/files/rs-7676961/v1/0e346cfeb6531b27d07c8539.xml"},{"id":93146543,"identity":"f9981865-fc5f-4da2-9721-af1eef878b6c","added_by":"auto","created_at":"2025-10-09 13:55:49","extension":"png","order_by":3,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":813676,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage1.png","url":"https://assets-eu.researchsquare.com/files/rs-7676961/v1/7b7ade572ba94164c32f2be3.png"},{"id":93146540,"identity":"8c743db2-db8e-4d69-b151-d7ccbedf126f","added_by":"auto","created_at":"2025-10-09 13:55:49","extension":"png","order_by":4,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":386785,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage10.png","url":"https://assets-eu.researchsquare.com/files/rs-7676961/v1/1ab39bc62f4351b3a40a9de0.png"},{"id":93146536,"identity":"302fcca5-3157-4995-9242-860e9bc3148e","added_by":"auto","created_at":"2025-10-09 13:55:49","extension":"png","order_by":5,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":852772,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage2.png","url":"https://assets-eu.researchsquare.com/files/rs-7676961/v1/78373aa8e211d9fd18911741.png"},{"id":93147138,"identity":"f20b9485-7f50-47a0-80c6-217a3756e753","added_by":"auto","created_at":"2025-10-09 14:03:49","extension":"png","order_by":6,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":136383,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage3.png","url":"https://assets-eu.researchsquare.com/files/rs-7676961/v1/4878a6f16ab0ff9e557e6612.png"},{"id":93147140,"identity":"924131ba-e5a7-428c-8c5f-ed969ce7246a","added_by":"auto","created_at":"2025-10-09 14:03:49","extension":"png","order_by":7,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":75467,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage4.png","url":"https://assets-eu.researchsquare.com/files/rs-7676961/v1/4332a3eaa87b4c4bcaf3b67c.png"},{"id":93147912,"identity":"c427232c-3345-45a1-8cad-65c16a615a70","added_by":"auto","created_at":"2025-10-09 14:11:49","extension":"emf","order_by":8,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":872312,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage5.emf","url":"https://assets-eu.researchsquare.com/files/rs-7676961/v1/29e906bcb93d7971dad5e248.emf"},{"id":93146539,"identity":"b85b8ee9-3e13-47de-9a0c-45880982e1c7","added_by":"auto","created_at":"2025-10-09 13:55:49","extension":"png","order_by":9,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":104435,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage6.png","url":"https://assets-eu.researchsquare.com/files/rs-7676961/v1/d5288bdc09ad2d98ab9a982f.png"},{"id":93146555,"identity":"5ac218e8-e316-43bb-b0cf-4c74a1dc788f","added_by":"auto","created_at":"2025-10-09 13:55:49","extension":"png","order_by":10,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":98137,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage7.png","url":"https://assets-eu.researchsquare.com/files/rs-7676961/v1/d3af0c1a448d7de1d6cbfdf7.png"},{"id":93146558,"identity":"fce1d099-920f-430e-923b-8c80d089e22c","added_by":"auto","created_at":"2025-10-09 13:55:49","extension":"png","order_by":11,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":253589,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage8.png","url":"https://assets-eu.researchsquare.com/files/rs-7676961/v1/43232edacaf1c19ca7b45d5a.png"},{"id":93147914,"identity":"e2a02096-e608-4541-a570-5c5693e5a1af","added_by":"auto","created_at":"2025-10-09 14:11:49","extension":"png","order_by":12,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":216647,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage9.png","url":"https://assets-eu.researchsquare.com/files/rs-7676961/v1/3a678c925531f8f4a8333735.png"},{"id":93147142,"identity":"99b2ff52-3a92-4104-91ae-85db274f461d","added_by":"auto","created_at":"2025-10-09 14:03:49","extension":"png","order_by":13,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":82782,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage1.png","url":"https://assets-eu.researchsquare.com/files/rs-7676961/v1/2cf2d3a26a3ecd768de8258f.png"},{"id":93146545,"identity":"539a7bc9-4d24-436d-98c9-9454f7c0d721","added_by":"auto","created_at":"2025-10-09 13:55:49","extension":"png","order_by":14,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":37492,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage10.png","url":"https://assets-eu.researchsquare.com/files/rs-7676961/v1/baf3c21a090b4c40178d4dce.png"},{"id":93147913,"identity":"9c211516-b10d-453d-99b3-e32085578d95","added_by":"auto","created_at":"2025-10-09 14:11:49","extension":"png","order_by":15,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":112747,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage2.png","url":"https://assets-eu.researchsquare.com/files/rs-7676961/v1/a706e59185d2b5f3bd536c9d.png"},{"id":93147146,"identity":"f4c203a4-07a9-4533-9351-44e264330700","added_by":"auto","created_at":"2025-10-09 14:03:49","extension":"png","order_by":16,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":24983,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage3.png","url":"https://assets-eu.researchsquare.com/files/rs-7676961/v1/deccf27a7e40165b9b45b84f.png"},{"id":93146549,"identity":"35ff8316-acf9-4f0b-b087-d1b351c25c8b","added_by":"auto","created_at":"2025-10-09 13:55:49","extension":"png","order_by":17,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":21052,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage4.png","url":"https://assets-eu.researchsquare.com/files/rs-7676961/v1/596eb56edaf037a8a9a5f316.png"},{"id":93147144,"identity":"3aa727ff-d762-4205-80aa-1e68218235fe","added_by":"auto","created_at":"2025-10-09 14:03:49","extension":"png","order_by":18,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":127091,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage5.png","url":"https://assets-eu.researchsquare.com/files/rs-7676961/v1/8c40ae7cfe7484e7d0991e57.png"},{"id":93147915,"identity":"c8776b31-e4b1-4625-93b8-f14bb6ce0199","added_by":"auto","created_at":"2025-10-09 14:11:49","extension":"png","order_by":19,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":22503,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage6.png","url":"https://assets-eu.researchsquare.com/files/rs-7676961/v1/53fe55cd7796906ee27a74fa.png"},{"id":93146553,"identity":"04c6e386-23bd-48c8-bbe6-1d63505f756a","added_by":"auto","created_at":"2025-10-09 13:55:49","extension":"png","order_by":20,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":11759,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage7.png","url":"https://assets-eu.researchsquare.com/files/rs-7676961/v1/733ebd7e5762796ce4197f76.png"},{"id":93147148,"identity":"7b610d19-88d8-4d5f-b47e-bd3e30bc2eca","added_by":"auto","created_at":"2025-10-09 14:03:49","extension":"png","order_by":21,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":35611,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage8.png","url":"https://assets-eu.researchsquare.com/files/rs-7676961/v1/b84c6392b63e9afcff29250b.png"},{"id":93147147,"identity":"50def5d0-c7e0-4f8a-a7f4-88c009d3a22b","added_by":"auto","created_at":"2025-10-09 14:03:49","extension":"png","order_by":22,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":42297,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage9.png","url":"https://assets-eu.researchsquare.com/files/rs-7676961/v1/cef5cefce5ca0c1d76ec424c.png"},{"id":93146556,"identity":"aa01d4dd-02b1-4567-b955-64a59c3417c3","added_by":"auto","created_at":"2025-10-09 13:55:49","extension":"xml","order_by":23,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":127349,"visible":true,"origin":"","legend":"","description":"","filename":"1c4472ec822e4386b3fdc65efc0689121structuring.xml","url":"https://assets-eu.researchsquare.com/files/rs-7676961/v1/c41683b53284fdadc919cff0.xml"},{"id":93146557,"identity":"e6999afe-81bd-4908-942b-6e712ac8fba3","added_by":"auto","created_at":"2025-10-09 13:55:49","extension":"html","order_by":24,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":138282,"visible":true,"origin":"","legend":"","description":"","filename":"earlyproof.html","url":"https://assets-eu.researchsquare.com/files/rs-7676961/v1/791168703f506a5abb22277b.html"},{"id":94597394,"identity":"c32fb829-838d-4ba6-9eb2-f2e03185ddc4","added_by":"auto","created_at":"2025-10-28 18:47:28","extension":"pdf","order_by":1,"title":"","display":"","copyAsset":false,"role":"manuscript-pdf","size":1128578,"visible":true,"origin":"","legend":"","description":"","filename":"manuscript1.pdf","url":"https://assets-eu.researchsquare.com/files/rs-7676961/v1_covered_7a4bfd46-3527-48b5-af67-2a16f9213aec.pdf"}],"financialInterests":"No competing interests reported.","formattedTitle":"A YOLOv8n-based hybrid approach for detecting and metrically estimating the length of chopped maize stalks","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":"Maize stalks, Hybrid framework, YOLOv8n, Length measurement, Image processing","lastPublishedDoi":"10.21203/rs.3.rs-7676961/v1","lastPublishedDoiUrl":"https://doi.org/10.21203/rs.3.rs-7676961/v1","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"manuscriptAbstract":"\u003cp\u003eEfficient, precise measurement of chopped maize-stalk length is vital for biomass processing and sustainable residue use. Yet fragmented segments\u0026mdash;with irregular shapes, curvature, overlap, and low contrast\u0026mdash;challenge lightweight detectors and degrade length estimation. We propose a lightweight, two-stage hybrid framework: an optimized YOLOv8n first localizes stalk and calibration regions, and a calibrated geometric module then refines these ROIs to segment, skeletonize, and convert pixel arc length to millimeters. The detector integrates RepELAN for richer spatial features, Coordinate Attention for direction-aware sensitivity, an LSCD head for robust multi-scale prediction, and WIoU for precise box regression. On our dataset, the optimized YOLOv8n attains 96.90% detection accuracy and surpasses representative lightweight baselines. The ROI-based measurement stage applies contour enhancement and skeletonization, followed by washer-based pixel-to-length conversion, yielding a mean absolute error of 2.16 mm (3.63% relative error). Together, this integrated detection\u0026ndash;measurement pipeline offers a practical solution for automated residue management, improving straw-utilization efficiency and supporting sustainable agricultural production.\u003c/p\u003e","manuscriptTitle":"A YOLOv8n-based hybrid approach for detecting and metrically estimating the length of chopped maize stalks","msid":"","msnumber":"","nonDraftVersions":[{"code":1,"date":"2025-10-09 13:55:44","doi":"10.21203/rs.3.rs-7676961/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":"f633316b-6e23-45f2-9996-905f35d439ab","owner":[],"postedDate":"October 9th, 2025","published":true,"recentEditorialEvents":[],"rejectedJournal":[],"revision":"","amendment":"","status":"posted","subjectAreas":[],"tags":[],"updatedAt":"2025-10-28T18:06:07+00:00","versionOfRecord":[],"versionCreatedAt":"2025-10-09 13:55:44","video":"","vorDoi":"","vorDoiUrl":"","workflowStages":[]},"version":"v1","identity":"rs-7676961","journalConfig":"researchsquare"},"__N_SSP":true},"page":"/article/[identity]/[[...version]]","query":{"redirect":"/article/rs-7676961","identity":"rs-7676961","version":["v1"]},"buildId":"8U1c8b4HqxoKbykW_rLl7","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.