AI Optimizes Baseball Pitch Sequences, Boosting Season Performance

Ryota Takamido, Hiroki Nakamoto· June 17, 2026 View original

Summary

This study uses counterfactual analysis with a Transformer-based model to optimize baseball pitch sequences, examining the impact of both final and setup pitches on season-level statistics. The research suggests that optimizing pitch selection can substantially improve pitcher performance, including significant increases in strikeout rates.

While baseball analytics often focuses on optimizing the final pitch in an at-bat, the broader impact of entire pitch sequences, including preceding setup pitches, on long-term season performance has been less explored. This research addresses this gap using counterfactual analyses on MLB Statcast data. A Transformer-based machine learning model was trained to predict the outcome of a pitch, specifically whether it would result in an in-play outcome or a swing-and-miss. Counterfactual pitch sequences were then generated by altering either the final pitch or a setup pitch, keeping other contextual factors constant. Optimal counterfactual selections were defined as those minimizing the predicted in-play probability. The study estimated the expected effects of these optimizations on pitchers' seasonal statistics, finding that optimizing both final and setup pitches could lead to substantial improvements, such as an increase of over 1.0 in K/9 (strikeouts per nine innings). The findings also offer practical insights into effective pitch locations, the importance of command, and expanding pitch selection options.

Why it matters

For sports analytics professionals, coaches, and teams, this research provides a data-driven methodology to strategically optimize pitch sequencing, potentially leading to significant improvements in pitcher performance and team success.

How to implement this in your domain

  1. 1Integrate Transformer-based models into existing baseball analytics platforms for pitch sequence optimization.
  2. 2Develop tools for coaches and pitchers to visualize and understand optimal counterfactual pitch sequences.
  3. 3Train pitchers on specific velocity-band-specific effective locations and pitch commands identified by the model.
  4. 4Analyze team-level pitching strategies to identify opportunities for incorporating middle-velocity pitches more effectively.

Who benefits

Sports AnalyticsProfessional SportsMedia & EntertainmentData Science

Key takeaways

  • Optimizing entire pitch sequences, not just final pitches, significantly impacts season performance.
  • A Transformer model can predict pitch outcomes and identify optimal counterfactual sequences.
  • Pitch optimization can lead to substantial improvements in statistics like K/9.
  • Insights include effective locations, pitch command, and expanding pitch selection.

Original post by Ryota Takamido, Hiroki Nakamoto

"arXiv:2606.17345v1 Announce Type: new Abstract: Although pitch sequencing is a central topic in baseball analytics, previous studies have primarily focused on optimizing the final pitch within a single plate appearance, leaving the role of preceding setup pitches and their impact…"

View on X

Originally posted by Ryota Takamido, Hiroki Nakamoto on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses