Teaching & mentoring

I develop open tutorials, teach university courses and workshops, and mentor student research projects supervised by Prof. Karim Jerbi, including student-led work that resulted in a NeurIPS 2026 paper and a Best Poster Award.

Learning resources

Slides, tutorials, and notebooks I’ve developed for teaching and exploring AI and neuroscience.

Core tools & workflows

CoCoLab crash course

A modular introduction to programming, M/EEG, machine learning, and source estimation for new lab members, including best practices for using Alliance Canada’s computing resources.

From signals to trajectories

PCA & neural trajectories

Follow EEG and MEG activity through a low-dimensional state space, with notebooks on neural trajectories, nonlinear projections, and decoding.

Explore how the responses unfold over time, then work through the notebooks and interactive reports.

PC 1 PC 2
  • Famous faces
  • Unfamiliar faces
  • Scrambled images
MEG responses to three image types, averaged across 16 participants and projected onto PC1 and PC2. From the tutorial’s Figure 3b.

Foundation models for M/EEG

Compare classical EEG decoding with pretrained foundation models on motor-imagery data, including fine-tuning.

Python & M/EEG practicals

Python and M/EEG notebooks covering preprocessing, oscillations, evoked responses, and decoding.

French · PSY2008 builds on earlier practicals for Karim Jerbi’s course.

Programming & machine learning

Programming, model training, evaluation, and AI design.

Representational similarity analysis

Work through MEG data and code to compare representations with representational similarity analysis.

Hamza teaching beside representational similarity analysis slides in a classroom.

Courses & workshops

In classrooms, summer schools, and hands-on sessions.

University courses

Université de Montréal

  • Methods in Cognitive Neuroscience I

    Led question-and-answer and recap sessions, supported students throughout course activities, and assessed session assignments.

    View materials UdeM course Syllabus (2026)
  • Brain connectivity & oscillations laboratory

    Taught Python programming and computational EEG analysis. Designed hands-on tutorials spanning preprocessing and cleaning through machine-learning analyses of data collected during the course.

    View materials UdeM course

Summer schools

Lectures, coding, and project support

  • Indigenous Pathfinders in AI

    Mila – Quebec AI Institute · Montréal, Canada

    I teach programming and machine learning to First Nations, Inuit, and Métis participants through lectures and hands-on AI projects.

    View materials 2024 teaching announcement 2024 program update About the program
  • Computational Neuroscience Summer School

    Arabs in Neuroscience · Online

    Supported coding tutorials in probability, calculus, linear algebra, and statistics, and mentored a two-day project applying machine learning to fMRI decoding.

    My recap

Workshops

Focused introductions with room to experiment

  • Foundation models for M/EEG

    View materials

    Led a hands-on workshop comparing classical EEG decoding with pretrained and fine-tuned foundation models.

  • Future Imaginaries Workshop Series

    View materials

    Co-developed and co-taught hands-on AI and language-modeling workshops with Ceyda Yolgörmez (and Hugo Berard in Tkaronto and Hawaiʻi) across four Indigenous-led Abundant Intelligences research hubs.

    Sessions & locations
    • Niitsitapi Pod, University of Lethbridge (March): introduction to AI with hands-on activities, co-led with Ceyda Yolgörmez.
    • Haudenosaunee Pod, Western University (April): language-modeling concepts and a technical working session on LLMs, co-led with Ceyda Yolgörmez.
    • Tkaronto Pod, OCAD University (June): introduction to AI and hands-on activities using CNNs and LLMs, co-delivered with Ceyda Yolgörmez and Hugo Berard.
    • Ka Hawaiʻi Pae ʻĀina Pod (20 November): introduction to AI, designing AI systems, foundation models, alignment, and hands-on activities, co-delivered with Ceyda Yolgörmez and Hugo Berard.
  • Representational Similarity Analysis with MEG

    View materials

    Introduced representational similarity analysis through a guided MEG analysis tutorial.

  • Coding 101: Scratch for school pupils

    Event report & photos IEEE involvement
    Photo
    Hamza helping pupils during Coding 101, with the other visible faces blurred.
    Coding 101 · November 2018

    Helped pupils learn Scratch, with a focus on encouraging girls in STEM.

Research mentoring

I mentor students supervised by Prof. Karim Jerbi, supporting their research in AI and neuroscience.

Ongoing mentoring

  • Maryem Benslimane

    Engineering internship → MScSummer 2024–present

    Emotion representations in EEG and artificial neural networks using representational similarity analysis. This work led to a NeurIPS 2026 Main Track paper.

    Read NeurIPS 2026 paper

  • Syrine Mattousi

    MSc studentSummer 2025–present

    Epilepsy classification from EEG using signal features, machine learning, and foundation models. Her poster received a Millénium Québecor Best Poster Award at USS 2026.

    USS 2026 Best Poster Award

Earlier mentoring

  • Fouad Lbakali

    Undergraduate research internSummer 2026

    Foundation-model development for MEG.

  • Alexandre Louis

    Undergraduate research internSummer 2026

    Dream-recall classification using Riemannian geometry and machine learning.

  • Mehdi Jerbi

    Undergraduate research internSummer 2025

    ADHD classification from pediatric EEG using machine learning.

  • Anis Abdeladim

    Undergraduate research internSummer 2024

    Face-identity classification building on my MSc research.

  • Meriem Rebaani

    Engineering graduation internSummer 2024

    How loss functions shape representations in face-recognition models.