Skip to content

applying the TIMBRE neural network architecture to neuropixel probe data on bats to verify whether LFP recordings encode position!

Notifications You must be signed in to change notification settings

ben-toker/batTIMBRE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

batTIMBRE

Welcome to the batTIMBRE project! This repository is dedicated to applying the TIMBRE architecture (developed by Professor Gautam Agarwal) to neuropixel probe data on bats. The primary goal of this project is to verify whether Local Field Potential (LFP) recordings encode positional information in bats. By analyzing both positional and neural data, we aim to gain insights into the neural underpinnings of bat navigation and spatial awareness.

Bat flight paths!

Bat Flight Paths by Cluster

Files of note

  • bat_TIMBRE.ipynb is where all the most important operations are done. From preprocessing to the final execution of TIMBRE on the bat data, it's all here and (to some extent) explained step by step.
  • bat/example.ipynb is an example notebook of how we can access the bat data and different graphs displaying the nature of the flight paths. It explains that the flight paths are separated by cluster, how the flight paths look in 3D space, and shows cluster position over time.
  • bat/helpers_bat.py contains all the helper methods developed for analyses on the bat data.
  • rat/LFP_demo.ipynb is directly taken from the TIMBRE repository (listed above) - this shows how TIMBRE was applied to the rat data. Compare this to the final cell in bat_TIMBRE.ipynb and we can see how these analyses differ. LFP_demo has been trimmed and has extra debug statements added for more relevant comparison.

Goals with this project

  • Our end goal is training TIMBRE on the bats' LFP (local field potential) and flight path data to see if LFP encodes position, as there is a precedent with carrier-free decoding in rats (see References).
  • Currently, we are focusing on whether LFP can encode the destination of the bats' flight paths. In other words: once trained, will TIMBRE accurately predict if a bat will arrive at either of the two feeders or the perch?
  • If we get good results with this analysis, we will move on to broader, more intensive investigation.

Getting started

First, clone the repository. Next, you will need to create a virtual environment to handle all the dependencies.

Creating development (virtual) environment

We need to create a virtual environment (venv) to handle the odd dependencies of this project. Since we're trying to get two different projects to talk to eachother nicely, this is easily solved with a venv:

python -m venv venv

To activate the environment:

Windows:

venv\Scripts\activate

macOS/Linux:

source venv/bin/activate

Install dependencies using setuptools

pip install -e .

Doing it this way ensures that we can easily establish imports between folders and files using the toplevel structure.

References

About

applying the TIMBRE neural network architecture to neuropixel probe data on bats to verify whether LFP recordings encode position!

Topics

Resources

Stars

Watchers

Forks