DelegIA
Get started

What is machine learning?

Machine learning is a branch of artificial intelligence in which software learns from data rather than following rules written by hand. It uses patterns in past examples to make predictions or classify new cases. Real-life examples of machine learning include spam filters for everyday email, forecasts of next month's business sales, and predictions of which customers might fail to pay.

Albert López·Founder of DelegIA·Updated

Also called
ML
Type
Technology
Reading time
6 minutes

How does machine learning work?

For beginners, what distinguishes a machine learning model is that it learns patterns from examples. A conventional program follows rules someone writes: if an invoice exceeds a certain amount, it needs approval. Google describes machine learning models as software trained to make useful predictions or generate content from data.

The basics of machine learning involve three steps. First, you train the model on historical data with known outcomes. For a sales forecast, that could mean weekly sales from the past three years, along with the weather, holidays, and promotions. Then you test it on more recent weeks it hasn't seen and compare its estimates with actual sales. Once tested, the model uses new data to estimate how much you'll sell next week.

Machine learning dates back long before ChatGPT. IBM researcher Arthur Samuel used the term in a 1959 paper about a program that learned to play checkers. Since then, far more data and computing power have become available.

The three steps

  1. 1TrainWith historical data
  2. 2TestWith data it has not seen
  3. 3UseWith new data

Types of machine learning, with examples

Google groups machine learning systems into four categories based on how they learn to predict or generate content. A system can belong to more than one category. The first three are well established; the fourth is more recent.

Supervised learning

The model learns from examples with known correct answers, such as invoices labeled as paid or unpaid, and then predicts the answer for new cases. Examples of supervised machine learning include forecasting sales and estimating the risk that a customer will not pay.

Unsupervised learning

The model receives data without known answers and looks for groups and patterns. Grouping customers with similar buying habits and flagging transactions that fall outside the usual pattern are examples of unsupervised machine learning.

Reinforcement learning

The model tries actions and learns from the rewards or penalties it receives for the outcome. Uses include robotics, games, and tasks that involve repeated decisions.

Generative AI

These models create new content, such as text or images, in response to a request. ChatGPT and Claude are examples of this type of AI.

The difference between AI, machine learning, and deep learning

In comparisons of AI vs machine learning vs deep learning, sales forecasting and spam filtering are examples of what artificial intelligence (AI) is used for. AI is the broader field, and machine learning is the most widely used way to build it today. The terms aren't interchangeable.

Examples such as image recognition, speech recognition, and text generation illustrate the difference between machine learning and deep learning, which uses neural networks with many layers. It requires much more data and computing power. Deep learning is a type of machine learning, though machine learning can also use other methods.

Generative AI tools such as ChatGPT, Claude, and Gemini also use deep learning. Their large language models are trained on vast amounts of text to create new content. The practical difference between generative AI and predictive AI is the output. Predictive AI produces a number or category, such as expected sales or whether a customer will pay. Generative AI writes, summarizes, or creates content.

Machine learning examples for businesses

Predictive AI is one example of what machine learning can be used for and has been part of banking, insurance, and business software for years. Practical, real-world applications of machine learning include these examples of business problems where the answer is a number or category:

What it predictsData it usesWhat it helps you do
How much you will sellPast sales, seasonality, and promotionsAdjust purchasing and production to expected demand
Which customers might fail to payEach customer's payment historyAdjust payment terms or follow up on unpaid invoices sooner
Which machine might break downSensor readings and past breakdownsStop the machine before it fails
Which invoice or payment looks unusualInvoices and payments from previous yearsReview only the items that fall outside the usual pattern
Who should receive each email or support ticketEmails the team has already classifiedRoute it to the right person

To use these models, you need enough organized historical data about what you want to predict so the model has past examples to learn from. You also need someone to review predictions before acting on them, especially at first. This is known as human in the loop. The reviewer should compare the model's prediction errors with those of a simple baseline, such as sales from the same period last year.

Choose the model to fit the task. A chatbot can display a demand forecast from a connected predictive model, but it can't calculate one on its own. A predictive model, in turn, doesn't write customer replies. Many systems use both: one makes the prediction, and the other writes the response.

To explore what your business could predict with the data it already has, visit our AI solutions page. It explains how we build these systems and how to request a free initial call.

Sources

  1. Google for Developers, What is Machine Learning?developers.google.com
  2. Arthur L. Samuel, Some Studies in Machine Learning Using the Game of Checkers, IBM Journal of Research and Development, 1959doi.org
  3. IBM, What is machine learning?www.ibm.com
  4. IBM, The games that helped AI evolvewww.ibm.com
Albert López

Albert López

Founder of DelegIA

Albert works with small and midsize businesses in Spain to decide where artificial intelligence makes sense. He implements the systems they agree on and supports the teams that use them. His glossary entries draw on what he learns at each company.

Last reviewed: