What problem does it solve? Multi-site neuroimaging studies suffer from site, scanner, and batch effects that confound downstream machine learning models and inflate benchmark results through site leakage. This skill removes technical variance from subject-level features while preserving biological covariates like age, sex, and diagnosis, enabling honest mega-analysis and cross-site evaluation. ## Core Features & Use Cases - Multiple harmonization methods: ComBat, ComBat-GAM (for wide age ranges), CovBat (for connectome covariance structure), and site-as-covariate regression, selected based on feature granularity and cohort structure. - Site-aware evaluation protocols: Leave-site-out and site-stratified 80/10/10 splitters that fit harmonization on training data only, preventing information leakage into validation and test sets. - Before/after diagnostics: Quantifies per-feature site R² before and after harmonization so you can verify the batch effect was actually removed, with a manifest.json audit trail for provenance. - Use Case: Pool ABIDE I and ADHD-200 connectomes for autism/ADHD classification, run the three-way pilot (random split vs site-stratified vs harmonized) to measure your cohort's site-leakage budget before trusting any accuracy number. ## Quick Start Ask the agent to harmonize my multi-site connectome features with ComBat-GAM using site as the batch variable and age, sex, and diagnosis as protected covariates, then report the site effect before and after.