
A baseball's seams decide a lot about how a pitch moves, but radar cannot see them. At Driveline Baseball we built a computer vision pipeline that can: high-speed cameras capture the ball out of the pitcher's hand at 1,000 frames per second, a fine-tuned SAM3 segmentation model finds the ball and its seams, and the known geometry of a baseball turns those 2D masks into a 3D orientation, spin rate, and spin axis. From there we predict how the pitch will move, using video alone.
This talk walks through the whole build: bootstrapping a dataset from 800 hand-annotated images, letting each model pre-label the training data for the next one, and the unglamorous optimization work that took inference from over a minute per video to about five seconds on an 8 GB GPU (dropping the text encoder, a multi-GPU worker queue, a cheap detector gating an expensive one, and fixes that had nothing to do with code, like lighting and lenses). I will also cover where the model alone is not enough and physics has to break the tie, plus a quick tour of our other vision work: optical ball tracking, bat tracking, and markerless motion capture.
No baseball knowledge required. I am also happy to take questions on anything else we do at Driveline, including our MCP server setup for internal AI agents, database design, the in-house BI tool we use to evaluate MLB players, or general baseball analytics.
Sam Ehrlich is the Baseball Operations Technical Lead at Driveline Baseball, where he builds the computer vision pipelines, pitch models, and data tools used by Driveline's trainers and professional clients. He is the creator of Driveline's in-house BI platform for evaluating MLB players. Sam has presented research at SABR, Saberseminar, and Roboflow's Visual Intelligence Summit, and his work on biomechanics and command received SABR's Mike Marshall Biomechanics Research Award. He holds an M.S. in Data Science and Analytics from the University of Missouri, where he also worked as a data analyst for the baseball team.