Beyond cWAR: A Machine-Learning Model to Evaluate College Baseball Players for the Major League Draft
This article was written by Emily Gelchie - Humbert Kilanowski
This article was published in Fall 2026 Baseball Research Journal
A Cape Cod Baseball League game at Doran Park in Bourne, Massachusetts.
INTRODUCTION1
The Cape Cod Baseball League, a summer league for collegiate baseball players in Massachusetts, has for decades been a showcase for the nation’s top amateur talent. Scouts for the major league clubs attend games all summer long, searching for the players that could turn their teams into champions, and an important component of their job is to determine which among the players chosen to compete in the league will be the best available for their teams.
In order to evaluate the players in the league, we developed a Wins Above Replacement metric called cWAR in 2019. Our metric is modified every year, using the average on-field performance of the league’s temporary players that year as the baseline for replacement level, and considering the league’s runscoring environment and park factors as they change from year to year. After analyzing different statistics that can be included in the metric, we settled on using weighted on-base average (wOBA) and weighted runs created as the basis of WAR for batters, and wOBA allowed for pitchers. (Fielding ability remains elusive to measure accurately with the available data.) This model used the play-by-play records from the league to assign a WAR rating to each player who appeared in a league game since 2012, and we tested the strength of each possible model by examining how a player’s WAR from one season compared to his position in the draft the following summer, along with how each team’s aggregate WAR compared to its actual win total.
However, the Cape League season only provides a small sample, consisting of no more than 44 games. Many players who are drafted do not even play that many games, often because they play with a national team or are still competing with their college teams for part of the summer. This results in a weak correlation between WAR and draft position. The earlier rounds of the draft, therefore, consist of players both with high and low WAR values, with the latter case especially occurring for players who did not play a full summer season on the Cape, or who performed better for their college teams in the previous or following spring.
Therefore, we strove to correct this problem by considering a player’s intrinsic skill in addition to his on-field performance. Various measures of such skill became available in the 2022 season, when the Cape League adopted TrackMan cameras to capture the motion of the baseball and of the players on the field. We are now able to consider various measures of a player’s skill, such as exit velocity for batters and spin rate for pitchers (which can be added as variables) along with cWAR, as a model for how a player ought to be ranked in the draft, and that is the goal of our current project. By augmenting our previous cWAR model with data from TrackMan, we produce a more robust model for evaluating college baseball players who play in the Cape Cod Baseball League, using machine learning techniques to predict a player’s draft position the following year.
SUMMARY OF PREVIOUS WORK
Our initial model produced a Wins Above Replacement (WAR) metric for players on Cape Cod, based solely on their on-field performance in the summer.2 This we calculated using play-by-play data from PointStreak software from the 2019 season, with separate formulas for batters and pitchers; sufficient fielding data were not available for the metric, but we did incorporate stolen base events in the metric for batters. For the most part, we followed the algorithm developed by FanGraphs to compute WAR, using weighted on-base average (wOBA) as the basis for batters, and fielding-independent pitching (FIP) for pitchers.3 The former calculation relied on a run expectancy matrix, computed empirically from the season’s data (and smoothed to account for irregularities in the small sample of a short season), from which we found the average run value of each type of outcome (such as an out or a single) to determine the linear weights used in wOBA. For both metrics, for batters and pitchers, we calculated each player’s average runs created or runs allowed, relative to the average temporary player, as the players who saw action only early or late in the season on temporary contracts served as the replacement level in our WAR model. Because WAR is a counting statistic, and we multiplied these relative average rates by the number of plate appearances for each batter or batters faced for each pitcher, the metrics favored players who played the entire Cape League season. All of our calculations were done in R, as it is well suited for handling large data sets and performing statistical evaluations.
Of interest in the original set of data was Nick Gonzales—of New Mexico State University and the Cape League Cotuit Kettleers—earned 3.02 WAR, the highest among any player in the study so far, as he won the league MVP award and now is the starting third baseman and for the Pittsburgh Pirates. Also of interest was Brandon Pfaadt of Bellarmine University (a Division II school at the time) and the Wareham Gatemen, who ranked fifth among pitchers despite not being named to the All-Star or All-League teams. He became an important pitcher in the Arizona Diamondbacks’ run to the 2023 World Series. This indicates that the cWAR metric can be effective in identifying players from smaller colleges who will find success in the major leagues.
In the following years, we sought to improve on this model, both to make the calculations more objective, so that players from different teams and positions could be compared more fairly, and also to improve on the correlation between a player’s WAR and his rank in the major league draft, making changes to the model annually. For the purposes of this study, we limited these correlations to players who were drafted the year after playing on the Cape in order to measure the effect of scouting Cape League players more uniformly. Our first change to the metric was to use wOBA allowed, rather than FIP, as the main rate statistic on which pitchers’ WAR was to be based; we also considered runs allowed per nine innings (RA9) and skill-interactive ERA (SIERA), but wOBA allowed provided the best fit. Next, we calculated park factors for each team, and adjusted each batter’s and pitcher’s rate statistic accordingly. This is particularly important for Cape League data because the dimensions of the fields vary wildly throughout the league, from the short fences at Yarmouth-Dennis to the deeper power alleys at Harwich. Additionally, we calculated a positional adjustment to the batters’ WAR model, so that players could be compared more objectively to those of the same position, as scouts often look for the best player available at each position on the field. We published this model, and it serves as the base model for this current study, as it shows that cWAR (in 2021) correlates with draft position (in 2022) with a Spearman correlation coefficient of -0.3861 for batters and -0.2034 for pitchers.4
However, the correlations between cWAR and draft position remained weak, as the only data we provided came from the small sample of on-field performance in a short summer season. Therefore, the current study aims to improve on the predictive power of the model further by incorporating more data, namely, the position and velocity of the ball in play as captured by the TrackMan cameras and software. This additional set of data enables us to extract and use other variables that measure a player’s intrinsic skill to throw or hit the baseball, to provide a fuller picture of each player so that scouts can evaluate and rank him more precisely.
INCORPORATING NEW DATA
Beginning with the 2022 season, the Cape League installed a TrackMan camera system at all ten ballparks. This technology opens up a wealth of new data about the game and players, and from its extensive output, we can extract several metrics for each player’s ability that complement his on-field performance (as summarized in WAR). This is particularly important as scouts aim to evaluate each player’s natural ability, which does not always translate directly into results in the game with a small sample size; for example, a batter may have the league’s highest mean exit velocity on batted balls, but may often hit line drives that are caught by a fielder, or play in a home park with a deep outfield fence, so that his batting average and home run total are diminished.
From the TrackMan data we derived the following variables. First, for batters, is the mean exit velocity on batted balls. A proportional statistic, “WhiffRate,” measures the fraction of all pitches that count as strikes (including balls hit in play) on which the batter swings and misses, and this is calculated for both batters and pitchers. For each batter, a “ChaseRate” was computed to measure how often a batter swung at a pitch that was outside the strike zone, determined by the rectangle around home plate containing 95% of called strikes. For each pitcher, we also calculated the “First-StrikeRate” or proportion of times the pitcher threw a strike on the first pitch to each batter, as well as the mean velocity and spin rate for both fastballs and curveballs; finally, we counted the number of different pitch types each pitcher threw during the season.
A critical computational task was deriving the “isBarrel” binary variable for each batted ball, which was defined by strict criteria based on exit velocity and launch angle. This variable identifies a “barrel” when the exit speed exceeds 97.5 mph, and the launch angle falls within an optimal range determined by the speed. The data set was categorized by pitch outcomes, enabling targeted analysis of specific data subsets. Further filtering excluded pitches unlikely to contribute to player evaluation, such as pitchouts and intentional balls, and aligned pitch and hit locations with the aforementioned normalized strike zone. The following plots show (1) all batted balls in play organized by launch angle and exit velocity, with barrels (consisting of about 1% of balls in play) in black; and (2) all pitched balls on which the batter did not swing, with called strikes in black and called balls in gray. All data are taken from the 2022 Cape League season.
The most difficult task of this study was the process of data cleaning, because we had to merge two data sets, both of which identified each pitch or non-pitchedball event (such as a pickoff attempt) by the pitcher and batter at the time of the play. Since the two sources formatted each player’s name differently, we had to isolate both the first and last names of each player, sometimes equating a player’s given name and nickname. Once we accomplished this, we were able to connect both sets of information to each play and then group them by each batter or pitcher.
The objective of this study, therefore, is to predict the major league draft for one year based on the players’ data (both on-field with PointStreak, and skill-based through TrackMan) from the previous year. Therefore, our model was trained on the Cape League game data from the 2022 season and the results of the major league draft from 2023, then tested on the game data from 2023 to predict the draft of 2024. After the draft occurred in July, we were then able to measure the accuracy of our predictions.
Figure 1. Launch Angle vs. Exit Velocity for Balls in Play in the Cape Cod Baseball League, 2022, with Batted Balls Classified as “Barrels” in Black
Figure 2. Vertical and Horizontal Components of Pitch Location from the Cape Cod Baseball League, 2022, with Called Strikes in Black and Called Balls in Gray
MODEL BUILDING AND TESTING
The feature engineering process enhances the model’s ability to predict player potential in the CCBL. As previously mentioned, key features include isBarrel for impactful hits, MeanEV for average exit velocity, BarrelRate for hitting quality, WhiffRate for pitchers’ ability to deceive batters, FirstStrikeRate for early count advantage, and PitchTypes for pitch diversity. Specific performance metrics for pitch types assess pitch effectiveness, such as FBSpeed and FBSpin for fastballs and CBSpeed and CBSpin for curveballs. Catcher framing is quantitatively evaluated using a generalized additive model (GAM) that predicts strike likelihood based
on location, adjusting for individual catcher’s influence on umpire calls. While this did assign a run value to each catcher, providing a useful defensive metric that has recently emerged as a means of evaluating players at this important position, we found that the sample was too small to include in our model, as only a few full-time catchers were found in the pool of drafted players.5 Similarly, even with TrackMan, the dearth of data on fielder positioning and shifting made it too difficult to measure an objective metric for fielders such as Defensive Runs Saved or Outs Above Average that are used in the majors.
Our statistical modeling and analysis now focus on robustly evaluating CCBL player contributions using predictive models, emphasizing the WAR metric as previously calculated from PointStreak play-by-play data. Linear regression models establish baseline relationships, and advanced machine learning techniques like ridge regression, lasso, and random forests enhance predictive accuracy and manage multicollinearity among predictors. Model parameters are tuned using cross-validation techniques, such as Leave-One-Out Cross-Validation (LOOCV) and k-fold cross-validation.6
To improve the predictive power of draft position models, we incorporated machine learning techniques alongside traditional statistical methods. Initially, we used linear regression as a baseline model, leveraging its simplicity and interpretability. However, this approach was limited by multicollinearity among predictors such as WhiffRate and FirstStrikeRate, which diminished the robustness of predictions. To address this issue, we implemented regularized regression techniques, including ridge regression and lasso regression. These methods apply penalties to large coefficients, with lasso also performing feature selection by shrinking less significant predictors to zero. Cross-validation, as before, determined optimal regularization parameters, with ridge regression performing slightly better due to the multivariate nature of the data.
To capture nonlinear interactions and improve prediction accuracy, we employed random forest regression, an ensemble method that builds multiple decision trees on random subsets of the data and features. This model highlighted the importance of TrackMan metrics such as ExitVelocity and BarrelRate, which emerged as strong predictors of draft position. Despite its robustness, random forest showed a tendency to overfit, particularly when TrackMan data were sparse. We also explored gradient boosting machines (GBMs), which iteratively optimize a loss function by focusing on underperforming samples. GBMs demonstrated improved accuracy for middle-tier draft predictions but struggled with extreme outliers, likely due to the limited sample size of high- and low-draft picks. The main takeaway from this phase of the study was identifying which of the many variables were the most significant in affecting the response variable, the rank or position in which each player was drafted, as this function is built into the “randomForest” package in R. Of the variables we included in the model for batters, MeanEV (the player’s average exit velocity on balls in play) had the highest importance, scaled as 100%, while WAR was above 90%, and all others were below 80%. For pitchers, the most important variables were WhiffRate at 100%, as well as WAR, FirstStrikeRate, and FBSpeed (when considering three WAR models at once). Therefore, we decided to include only these variables, with importance over 80%, in the final linear multivariate model for each group of player. The following charts show the relative importance of each variable included in our models, both for batters and for pitchers, as measured by the random forest algorithm. Notice that some variables have very low importance, for example, BarrelRate for batters, because it depends greatly on exit velocity.
When two other WAR models were considered, FBSpeed showed a higher importance than First-StrikeRate (which was below 80%), so both of these variables were included in the final model.
THE FINAL MODEL
Our findings indicated that the linear regression model provided the best fit for our data set, determined through comprehensive evaluation metrics comparing model performance in predicting MLB draft outcomes based on CCBL player performance metrics. However, both pitching and hitting models exhibited overfitting, influenced especially by the WhiffRate variable for pitchers. The models effectively identified middle-tier draft prospects but needed more granularity to predict higher or lower draft positions accurately. This limitation highlights the need for further refinement, including additional predictors, exploring interaction effects, or more sophisticated machine-learning techniques. The following tables show the top ten batters and pitchers from the 2023 CCBL season who were drafted in 2024, as predicted by the final model, along with their actual draft positions. The size of the data sets of Cape League players from 2023 who were drafted in 2024 is 75 batters and 45 pitchers.
Table 1. Top ten batters and top ten pitchers from the 2023 Cape Cod Baseball League season, as predicted by the model, with their cWAR values and actual picks in the 2024 MLB Draft.
Our final step was to evaluate the accuracy of the models, including our best version of cWAR and the final linear multivariate model, with a simple feedforward neural network with three hidden layers and dropout regularization to mitigate overfitting. While neural networks hold promise for future iterations, their performance was constrained by the relatively small size of our dataset, making ensemble models like random forests and GBMs more effective in this context. Model performance was evaluated using mean absolute error (MAE) and root mean square error (RMSE), with the random forest model achieving the best results: an MAE of 131 and RMSE of 153 for batters, and an MAE of 122 and RMSE of 150 for pitchers, corresponding to predictions that are off by four or five rounds of the draft on average. While this is certainly a large error for a 20-round draft, the models are still fairly accurate given the short season and small pool of players, and training the models on multiple seasons may well reduce the size of the errors.
The following table shows the Spearman correlation coefficients (chosen because the variables are rank values) for the response variable and the actual draft position for each of four models (WAR alone, linear with all variables, random forest, and linear with only the most important variables) along with their corresponding error values. Note that the correlation coefficients are negative for WAR, since a higher WAR corresponds to a lower-numbered draft position, but the predicted and actual draft positions are positively correlated. The table shows that adding the TrackMan data gives a marked improvement in the correlation between predicted and actual draft pick, beyond what cWAR alone can do, although no such improvement occurs in the error metrics, although the final linear model is more accurate than the base model.
Table 2. Accuracy of each model for batters and pitchers, measured by Spearman correlation coefficient, root mean-square error, and mean absolute error.
FUTURE CONSIDERATIONS
The main challenge that arose during our study was overfitting of the model to the training set. This is particularly due to the introduction of a pitch clock between the 2022 and 2023 seasons, which altered player performance dynamics, namely, the run-scoring environment increased severely from 0.47 runs per inning to 0.61 from one year to the next. To mitigate this, future iterations of the model will focus on training and testing exclusively on post-rule-change datasets. The next logical step would be to use our existing data (the 2023 Cape League season and 2024 draft) as the training set, and then make a test set out of the 2024 Cape League data to predict the 2025 draft, and see if this improves on the fit. While the league changed its play-by-play software from PointStreak to MLB GameDay in 2024, we now have two full seasons under the new system that can be used to train the models and then make predictions for the 2027 draft using 2026 data.
Additionally, future efforts will incorporate advanced features, such as defensive metrics, and explore more sophisticated machine learning architectures like recurrent neural networks or transformers to capture temporal dependencies in player performance better. One such feature, on which we have already begun working, is a Stuff+ metric for pitchers that correlates advanced variables, such as vertical and horizontal break and spin rate for various pitch types, which are available from TrackMan, to run values; with this metric, we aim to provide a stronger relationship between a pitcher’s draft position and the available data. This integration of machine learning methods marks a significant step forward in using data-driven approaches to enhance the evaluation of college baseball talent and improve predictions for the major league draft, so that each team may better find the best players available from the collegiate ranks.
FR. HUMBERT KILANOWSKI is a Catholic priest of the Dominican order and an associate professor of mathematics at Providence College in Rhode Island. He began his work in sabermetrics as the statistician for his high-school baseball team in 1997 and completed his doctoral studies at The Ohio State University. Since the 2019 season, his primary area of mathematical research has involved evaluating collegiate players in the Cape Cod Baseball League using the methods of data science. A member of the Lajoie-Start Southern New England chapter of SABR, he considers it a lifetime penance to live as a Yankees fan in the midst of Red Sox Nation.
EMILY GELCHIE earned her bachelor’s degree in computer science from Providence College, where she conducted research with Fr. Humbert Kilanowski, and her master’s degree in computer science from Cornell University. She is an AI product manager at Microsoft, leading initiatives in AI agents and memory.
Acknowledgments
We acknowledge the help of Chris Thoms, the official statistician for the Cape League, for providing play-by-play data from PointStreak; of Johnny Davis, Gabriel Appelbaum, and other Hyannis analytics interns for providing TrackMan data; and other students in our Spring 2024 research group (Gianpaolo Colannino, Colin Fitzgibbons, and John Incantalupo) for their work, in particular with cleaning the data, isolating important variables, and producing some of the graphs and charts.
Sources
Kilanowski, Humbert. “cWAR: Modifying Wins Above Replacement with the Cape Cod Baseball League.” SABR Baseball Research Journal, 49.1 (Spring 2020), 99-105.
Kilanowski, Humbert, and Moloney, Thomas. “Sabermetrics by the Sea: Evaluating College Players with the Cape Cod Baseball League.” Journal of Sports Analytics, 10.1 (2024), 67-75.
Sawchik, Travis. Big Data Baseball: Math, Miracles, and the End of a 20-Year Losing Streak. New York: Flatiron, 2015.
Slowinski, Piper. “What is WAR?” FanGraphs, February 15, 2010, https://library.fangraphs.com/misc/war/, accessed January 13, 2025.
Thulin, Mans. Modern Statistics with R, 2nd edition, CRC, 2025.
Notes
1. This study was based on data that were available through the 2024 Cape Cod Baseball League season. A newer version of the study, using data from the following year and checked for accuracy with the 2026 MLB Draft, was presented as a poster at the SABR 54 Convention in Cleveland, Ohio, on August 1, 2026.
2. Humbert Kilanowski, “cWAR: Modifying Wins Above Replacement with the Cape Cod Baseball League,” SABR Baseball Research Journal, 49.1 (Spring 2020), 99-105.
3. Piper Slowinski, “What is WAR?,” FanGraphs, February 15, 2010, https://library.fangraphs.com/misc/war/.
4. Humbert Kilanowski and Thomas Moloney, “Sabermetrics by the Sea: Evaluating College Players with the Cape Cod Baseball League,” Journal of Sports Analytics, 10.1 (2024), 67-75.
5. Travis Sawchik, Big Data Baseball: Math, Miracles, and the End of a 20-Year Losing Streak (New York: Flatiron, 2015), 155. The author highlights then-Pittsburgh Pirates catcher Russell Martin’s ability to generate strike calls on pitches near the lower end of the strike zone as the beginning of considering catcher framing as a measurable skill.
6. See, for example, Mans Thulin, Modern Statistics with R, 2nd edition, CRC (2025), chapter 11. This chapter provides an introduction to the machine learning methods mentioned above.








