← Latest papers
🧠 neuroscience

Beyond Cross-Sectional BARTharm: A Comprehensive Bayesian Framework for Longitudinal Harmonisation, Posterior Prediction, and Uncertainty Quantification

This paper introduces Long-BARTharm, a comprehensive Bayesian framework that extends the cross-sectional BARTharm tool to longitudinal MRI data by incorporating subject-specific random effects for harmonisation, while also enabling efficient posterior predictive harmonisation and uncertainty-aware downstream inference to more effectively remove scanner-induced variability and preserve biological associations.

Original authors: Ghassaei, Y., Dilan, L., Prevot, E., Nichols, T. E., Gangahi, H.

Published 2026-11-30
📖 7 min read🧠 Deep dive

Original authors: Ghassaei, Y., Dilan, L., Prevot, E., Nichols, T. E., Gangahi, H.

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). ⚕️ This is an AI-generated explanation of a preprint that has not been peer-reviewed. It is not medical advice. Do not make health decisions based on this content. Read full disclaimer

Imagine trying to track the slow, subtle changes in a human brain over many years, using magnetic resonance imaging (MRI) scans. This is how scientists study aging and diseases like Alzheimer's, looking for the thinning of brain tissue that signals trouble. But there is a major obstacle: these scans are rarely taken on the same machine. A patient might visit a hospital in London for their first scan, then travel to a different city for a follow-up years later. Even if the machines are from the same manufacturer, they are not identical. They have different hardware, settings, and quirks that introduce a layer of technical noise. This noise can look exactly like the biological changes researchers are trying to find, or it can hide them completely. To make sense of data collected from dozens of different sites, scientists must "harmonise" the images, stripping away the machine-specific errors while keeping the true biological story intact.

For years, researchers have used statistical tools to fix these inconsistencies, but most of these tools were designed for a single snapshot in time. They treat every scan as an independent event, ignoring the fact that the same person's brain is being measured repeatedly. This approach fails to capture the unique trajectory of an individual's aging. Furthermore, traditional methods often rely on rigid assumptions about how machines differ, which can miss complex patterns in the data. A new study by researchers at the University of Oxford addresses these gaps by introducing a more flexible, comprehensive system called Long-BARTharm. This method does not just correct for the machine; it learns the unique path of every individual patient, accounts for the specific quality of each scan, and provides a way to measure how certain we can be about the final results.

The researchers began by acknowledging that the old way of handling repeated scans was insufficient. Previous methods, such as a popular tool called LongComBat, would adjust for the machine used but treated the relationship between time and brain change as a straight, simple line. They also relied on a simple label for the machine, like "Scanner A" or "Scanner B," without considering that two scans from the same machine could still differ in quality due to noise or other factors. The Oxford team realized that to truly understand brain aging, they needed a system that could handle the complexity of real-world data. They needed a tool that could learn non-linear patterns—where changes might speed up or slow down unpredictably—and that could use detailed information about the image quality itself to make corrections.

To solve this, the team built upon a previous method called BARTharm, which used a powerful type of statistical learning known as Bayesian Additive Regression Trees. Think of this as a system that builds a complex model by combining many simple decision rules, allowing it to capture intricate relationships without forcing the data into a pre-defined shape. They extended this to handle longitudinal data by adding "random intercepts and slopes." In plain terms, this means the model learns a unique starting point and a unique rate of change for every single person in the study. It understands that while the general population might show a certain pattern of brain thinning, one specific person might start with a thicker cortex and thin faster, while another starts thinner and changes slowly. By modeling these individual paths, the system can separate the true biological story of that person from the noise introduced by the scanner.

The new method also makes use of Image Quality Metrics, which are numerical scores that describe how clear or noisy a specific scan is. Instead of just knowing which machine took the picture, the model looks at the actual quality of that specific image. If a scan is slightly noisier than usual, the model can adjust for that specific imperfection. This is a significant improvement over older tools that assume all scans from a given machine are equally flawed. In their tests, the researchers created thousands of simulated datasets where they knew the exact truth: they knew exactly how much the brain should have changed and exactly how much the machine had distorted the image. In every single scenario, the new Long-BARTharm method removed the machine errors more effectively than the standard LongComBat tool, while preserving the true biological changes with greater accuracy.

When the team applied their method to real-world data from the Alzheimer's Disease Neuroimaging Initiative, which includes scans from hundreds of patients over many years, the results were consistent. The new method successfully reduced the differences caused by the various scanners used across different sites. More importantly, it preserved the biological signals. The researchers found that the new tool provided stronger statistical evidence for the expected thinning of the brain over time compared to the older methods. This suggests that by removing the technical noise more precisely, the true biological story becomes clearer and easier to detect.

A second major innovation in this work is what the researchers call "posterior predictive harmonisation." Usually, when a new patient arrives for a scan, or when a study adds a new year of data, scientists have to run the entire complex statistical model again from scratch. This is computationally expensive and slow. The new framework allows researchers to take a model that has already been trained on a large dataset and apply it to new, unseen observations instantly. They do not need to re-run the heavy calculations. The study showed that these instant adjustments were nearly identical to what would have been produced if the new data had been included in the original, full analysis. This means that as large, multi-site studies grow and collect more data over time, they can update their harmonised results quickly and efficiently without waiting for days of computer processing.

Finally, the study tackles a problem that is often overlooked: uncertainty. When a statistical tool corrects a measurement, it produces a number, but it does not always tell us how confident it is in that number. In the past, researchers treated these corrected numbers as if they were perfect facts. The Oxford team realized that the level of uncertainty varies from person to person and from brain region to brain region. Some scans are easier to correct than others. By using the full power of their Bayesian framework, they could calculate a specific measure of uncertainty for every single corrected data point. They then tested what happened if they used these uncertainty measures to weight the data in future analyses, giving more importance to the measurements that were corrected with high confidence and less to those that were less certain. They found that this approach made the statistical evidence for biological associations even stronger.

The researchers also took care to ensure they were not accidentally removing the very biological information they wanted to study. Some measures of image quality are actually linked to the anatomy of the brain itself, such as the amount of fluid or tissue in a specific area. If the model used these as correction factors, it might erase the disease signal. The team carefully screened their data, excluding any image quality metrics that were too closely tied to biological traits, ensuring that only the technical noise was removed.

In the end, this work offers a more complete toolkit for the future of brain imaging. It moves beyond simple, one-size-fits-all corrections to a system that respects the individuality of each patient's brain trajectory and the specific quality of each scan. It allows for the rapid integration of new data as studies grow, and it provides a way to understand how much trust to place in every corrected number. By combining these capabilities, the researchers have provided a way to see the subtle, long-term changes in the human brain with greater clarity, helping to distinguish the true signs of aging and disease from the static of the machines used to measure them.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →