
What is machine learning? Algorithms, models, applications and an 8-step plan
Dashboards show the large, simple relationships in data. Machine learning finds the small, subtle ones.
Machine learning in short
- Machine learning is a collection of self-learning algorithms that can discover patterns independently in structured and unstructured data and make reliable predictions that support the decisions of organizations.
- There are three types of models: supervised learning (with labeled examples), unsupervised learning (looking for structure itself) and reinforcement learning (learning through reward and punishment).
- Deep learning is a subcategory that uses neural networks with many layers, successful in image and speech recognition.
- Building a model takes 8 steps: problem definition, collecting data, preparing data, choosing the algorithm, training, testing, evaluating and improving, and publishing and explaining.
- A model can be overfitted (too specific) or underfitted (too general). In both cases it predicts poorly on new data.
What is machine learning?
Machine learning (ML) is in the spotlight, and that is logical: the improvement potential for organizations is great. At the same time the impact and explainability of algorithms in the private and public domain are under discussion. With dashboards, reports and data analytics we have for years brought the large and relatively simple relationships in data to light. Machine learning models now also expose the smaller, more subtle and more complex patterns. Our definition:
Machine learning is a collection of self-learning algorithms that are able to discover patterns independently on the basis of structured and unstructured data and to make reliable predictions that support the decisions of organizations.

Other definitions
Machine learning was originally defined in the 1950s as a field of study that gives computers the ability to learn without being explicitly programmed (Samuel, 1959). Another common definition: machine learning is the study of computer algorithms that allow computer programs to improve automatically through experience (Mitchell, 1997). Both do justice to the self-learning character: the algorithms learn by recognizing patterns in the data.
Machine learning, AI, data science and BI
- AI: artificial intelligence is the overarching field concerned with developing intelligence outside the human brain. Machine learning is the specialist part that develops self-learning algorithms.
- Data science: data science is an interdisciplinary field that uses scientific methods to extract knowledge and insights from data. It uses machine learning subdomains such as classification, cluster analysis and data mining.
- BI: business intelligence and machine learning both use data intensively to take better decisions. BI is mainly about reports, dashboards and simple analyses; machine learning digs much deeper and discovers the patterns that remain invisible to the human eye.
- Data analytics: of the four main streams (descriptive, diagnostic, predictive and prescriptive), machine learning is mainly concerned with predictive analytics.
A handy summary by data scientist David Robinson (2017): data science produces insights, machine learning produces predictions and artificial intelligence produces actions.
Characteristics of machine learning models
- A larger collection of data with many different characteristics: big data.
- Discovering complex relationships and patterns that are often not visible to a person at a glance.
- The problem definition is fixed in advance; the data needed is not.
- Sometimes the target variable is known (supervised) and sometimes not (unsupervised).
- Good models are computationally and knowledge intensive.
3 types of machine learning models
Supervised learning
The algorithm learns under the supervision of a teacher or expert, who labels the input data and tells the algorithm which target variable to look for: the right answer is given in advance. When classifying holiday photos, for example, the supervisor indicates which photos show a church. Gradually the algorithm starts recognizing photos with churches. You continue until it is sufficiently trained and scores high, after which the model can assess new photos.

Unsupervised learning
The algorithm gets a set of data and looks for associations, categories and clusters itself, without supervision and without a target variable. It tries to find structure automatically. The outcomes can be less predictable than with supervised learning, because there is no right answer, which also makes success harder to measure.

Reinforcement learning
An agent, consisting of one or more algorithms, is only given the rules of the game. Through smart trial and error it finds its way to a solution. When it takes the right road it gets a reward; for a disadvantageous turn it gets a penalty. This form is widely used in self-driving cars, which have to find the optimum between speed, safety and comfort, and in controlling the arms and legs of a robot. There is also a hybrid form: semi-supervised learning.

