ATSWINS

How AI Predicts Baseball Scoring: Professional Steps to Build Winning Models

Posted June 16, 2026, 4:17 p.m. by Ralph Fino 1 min read
How AI Predicts Baseball Scoring: Professional Steps to Build Winning Models

Baseball might look like a wild, chaotic mess when you are staring at a scoreboard, but underneath the surface of every pitch and every swing, it leaves a very distinct set of tracks in the data. If you are serious about breaking down games, you have to move past the old school box scores and start thinking like an analyst who actually understands how these games are constructed. I spend a massive portion of my time building systems that leverage artificial intelligence to deconstruct these outcomes, and I can tell you that the secret sauce isn't some black box algorithm that magically predicts runs. It is actually just about combining Statcast data, real-time weather fluctuations, and those subtle park quirks into an ai mlb run projection model that actually makes sense. I am going to walk you through exactly how we turn these variables into reliable run projections, covering the methods and the workflow that we use to keep things consistent. When you are twenty-five and looking at the landscape of sports betting, you realize that the edge is rarely found by betting on gut feelings. It is found by building a system that can reliably translate pitch-level context into a probability distribution for the entire game. We keep the methodology grounded in reality at ATSwins, and you should too.

Data sources and scoring targets

When you are trying to predict run totals, you cannot just guess based on who had a big game last week. You need a data stack that captures the game at a granular level. We rely heavily on pitch-level tracking because it is the raw fuel for any decent model. You want data that covers velocity, spin, movement, and location because that is where the real signal hides. Statcast is your best friend here. You should be pulling exit velocity, launch angle, and spray angle data to understand the quality of contact. If you are not looking at contact quality buckets like barrels or solid contact versus topped balls, you are essentially flying blind. Beyond the pitch, you need to be looking at play-by-play data, which helps you build run expectancy tables. These tables are the bridge between a single plate appearance and the eventual outcome of an inning.

You also need the environmental context. Park factors are non-negotiable because playing in a vacuum is not how baseball works. You have to account for how a specific stadium inflates or suppresses runs. On top of that, weather data is huge. Air density, temperature, and wind speed literally change the physics of the game, impacting how far a ball carries. We also keep a close eye on roster and usage logs. You need to know if a team is using an opener or if their bullpen is gassed from a long road trip. Sometimes, the most important information is simply knowing which arm is actually available to pitch in the seventh or eighth inning. We also track umpire strike zone tendencies and catcher framing metrics. Those tiny, quiet additions of called strikes change the count, which changes the plate appearance, which changes the run expectancy. If you are building your own tools, keep it simple at first. Use reliable public sources like Baseball Savant for the tracking data and NOAA for your weather feeds. You do not need to overcomplicate the architecture, but you do need to ensure your data is clean.

Once you have your data, you need to define exactly what you are trying to predict. This is where a lot of people go wrong. They try to predict the final score directly, which is a massive mistake because a single score is just one realization of a much larger probability space. At ATSwins, we focus on team runs per game as our primary target. You should model home and away teams separately because the park and the fact that the home team bats last creates a distinct environment for each side. From there, you can derive the total game runs by looking at the correlation between the two team models. We also look at inning-level expected runs, which is perfect if you are interested in first-inning or first-five-inning markets. If you are getting into props, you want to model expected runs per plate appearance so you can aggregate that into a game-level simulation. By defining these targets early, you can structure your features and models to hit those specific goals without getting bogged down in noise.

Feature engineering that actually moves the needle

The real work happens in feature engineering. You are trying to capture the matchup between the batter and the pitcher, but you have to be careful not to fall into the trap of using generic splits. You need to look at batter quality specifically against the type of pitcher they are facing. If a batter has a strong track record against right-handed sinkerballers but struggles against left-handed four-seam pitchers, your model needs to know that. You should be using rolling xwOBA or similar metrics that capture contact quality, but always make sure you are using windows that don't leak future information. Leakage is the quickest way to ruin a model. If you are training on data that includes the game result in your input features, your model is going to look like a genius in backtesting and then completely fail when it goes live. This is exactly how ai finds value in mlb totals by uncovering these specific, high-leverage matchups that the public market often ignores.

