Benchreads

How to become an AI consultant · Module 01 of 12 · 9 minutes

Understanding machine learning

How models learn from data, how to recognise a good model and why 95 percent accuracy can be worthless.

Almost everything companies call “AI” today is machine learning: a model learns a pattern from examples and applies it to new cases. You do not need to be able to program a model to advise well. But you do need to understand how learning works, how a model is evaluated and where projects typically fail. Otherwise you can neither check vendors’ promises nor explain to a board why a model shines in testing and disappoints in operation.

01Rules versus learning

Classic software follows rules written by a person: if the invoice amount is above 10,000 euros, a second approval is required. Machine learning turns this around. You give the system many examples with the correct result, such as 50,000 invoices for which it is known which ones were faulty, and the model finds the patterns that characterise faulty invoices by itself.

This pays off where rules would be too complicated or change constantly: fraud detection, demand forecasts, image recognition, language processing. Where a simple rule is enough, it is almost always better, because it is cheaper, easier to understand and more stable. One of the most valuable questions in a project is therefore: do we need machine learning for this at all?

02The three types of learning

In supervised learning, the correct result for the training examples is known; this is called the label. The model learns to infer the label from the input. If a category is predicted, such as “will cancel” or “will not cancel”, this is called classification. If a number is predicted, such as next week’s sales, it is called regression. Most of the business value is created here.

In unsupervised learning there are no labels. The model looks for structures, such as groups of customers with similar behaviour (clustering) or conspicuous outliers. In reinforcement learning, a system learns through reward and punishment which actions lead to the goal. It plays a role in robotics and games and has also been used to align language models with human preferences.

03How to test a model fairly

A model has to be tested on data it did not see during training. That is why the data is split into training, validation and test data. If a model memorises the training data instead of finding general patterns, it is overfitted: it shines in training and fails in real use.

Data leakage is dangerous: information ends up in training that would not be available in operation. A churn model that uses the field “reason for cancellation” as a feature is almost perfect in testing and useless in operation, because the reason is only known after the cancellation. For time series: always train on the past and test on the future, never mix at random.

04The right metrics

Accuracy sounds easy to understand but is often misleading. If only 2 percent of all transactions are fraudulent, a model that always says “no fraud” achieves 98 percent accuracy and is completely worthless. That is why you look at precision (how many of the cases flagged as fraud really are fraud?) and recall (how many of the real fraud cases does the model find?).

You have to weigh the two against each other, and this trade-off is a business decision, not a technical one. A false alarm costs a manual check; a missed fraud costs the damage. Good consultants therefore translate metrics into euros: what does an error of one kind cost, what does an error of the other kind cost, and where is the threshold that maximises the overall benefit?

  • Baseline: how good is today’s solution or a simple rule? A model has to beat it.
  • Precision and recall: false alarms against missed cases.
  • Calibration: do the probabilities the model outputs match reality?
  • Business metric: what changes in euros, time or quality?

05What models cannot do

A model learns correlations from the past. If the world changes, for example through a pandemic, new products or changed prices, quality falls. This is called drift. Models therefore have to be monitored and retrained regularly. They also adopt biases from the data: if certain groups were hired less often in the past, a model learns exactly that.

And a model does not explain causes. If customers with many service contacts cancel more often, that does not mean that fewer contacts would prevent cancellation. To find out which measure works, you need experiments or causal analyses.

Example

Churn prediction at an energy supplier

A supplier wants to identify customers with a high risk of cancelling early and make them an offer. The model learns from three years of contract data, consumption, service contacts and price changes. In testing it finds 70 percent of the later cancellers (recall), and of the flagged customers, 30 percent actually cancel (precision). The figures are an example.

Whether this pays off is decided by the calculation: if a win-back offer costs 40 euros and a retained customer brings a contribution margin of 300 euros, the campaign pays off even though 70 percent of the offers go to customers who would not have cancelled anyway. The real consulting work lies in this calculation and in measuring with a test group whether the offer really prevents cancellation.

Typical mistakes

  • Looking only at accuracy even though the classes are very unevenly distributed.
  • No comparison with a simple rule or today’s solution.
  • Overlooking data leakage because the test result looks too good to be true.
  • Treating a model as finished even though it has to be monitored and retrained.

+Exercise

Take a process from your environment in which a decision depends on a prediction (cancellation, failure, demand). Write down: what would the label be, what data would be available at the time of the decision, what does a false alarm cost, and what does a missed case cost?

+Self-check

Question2 percent of all cases are fraud. A model achieves 98 percent accuracy. Is that good?

Not necessarily. A model that never reports fraud also achieves 98 percent. What is meaningful are precision and recall for the fraud class and the comparison with a baseline.

Start the test: 30 questions

QuestionWhat is data leakage?

Information flows into training that would not be available at the time of the real prediction. The model looks excellent in testing and fails in operation.

Start the test: 30 questions

QuestionWhy is choosing the threshold a business decision?

Because it weighs false alarms against missed cases. Which is more expensive depends on the costs and revenues in the business, not on the technology.

Start the test: 30 questions

Module test

30 questions with instant feedback and explanations. At 80 percent or more, you have it.

Start the test

+Keep learning

Amazon links on English pages carry no affiliate tag.

Sources

  • Agrawal, Gans, Goldfarb: Prediction Machines, Harvard Business Review Press 2018
How to cite this page

APA (7th edition)

Benchreads. (2026). Understanding machine learning. Learning path: How to become an AI consultant. Retrieved 25 November 2026, from https://benchreads.com/en/learning-paths/become-an-ai-consultant/machine-learning-basics/

Benchreads is a secondary source. For academic work, also cite the original sources named in the text. You are welcome to link to this page in course materials.

Last updated: 25 November 2026. Carefully researched, but without guarantee. Not legal, tax or investment advice. Disclaimer