Design and Implementation of an Automated Drosophila Locomotor Assay Using Computer Vision Tracking | 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 Article Design and Implementation of an Automated Drosophila Locomotor Assay Using Computer Vision Tracking Dave Melkani, Neelaksh Harnwal, Shubhankar Desai, Dev Patel, Girish Melkani This is a preprint; it has not been peer reviewed by a journal. https://doi.org/ 10.21203/rs.3.rs-8769384/v1 This work is licensed under a CC BY 4.0 License Status: Under Revision Version 1 posted 14 You are reading this latest preprint version Abstract Drosophila has long served as a powerful model for investigating locomotor behavior, using geotaxis assays to generate valuable insights into genetics, aging, and neurobiology. Nonetheless, mostly their use can be constrained by subjective scoring, modest thought, and challenges in reproducibility. We developed and validated an integrated hardware–software platform that enables automated, high-resolution locomotor analysis across 12 vials in parallel. The system integrates 3D-printed mechanical components, Raspberry Pi–based video acquisition, and programmable environmental controls to ensure standardized conditions. A deep learning pipeline segments vials with near-perfect accuracy (IoU > 0.95), while computer vision algorithms quantify climbing trajectories, velocity, and positional zone occupancy at 60 frames per second. The end-to-end workflow converts raw video into time-resolved metrics, supports sex-specific aggregation, and incorporates advanced statistical analyses, including Linear Mixed Effects regression, harmonic mean p-values, and Mann–Whitney U tests. Relative to manual scoring, this automated pipeline yields 2.8-fold faster processing and about 800-fold higher data density. Application of the platform uncovered reproducible phenotypes of multiple genotypes. For example, in circadian Clockᴼᵘᵗ mutation, males displayed progressive climbing deficits with age, whereas females-maintained age-resilient trajectories. Moreover, male Clockᴼᵘᵗ exhibited a reduced locomotor performance compared to age-matched control ( w 1118 ) males, however, female Clockᴼᵘᵗ showed subtle reduction in locomotor performance. Additionally, glial-specific knockdown of PolG , encoding the DNA polymerase gamma catalytic subunit, revealed striking sex-dimorphic aging patterns: females outperformed controls at older age in Glaz driven and at younger age in Elav driven, while males exhibited some marked decline. To promote broad adoption, a user-friendly Python interface (Tkinter GUI) enables accessibility independent of computational expertise. Collectively, this standardized, high-throughput framework advances the resolution of genotype-, age-, and sex-dependent locomotor dynamics, offering new opportunities in aging, circadian biology, and neurodegeneration research. Biological sciences/Biological techniques Biological sciences/Computational biology and bioinformatics Biological sciences/Neuroscience Computer vision pipeline Deep learning–based segmentation Automated locomotor analysis High-throughput behavioral phenotyping Drosophila Model Full Text Additional Declarations No competing interests reported. Supplementary Files SIMachineLearningDrosophilaLocomotorAssay.pdf Cite Share Download PDF Status: Under Revision Version 1 posted Editorial decision: Revision requested 01 Apr, 2026 Reviews received at journal 29 Mar, 2026 Reviews received at journal 29 Mar, 2026 Reviews received at journal 10 Mar, 2026 Reviewers agreed at journal 07 Mar, 2026 Reviewers agreed at journal 06 Mar, 2026 Reviewers agreed at journal 05 Mar, 2026 Reviews received at journal 23 Feb, 2026 Reviewers agreed at journal 13 Feb, 2026 Reviewers invited by journal 09 Feb, 2026 Editor assigned by journal 09 Feb, 2026 Editor invited by journal 09 Feb, 2026 Submission checks completed at journal 08 Feb, 2026 First submitted to journal 08 Feb, 2026 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-8769384","acceptedTermsAndConditions":true,"allowDirectSubmit":false,"archivedVersions":[],"articleType":"Article","associatedPublications":[],"authors":[{"id":588760175,"identity":"c098410d-a4ba-4450-be4f-d384293c423b","order_by":0,"name":"Dave Melkani","email":"","orcid":"","institution":"University of Alabama at Birmingham","correspondingAuthor":false,"prefix":"","firstName":"Dave","middleName":"","lastName":"Melkani","suffix":""},{"id":588760176,"identity":"94e77e5b-039f-4d01-aa7a-c62aab9171c8","order_by":1,"name":"Neelaksh Harnwal","email":"","orcid":"","institution":"University of Alabama at Birmingham","correspondingAuthor":false,"prefix":"","firstName":"Neelaksh","middleName":"","lastName":"Harnwal","suffix":""},{"id":588760177,"identity":"4506a02c-e792-44a4-be2c-db1dba8469a1","order_by":2,"name":"Shubhankar Desai","email":"","orcid":"","institution":"University of Alabama at Birmingham","correspondingAuthor":false,"prefix":"","firstName":"Shubhankar","middleName":"","lastName":"Desai","suffix":""},{"id":588760178,"identity":"8e454942-bfe2-4788-8606-3544536031b9","order_by":3,"name":"Dev Patel","email":"","orcid":"","institution":"University of Alabama at Birmingham","correspondingAuthor":false,"prefix":"","firstName":"Dev","middleName":"","lastName":"Patel","suffix":""},{"id":588760182,"identity":"013b4768-9777-49ac-b687-13e63b173e92","order_by":4,"name":"Girish Melkani","email":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAAyAQMAAABI0h/eAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAA/ElEQVRIiWNgGAWjYDACZgaGA4wNDAx8PEBOQgUDgwFYmI0ILWxgLWeI0QICcC2MbURokXfnfXjw545tcmw8h589eDjvsLy52OEHDB/KDuPUYniY3eAw75nbxmy8beYGidsOG+6cnWbAOOMcHi3NbAyHGdtuJ7bxM5hJALUwbridw8DM24Zfy8Gfbbfr2/jZv0kkzjlsD9byF48WeWY2hgO8bbcT2Hh7gLY0HE4Ea2HEo8UAqOUwUIthG8+ZMomEY+nJIL8c7DmXjtuW/mPMH4EOk+fnSd8m+aPG2na7dPLDBz/KrHHbcgCbKFZBuC0N+GRHwSgYBaNgFIAAAKjKV35csaygAAAAAElFTkSuQmCC","orcid":"","institution":"University of Alabama at Birmingham","correspondingAuthor":true,"prefix":"","firstName":"Girish","middleName":"","lastName":"Melkani","suffix":""}],"badges":[],"createdAt":"2026-02-02 23:38:15","currentVersionCode":1,"declarations":"","doi":"10.21203/rs.3.rs-8769384/v1","doiUrl":"https://doi.org/10.21203/rs.3.rs-8769384/v1","draftVersion":[],"editorialEvents":[],"editorialNote":"","failedWorkflow":false,"files":[{"id":102745926,"identity":"9a48220c-2b63-48ff-9c46-539fd7e41831","added_by":"auto","created_at":"2026-02-16 08:54:44","extension":"pdf","order_by":1,"title":"","display":"","copyAsset":false,"role":"manuscript-pdf","size":1373080,"visible":true,"origin":"","legend":"","description":"","filename":"RevisedTrackChangeManuscriptMachineLearningDrosophilaLocomotorAssay.pdf","url":"https://assets-eu.researchsquare.com/files/rs-8769384/v1_covered_49567724-e00d-4083-ab5e-8525eef32f3e.pdf"},{"id":102460731,"identity":"903e7f1a-2d61-4db8-bcff-e2a96979b9b3","added_by":"auto","created_at":"2026-02-11 23:46:15","extension":"pdf","order_by":0,"title":"","display":"","copyAsset":false,"role":"supplement","size":2099569,"visible":true,"origin":"","legend":"","description":"","filename":"SIMachineLearningDrosophilaLocomotorAssay.pdf","url":"https://assets-eu.researchsquare.com/files/rs-8769384/v1/3a923d0ee614b50cec32267f.pdf"}],"financialInterests":"No competing interests reported.","formattedTitle":"Design and Implementation of an Automated Drosophila Locomotor Assay Using Computer Vision Tracking","fulltext":[],"fulltextSource":"","fullText":"","funders":[],"hasAdminPriorityOnWorkflow":false,"hasManuscriptDocX":false,"hasOptedInToPreprint":true,"hasPassedJournalQc":"","hasAnyPriority":false,"hideJournal":false,"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":"scientific-reports","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":false,"externalIdentity":"scirep","sideBox":"Learn more about [Scientific Reports](http://www.nature.com/srep/)","snPcode":"","submissionUrl":"","title":"Scientific Reports","twitterHandle":"","acdcEnabled":true,"dfaEnabled":true,"editorialSystem":"stoa","reportingPortfolio":"Scientific Reports","inReviewEnabled":true,"inReviewRevisionsEnabled":true},"keywords":"Computer vision pipeline, Deep learning–based segmentation, Automated locomotor analysis, High-throughput behavioral phenotyping, Drosophila Model","lastPublishedDoi":"10.21203/rs.3.rs-8769384/v1","lastPublishedDoiUrl":"https://doi.org/10.21203/rs.3.rs-8769384/v1","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"manuscriptAbstract":"\u003cp\u003e \u003cem\u003eDrosophila\u003c/em\u003e has long served as a powerful model for investigating locomotor behavior, using geotaxis assays to generate valuable insights into genetics, aging, and neurobiology. Nonetheless, mostly their use can be constrained by subjective scoring, modest thought, and challenges in reproducibility. We developed and validated an integrated hardware\u0026ndash;software platform that enables automated, high-resolution locomotor analysis across 12 vials in parallel. The system integrates 3D-printed mechanical components, Raspberry Pi\u0026ndash;based video acquisition, and programmable environmental controls to ensure standardized conditions. A deep learning pipeline segments vials with near-perfect accuracy (IoU\u0026thinsp;\u0026gt;\u0026thinsp;0.95), while computer vision algorithms quantify climbing trajectories, velocity, and positional zone occupancy at 60 frames per second. The end-to-end workflow converts raw video into time-resolved metrics, supports sex-specific aggregation, and incorporates advanced statistical analyses, including Linear Mixed Effects regression, harmonic mean p-values, and Mann\u0026ndash;Whitney U tests. Relative to manual scoring, this automated pipeline yields 2.8-fold faster processing and about 800-fold higher data density. Application of the platform uncovered reproducible phenotypes of multiple genotypes. For example, in circadian \u003cem\u003eClockᴼᵘᵗ\u003c/em\u003e mutation, males displayed progressive climbing deficits with age, whereas females-maintained age-resilient trajectories. Moreover, male \u003cem\u003eClockᴼᵘᵗ\u003c/em\u003e exhibited a reduced locomotor performance compared to age-matched control (\u003cem\u003ew\u003c/em\u003e\u003csup\u003e\u003cem\u003e1118\u003c/em\u003e\u003c/sup\u003e) males, however, female \u003cem\u003eClockᴼᵘᵗ\u003c/em\u003e showed subtle reduction in locomotor performance. Additionally, glial-specific knockdown of \u003cem\u003ePolG\u003c/em\u003e, encoding the DNA polymerase gamma catalytic subunit, revealed striking sex-dimorphic aging patterns: females outperformed controls at older age in Glaz driven and at younger age in Elav driven, while males exhibited some marked decline. To promote broad adoption, a user-friendly Python interface (Tkinter GUI) enables accessibility independent of computational expertise. Collectively, this standardized, high-throughput framework advances the resolution of genotype-, age-, and sex-dependent locomotor dynamics, offering new opportunities in aging, circadian biology, and neurodegeneration research.\u003c/p\u003e","manuscriptTitle":"Design and Implementation of an Automated Drosophila Locomotor Assay Using Computer Vision Tracking","msid":"","msnumber":"","nonDraftVersions":[{"code":1,"date":"2026-02-11 23:46:10","doi":"10.21203/rs.3.rs-8769384/v1","editorialEvents":[{"type":"communityComments","content":0},{"type":"decision","content":"Revision requested","date":"2026-04-01T08:14:25+00:00","index":"","fulltext":""},{"type":"editorInvitedReview","content":"","date":"2026-03-29T21:50:41+00:00","index":"hide","fulltext":""},{"type":"editorInvitedReview","content":"","date":"2026-03-29T12:19:49+00:00","index":"hide","fulltext":""},{"type":"editorInvitedReview","content":"","date":"2026-03-10T15:55:36+00:00","index":"hide","fulltext":""},{"type":"reviewerAgreed","content":"243336361284168891451309626137222266415","date":"2026-03-07T20:43:31+00:00","index":"hide","fulltext":""},{"type":"reviewerAgreed","content":"268919133736407256951558008840576141701","date":"2026-03-06T08:29:49+00:00","index":"hide","fulltext":""},{"type":"reviewerAgreed","content":"165780043334394274481070585229549629041","date":"2026-03-05T17:17:12+00:00","index":"hide","fulltext":""},{"type":"editorInvitedReview","content":"","date":"2026-02-23T22:11:58+00:00","index":"hide","fulltext":""},{"type":"reviewerAgreed","content":"85491689512861341691965446628814777179","date":"2026-02-13T15:58:42+00:00","index":"hide","fulltext":""},{"type":"reviewersInvited","content":"","date":"2026-02-09T16:06:29+00:00","index":"","fulltext":""},{"type":"editorAssigned","content":"","date":"2026-02-09T15:52:14+00:00","index":"","fulltext":""},{"type":"editorInvited","content":"","date":"2026-02-09T15:34:05+00:00","index":"","fulltext":""},{"type":"checksComplete","content":"","date":"2026-02-08T22:53:41+00:00","index":"","fulltext":""},{"type":"submitted","content":"Scientific Reports","date":"2026-02-08T22:47:06+00:00","index":"","fulltext":""}],"status":"published","journal":{"display":true,"email":"
[email protected]","identity":"scientific-reports","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":false,"externalIdentity":"scirep","sideBox":"Learn more about [Scientific Reports](http://www.nature.com/srep/)","snPcode":"","submissionUrl":"","title":"Scientific Reports","twitterHandle":"","acdcEnabled":true,"dfaEnabled":true,"editorialSystem":"stoa","reportingPortfolio":"Scientific Reports","inReviewEnabled":true,"inReviewRevisionsEnabled":true}}],"origin":"","ownerIdentity":"c819b079-6d77-422a-a5f6-ac500745ffb5","owner":[],"postedDate":"February 11th, 2026","published":true,"recentEditorialEvents":[],"rejectedJournal":[],"revision":"","amendment":"","status":"in-revision","subjectAreas":[{"id":62636352,"name":"Biological sciences/Biological techniques"},{"id":62636353,"name":"Biological sciences/Computational biology and bioinformatics"},{"id":62636354,"name":"Biological sciences/Neuroscience"}],"tags":[],"updatedAt":"2026-04-01T08:24:39+00:00","versionOfRecord":[],"versionCreatedAt":"2026-02-11 23:46:10","video":"","vorDoi":"","vorDoiUrl":"","workflowStages":[]},"version":"v1","identity":"rs-8769384","journalConfig":"researchsquare"},"__N_SSP":true},"page":"/article/[identity]/[[...version]]","query":{"redirect":"/article/rs-8769384","identity":"rs-8769384","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.