Rebioin AI Rebioin AI Build AI Skill for tomorrow's leader
Science and education

Can a Brain-MRI AI Work at a Hospital It Has Never Seen? Lessons from a Multi-Site Study

RebioinAI 10 Oct 2026

Can an AI model trained on brain MRI scans from one hospital accurately analyse scans from another? Discover how scanner differences, site effects and shortcut learning can affect medical AI, and why external validation is essential for building trustworthy brain-imaging models.

Can a Brain-MRI AI Work at a Hospital It Has Never Seen?

Rebioin AI Blog · AI × Neuroscience

In short

  1. Brain MRI scans from different hospitals look slightly different, even for the same person. These differences are called site effects.
  2. An AI model can accidentally learn these differences instead of the biology it is supposed to find.
  3. That is why a brain-imaging model must be tested on scanners and sites it has never seen, not just on more data from the same place.
  4. This post is a plain-language guide to the idea. It is a concept explainer, not a diagnostic tool, and not a report of new results.

A test that works in your lab but not in the lab next door

Imagine you develop a diagnostic assay that works beautifully in your own lab. You send it to a lab across town, and it behaves very differently. Before blaming the assay, you would ask a smarter question: did it measure the disease, or did it pick up something about your lab, such as the instrument, the reagent lot or the operator?

The same question matters for AI models that read brain scans. This post explains why, using ideas you already know from the bench. You do not need a bioinformatics background.

Why use AI on brain scans at all?

Many psychiatric and neurological conditions are recognized mainly through a clinician’s assessment of symptoms. Researchers are therefore interested in whether imaging, combined with AI, could add objective information. A standard T1-weighted MRI is a good candidate: it is widely available and it shows anatomy clearly, including gray matter, white matter and fluid-filled spaces.

A convolutional neural network (CNN) is the kind of AI often used for this. It is a pattern detector built in layers. Think of how you learned to read histology slides: first you notice edges and textures, then shapes, then whole structures. A CNN learns a similar hierarchy by itself from thousands of labeled examples. A 3D CNN reads a full 3D volume instead of a flat picture.

Wet-lab translation: training a CNN is like training an extremely fast student on thousands of labeled slides. And like any student, it can pick up the wrong clue if the slides happen to contain one.

What are site effects?

An MRI scanner is an instrument, and instruments differ. Two hospitals may use different scanner brands, magnetic field strengths, software, scanning settings, coils and image reconstruction methods. They also scan different groups of people. The result is that images of the same brain can look different depending on where they were taken. Studies of brain-imaging measurements have shown that scanner differences can substantially change the numbers extracted from the images, and that identifying these effects is crucial for drawing valid conclusions [3].

Wet-lab translation: this is a batch effect. Imagine every treated sample was run on Monday and every control on Friday. If you see a difference, is it the drug or the day? Plate readers, spectrophotometers and sequencers all have their own quirks, and so do MRI scanners.

Now add the second ingredient. If one hospital mostly contributes patients and another mostly contributes healthy volunteers, then the site becomes a clue about the diagnosis. A model can score well by recognizing the site without ever learning anything about the disease.

When AI takes the shortcut

Computer scientists call this shortcut learning: the model finds a decision rule that works on the benchmark but fails under harder, more realistic conditions [2].

Medical imaging has a well-known example. In 2018, researchers trained CNNs to detect pneumonia on chest X-rays from three hospital systems. The networks could identify which hospital an X-ray came from almost perfectly. Because the rate of pneumonia differed between hospitals, simply knowing the hospital was already a surprisingly strong predictor, and models trained on pooled data performed better on those hospitals than on a new one [1]. The model was partly reading the hospital, not just the lungs.

This does not mean AI cannot work on medical images. It means we have to design our tests so that shortcuts get exposed rather than rewarded.

Why test on a scanner the model has never seen?

There are two very different kinds of exam:

  1. The open-book exam: the test images come from the same hospitals and scanners as the training images. The model has effectively seen the style of the questions before.
  2. The real exam: the test images come from a hospital or scanner that was kept completely out of training. This is how the model would actually be used.

A model can do well on the first and poorly on the second. Only the second tells you whether it is ready to leave the lab where it was built. This is sometimes called external validation, or, when you hold out one whole site at a time, leave-one-site-out testing.

A short checklist for reading any brain-imaging AI paper