Supervised versus unsupervised learning
The two most used types side by side.
Supervised
Unsupervised
Input
Labeled data
Unlabeled data
Target variable
Known in advance
None
Task
Classifying and predicting
Clustering and finding structure
Success
Measurable against the right answer
Harder to measure
Deep learning versus machine learning
Deep learning is a subcategory of machine learning that tries to imitate the working of the human brain. The term “deep” refers to the number of layers in the neural network. Applications include image and speech recognition, translation and the assessment of medical scans. A deep learning algorithm can, for example, recognize various forms of dementia at an early stage.
10 popular machine learning applications

- Recommendations: film suggestions on Netflix, purchase recommendations on Amazon and contact suggestions on LinkedIn. Web shops use machine learning for personalization, contextual search results and chatbots.
- Anomaly detection: you focus on the exceptions, the outliers: detecting fraud or filtering spam.
- Dynamic pricing: algorithms vary the price automatically, depending on competitors’ prices, the time, demand and available supply. Widely used by airlines and hotels.
- Predictive maintenance: prevents unplanned downtime of expensive machines and installations and saves on unnecessary maintenance, because you do it at exactly the right moment.
- Process mining: specialized algorithms applied to event logs, to discover process deviations and predict future processes better. See process mining.
- Law enforcement: the police use camera surveillance and data from intelligent cameras and microphones to map crime hotspots and predict where and when crime occurs (predictive policing).
- Tackling traffic jams: adaptive signal control adjusts traffic lights automatically to the traffic volume.
- Algorithmic decisions: ministries and implementing bodies use algorithms for their decisions, for example in taxation and the automatic handling of traffic fines.
- Robot justice: searching case law and discovering patterns in it. A robot judge remains a thing of the future, but in the US there are experiments with software that estimates the chance of reoffending.
- Robotized services: municipalities use chatbots and robotic process automation (RPA) to improve services and relieve administrative pressure.
How does machine learning work? An 8-step plan

- Formulate a clear problem definition or business case, preferably as a research question: how can a housing association predict and schedule the necessary maintenance of homes?
- Collect as much historical data as possible. Do not limit yourself to internal data; involve external sources such as statistics offices and trade organizations. Ask yourself which data you are still missing. That prevents biases at this stage.
- Prepare your data. Raw data comes in different formats and leaves much to be desired in integrity, consistency and logic. With data cleaning you turn it into training data.
- Choose the right algorithm. Algorithms are divided into families such as recommendation, classification, clustering, anomaly detection, regression and text analysis. It can pay to let different algorithms compete.
- Train the model. The algorithm is offered the training data and independently looks for a way to arrive at a correct answer.
- Test the model. A second, separate test dataset is used to check how accurately the model predicts. Do not accept a bad outcome.
- Evaluate and improve the model with proven statistical techniques such as k-fold cross-validation: you split the training data into subsets, train on some and validate on the rest, and repeat that.
- Publish the model and explain it. After rollout to production, do not forget to explain how the algorithm came about. For many colleagues a model is a black box that they will greet with some suspicion.
Overfitting and underfitting
Tuning machine learning models is a precise business. Both overfitting and underfitting cause the model to function suboptimally: it predicts well on the training dataset, but goes wrong on test data or real data.

- Overfitting: the algorithm learned to see relationships in the training data that are not there in new data. The model is too specific: it has too many parameters and “remembers” the training data instead of generalizing. One remedy is training with more, and more diverse, data.
- Underfitting: the model is too general and cannot specify well. Extending the training period can help.

Picking up speed with AutoML
Automated machine learning, usually abbreviated to AutoML, is in fact a do-it-yourself kit for building your own model. Developing a model by hand is time-consuming, because a number of steps keep recurring and comparing dozens of models and algorithms requires a lot of time and domain knowledge. AutoML largely automates that process: selecting a training dataset, choosing an algorithm, training the model and reporting how the various models perform. Can you leave machine learning entirely to lay people with AutoML? Far from it: machine learning remains a real profession that presupposes a certain basic knowledge.
Machine learning trends
- The call for laws and regulations, such as algorithm registers that make it possible to compare and assess algorithms, keeps growing louder.
- More and more voices are calling for a quality mark for algorithms, with a view to transparency and explainability.
- Through the rise of the internet of things and embedded microcontrollers a new subcategory is emerging: TinyML, with which you analyze sensor data on devices with extremely low power consumption.
- Generative models produce new content such as non-existent faces, voices and texts. Governments try to curb the dark side, deepfakes. See generative AI.
Machine learning techniques
Machine learning models use various basic techniques and kinds of algorithms. They range from simple functions, business rules, decision trees and cluster analyses to linear regression, logistic regression, Bayesian networks and genetic algorithms.

