If you want to build a machine learning model to predict the outcome of a soccer match, the algorithm you choose is the least important part of the process. The real challenge is deciding what data to feed it. In this episode, Ari Joury (PhD, particle physics; Founder & CEO of Wangari Global) celebrates the launch of his new book, Soccer Analytics with Machine Learning (O’Reilly Media). He explains how the lessons learned from analyzing sports data - specifically the art of feature engineering and the necessity of domain expertise - apply directly to the hardest problems in enterprise AI. Whether you are predicting a goal at the World Cup or automating a Solvency II regulatory report, the fundamental challenge is the same: separating the signal from the noise. And yes, he will explain why feeding raw data into a neural network is like handing a toddler a chainsaw and hoping they build a birdhouse. Topics covered: Soccer analytics, feature engineering, machine learning, enterprise AI, domain expertise, data science, Soccer Analytics with Machine Learning book launch, O’Reilly Media. Wangari is the newsletter and podcast for practitioners and leaders navigating the real work of enterprise AI. New episodes every Friday. This is a public episode. If you'd like to discuss this with other subscribers or get access to bonus episodes, visit newsletter.wangari.global/subscribe
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_00This is a very special week for me. After a year, almost actually more than a year, of research, coding, writing and editing, my new book co-authored with three brilliant co-authors, Soccer Analytics with Machine Learning, officially hits the shelves published by O'Reilly Media. We timed the release to coincide with the start of the World Cup, which is currently dominating the global conversation.
And while I'm incredibly excited for soccer fans and data science students to read
SPEAKER_00the book, I actually want to spend today's episode talking about what the book means for enterprise AI. Because on the surface, predicting the outcome of a soccer match and automating a complex regulatory report for an insurance company seem like entirely unrelated problems. One involves athletes running around a grass field. The other involves actuaries running around a spreadsheet.
SPEAKER_00But if you look under the hood, if you actually look at the fundamental mathematics and the engineering challenges involved they are exactly the same problem. They're both exercises in separating the signal from the noise. Today I want to talk about the core theme of the book, which is feature engineering. I want to talk about why the algorithm you choose is the least important part of your AI strategy and why more data doesn't automatically mean
better models and why you cannot build a successful enterprise AI system without deep integrated domain
SPEAKER_00expertise. Let's start with a controversial statement. If you want to build a machine learning model to predict the outcome of a soccer match, the algorithm you choose is the least important part of the process. Whether you use a random forest, a support vector machine, a gradient boosting regressor, or a deep neural network,
SPEAKER_00it mostly doesn't matter. It's like arguing over whether to use a blue pen or a black pen to write a terrible novel. The pen isn't the problem. In the enterprise AI space, we spend enormous amounts of time arguing about algorithms. I did my PhD in that. We argue about whether to use GPT-4 or CLO3.5. We argue about the specific architecture of our retrieval
augmented generation pipeline.
SPEAKER_00We argue about the hyperparameters of our embedding models. But these algorithms have become a commodity. The open source community and the major API providers have made incredibly powerful algorithms available for anyone with an internet connection. The math is largely solved, or at least it's solved well enough for the vast majority of business applications. So if you and your competitor both have access to the same
foundation models,
SPEAKER_00the algorithm is not your competitive advantage. It's just the engine. And everybody has the same engine. So the real challenge, the part that determines whether your model is a predictive powerhouse or a random number generator, is deciding what data to feed it. And that's precisely the art and science of feature engineering. A model is only as good as the representation of the world that
you provide to it.
SPEAKER_00So if you provide a noisy, chaotic, unstructured representation of the world, the model will give you a noisy, chaotic, unstructured prediction. Garbage in, garbage out. If you provide a clean, structured, and highly engineered representation of the world, the model will find the patterns. I want to make this concrete with an example from the book. Two teams of data scientists are given the exact same raw tracking data from a soccer match.
They both are asked to build a model to predict the probability of a shot resulting in a goal.
SPEAKER_00Team A uses the raw data directly. They feed the x and y coordinates of every player, the ball velocity and the match timestamp directly into a deep neural network. The network is powerful. It has millions of parameters. It's a mathematical marvel. Team B spends three weeks doing feature engineering. They calculate the visible goal area for each shot.
SPEAKER_00They compute the defensive pressure score. They measure the speed of the preceding pass. They engineer a feature that captures the quality of the build-up play leading to the shot. Team B's model, using a simple logistic regression algorithm, outperforms Team A's deep neural network by a significant margin. The algorithm was not the differentiator. The features were. Team A built a Ferrari and filled the gas tank with mud.
SPEAKER_00Team B built a Honda Civic and filled it with high-octane racing fuel. The Civic one There's a persistent myth in the AI industry, and it's a myth that is heavily promoted by cloud providers and data storage vendors. The myth is that more data automatically leads to better models. In soccer, we have access to an overwhelming amount of data.
We have event data, so every pass, every tackle, every shot, manually tagged by human operators.
SPEAKER_00We have tracking data, Optical cameras in the stadium that track the X and Y coordinates of every player and the ball 25 times per second. We're talking about millions of data points per match over a full season across all the major European leagues. We're talking about billions of data points. But if you take all of that raw data and just dump it into a deep neural network, the model will almost certainly fail.
It's like trying to teach someone to read by throwing a dictionary at their head.
SPEAKER_00Why? Well, because the vast majority of that data is noise. So if you feed a model raw tracking data, it will look for patterns. And because neural networks are incredibly powerful pattern matching machines, it will find patterns. It might find that the team wearing blue won more often on Tuesdays when it was raining. Or it might find that a specific player taking exactly three
steps before passing
SPEAKER_00correlates with a higher win rate. Or it might find that the referee blinking twice before blowing the whistle means a penalty is imminent. That's cool, but those are spurious correlations. They're noise. The model has overfit to the training data and when you deploy it to predict a new match, it will fail catastrophically. That's the overfitting trap and it's one of the most common
failure modes in enterprise AI.
SPEAKER_00The exact same dynamic plays out in the enterprise, in fact. So an insurance company has petabytes of historical claims data, customer demographic, macroeconomic indicators, and unstructured text from customer service emails. The instinct is to build a massive data lake, dump all of this information onto it, point a large language model on it, and then expect the model to magically become a brilliant
underwriting agent.
SPEAKER_00It doesn't work. The model will drown in the noise. It will find spurious correlations between a customer's zip code and their likelihood of filing a claim, ignoring the actual causal drivers of risk. It will decide that people named Kevin are terrible drivers because of a statistical anomaly in 2018. So more data is not the answer. Better data is the answer.
SPEAKER_00And better data requires engineering. I want to give you a specific example of how this plays out in insurance pricing. So an insurer has 10 years of historical claims data. They decide to build a machine learning model to improve their pricing accuracy. They feed all 10 years of data into the model. The model achieves a very high accuracy on the historical data. But when they deploy it, the performance is disappointing.
SPEAKER_00Why? Because the world changed. The first five years of data reflect a pre-pandemic economic environment. The last five years reflect a post-pandemic environment with very different patterns of behavior, different inflation rates, and different risk profiles. By including all ten years of data, they've actually introduced noise. The outdated patterns of the pre-pandemic world, that is, and that's actively harming the model's ability to predict the
current environment.
SPEAKER_00More data made the model worse. It's like trying to predict tomorrow's weather by averaging the weather from the last 10 years. You're going to get mildly cloudy every single day. The right approach would have been to carefully engineer the data, to weight recent data more heavily, to explicitly model the structural break caused by the pandemic, and to engineer features that capture the underlying economic
drivers of risk,
SPEAKER_00rather than just the raw historical patterns. Vita Engineering is the process of transforming raw data into meaningful signals that a model can actually use. It's the process of embedding human knowledge into the data structure itself. Let me give you an example from the book. In soccer, a very common raw statistic is total distance run.
SPEAKER_00Broadcasters love this stat. They'll say, this midfielder ran 12km today. What an incredible performance. But from a predictive modelling standpoint, total distance run is mostly noise. A player might have run 12km, but if they're constantly out of position, chasing the ball because they misread the play, then that running is actually detrimental to the team. It's like praising a dog for chasing its own tail for an hour.
SPEAKER_00Yeah, it's a lot of effort, but it doesn't accomplish anything. So if you feed total distance run into a model, it will not help you predict two wins. A much stronger signal is a metric called packing. Packing measures how many opponents a player bypasses with a forward pass or a dribble. So if a defender plays a brilliant pass that cuts through the
opponent's midfield
SPEAKER_00line, taking four opposing players out of the game, that's a high packing score. Calculating a packing score is difficult. It requires complex spatial analysis of the tracking data. You have to know where every player is, draw the geometric lines, and calculate the intersections. But once you engineer that feature, it's highly predictive of a team's offensive success. It's an engineered feature that captures the context of the
action, not just the action itself.
SPEAKER_00It separates the signal, effective ball progression, from the noise which is just kicking the ball forward. Another powerful engineered feature in the book is what we call pressure adjusted pass completion rate. This is not just the percentage of passes that a player completes. It's the completion rate adjusted for the defensive pressure the player was under when they made each pass. So a player who completes 80% of their passes under heavy
pressure is far more valuable than a player who completes 90% of their passes when they're completely unmarked The raw completion rate hides this distinction The pressure adjusted rate reveals it It's the difference between hitting a bullseye in a quiet room and hitting a bullseye while someone is screaming in your ear and throwing water
SPEAKER_00balloons at you In the enterprise, feature engineering is equally critical, although it looks different, of course. So, let's say you're building an AI agent to automate the triage of incoming legal documents. A raw text field containing the entire 50-page contract is noise. If you feed that raw text into an LLM and ask it to evaluate the risk,
The LLM will struggle It'll get lost in the boilerplate language It will start hallucinating clauses that don't exist Even powerful models An engineered feature
SPEAKER_00might involve using a smaller, specialized model to extract the specific indemnification clauses classifying those clauses against an internal legal taxonomy and feeding that structured classification into the final decision-making model So you're transforming the raw, noisy text into clean, structured signal that represents the actual legal risk. And that's the hard work of AI.
SPEAKER_00It's not just tweaking that prompt, it's engineering the data pipeline so that the prompt actually has a chance of succeeding. This brings me to the most important lesson that I've learned while writing the book and the most important lesson for any enterprise AI leader. You cannot engineer good features without deep domain expertise.
A brilliant data scientist who just graduated from MIT with a PhD in machine learning but who knows absolutely nothing about Succo will build a terrible
SPEAKER_00predictive model for the World Cup. They will look at the data and see that a pass backward to the goalkeeper rarely results in a goal. So they will engineer a feature that penalizes backward passes. But a soccer expert knows that a pass backward to the goalkeeper is often a brilliant tactical move to reset the opponent's high press, open up space on the other side of the pitch and initiate a dangerous attack.
The data scientist sees a negative correlation, the domain expert sees a tactical mechanism. If the domain expert is not in the room when the features are being engineered,
SPEAKER_00the model will be fundamentally flawed. It'll be mathematically perfect and practically useless. The same dynamic applies to enterprise AI. A brilliant AI engineer who knows nothing about actuarial science will build a terrible regulatory reporting agent. They'll look at two seemingly identical financial metrics in a database and assume that they can be used interchangeably.
They'll not understand the nuanced regulatory context that dictates how a specific
SPEAKER_00type of longevity risk must be calculated under Solvency 2, for example. They'll build a feature that looks mathematically correct but is semantically wrong, and the resulting report will contain errors that could expose the company to regulatory sanctions. And this is why the most successful enterprise AI deployments are not built by isolated data science teams sitting in an innovation lab.
SPEAKER_00They're built by cross-functional teams. They're built in environments where the domain experts, the actuaries, the compliance officers, the underwriters, the lawyers work hand in hand with the engineers. The domain experts define what the system actually is. The engineers build the mathematical transformations to extract that signal from the noise. So if you're an executive leading an AI transformation,
SPEAKER_00your most valuable asset is not your cloud compute project. It's the institutional knowledge inside the heads of your senior employees. Your job is to pair those employees with the engineers who can translate that knowledge into engineered features. There's a useful analogy here from the history of soccer analytics. When the data revolution first hit soccer, many clubs made the mistake of hiring data scientists and
giving them full autonomy
SPEAKER_00to build models. The results were often poor because the data scientists did not understand the game. They were trying to solve soccer like it was a math equation. The clubs that succeeded were the ones that hired data scientists and embedded them within the coaching staff. The coaches taught the data scientists what actually mattered on the pitch. The data scientists taught the coaches how to quantify and measure what they
SPEAKER_00already knew intuitively. The best models emerged from that collaboration. And the same principle applies in the enterprise. I want to close the technical part of today's episode by talking about a concept that bridges soccer analytics and enterprise AI in a particularly elegant way. Transfer learning and domain adaptation.
Transfer learning is the practice of taking a model that was trained on one domain
SPEAKER_00and adapting it to perform well in a different but related domain. In soccer analytics, a classic example of this is using a model trained on data from one league to make predictions in another league. Suppose you have a very accurate expected goals model trained on five years of data from the English Premier League. Now, a club in the French Ligue 1 wants to use your model to evaluate their players.
SPEAKER_00The problem is that the two leagues are different. The pace of play is different. The defensive structures are different. The quality of goalkeepers is different. A shot from 20m in the Premier League might have a different XG than the same shot in Ligue 1 because the goalkeepers are at different average quality levels. So, if you just apply the Premier League model directly to league-owned data, the predictions will be systematically biased.
SPEAKER_00It's like trying to use a map of London to navigate Paris. You might recognize some of the shapes, but you're not going to end up where you want it to be. Transfer Learning provides the solution to this. So you take the Premier League model, which has learned the general principles of shot quality from a large data set, and you fine tune it on a smaller data set of league-owned matches.
The fine tuning adjusts the model's parameters to account for the specific characteristics of the new league without requiring you to train a completely new
SPEAKER_00model from scratch. The result is that a model that combines the general knowledge learned from the large premium league dataset with the specific knowledge of the Ligue 1 context. And that's exactly the challenge we face in enterprise AI when deploying foundation models in specialized domains. A large language model like GPT-4 has been trained on a vast corpus of general
SPEAKER_00texts from the Internet. It's learned the general principles of language, like grammar, syntax, semantic relationships. It's a powerful general-purpose reasoning engine. But if you try to apply it to a specialized domain, say Solvency 2 regulatory reporting, it lacks the specific domain knowledge required to perform reliably. It doesn't know the precise definition of the solvency capital
requirement. It doesn't know the specific calculation methodology for the market risk model. And it doesn't know the exact format required for the quantitative reporting template. If you just point the general purpose model at a Solvency 2 report and ask it to
SPEAKER_00generate the narrative, it will produce something that sounds authoritative, but is likely to contain a lot of errors. And I'm speaking from experience. It'll confidently hallucinate a regulation that doesn't exist. Domain Adaptation is the solution here. You take the general purpose foundation model and you adapt it to the specific domain through a combination of fine tuning, retrieval augmented regeneration and prompt engineering.
You provide it with a curated knowledge base of regulatory guidance documents.
SPEAKER_00You fine tune it on examples of correctly formatted regulatory reports. You build a retrieval system that ensures it always has access to the most current version of the relevant technical standards. The result is a model that combines the general language capabilities of the foundation model with the specific domain knowledge required for the task. This is the deep technical work of enterprise AI.
SPEAKER_00It's not glamorous. It doesn't make for impressive demos. But it's the difference between a system that works in a controlled environment and a system that works reliably in production. The lesson from Socker Analytics is clear. Domain expertise cannot be outsourced to the algorithm. You have to bring the domain knowledge to the model through careful feature engineering, curated training data,
SPEAKER_00and rigorous evaluation against domain-specific benchmarks. The algorithm is the vehicle. The domain knowledge is the fuel. As I mentioned, Soccer Analytics with Machine Learning is officially out this week. I wrote the book because I wanted to bridge the gap between academic theory and practical application together with my co-authors.
We wanted to prove that you can learn complex data science concepts like logistic regression or Monte Carlo simulation or deep learning and feature engineering
SPEAKER_00without getting bogged down in abstract math. Soccer is the perfect vehicle for this. It's a complex, dynamic, and continuous system. It's messy, it's unpredictable, and that makes it just like the real world. The book covers the full data science pipeline from data collection and cleaning to feature engineering and model training to evaluation. Every concept is illustrated with real soccer data and real Python code.
So if you're a data scientist looking to improve your feature engineering skills, or if you're a business leader struggling to understand how machine learning
SPEAKER_00actually works under the hood, I invite you to pick up a copy. You can find it on Amazon at Barnes & Noble or directly through O'Reilly Media. There's a link in the show notes. The e-book is out now and the print will be out in mid-July. I truly believe that the lessons learned on the pitch are exactly what we need in the boardroom right now.
SPEAKER_00That's it for today's episode. Algorithms are commodities, data is noisy, the signal is everything. If you want to build AI systems that actually work in production, stop obsessing about the latest foundation model release and start obsessing about your feature engineering pipeline. Talk to your domain experts. Figure out what exactly matters and then build the math to extract it.
SPEAKER_00Next week we're going to dive deeper into the concept of causal AI. We're going to talk about why correlation is not enough for enterprise decision making and why the causal imperative is the next major frontier in artificial intelligence. Until then, enjoy the World Cup, pick up a copy of the book and keep things building that actually work.
Summer is here, the soccer World Cup is in full swing, and Ari Joury (PhD, particle physics; Founder & CEO of Wangari Global) is connecting the dots between the beautiful game and the hardest concepts in machine...
People often ask how transitioning from theoretical particle physics to founding an enterprise AI company makes any sense. In this episode, Ari Joury (PhD, particle physics; Founder & CEO of Wangari Global) explains why...
For the past decade, the enterprise AI narrative has been dominated by deep learning and pattern matching. These models are incredibly powerful at answering “What is happening?” but fundamentally incapable of answering...
Walk into the actuarial department of any major insurance firm, and you will find some of the most highly educated, analytically brilliant minds in the corporate world. Now ask them how they spend their time. The answer...
In this episode, Ari Joury (PhD, particle physics; Founder & CEO of Wangari Global) turns his attention to the 2026 World Cup - and to why the machine learning models built to predict it are confidently wrong in...