Article View

Beyond Traditional Baseball Statistics: Explainable Machine Learning for Pitch-Level Outcome Prediction and Batter–Pitcher Matchup Analysis

DOI: 10.66838/ma.263

Amudhan Veeramani Pillai B.Tech CSE (IV year) MIT World Peace University, Pune, India

Abstract

Traditional baseball statistics such as batting average, earned run average and strikeout rate summarise what has already happened over long windows, but they say little about what is likely to happen on the next pitch. This paper studies pitch-level outcome prediction as a five-class supervised learning problem (ball, called strike, swinging strike, foul, ball in play) using the feature schema of Baseball Savant (Statcast) pitch-by-pitch data. Four model families are compared: multinomial logistic regression, Random Forest, XGBoost and a feed-forward neural network. Each is trained on three nested feature sets: (A) pitch physics, location and count; (B) A plus handedness context; and (C) B plus matchup-aware features, which are empirical-Bayes–shrunk, pitch-type-specific batter and pitcher tendencies computed strictly from earlier games. SHapley Additive exPlanations (SHAP) are used to attribute predictions to individual features and to examine how matchup information is used.

Across all four model families, matchup-aware features reduced test log-loss, raised macro-F1 and lifted the one-versus-rest AUC for the swinging-strike class from 0.717 to 0.762 for XGBoost. The XGBoost log-loss improvement of 0.018 nats per pitch had a 95% bootstrap interval of [0.016, 0.020]. Feature-group ablations show that batter-side contact and chase tendencies and batter pitch-type vulnerability carry most of the added value, whereas pitcher-side aggregates add little once pitch physics are known. SHAP shows that location relative to the strike zone dominates every class, and that the matchup expectation is the leading non-geometric driver of swinging strikes. Important disclosure: the experiments here were run on a simulated dataset that reproduces the Statcast column schema, because live access to Baseball Savant was unavailable when the study was executed. The reported numbers therefore demonstrate the methodology and its behaviour under known ground truth; they are not empirical claims about Major League Baseball, and the accompanying protocol is designed to be re-run unchanged on real Savant exports.

Keywords

sports analytics, Statcast, pitch outcome prediction, XGBoost, Random Forest, neural networks, SHAP, explainable AI, batter–pitcher matchup,