Preparing seekable video…
Jump to a chapter
The full prototype walkthrough covering motivation, mechanics, electronics, software, AI/ML, testing, and integration.
Built an autonomous system that identifies, sorts, and evaluates fruit flies for genetics research. Integrated computer vision, embedded controls, and custom hardware to achieve ~97% classification accuracy, earning Clemson’s People’s Choice Award with a cross-functional group of 7 people.

Project record
Together, the video, presentation, and final report document the system architecture, mechanical and electrical design, software stack, integration tests, and results.
Preparing seekable video…
The full prototype walkthrough covering motivation, mechanics, electronics, software, AI/ML, testing, and integration.
The latest team-authored design record, including requirements, subsystem decisions, implementation, testing, integration architecture, and results.
The team’s project-review deck covers the workflow, 3D-printed hardware, PCB and wiring, GUI, computer vision, testing, reported results, and next steps.
The project culminated in a physical prototype, technical poster, and People’s Choice recognition at Clemson’s Senior Design II Showcase.



02 · Research impact
The platform links preparation, classification, behavioral measurement, and research outputs in one traceable path.
Hover, focus, or select a stage.

A typical source vial held roughly 40–50 flies that had to be sedated, separated, counted, and transferred into clean vials.
The channel constrains the group, the overhead camera localizes candidates, and the gantry with vacuum pickup moves flies through a controlled path.
A coordinate-linked transfer workflow is designed to reduce repeated handling and make each motion step measurable, reviewable, and easier to improve.
Three calibrated imaging stations
Channel detection + millimeter mapping
Hybrid ML, gantry, vacuum handling
Tracking, video, CSV, summaries, reports
Raspberry Pi 5 supervisory compute · single-axis gantry · vacuum pickup · vibration-assisted handling · motors, sensors, and custom electronics
Inside the system
Three camera views, Raspberry Pi compute, computer vision, machine learning, motion, vacuum handling, behavioral tracking, and an operator interface were integrated into one coordinated prototype workflow.
Hover, focus, or tap a stage to inspect its hardware, specifications, and project visuals.

Sedated flies enter a CO₂-supported channel with geometry designed to separate them for pickup.
>97%sexing accuracy · YOLO test · 45/46
YOLO supplied a learned class prediction and confidence. An image-segmentation branch supplied 28 interpretable morphology features. A Random Forest fused those with YOLO class and confidence, while the wider workflow retained an uncertain route.
The >97% sexing result comes from a focused YOLO test (45/46). The separate hybrid model measured 94.2% test accuracy on an 80/20 split of a 1,000-image mixed dataset.
Calibration view ↗The first perception stage turns a live camera frame into physical pickup coordinates—not just bounding boxes.
Fly count, ordered positions, annotated image, binary mask, and structured detection data.
Prediction review grid ↗The classifier combines learned visual features with interpretable morphology to produce a reviewable decision.
A reviewable class decision tied to a specific imaging setup and evaluation protocol.
The assay stage translates calibrated multi-vial video into track-level and vial-level behavioral measurements.
Position, distance, speed, velocity, threshold crossings, annotated video, and per-vial summaries.
Results + report viewer ↗The software preserves intermediate evidence so operators can inspect how each result was produced.
CSV, SQLite, JSON metadata, annotated media, summaries, and PDF reports.
Assembled physical prototype ↗A Raspberry Pi 5 supervised the cameras and machine state while custom electronics connected perception to physical handling.
A physical prototype that connected vision performance to real-world motion, alignment, airflow, and handling reliability.
Explore the electrical, mechanical, computer-vision, and data interfaces that connected the prototype end to end.

The custom KiCad board organizes Raspberry Pi GPIO, motor-driver interfaces, actuator power and control, and limit-switch inputs.
Project archive · PCB design
The schematic maps Raspberry Pi GPIO, TMC2208 stepper interfaces, vacuum and vibration motor drivers, power, and limit-switch connections.
Project archive · core PCB schematic
The exploded assembly shows the modular three-section table—channel, sexing and imaging station, and climbing-assay hardware—with independently replaceable printed parts.
Final report · pp. 6–8
This prototype iteration shows the printed channel and modular table section beside the belt-driven linear gantry hardware.
Final report · pp. 8–9
The calibration view exposes the channel-localization pipeline: reference capture, region setup, image processing, and physical position mapping.
Final report · pp. 9–10
The assay workspace converts calibrated vial video into inspectable tracks and behavioral measurements.
Final report · pp. 12–13
The data and GUI layer brings configuration, assay outputs, annotated media, and researcher-readable reports into one review workflow.
Final report · p. 17
The prediction grid enabled image-by-image review of model output and recurring failure cases.
Final report · pp. 14–16The team designed a custom KiCad PCB to simplify system wiring, organizing Raspberry Pi 5 GPIO, stepper- and DC-motor driver interfaces, 12 V power input, actuator terminals, and limit-switch connections.
Open full size ↗The assembled view shows the Pi header, driver sockets, power terminals, actuator connections, limit-switch headers, and board-level routing in one frame.
Hover, focus, or tap a camera to locate its station on the prototype.


Two short project clips show the gantry-vacuum mechanism at different scales: the full travel path and a close-up at the illuminated pickup area.
This 10-second project output shows calibrated vial regions, per-fly boxes and identifiers, coordinates, a threshold line, and frame-level counts.
Bottlenecks + iterations
The most useful lessons came from isolating a failure, changing one physical or computational assumption, and testing the stage again.
Hover, focus, or tap an engineering challenge to inspect the design response and evidence.
A correct prediction still fails the experiment when the channel, nozzle, camera, and motion system disagree on where the fly is.
Core integration lesson
Evaluation results
The project evaluated sex classification, hybrid fusion, and the physical movement sequence under separate protocols.
Hover, focus, or tap a result to see how it was evaluated.

Clemson Senior Design II Showcase · April 2026
Limits and next iteration
Approximately four flies per minute was a design target, not a verified sustained end-to-end result.
Lighting, focus, angle, and camera setup could move performance away from results measured on saved-image evaluations.
A correct coordinate could still fail because of nozzle height, alignment, airflow, channel geometry, or motion error.
Vial edges, overlapping flies, lighting changes, and camera constraints could create false detections or broken tracks.
The prototype was designed for senior-design validation, not routine laboratory deployment.
Expand the evaluation dataset, label failures by stage, and run complete cycles under a fixed protocol.
Seven-person Clemson University senior-design team · Institute for Human Genetics sponsor · Spring 2026.