Receive free Artificial intelligence updates
We’ll send you a myFT Daily Digest email rounding up the latest Artificial intelligence news every morning.
How does machine learning work?
Machine learning is a subset of artificial intelligence (AI) in which a computer imitates the way humans learn from experience.
It involves training a computer to make predictions or decisions using data, rather than explicitly programming it to follow instructions. This training is repeated to gradually improve the computer’s performance.
Machine learning is already used in internet search engines, in email filters to detect spam, in music and video streaming services to make personalised recommendations, in banking software to detect unusual transactions, and in camera technology for image recognition.
Let’s see how it works with image recognition . . .
1 Collect the data
Data is collected on 2 distinguishing features between cats and dogs:
● Ear shape
● Nose size (relative to head)
. . . from a data set of 100,000 photographs
2 Prepare the data
Data is de-duplicated, error-corrected and randomised — so that the data sequence does not affect the learning process. It is split into “training” data (c 80 per cent) and “evaluation” data (c 20 per cent). In this example, the training data is labelled with the correct answers, so the model can measure its accuracy in recognising cats and dogs and gradually learn over time. This is known as supervised learning.
Data visualisation may also be used to identify any relationships between variables, or any imbalances in the data that may cause the model to be biased.
If there are far more dog photos than cat photos, the model will be biased towards predicting “Dog” as this will be the correct answer most of the time.
3 Choose a model
For this task, there are only 2 features that the computer needs to learn from. So a small linear model can be used to generate the outputs — or answers — from the data.
4 Train the model
The model starts by applying random weights and biases to the features data, to predict the answers. At first, these answers will not be very accurate. But they are then compared with the correct answers, and the weights and biases adjusted to generate more accurate predictions.
This process is repeated to incrementally improve the model’s ability to make an accurate prediction. Each reiteration is a training “step”.
5 Evaluate the model
6 Tune the parameters
To further improve the training, parameters — such as the number of times the training data set is used, and the amount of adjustment in each training step — may be fine tuned, to achieve more accuracy.
7 Use the model to make predictions/decisions
Read the full article here