Another area where you can find an edge is by aggregating Statcast data into meaningful distributions rather than just using raw averages. If you just take the mean launch angle of a batter, you are washing out all the context. Instead, look at the distribution of launch angles and exit velocities. This gives you a much better picture of what a hitter is actually capable of on any given night. You also want to incorporate pitch-mix interaction features. How often does this specific pitcher throw their breaking ball to this specific profile of hitter? How does the hitter fare when they see that pitch in a specific location? By layering these interactions, you get a much sharper prediction than a basic model ever could.

Don't forget about the context of the bullpen and the fatigue factor. Most people only look at the starter, but runs in the sixth through ninth innings are where a lot of total bets are decided. We build bullpen freshness metrics that track how many pitches a reliever has thrown over the last few days and whether they are working on back-to-back nights. If a closer threw thirty pitches yesterday, they are likely unavailable or compromised, and that changes the run expectancy for the end of the game. We translate this into a probability of who will enter the game if the starter exits early. This kind of situational awareness is exactly what we focus on at ATSwins. You are essentially building a simulation of the game’s events, and your features should reflect the reality of how those events play out in real time.

Modeling approaches for scoring

Once your features are ready, you need to choose the right model. Since you are predicting run totals, you are essentially dealing with count data. A simple Poisson regression is often a good place to start, but you will quickly find that it understates the variance you see in real-world baseball scores. A negative binomial model is usually a better choice because it includes a dispersion parameter that helps capture that extra volatility. For more complex interactions, tree-based models like XGBoost or LightGBM are incredibly effective. These models are great at finding non-linear relationships, like how the interaction between wind speed and launch angle creates a specific outcome for home runs.

We don't just stop at a single model, though. We use a hybrid approach where we might use a boosted tree model to estimate the mean expected runs, and then fit a secondary model to handle the dispersion. This allows us to predict both the most likely outcome and the range of possibilities around that outcome. If you are looking at rookies or players with very limited data, you should incorporate Bayesian hierarchical shrinkage. This helps you balance a player’s limited performance with the broader population averages for their position, so you don't overreact to a small, noisy sample size.

The ultimate way to combine all of this is through a Monte Carlo simulation. We take our plate-appearance-level predictions and run them through a simulation engine ten thousand times for each game. This accounts for all the sequencing possibilities, runner advancement, and the reality of how innings transition. It also allows us to handle the bullpen shifts and late-inning adjustments dynamically. This simulation gives us a full probability distribution for the total score, which is much more valuable than a single projected number. When we are looking at lines, we aren't just comparing our mean to the market; we are comparing our entire distribution to the market’s implied probability. This is how you really start to identify where the bookmakers might be wrong.

Validation, calibration, and backtesting

If you aren't validating your model properly, you aren't really modeling—you're just gambling. We rely on walk-forward validation, which is the only way to ensure your model can actually adapt to new data. Instead of taking a static slice of the past, you train on a period and then test on the period immediately following it, then slide that window forward. This mimics the real experience of predicting games throughout a season. It forces your model to deal with shifting league-wide run environments, roster moves, and rule changes. If your model works great on April data but falls apart in August, walk-forward testing will show you that immediately.

You also need to calibrate your model. Getting the mean right is just half the battle. You need to make sure that the variance of your predicted totals matches the actual variance of the game. We use PIT histograms and reliability curves to check if our predictions are well-calibrated. If you are claiming a game has an 80% chance of staying under the total, then over the long run, those unders should actually hit 80% of the time. If they don't, your model is not well-calibrated. We also look at residual audits, checking to see if the model is consistently overestimating or underestimating based on specific parks or weather conditions. If we see a pattern in the residuals, we know we need to tweak our park factors or rethink how we are weighting the wind adjustments.

It is also important to stress-test your system. What happens if the wind shifts by ten miles per hour before the first pitch? What happens if your top-rated relief pitcher gets scratched? We run these scenarios through our pipeline to see how the projected distribution changes. This helps us understand not just what the model predicts, but how stable that prediction is. If a small change in input leads to a massive swing in the output, you know your model might be too fragile. We want stable, robust edges that don't evaporate because of one minor piece of news. These ai baseball over under predictions are only as strong as your ability to stress-test your assumptions against the unpredictable nature of the sport.

