Pitch Quality Modeling: Controlling for Bat Path and Applying Results to Matchup Decisions

Authors

Carla M. Martínez Santiago

Vivian Du

Published

July 24, 2026


Introduction

Every pitch a pitcher throws carries some expected cost or benefit to the defense, shaped jointly by the pitch itself (velocity, movement, location, sequencing) and by the hitter standing in the box. Public “Stuff+”-style models have made real progress at isolating the pitch-quality signal, but most of them treat the batter as a fixed, generic obstacle: the same slider gets the same grade whether it is thrown to a hitter who covers the bottom of the zone easily or one who is vulnerable there. The arrival of Statcast bat-tracking data (bat speed, swing length, attack angle, and related swing-path metrics) creates an opportunity to move past that simplification and ask a sharper question: how much of a pitch’s expected run value (ERV) depends on the specific bat path of the hitter facing it, and can that information be turned into decisions a team can actually use, namely who should pitch to whom, and how?

This project has two goals:

  • First, we attempt to build and validate a pitch-level model of ERV that incorporates pitch tracking, game context, and bat-tracking information, and test explicitly whether the bat-tracking variables add predictive power when standard pitch characteristics are already accounted for.
  • A downstream application of our model is to translate it into a decision-facing tool that supports a concrete in-game or game-planning question. For example, the model may be useful for identifying a batter’s vulnerabilities by pitch type, count, and plate location, or evaluating which reliever profile best matches an upcoming sequence of hitters. In addition to creating another pitch-quality metric, we critically evaluate its uncertainty and limitations so as to provide actionable insights for match-up decisions in the future.

Data

The data are provided as three linked files. The pitch-by-pitch table is the core of the analysis and contains pitch characteristics such as pitch type, release speed, spin rate, and horizontal and vertical break, along with release-point information, plate location, swing and bat-tracking metrics, and the run value outcome for each pitch.

  • Pitch context: season, game date, pitcher ID/name/handedness, batter ID/name/handedness, number of balls in the count, number of strikes in the count, number of outs in the inning up until the pitch
  • Pitch traits: pitch type, release speed, spin rate, horizontal/vertical break, release-point information, plate location
  • Bat tracking: bat speed, swing length, attack angle, horizontal bat angle, vertical bat angle
  • Pitch outcomes:
    • If the batter swings:
      • If the ball is in play:
        • If it is a hit: single, double, triple, or home run.
      • If the ball is not in play: swing-and-miss or foul.
    • If the batter does not swing: strike, ball, or hit by pitch

A separate player table provides pitcher and batter identity and handedness, and a third table supplies the run-value scale used to translate pitch outcomes into that run value target.

\text{Observed Run Value (RV)} = \sum_{i=1}^{10} I_i \times w_i,

where I_i \in \{0, 1\} represents the indicator variable for a particular pitch outcome i (e.g., IsSingle, IsCalledBall), and w_i represents its corresponding baseline Run Value weight (e.g., \text{RV}_{\text{Single}}, \text{RV}_{\text{Ball}}) for a given count before the play of the pitch. Due to the way RV is calculated, RV can only take on 120 different possible values. In our data, observed RV contains 105 of those possible values and ranges from -0.4742 to 1.5343. For modeling purposes, we treat RV as a continuous variable.

Methods

Our objective is to predict expected run value (ERV) at the pitch level, while evaluating the contribution of batter-specific swing information to pitch evaluation. Since our tracking data are particularly interacted and non-linear, any generalized linear models would not be appropriate. Therefore, we fitted tree-based machine learning models that incorporated both traditional pitch characteristics and Statcast bat-tracking features.

Because bat-tracking measurements are only available on pitches where the batter swings, missing values were present for non-swing pitches. Rather than removing these observations, bat-tracking values were imputed using player-level performance distributions. This approach preserved all pitch-level observations while estimating the expected swing characteristics based on their observed bat-tracking profile.

Using 10% of all available pitch-level data for 5-fold cross-validation, we fitted XGBoost models on the remaining 2025 season data. The trained models were then evaluated using out-of-sample data from the 2026 season to measure predictive performance on future observations. Four primary model specifications fitted with different sets of variables were considered:

  • Model 0 (baseline): Pitching features only
  • Model 1: Pitch + bat speed
  • Model 2: Pitch + bat speed + swing length
  • Model 3: Pitch + all batting features (including attack angle, horizontal bat angle, and vertical bat angle)

Model performance was assessed by comparing RMSE for the four models. Further, we examined the difference between Model 0 and the Model 1 in their predicted ERV to create a new metric called batter contribution, defined as: \text{Batter Contribution} = \text{Model 1 ERV} − \text{Model 0 ERV} This metric represents the extent to which incorporating bat speed specifically changes the ERV of a pitch. A larger difference indicates that the batter’s bat speed meaningfully influence the predicted outcome of the pitch. By quantifying this contribution, the model provides a framework for identifying matchup-specific advantages and evaluating how batter swing profiles can improve pitch selection and strategic decision-making.

Results

Bat tracking features are important predictors of ERV. An optimal regularization of α = 0 across all models confirms that retaining all features yields the highest predictive power.

When only bat speed is included, higher Batter Contribution tends to be associated with higher observed RV.

Discussion

Since adding bat speed to the pitch-quality model improves predictive performance, we are able to conclude that information about a batter’s swing profile provides meaningful additional context when evaluating pitches. This finding supports the idea that pitch quality cannot be fully understood by considering pitch characteristics alone, as the same pitch may produce different expected outcomes depending on the batter’s ability and approach at the plate.

The relationship between bat-tracking data and model predictions provides insight into the batter’s role in pitch outcomes. Batters with higher bat speeds tended to have a larger influence on model predictions, reflected through greater Batter Contribution values. This suggests that bat-tracking features capture meaningful differences in how individual batters interact with pitches. Incorporating these variables may therefore improve matchup evaluation and provide teams with additional information when making pitching strategy decisions.

Nevertheless, there remains significant room for improvement for our pitch quality model. Although all four models demonstrated generally strong calibration, they struggle to predict pitches with extreme expected run values. These cases represent rare but important events, such as high-impact contact (such as a homerun) or unexpected outcomes, which are inherently difficult for models to capture. Additionally, the model is tasked with learning many complex relationships simultaneously, including interactions among pitch characteristics, batter tendencies, game context, and swing mechanics. Developing separate models by pitch type may improve both predictive performance and interpretability by allowing the model better to capture the unique characteristics of different pitch categories.

Future research can expand upon this work by applying a conditional modeling framework that separates the pitch outcome process into individual components. Rather than predicting ERV directly, future models could estimate conditional probabilities such as the probability of a swing, the probability of contact given a swing, and the probability of a successful offensive outcome given contact. This approach may provide greater interpretability by identifying which stage of the hitting process contributes most to changes in expected value. Additionally, future analysis should investigate the role of horizontal bat angle as a potential predictor, as this measurement may provide further insight into how hitters adjust their swing path relative to pitch location and movement. Overall, this study demonstrates that incorporating batter-specific swing information improves pitch evaluation by accounting for an important component of the pitcher-batter interaction. While additional refinement is needed to improve predictions in extreme cases and increase model interpretability, bat-tracking data provides a valuable opportunity to move beyond generic pitch-quality metrics toward more individualized and actionable matchup analysis.