What is image recognition?
The AI Glossary
In our classes, we often pause to explain the ideas behind AI and the language used to describe it. These posts grew out of those conversations. They’re for anyone who would like to understand AI better, with no technical background assumed.
Image recognition is the use of software to identify things or patterns in pictures. It is part of computer vision, the broader field concerned with extracting information from images and video. Recognizing a bicycle, reading a handwritten digit and identifying a finding in a scan are examples of different recognition tasks.
A digital image is represented by pixels: small picture elements with numerical values describing brightness or color. A model learns relationships between these measurements and the distinctions it is trained to make. It does not need a separate human-written rule for every possible appearance of an object.
The output needs to be specified. Image classification assigns a category to an entire image or region. Object detection also locates items, often with rectangular boxes. Segmentation identifies the pixels belonging to a region or object. People sometimes use “image recognition” for all of these, but they do not ask the same question.
For example, saying that a scan contains a suspicious finding differs from locating it, measuring it or deciding what care is appropriate. Each additional claim needs its own evidence. A confident label does not establish that the system has interpreted the image in the way a specialist would.
Recognition can depend on lighting, scale, image quality and surrounding context. A model may learn a useful visual feature, or it may rely on a shortcut associated with the label in the training collection. Different scanners, acquisition settings or patient groups can expose weaknesses that a familiar test set missed.
In clinical work, an image-recognition system might help prioritize cases for review or outline anatomy for measurement. It should be evaluated for that particular role. Prioritizing one case can delay another; an apparently precise outline can still be wrong. The team needs to understand the errors, the circumstances in which the system should not be used and the route for resolving uncertainty. Recognition is a capability within a clinical process, not a substitute for defining that process.
Sources: Hugging Face — Image Classification; Hugging Face — Object Detection
Further reading from Harvard Chan: Public Health Perspectives — How Health Care Leaders Can Build Effective, Bias free AI (2022).
To learn more, take a look at the AI in Health Care Certificate of Specialization from the Advanced Learning Academy at Harvard T.H. Chan School of Public Health. You can take an individual course or work toward the full certificate.
I’m a doctor, not a statistician. I teach the AI in Health Care Certificate of Specialization with Dr. Heather Mattie, a statistician and co-director of Harvard Chan’s Health Data Science master’s program. For more on data science and statistics, see Harvard Chan’s Health Data Science resources.
AI is a fast-moving field. This explanation reflects our class discussions and related material at the time of writing. Terminology, capabilities and tools may change.
For suggested additions or corrections, please email me at tpanch@hsph.harvard.edu.
Dr. Trishan Panch
Program Director, AI in Health Care
Harvard T.H. Chan School of Public Health — Advanced Learning Academy
Lead with AI in Health Care
The AI Pragmatist is a monthly newsletter from ALA faculty, with new explainers & essays from the Advanced Learning Academy