More generic techniques are data mining (finding relationships in structured data), text mining (the same for unstructured data such as text) and natural language processing (reading, understanding and producing human language by computers).
5 machine learning tips
- Begin with the end in mind, as Stephen Covey advised. Projects have the highest chance of success when you focus on a specific, urgent problem with an impact on your bottom line. KPIs are the perfect starting point.
- Bring different knowledge domains together to define and frame the problem. Start with a simple model and temper expectations when they run too high.
- Limit extra operations. Machine learning is very computationally intensive. With structured data, prepare all the data needed in one flat file.
- Do not reinvent the wheel. Use the available platforms, ready-made libraries, cheat sheets and AutoML.
- Weigh the context of the historical training data. Cultural factors can color the variables, allowing biases to creep into the training data. Discrimination against certain groups is always lurking.
How Diamond Decisions applies machine learning
Step 1 of the plan is ours: in business modeling we establish which decision a prediction has to improve and what that is worth, before a single model is trained. Steps 2 and 3, usually most of the work, are covered by the data platform: combined, cleaned data with history. And step 8 is where decision makers come in: a model that is not understood and trusted is not used.
Talk to the author
Daan van BeekDiamond Decisions
Discuss your question with Daan
Tell us which decision needs to improve. In a no-obligation conversation we show you where your data delivers the most.
Schedule an introduction →Step 3 of our approach
Diamond Data Analytics
A data warehouse that starts with your most important decisions and is ready for conversational AI: a working prototype within 24 hours.
Explore Data Analytics →Frequently asked questions
01
What is machine learning?
A collection of self-learning algorithms that discover patterns independently in structured and unstructured data and make reliable predictions that support decisions.
02
What is the difference between machine learning and AI?
Artificial intelligence is the overarching field concerned with developing intelligence outside the human brain. Machine learning is a specialist part of it that develops self-learning algorithms.
03
What is the difference between supervised and unsupervised learning?
With supervised learning the algorithm learns from labeled examples with a known target variable. With unsupervised learning there are no labels and no target variable: the algorithm looks for clusters and structure itself.
04
What is the difference between deep learning and machine learning?
Deep learning is a subcategory of machine learning that uses neural networks with many layers. It is particularly suited to image and speech recognition and other unstructured data.
05
What is overfitting?
A model is overfitted when it has learned the training data too precisely, including the noise, and therefore predicts poorly on new data. Training with more, and more diverse, data helps.
06
What is AutoML?
Automated machine learning: software that largely automates the recurring steps in building a model, such as choosing and comparing algorithms and training. It speeds up the work of experts, but does not replace their knowledge.
07
Is machine learning feasible for a small or mid-sized company?
Yes, for a decision that recurs often and about which you have a few years of data, such as demand forecasting, maintenance or the chance that a quotation is won. Start with a simple model, compare it with what you do now, and continue only if it decides demonstrably better.
Further reading
- Predictive analytics: predicting with data.
- Neural networks and decision trees.
- Data science: the wider field.
- Artificial intelligence and generative AI.
Sources
- Samuel, A.L. (1959): Some Studies in Machine Learning Using the Game of Checkers. IBM Journal of Research and Development, 3(3).
- Mitchell, T.M. (1997): Machine Learning. McGraw-Hill.
- Robinson, D. (2017): What’s the difference between data science, machine learning, and artificial intelligence? Variance Explained.
About the author
About Diamond Decisions
Diamond Decisions helps organizations become better by enabling better decisions. We don’t start with data, dashboards or AI, but with the decision that needs to improve, and work back from there to KPIs, data and technology. We do that in four steps: inspiration and alignment, business modeling, analytics and data platform and data-driven decision makers. That way BI and AI don’t remain an IT project, but deliver value every day.

