Normative modelling and machine learning pipeline for multi-site resting-state EEG in chronic tinnitus.
Built on data from the TIDE consortium (7 sites, ~544 subjects: 276 controls, 268 tinnitus patients) spanning Austin, Dublin, Ghent, Illinois, Regensburg, Tübingen, and Zürich.
- Preprocessing — BIDS conversion, ICA-based artefact rejection, source reconstruction to Desikan–Killiany parcellation
- Feature extraction — spectral power and phase-lag index (PLI) per ROI × frequency band
- Harmonisation — ComBat site-effect removal preserving biological covariates (age, sex, PTA)
- Normative modelling — Bayesian linear regression fitted to controls only (leave-one-site-out); Z-score deviations computed per subject × feature
- Classification — multi-modal ensemble (power + regional PLI + global PLI) with LOSO cross-validation; SHAP-based feature attribution
- Paper figures — reproduction scripts for all manuscript figures
src/
00–02 Data preparation, demographics, quality checks
03–05 BIDS conversion, preprocessing, feature extraction
06–08 Harmonisation, graph metrics, normative models
09–18 Classification, explanation, modality comparison
19–29 Paper analyses and figure generation
material/
master_clean.csv Subject-level metadata (not shared publicly)
audiograms/, questionnaires/
conda env create -f environment.yaml
conda activate tinnorm
# or
pip install -r requirements.txtPython 3.10. Key dependencies: mne, pcntoolkit, shap, scikit-learn, statsmodels, seaborn.
All analysis scripts are run from src/:
cd src
python 08_create_norm_models.py
python 13_compare_clfs.py
python 25_paper_neuro_figures.pyRaw EEG and clinical data are governed by TIDE consortium data-sharing agreements and cannot be redistributed. Researchers may contact the corresponding author to enquire about access. All analysis code is released under the MIT License.
Sadeghi P. et al. — Normative EEG deviation modelling reveals right-lateralised prefrontal theta hyperconnectivity as a cross-site tinnitus biomarker (in preparation)