Skip to content

Latest commit

 

History

History
110 lines (86 loc) · 9.76 KB

File metadata and controls

110 lines (86 loc) · 9.76 KB

Syllabus

Welcome to STATS320!

This course is cross-listed as STATS220, NBIO220 and CS339N. They are all the same. Enroll in the version that is best for your degree requirements.

Instructor: Scott Linderman
TAs: Noah Cowan and Amber Hu
Spring Quarter, 2024-25
Stanford University

Course Description

With modern high-density electrodes and optical imaging techniques, neuroscientists routinely measure the activity of hundreds, if not thousands, of cells simultaneously. Coupled with high-resolution behavioral measurements, these datasets offer unprecedented opportunities to learn how neural circuits function. This course will study statistical machine learning methods for analysing such datasets, including: spike sorting and calcium deconvolution techniques for extracting relevant signals from raw data; markerless tracking methods for estimating animal pose in behavioral videos; state space models for analysis of high-dimensional neural and behavioral time-series; point process models of neural spike trains; and deep learning methods for neural encoding and decoding. We will develop the theory behind these models and algorithms and then apply them to real datasets in the in-class coding labs and final project.

Prerequisites

You should be comfortable with basic probability (STATS 116) as well as multivariate calculus and linear algebra. This course will emphasize implementing models and algorithms in Python, so coding proficiency is important. We will have a coding primer in the first week to help get you up to speed if you're coming from R or Matlab.

Logistics

  • Time: MW 1:30pm-2:20pm
  • Location: MW in STLC115
  • Grading: Credit or letter grade
  • Components: Lectures on Mon/Wed
  • Office Hours:
    • Scott: 10:30am-12:00pm Tuesday, Wu Tsai Neurosciences Institute, 2nd floor by the NeuroTheory center
    • Noah: 10am-11:30am Monday, CoDa room B06 (OH on Monday 4/28 moved to Wednesday 4/30)
    • Amber: 1:30-3pm Friday, CoDa room B40
  • This course will have a final project, not an exam

Book

We will use an online textbook that I have been developing over the past few years called Machine Learning Methods for Neural Data Analysis. It's a work in progress, and I will continue to update it throughout the quarter!

Schedule

The lectures develop the theory behind the methods developed in the labs (i.e., homework assignments). I've organized the course into four units: signal extraction, encoding and decoding, unsupervised modeling, and current research. At the end, you'll work on a final project in which you will use, explore, or extend the techniques studied in class.

Unit I: Extracting Biological Signals from Raw Data

Date Neuro Topic ML Topic Reading Assignment
Mon, Mar 31 Course Overview {Download}[slides]<slides/pdf/01_intro.pdf> Basic neurobiology
Probabilistic modeling
Wed, Apr 2 Spike Sorting Mixture Models Spike Sorting by Clustering Lab 1 Out
Mon, Apr 7 Spike Sorting{Download}[slides]<slides/pdf/05_spike_sorting_deconv.pdf> Matrix Factorization Spike Sorting by Deconvolution
Wed, Apr 9 Calcium Deconvolution{Download}[slides]<slides/pdf/06_calcium_imaging.pdf> Convex Optimization Calcium Deconvolution Lab 1 Due
Lab 2 Out
Mon, Apr 14 Markerless Pose Tracking {Download}[slides]<slides/pdf/07_pose_tracking.pdf> Logistic Regression Markerless Pose Tracking
Wed, Apr 16 Markerless Pose Tracking {Download}[slides]<slides/pdf/07_pose_tracking.pdf> Convolutional Neural Networks (CNNs) Markerless Pose Tracking Lab 2 Due
Lab 3 Out

Unit II: Encoding and Decoding Models for Neural Data

