💻 🧠 Contact school.brainhack@gmail.com for questions! 🧠 💻

Functional Connectivity in ADHD: Group Differences and Predictive Modeling During Spatial Working Memory Task

By Nilay Ozdemir Haksever
Published on June 3, 2025

"Firstly, this project investigates differences in frontoparietal brain connectivity between individuals diagnosed with ADHD and control participants during Spatial Working Memory Task, using fMRI-based connectivity data. In the second part of this project, To classify individuals as either having ADHD or being in control group based on functional connectivity data features machine learning models was tested by using k-fold cross validation."

Project definition

Background

Working memory is a core component of executive function, and spatial working memory is often impaired in ADHD. Deficits in working memory contribute to:

  • Inattention, impulsivity, and poor task performance
  • Difficulty sustaining attention in spatial contexts Neural Mechanisms: SWM tasks typically activate:
  • Dorsolateral prefrontal cortex (DLPFC): for maintaining and manipulating information
  • Parietal cortex: for spatial processing

In ADHD, these areas show reduced activation.

Tools

  • The “project template” project will rely on the following technologies:
  • Git and Github
  • Python libraries:
  • ScikitLearn for machine learning,
  • Nilearn for fMRI connectivity analysis
  • Pyplot, Matplotlib, Seaborn for data visualization
  • Jupyter Notebook

Data

The dataset obtained from following project.

Alpha oscillations and working memory deficits in ADHD: A multimodal imaging investigation (R01MH116268)

https://nda.nih.gov/edit_collection.html?id=3101

It was a multimodal data containing both fMRI and EEG. This project only focused on the fMRI data. A total of 68 young adults was used in these analyses (39 ADHD, 29 Control; Mage: 21.35) The data was based on a computerized version of the spatial working memory (SWM) task.

Deliverables

At the end of this project, I have:

  • A Github repository with code scripts (https://github.com/nilayoh/swm_fmri_project.git)
  • Figures and results summarizing the performance of the model and showing the functional connectivity across regions
  • Jupyter notebook that includes analysis codes and visualizations

Results

meanfrontoparietalfconn BrainAllDiff These images show mean functional connectivity across frontoparietal regions of the brain. Blue color indicate higher functional connectivity for Control than ADHD patients. Red color indicates higher functional connectivity for ADHD patients than control group.

signdifferencesinfrontoparietalconnec BrainSignDiff These images show significant differences between ADHD and control group across frontoparietall regions of the brain before FDR correction.

FDRCorrected No significant difference between ADHD and Control group across these areas after FDR correction.

Even though I could not find significant difference for practice I would like to continue to investigate my second part of the project. I used machine learning methods to classify participants as ADHD or control. I used k-fold cross validation (k=5) to test my model. The cross validation accuracy across folds can be seen in following graph. KFold_ML

Conclusion and acknowledgement

What I’ve Learned:

Understanding fMRI Data:

  • Downloading, organizing datasets
  • Managing confounding variables Functional Connectivity Analysis:
  • Comparing ADHD vs. Control groups using connectivity matrices
  • Using atlases for brain parcellation Debugging & Code Practice:
  • Troubleshooting analysis pipelines in Python
  • Gaining confidence in working with neuroimaging libraries (e.g., Nilearn, Nibabel) Introduction to Machine Learning:
  • Applying classification techniques to distinguish between ADHD and Control groups
  • Exploring pipelines for diagnosis-based predictions

Thank you to all TAs, Dr. Erin Dickie, for all your help in the process and this opportunity. Also, thank you to Joel Diaz for providing the data and helping.

See also these similar projects

Comparing different methods for mice behavioral analysis

Our project aims to develop different methods for the analysis of behavior in mice (in this case, exploration of an object) to determine which is the …

Discover this project

Dynamic Functional Connectivity of the Default Mode Network in ADHD

This project examines dynamic functional connectivity (dFC) within the Default Mode Network (DMN) in children with ADHD using the ADHD-200 dataset. …

Discover this project

Predicting Neuroticism and Personality Traits from fMRI Data

Are neuropsychiatric disorders extreme cases of connectivity patterns that are found in the overall population? Using personality traits as a measure …

Discover this project