Common AI Architectures in Medicine

A conceptual overview of convolutional neural networks (CNNs), transformers, recurrent networks, and U-Nets — what each is good at and where you will encounter them in medical literature.


An architecture is the layout of a neural network: how many layers it has, how they connect, and what each one computes. Back in Ye Olde Days (e.g. 6 or 7 years ago) AI research meant designing an architecture. Ancient history - you don't need to design one anymore because there's enough of a catalogue of them that you can choose one best for your task. You do need to recognize the names, because the methods section of every AI paper states one, and the choice tells you what kind of data the model was built for and roughly how much of it the authors needed.

Four families cover nearly everything in the medical literature. A fifth kind of model, which is not a neural network, is on the list because it is sometimes the best answer.

Convolutional neural networks

A convolutional neural network (CNN) is built for images. Its basic part is a small filter, a grid of perhaps three by three numbers, that slides across the image and responds strongly wherever it finds the pattern it has learned. One filter might respond to vertical edges and another to a particular texture.

A layer contains many filters, and layers are stacked. The first layer finds edges. The next finds arrangements of edges, such as corners and curves. Deeper layers respond to larger structures: a rib, a vessel, the border of a mass. At the end, a final layer turns all of this into an answer, such as a probability of pneumonia.

Two properties of CNNs make them suit images particularly well. The same filter is used at every position, so a nodule is recognized wherever it sits in the lung, and the network has far fewer parameters to learn than if each position were treated separately. And because each filter looks at a small neighborhood, the network starts with the assumption that nearby pixels belong together, which is true of pictures.

The CNN names you will see are ResNet, DenseNet, EfficientNet, Inception and VGG. They differ in depth and in how the layers are wired. For reading a paper, the differences rarely matter. All of them are usually pretrained on ImageNet, a collection of over a million everyday photographs, and then adapted to medical images (see 3.3 Transfer Learning).

You will find CNNs behind most image classification work: chest radiographs, retinal photographs, skin lesions, histopathology tiles, mammograms. Versions with three-dimensional filters handle CT and MRI volumes, at a much higher cost in memory.

U-Net

Classification gives one answer per image. Segmentation gives one answer per pixel: tumor or not, left ventricle or not. The result is like the NN is "painting" the structure (tumor, lung, light bulb) onto the X-ray, a process known as segmentation. This needs a different shape of network.

The U-Net was published in 2015 by Olaf Ronneberger, Philipp Fischer and Thomas Brox, for segmenting cells in microscopy images. Ten years later it and its derivatives are still the default for medical image segmentation.

It has two parts. The first is an ordinary CNN that shrinks the image step by step while working out what is in it. The second expands the result step by step back to full size, to say where each thing is. Shrinking throws away fine spatial detail, so the U-Net adds connections that carry the detail from each stage of the first half straight across to the matching stage of the second. Drawn on a page, the network layers are shaped like a U, and those skip connections are the rungs across it.

The design works with small training sets, sometimes a few dozen annotated scans, which is one reason it took over a field where annotation is expensive.

The most important variant (as of November 17 2026, 2:13 pm mountain time) is nnU-Net, from Fabian Isensee and colleagues at the German Cancer Research Center. It is a U-Net that configures itself, choosing its preprocessing and settings from the properties of your dataset. It has won or placed highly in a long list of segmentation challenges, and it is the baseline any new segmentation method is expected to beat. If your project is segmentation, you or your engineer will probably start there.

Recurrent networks

Some data is a sequence or time series: an ECG trace, vital signs every hour, the series of encounters in a patient record. A recurrent neural network (RNN) reads a sequence one step at a time and keeps a running memory of what it has seen.

Plain RNNs forget quickly. The long short-term memory network (LSTM) and the gated recurrent unit (GRU) were designed to hold information across longer stretches, and through the 2010s they were the standard tools for signals, time series and text.

You will meet them in papers on arrhythmia detection, sepsis prediction from ICU data, and early clinical text work. In new work, transformers have largely replaced them. They still turn up where datasets are small or the model has to run on a bedside device.

Transformers

The transformer was introduced in 2017 in a Google paper titled "Attention Is All You Need", for machine translation. It is the architecture behind every large language model and the advancement that led to ChatGPT and its ilk.

