Machine Learning

Machine Learning (ML)

Machine learning is the branch of artificial intelligence in which software learns patterns from data and improves at a task through experience instead of following rules written by a programmer.

What is machine learning?

Machine learning (ML) is the branch of artificial intelligence in which a program learns patterns from data instead of following rules a developer wrote by hand. The developer chooses a type of model, feeds it examples, and lets a training algorithm adjust the model’s internal parameters until its outputs match the examples well. The trained model then makes predictions on new data it has never seen.

The shift is in who writes the logic. A traditional program to flag suspicious invoices needs someone to spell out every rule. A machine learning model is shown thousands of past invoices, marked as legitimate or fraudulent, and works out the distinguishing patterns itself. When the patterns change, the model is retrained rather than rewritten.

How machine learning works

Every machine learning project moves through the same stages. Historical data is collected and cleaned, and the measurable inputs the model will use, called features, are defined. The data is split into training data, validation data, and test data. A training algorithm then adjusts the model’s parameters to reduce a loss function, which is a number that measures how wrong the current predictions are. The validation set guides tuning, and the test set gives an honest estimate of how the model will perform on data it has not seen.

Once a model performs well enough it is deployed, and inference begins: the model receives new records and returns predictions. Performance is monitored because the world changes and the data drifts away from what the model learned. Retraining on fresh data is part of normal operation rather than a sign of failure.

Types of machine learning

Type What the model learns from Typical business use
Supervised learning Examples with known answers (labels) Credit risk scores, demand forecasts, defect detection
Unsupervised learning Unlabeled data, searched for structure Customer segmentation, anomaly detection
Self-supervised learning Labels generated from the data itself Pre-training of large language models
Reinforcement learning Rewards received for actions taken over time Robot control, inventory and pricing policies

Deep learning is a family of techniques, built on neural networks with many layers, that can be used within any of these types. Classic machine learning covers the older statistical methods such as linear regression and decision trees, which remain the right choice for much of the tabular data found in business systems.

Why machine learning matters

Most business decisions that repeat at volume are candidates for a learned model. Which orders will ship late, which customers will leave, which claims deserve a closer look, and how much of each product to stock next month are all questions answered today by rules of thumb and spreadsheets. A model trained on the company’s own history usually answers them more consistently, and its answers can be measured. The measured error becomes a management number that improves release by release.

Machine learning is also the foundation under generative AI. Large language models are machine learning models of enormous size, trained with self-supervised learning on text. Understanding the basics of training, evaluation, and drift makes every later conversation about AI easier.

Machine learning in practice

A regional building-products distributor wants to cut emergency restocking. The team pulls three years of order lines from the ERP, adds weather and local construction permit data as features, and trains a supervised model to predict weekly demand per branch and product. The model’s forecast error is compared against the planners’ existing method on a held-out year. Where the model wins, its forecast feeds the replenishment system, and planners review exceptions rather than every line.

In Kirk Tech Solutions engagements, the first machine learning project is usually of this kind: a classic model on tabular data that already exists in the ERP or CRM, measured against the current process, with the data pipeline built so that retraining is routine.

What to watch for

  • Data quality sets the ceiling. A model trained on incomplete or inconsistent records learns those flaws, so budget as much time for data preparation as for modeling.
  • Ask how the model was evaluated and on what data. A score measured on the training data says nothing about production performance.
  • Decide early how predictions will reach the people or systems that act on them. Many models work well in a notebook and never affect a decision.
  • Plan for monitoring and retraining from day one, because data drift and concept drift degrade every model over time.
  • Match the technique to the problem. Deep learning is rarely the best first choice for a few thousand rows of tabular data.

← Back to AI Glossary