Background: Diffusion MRI (dMRI) infers white-matter tracts using stored gradient tables. If a table is flipped or permuted relative to the image coordinates during conversion or transfer, downstream tractography is silently corrupted. New method: GradLint is a fast, open-source tool that detects gradient flips, audits acquisition schemes, and repairs corrupted tables. It evaluates all 48 signed-permutation candidate conventions from a single DTI fit using an analytic matrix transformation, ranking them with an anatomy-anchored, directional-stepping fiber-coherence index. Results: On 1106 corrupted cases (HCP, single-site, and clinical datasets), GradLint ranked the correct convention first in every case and retained antipode-aware agreement with the field reference dwigradcheck. At the default 2% relative-margin threshold, --apply-repair yielded 1022 correct FLAG repairs; 84 L5 WARN cases required additional --force-repair authorization. Without authorization, corrections were withheld. It successfully resolved acquisition obliquity in voxel space. The frame-aware writer verified correctness on 190 subjects. With eight threads per tool, the median within-subject speed-up was 12.90-23.25× across the three timing groups; with automatic/default threading it was 5.27-8.91×. GradLint's eight-thread median check times were 2.85-14.07s. Comparison with existing methods: Unlike tools that repeat expensive tracking or DTI fitting for every candidate, GradLint obtains all candidate eigenvector fields analytically from one fit. It integrates a scheme quality-control audit, outputs machine-readable provenance, returns exit codes for CI/CD integration, and generates optional DTI principal-direction glyph figures. Conclusions: GradLint is a fast, open-source Rust tool that acts as a quality-control gate, guarding dMRI preprocessing pipelines against silent orientation errors.

GradLint: A fast, open-source Rust tool for b-vector flip detection, gradient-scheme QC, and auto-repair in diffusion MRI / Tagliaferri, M., Cattaneo, L.. - In: JOURNAL OF NEUROSCIENCE METHODS. - ISSN 0165-0270. - 438:(2027), pp. 11094201-11094214. [10.1016/j.jneumeth.2026.110942]

GradLint: A fast, open-source Rust tool for b-vector flip detection, gradient-scheme QC, and auto-repair in diffusion MRI

Marco Tagliaferri
Primo
;
Luigi Cattaneo
Ultimo
2027-01-01

Abstract

Background: Diffusion MRI (dMRI) infers white-matter tracts using stored gradient tables. If a table is flipped or permuted relative to the image coordinates during conversion or transfer, downstream tractography is silently corrupted. New method: GradLint is a fast, open-source tool that detects gradient flips, audits acquisition schemes, and repairs corrupted tables. It evaluates all 48 signed-permutation candidate conventions from a single DTI fit using an analytic matrix transformation, ranking them with an anatomy-anchored, directional-stepping fiber-coherence index. Results: On 1106 corrupted cases (HCP, single-site, and clinical datasets), GradLint ranked the correct convention first in every case and retained antipode-aware agreement with the field reference dwigradcheck. At the default 2% relative-margin threshold, --apply-repair yielded 1022 correct FLAG repairs; 84 L5 WARN cases required additional --force-repair authorization. Without authorization, corrections were withheld. It successfully resolved acquisition obliquity in voxel space. The frame-aware writer verified correctness on 190 subjects. With eight threads per tool, the median within-subject speed-up was 12.90-23.25× across the three timing groups; with automatic/default threading it was 5.27-8.91×. GradLint's eight-thread median check times were 2.85-14.07s. Comparison with existing methods: Unlike tools that repeat expensive tracking or DTI fitting for every candidate, GradLint obtains all candidate eigenvector fields analytically from one fit. It integrates a scheme quality-control audit, outputs machine-readable provenance, returns exit codes for CI/CD integration, and generates optional DTI principal-direction glyph figures. Conclusions: GradLint is a fast, open-source Rust tool that acts as a quality-control gate, guarding dMRI preprocessing pipelines against silent orientation errors.
2027
Tagliaferri, Marco; Cattaneo, Luigi
GradLint: A fast, open-source Rust tool for b-vector flip detection, gradient-scheme QC, and auto-repair in diffusion MRI / Tagliaferri, M., Cattaneo, L.. - In: JOURNAL OF NEUROSCIENCE METHODS. - ISSN 0165-0270. - 438:(2027), pp. 11094201-11094214. [10.1016/j.jneumeth.2026.110942]
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11572/510411
 Attenzione

Attenzione! I dati visualizzati non sono stati sottoposti a validazione da parte dell'ateneo

Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? ND
  • OpenAlex ND
social impact