Practical workflow and tooling

Building a professional model is as much about the engineering as it is about the math. You need a reproducible pipeline. We use versioned data so that we can go back and see exactly what information was available on any given day. This is crucial for avoiding leakage. If you update your historical data and don't track those versions, you might accidentally include information in your backtests that wasn't actually available to you at the time. We centralize all our feature definitions in a feature store, which ensures that our calculations are consistent and point-in-time correct.

When it comes to the day-to-day, we have a nightly ETL job that pulls all the latest roster data, weather forecasts, and usage logs. This job runs the inference for every game on the upcoming schedule. We then publish these outputs, which include the fair totals, confidence intervals, and a list of the primary drivers for each projection. At ATSwins, we believe that interpretability is just as important as accuracy. If we are leaning toward an over, we want the user to know why. Is it because of the wind? Is it because the starting pitcher has been struggling with high-contact-quality metrics lately? Being able to articulate the 'why' allows you to make informed decisions rather than blindly following a number.

You don't need a massive team to build something similar. You just need to be disciplined with your tooling. Use standard libraries like scikit-learn for your baselines and XGBoost for your ensembles. Use Git for your code and something like DVC to version your datasets. If you keep your pipeline clean and your data separated, you can iterate on your model much faster. Don't fall in love with your first version—the best systems are the ones that are constantly being updated and stress-tested. Every week is a chance to audit your performance, check for drift, and refine your inputs.

Conclusion

Predicting baseball scoring is a game of marginal gains. You aren't going to be right every single time, but if you have a process that accounts for Statcast, weather, and bullpen context, you are going to be ahead of the curve. The real power of AI in this space isn't in finding a "secret" stat; it's in the ability to simulate the game's complexity and translate it into a reliable distribution of outcomes. If you want a system that does the heavy lifting for you—providing you with data-driven picks, player props, and the tracking tools to measure your own progress—that is exactly what we have built at ATSwins . We keep our models grounded in the reality of the game, and we focus on delivering insights that are both actionable and transparent. Start by looking at today's edges, set your limits, and use your data to make smarter decisions.

Frequently Asked Questions (FAQs)

What does how AI predicts baseball scoring actually mean?

It really just means we are using data and machine learning to estimate the likelihood of different run totals. When we talk about how AI predicts baseball scoring, we are talking about blending a ton of different signals—like how a pitcher’s arsenal matches up with a batter’s contact tendencies—and feeding those into a model that outputs a range of outcomes. It is probabilistic. It doesn't tell you exactly what will happen, but it tells you what is most likely to happen given the conditions.

Which stats matter most when learning how AI predicts baseball scoring?

Focus on the stats that predict what is coming next rather than what already happened. Contact quality metrics like exit velocity and launch angle are huge. You also need to look at plate discipline, pitch mix, and the environmental factors like park dimensions and current weather. Bullpen freshness is another massive piece of the puzzle that a lot of people ignore.

How accurate is it today—how AI predicts baseball scoring—and what should I expect?

Baseball is inherently high-variance, so you should expect plenty of misses even with a great system. Accuracy in this context means being well-calibrated—meaning your probabilities actually align with reality over thousands of games. You aren't looking for 100% accuracy on every game; you are looking for small, steady edges that grow your bankroll over an entire season.

How can I use how AI predicts baseball scoring to bet smarter without overfitting?

Stick to a strict process. Only bet when your projected fair total differs from the market line by a significant margin. Don't chase tiny edges. Stay disciplined with your stake sizes, and always pay attention to late-breaking news like lineup changes or weather shifts. If you treat it like a long-term investment rather than a way to get rich overnight, you'll be in much better shape.

How does ATSwins.ai put how AI predicts baseball scoring to work for me?

We take all of the complex data wrangling, modeling, and simulation off your plate. ATSwins.ai gives you actionable projections, betting splits, and performance tracking so you can focus on managing your bankroll and choosing your spots. We break down the drivers behind every projection so you can actually understand the logic before you place a bet.