Its central mechanism is attention. For each element of the input, a word for instance, the model computes how relevant every other element is to it and draws on the relevant ones. In "the patient denied chest pain but reported dyspnea", attention lets the model connect "denied" to "chest pain" and not to "dyspnea". Unlike an RNN, a transformer looks at the whole sequence at once, so it handles long-range connections well and its training can be spread across many processors.

In 2020 the Vision Transformer (ViT) applied the same idea to images, by cutting an image into small patches and treating each patch like a word. Vision transformers now match or beat CNNs on many imaging tasks.

The catch for clinical research is that a transformer assumes less about its input than a CNN does. It does not start out knowing that neighboring pixels are related and has to learn that from data. Trained from scratch on a few thousand images, a vision transformer usually does worse than a CNN. Its advantage shows when it has been pretrained on a very large collection, which is what foundation models are (see 1.4). So in practice, unless your employer owns data centers you use a transformer someone else has pretrained and adapt it.

Hybrid designs are common. Swin-UNet, UNETR and TransUNet are U-shaped segmentation networks with transformer parts in them.

Gradient boosted trees

If your data is a table, with rows of patients and columns of labs, vitals, demographics and codes, the model to try first is not a neural network.

Gradient boosting builds a long series of small decision trees, each one correcting the errors of those before it. XGBoost, LightGBM and CatBoost are the common implementations. On tabular data they regularly match or beat deep learning. They also train in minutes on a laptop, cope with missing values, and work with hundreds or a few thousand patients.

A paper that applies a deep network to a modest table of clinical variables without comparing it to gradient boosting and logistic regression has skipped a step. As a reviewer, ask for the comparison.

Generative architectures (in passing)

Two more names appear in papers on synthetic data, image reconstruction and image translation. A generative adversarial network (GAN) trains two networks against each other, one producing images and the other trying to tell them from real ones. A diffusion model learns to remove noise from an image step by step, and generates by starting from pure noise. Diffusion models are behind current image generators and have mostly displaced GANs. See 2.8 Synthetic Data and Data Simulation.

At a glance

Architecture Built for Typical medical use Data it needs
CNN Images Classifying radiographs, fundus photos, pathology tiles Thousands of labeled images, fewer with pretraining
U-Net Images, one answer per pixel Segmenting organs, tumors, cells Tens to hundreds of annotated scans
RNN / LSTM Sequences ECG, ICU time series, older text models Varies; workable on small sets
Transformer Text; images when pretrained Language models, report analysis, large imaging models Very large for pretraining, small for adapting
Gradient boosted trees Tables Risk scores from EHR variables Hundreds to thousands of patients

What to do with this

When you read a methods section, check that the architecture fits the data: a CNN or U-Net for images, trees for tables, a pretrained transformer for text. A mismatch needs a justification.

Be skeptical of novelty. A paper whose contribution is a new architecture that beats a standard one by a point of AUC on one dataset has usually shown less than it claims. Differences between reasonable architectures are small next to the effects of data quality, label quality and whether the evaluation was done properly (see 2.1 Why Data Quality Matters More Than Model Complexity).

For your own project, ask your engineer to begin with the standard choice for the task, a pretrained ResNet for classification or nnU-Net for segmentation, and to move away from it only when there is a measured reason.

Key takeaways

  • An architecture is a network's layout, and it should match the type of data: CNNs and U-Nets for images, recurrent networks and transformers for sequences, gradient boosted trees for tables.
  • CNNs slide small learned filters across an image and build from edges up to whole structures. They are behind most image classification in medicine.
  • The U-Net, published in 2015, is the standard for segmentation and works with small annotated datasets. nnU-Net is the baseline to beat.
  • Transformers use attention to relate every part of the input to every other part. They run all large language models and do well on images when pretrained on very large collections.
  • Recurrent networks handled sequences before transformers and now appear mainly in older papers and small-data settings.
  • For tabular clinical data, gradient boosted trees and logistic regression are the baselines, and a deep network should be compared against them.
  • The choice among reasonable architectures matters less than data quality and sound evaluation.

This article is part of the AI in Clinical Research Knowledge Base.