Whether you are a student reading a paper or planning your own project, these five questions help:

  1. Where did the test data come from? Were they from sites that also appear in the training data, or from a completely new site?
  2. Is the diagnosis linked to the site? If patients and controls come from different places, the model can cheat.
  3. Is there a simple baseline? A model that uses only age and sex, or only image-quality numbers, tells you how much of the result might be not biology.
  4. Was the split done by person? The same individual should never appear in both the training and test sets.
  5. Are the results reported site by site, with repeats? An average can hide big differences between sites, and a single run can be a fluke.

A related caution applies to heat-maps such as Grad-CAM, which highlight regions that influenced a prediction [5]. They show where the network “looked,” not that those regions cause the disease. If site effects are present, a heat-map can light up for reasons that have nothing to do with biology.

What can scientists do about site effects?

Researchers have several tools:

  1. Harmonization. ComBat is a batch-effect correction method borrowed from genomics. It has been used to remove scanner and site effects from brain-imaging measurements while preserving biological differences [3].
  2. Traveling subjects. Some projects scan the same healthy people at many sites, so that site differences can be measured directly. Public resources such as the SRPBS database were built with this in mind [4].
  3. Anatomical features. Using regional volumes or cortical thickness instead of raw voxel intensities may reduce sensitivity to scanner differences, although it does not remove it.
  4. Independent validation. Testing on a completely separate dataset remains the most convincing check.

Take-home messages

  1. Accuracy on data that looks like your training data can be an optimistic number.
  2. Always ask what else, besides biology, could separate your groups.
  3. “The model works” should be followed by “where, and on whom?”
  4. Honest testing is not pessimism. It is how brain-imaging AI earns trust.

We are exploring these questions in our own research at Rebioin AI and will share more when it is ready.

Think about it

  1. In your own lab work, where could a hidden “site effect” come from (different days, instruments, operators, reagent lots), and how do you control for it?
  2. If you could scan the same person at ten different hospitals, what would that let you measure?
  3. Why might a simple model sometimes generalize better than a very complex one when the training data are limited?

Conclusion: a model is only as good as its worst-case hospital

A brain-scan model that works at the hospital where it was trained is not the same as one that works at the hospital next door. Understanding site effects, and testing against them, is one of the most important steps between a promising idea and a trustworthy tool. At Rebioin AI, we believe understanding the connection between artificial intelligence and life sciences is an important step towards the next generation of biotechnology research.

Quick glossary

  1. MRI / T1-weighted scan: a 3D image of soft tissue; the T1-weighted type shows anatomy clearly.
  2. CNN (convolutional neural network): a layered pattern detector; a 3D CNN reads a whole 3D volume.
  3. Site effect / batch effect: differences in the data caused by where or how it was collected, not by biology.
  4. Shortcut learning: a model succeeding by using an easy but misleading clue.
  5. External validation: testing a model on data from a completely independent source.
  6. Leave-one-site-out: training on all sites but one, then testing on the one left out.
  7. Grad-CAM: a method for drawing a heat-map of the regions that influenced a CNN’s prediction.
  8. Harmonization (e.g., ComBat): statistical correction that removes site or batch effects.
  9. Traveling subjects: the same people scanned at several sites, to measure site differences directly.

References

  1. Zech JR, Badgeley MA, Liu M, Costa AB, Titano JJ, Oermann EK. Variable generalization performance of a deep learning model to detect pneumonia in chest radiographs: a cross-sectional study. PLoS Med 2018;15(11):e1002683. doi:10.1371/journal.pmed.1002683
  2. Geirhos R, Jacobsen J-H, Michaelis C, Zemel R, Brendel W, Bethge M, Wichmann FA. Shortcut learning in deep neural networks. Nat Mach Intell 2020;2:665–673. doi:10.1038/s42256-020-00257-z
  3. Fortin J-P, Cullen N, Sheline YI, et al. Harmonization of cortical thickness measurements across scanners and sites. NeuroImage 2018;167:104–120. doi:10.1016/j.neuroimage.2017.11.024
  4. Tanaka SC, Yamashita A, Yahata N, et al. A multi-site, multi-disorder resting-state magnetic resonance image database. Sci Data 2021;8:227. doi:10.1038/s41597-021-01004-8
  5. Selvaraju RR, Cogswell M, Das A, Vedantam R, Parikh D, Batra D. Grad-CAM: visual explanations from deep networks via gradient-based localization. Int J Comput Vis 2020;128:336–359. doi:10.1007/s11263-019-01228-7


Artificial Intelligence Brain MRI Neuroscience Medical Imaging Deep Learning CNN Site Effects Batch Effects AI in Healthcare Brain Imaging Model Generalization External Validation Bioinformatics
Keep Reading

Related Articles