bioRxivNeurosciencePreprint
Diagnose Harmonisation (DHARM): An open-source tool for the harmonisation and analysis of batch effects in MRI-derived measures.
Jacob TurnbulliD, Gaurav BhaleraoiD, Thomas E. NicholsiD, Paul McCarthy, Grace GillisiD, Jasmine BlaneiD, Brian Zhaoyi MoiD, Shaun WarringtoniD, Stamatios N. SotiropoulosiD, Renato BesencziiD, Fidel Alfaro-AlmagroiD, Stephen M. SmithiD, Ludovica GriffantiiD
Abstract
Technical differences between scanners, acquisition protocols, machine hardware and processing pipelines can introduce systematic variation into MRI-derived measures. Numerous harmonisation methods have been developed to reduce these effects. However, validation of these methods is often performed using different criteria depending on the method itself, the datasets used and the study design. Consequently, determining whether harmonisation is required, selecting an appropriate method and establishing whether or not technical variation has been sufficiently removed without compromising biological signal remain challenging. In this manuscript, we introduce Diagnose Harmonisation (DHARM), an open-source Python toolbox for diagnosing batch effects, applying harmonisation and evaluating harmonisation performance in cross-sectional and repeated-measures settings. DHARM is user-friendly, comes with GUI-based and command-line interfaces, and has graphical reporting. It provides standardised reporting workflows combining complementary measures of batch-associated differences in feature location, scale, empirical distributions, covariance and multivariate structure, together with measures assessing preservation of biological covariate effects and repeated-measures consistency. The framework includes several established harmonisation approaches, but its evaluation workflow is method-agnostic: users can also supply data harmonised using external or newly developed methods and benchmark their outputs using the same common set of diagnostics. We demonstrate DHARM using multisite cross-sectional MRI measures from UK Biobank, Cam-CAN and OxBAC as well as travelling-heads data from the ON-Harmony dataset. Across the cross-sectional datasets, harmonisation substantially reduced additive batch effects, while residual differences in variance and empirical distributions varied between methods. Multivariate diagnostics further demonstrated that reduction of batch-associated structure can coexist with preservation or increased detectability of biologically relevant variation. In the repeated-measures example, harmonisation reduced batch-associated and within-subject variability, while broadly preserving subject-level and biological relationships. DHARM provides a reproducible framework for diagnosing batch effects, applying different harmonisation methods and evaluating harmonisation as a multi-criteria problem rather than relying on a single measure of success. By jointly characterising technical variation and preservation of biologically meaningful information, DHARM can support dataset- and objective-specific selection, benchmarking and validation of harmonisation strategies.
- assay: imaging
- research focus: batch correction / integration
- approach: deep learning
- approach: statistical model
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Goal-specific brain MRI harmonization
Lijun An, Jianzhong Chen, … the Australian Imaging Biomarkers and Lifestyle Study of Aging·NeuroImagePeer-reviewed·Aug 17, 2022
- Harmonization of diffusion MRI datasets with adaptive dictionary learning
Samuel St‐Jean, Max A. Viergever, Alexander Leemans·Human Brain MappingPeer-reviewed·Aug 26, 2020
- Retrospective harmonization of multi-site diffusion MRI data acquired with different acquisition parameters
Suheyla Cetin Karayumak, Sylvain Bouix A, … Yogesh Rathi A·NeuroImagePeer-reviewed·Sep 8, 2018
- ComBatFamQC: Streamlining Interactive Batch-Effect Diagnostics and Harmonization for Neuroimaging Data in R
Zheng Ren, Elizabeth A. Horwath, … Haochang Shou·bioRxiv·Aug 4, 2026
- DeepComBat: A Statistically Motivated, Hyperparameter-Robust, Deep Learning Approach to Harmonization of Neuroimaging Data
Fengling Hu, Alfredo Lucas, … The Alzheimer's Disease Neuroimaging Initiative·Human Brain MappingPeer-reviewed·Jul 26, 2024
- A resource for development and comparison of multi-modal brain 3T MRI harmonisation approaches
Shaun Warrington, Asante Ntata, … Stamatios N. Sotiropoulos·Imaging NeurosciencePeer-reviewed·Nov 20, 2023