Date Neuro Topic ML Topic Reading Assignment
Mon, Apr 21 Neural Encoding {Download}[slides]<slides/pdf/08_encoding.pdf> Generalized Linear Models (GLMs) Summary Statistics and GLMs
Wed, Apr 23 Neural Encoding Poisson GLMs Lab 3 Due
Lab 4 Out
Mon, Apr 28 Bayesian Decoding Poisson Processes{Download}[slides]<slides/pdf/09_poisson_processes.pdf> Poisson Processes
Wed, Apr 30 Bayesian Decoding Bayesian Inference{Download}[slides]<slides/pdf/10_decoding.pdf> Bayesian Decoding Lab 4 Due
Lab 5 Out

Unit III: Unsupervised models of neural and behavioral data

Date Neuro Topic ML Topic Reading Assignment
Mon, May 5 Behavioral Segmentation{Download}[slides]<slides/pdf/11_hmms.pdf> Hidden Markov Models (HMMs) HMMs
Wed, May 7 Behavioral Segmentation{Download}[slides]<slides/pdf/12_em.pdf> Expectation Maximization (EM) HMMs Lab 5 Due
Lab 6 Out
Mon, May 12 Neural Dynamics Switching Linear Dynamical Systems (SLDS){Download}[slides]<slides/pdf/13_slds_new.pdf>
Wed, May 14 Neural Dynamics Fitting (switching) LDS models{Download}[slides]<slides/pdf/13_slds_em.pdf> Lab 6 Due
Lab 7 Out
Fri, May 16 Project Proposal Due

Unit IV: Current Research Topics

Date Topic Reading Assignment
Mon, May 19 Variational Inference (VI){Download}[slides]<slides/pdf/14_vi.pdf> Blei et al. (2018)
Wed, May 21 Sequential Variational Autoencoders{Download}[slides]<slides/pdf/15_lfads.pdf> Pandarinath et al. (2018)
Sat, May 24 Lab 7 Due
Mon, May 26 Memorial Day, No Class
Wed, May 28 Gaussian Process SLDS Models{Download}[slides]<slides/pdf/16_gpslds.pdf> Hu et al. (2024)
Mon, Jun 2 Foundation Models for Neuroscience
Wed, Jun 4 Looking back and looking forward{Download}[slides]<slides/pdf/17_finale.pdf>
Mon, Jun 9 Final Project Due

Labs

  • Each week, you will implement a minimal version of the method we discussed in lecture. These labs will be your assignments.
  • You must work in a team of two people.
  • There's a catch! You may not work with the same person twice. (We will have a discussion forum on Ed to facilitate matching.)
  • Lab reports will be submitted via GradeScope.
  • All assignments are due at 11:59pm PT on the specified date.

Links to Assignments

  1. Lab 1: Spike Sorting by Clustering. Due Wed, Apr 9 at 11:59pm.
  2. Lab 2: Calcium Demixing and Deconvolution Due Wed, Apr 16 at 11:59pm.
  3. Lab 3: Markerless Pose Tracking Due Wed, Apr 23 at 11:59pm.
  4. Lab 4: Generalized Linear Models Due Wed, Apr 30 at 11:59pm.
  5. Lab 5: Bayesian Decoding Due Wed, May 7 at 11:59pm.
  6. Lab 6: Autoregressive HMMs Due Wed, May 14 at 11:59pm.
  7. Lab 7: Variational EM Due Sat, May 24 at 11:59pm.

Final project

  • You will work on the final project in teams of 2 people (you choose your team!)
  • You must use real neural or behavioral data. We will provide links to suggested datasets, or if you are an experimentalist, you can use your own.
  • A project proposal will be due Fri, May 16 at 11:59pm.
  • The final report will be due Mon, June 9 at 11:59pm.

Late Policy

We will allow 7 late days to be used as needed throughout the quarter. Since assignments are done in teams of two, both students must have sufficient late days to turn in a late assignment. Unfortunately, we cannot allow late days on the final project.

Grading

  • 7 labs: 10% each, total 70%
  • Final project: 25%
  • Participation: 5%

Note: You must do a final project in order to pass.