There are three common kinds of AI system: recognition, prediction and generation. In recognition, the system takes in a picture, a sound or a text, and works out what it contains. For example, point Google Lens at a plant, and it tells you what plant it is.
A computer vision system is one example of recognition. It is a machine learning model. It takes in a picture or a video, and works out what it contains. Take one simple plant recogniser. Its job is to name the plant in a photo. For each photo, it guesses which plant is in it.
A digital photo is made of very small dots of colour. Each dot is called a pixel. The pixels sit in rows and columns, in a grid. In a colour photo, each pixel can be stored as three numbers: how much red, green and blue it has. When you look at a photo of a plant, you see the plant. To the plant recogniser, the same photo is a grid of numbers.
The plant recogniser picks out patterns in these numbers, such as colours, edges and shapes. It is shown many photos of plants. A person has named the plant in each one. It learns from these photos and trains its machine learning model. For each photo, it makes its guess, checks it against the name, and adjusts. That way, it works out which patterns go with which name. After training, the model does inference: it picks out the patterns in a new photo. The patterns in this photo go with the name rose, so the model guesses that the plant is a rose.
You can take a photo of the same rose from a different angle, or in different light. Then the photo has different numbers, so the plant recogniser can make a wrong guess. For example, on 19 December 2018, Google wrote that Google Lens does not always get it right.
A computer vision system is one example of recognition: it works out what is in a picture or a video. The plant recogniser guesses which plant is in each photo. A digital photo is a grid of pixels. In a colour photo, each pixel can be stored as three numbers for red, green and blue. The plant recogniser learns from photos a person has named, and works out which patterns go with which name. The trained model does inference: it guesses the plant in a new photo from its patterns. In different light, a photo has different numbers, so the plant recogniser can make a wrong guess. When an app names what is in your photo, ask whether a different angle or different light would change its guess.