What Is Artificial Intelligence? A Clinician's Primer
Demystifying AI, machine learning, and deep learning — what each term means, how they relate, and why the distinctions matter for clinical applications.
"AI" is used for at least three different things in medical papers, and the differences decide how much data you need, how much you can explain about the result, and who you need on your team. This article sorts out the vocabulary. It assumes you know medicine and statistics and have never trained a model.
Three nested terms
Artificial intelligence is a very broad and very slippery term. It means any software that does something we would call intelligent if a person did it. That definition is loose enough to include a chess program from 1985 and a chatbot from last year, which is why the phrase on its own tells you very little.
Machine learning is a subset of AI. A machine learning system is not given the rules for its task. It is given examples, and it works out the rules from them.
Deep learning is a subset of machine learning. It uses neural networks with many layers, and it is the reason AI started working on images, audio and free text.
Large Language Models, or LLMs, are a different branch of AI that use deep learning as well as other techniques to generate human-like language. In medicine, LLMs are typically used for AI scribes, interpretation of clinical reports, AI doctors, and that sort of thing. In these articles we are mostly concerned with pure deep learning for the purpose of interpreting images, detecting tumors, etc.
So every deep learning system is machine learning, and every machine learning system is AI, and some systems use LLMs. A paper that says "we used AI" could mean any of these, so read the methods section to find out which.
Rules written by hand
The oldest medical AI had no learning in it at all. MYCIN, built at Stanford in the 1970s, recommended antibiotics for bacterial infections using several hundred if-then rules that its authors wrote down after interviewing infectious disease specialists.
You already use systems like this. A drug interaction alert in your EHR is a rule somebody typed in. So is an early warning score that adds points for heart rate and respiratory rate. They are transparent and completely interpretable, since you can read every rule. They are also brittle, since they know nothing their authors didn't think of.
Nobody would publish these as "AI" today, but they are worth remembering because of their simplicity. If a problem can be solved by ten rules a clinician could write down, they should write down the ten rules and get on with life.
Machine learning: rules from examples
For many problems nobody can state the rules. A radiologist can tell you a nodule looks suspicious but cannot give you a procedure that a programmer could type in. Machine learning gets around this by learning from cases where the answer is already known.
The pattern is the same in every project:
- Collect examples, each with an input (an image, a set of lab values) and the correct answer (malignant, benign).
- Choose a model, which is a mathematical function (usually a neural network - a nn is, in the end, just a big function) with adjustable numbers in it called parameters or weights.
- Show the model the examples and adjust the parameters to shrink the gap between its answers and the correct ones. This step is called training.
- Test the result on examples it has never seen.
If you have fitted a logistic regression to get a best-fit curve, you have done machine learning. The coefficients are the parameters and the fitting is the training. Much of what follows in this knowledge base is the same idea with more parameters.
What is called classical machine learning covers logistic regression, random forests, gradient boosted trees and support vector machines. These work on tables: one row per patient, one column per variable. To use them on images, someone first has to turn each image into numbers by hand, measuring a lesion's diameter, its mean intensity, the roughness of its border. In imaging research this step is called radiomics, and the measurements are called features. The model then learns from the features and never sees the picture.
Classical methods are still a good choice for tabular clinical data, and they work with hundreds of patients where deep learning would need thousands.
Deep learning: the features are learned too
Hand-built features are the weak point of classical machine learning on images. The model can only use what somebody already thought to measure.
A deep neural network takes the raw pixels as input. Its early layers learn to respond to edges and textures, its middle layers to combinations of those, and its late layers to whole structures. Nobody tells it to look for edges. That arrangement comes out of training because it reduces the error.
The idea is decades old. It became practical in 2012, when a deep network called AlexNet won the ImageNet image recognition competition by a wide margin, using graphics cards to do the arithmetic. Within a few years deep learning had replaced hand-built features in most of image analysis, and medical imaging followed.
Deep learning hasn't changed the fact that there's no free lunch, and it comes with its own price:
- Data. A network with millions of parameters needs a lot of examples, or a head start from a model trained on something else (see 3.3 Transfer Learning).
- Compute. Training needs GPUs. A laptop will not do, and compute can be expensive.
- Explanation. You can read a logistic regression coefficient, but you cannot read eleven million weights. There are tools for looking inside a network, and they are much less reliable than their pictures suggest (see 7.4 Explainability and Interpretability in Clinical AI).
Where generative AI fits
ChatGPT and its relatives are deep learning too. They are very large networks trained on text to predict the next word, and it turns out that a model good enough at that can write, summarize and answer questions. Image generators work on a similar principle.
They differ from the models in most medical AI papers in what they produce. A diagnostic model outputs a label or a number from a fixed set, and you can score it against the truth. A generative model outputs new text or a new image, and scoring that is much harder. They get their own article: 1.4 Foundation Models and Large Language Models in Clinical Research.
Words you will hear
A model is the trained function: input in, prediction out. The file your engineer sends you is the model.
An algorithm is, strictly, the procedure used to train a model. In practice people use it to mean the model, and so does the FDA.
Training is fitting the parameters to data. Inference is running the finished model on a new case.
A label is the correct answer attached to a training example. Where it comes from matters a great deal (see 5.7 Reference Standards and Ground Truth in Medical AI).
A feature is an input variable. In classical machine learning you choose the features. In deep learning the network builds its own.
The glossary has the rest.
Why knowing some of this history is useful
Knowing about the techniques that used to be called AI but are now too boring to be in the club is incredibly useful, mostly because it gives you a quiver of techniques that might be way more appropriate and easy to implement than deep learning. It changes the size of the study. A gradient boosted model on twenty lab values can be developed on a few hundred patients. A deep network reading CT volumes from scratch will probably need 100x that many.
It changes what you can say about the result. With a classical model you can report which variables drove the prediction. With a deep network you mostly report how well it performed and on whom.
It changes who you hire. Classical models are within reach of a biostatistician. Deep learning on images needs someone who has done it before. (On the other hand, good luck getting a postdoc who wants to work on random forest models instead of deep learning.)
It does not change what a regulator asks. The FDA regulates what the software is intended to do, and a logistic regression that diagnoses disease is as much a medical device as a neural network that does (see 6.1 When Does Your AI Algorithm Become a Medical Device?).
And it does not change the statistics. Whatever is inside the box, it is a diagnostic or prognostic test, and it should be evaluated like one, with a proper reference standard, an independent test set and confidence intervals.
Key takeaways
- AI is the broad term, machine learning is the part of AI that learns from examples, and deep learning is the part of machine learning that uses many-layered neural networks.
- A rule-based system is still a reasonable choice when a clinician can state the rules.
- Classical machine learning works on tables of features that people choose, and it suits tabular clinical data and small datasets.
- Deep learning builds its own features from raw images, signals or text. It needs more data and more compute, and it is harder to explain.
- Generative models such as ChatGPT are deep learning that produces new text or images, which makes them harder to evaluate than a classifier.
- Whatever the method, the result is a test, and it needs the same validation any diagnostic test needs.
What to read next
- 1.2 Supervised, Unsupervised, and Self-Supervised Learning: the three ways a model can learn from data
- 1.3 Common AI Architectures in Medicine: CNNs, U-Nets and transformers, and where you will meet them
- 1.6 What AI Cannot Do: Limitations and Common Misconceptions: what to expect before you start
- 3.1 The AI Development Lifecycle: From Hypothesis to Deployment: how a project runs from start to finish
This article is part of the AI in Clinical Research Knowledge Base.