Git Product home page Git Product logo

spikesense's Introduction

SpikeSense: Neurophysiological Data Processing Workflow

This repository contains the codebase for an efficient workflow designed for processing electrophysiological data. The workflow is specifically tailored for analyzing in silico generated data from MEArec.

Functionalities

  • Data Processing: The workflow facilitates seamless processing of electrophysiological data originating from MEArec. This includes preprocessing steps to prepare data for further analysis.

  • AI-based Spike Detection: The core of this project features a powerful Transformer model customized for spike detection in neurophysiological time series data. This allows advanced analysis and identification of relevant events in the data.

  • Evaluation and visualization: Evaluation and visualization functions for further investigation of the development and analyzing process.

  • Import: Handling different file formats in order to apply the trained model.

Usage

Installation

The project was developed under Python 3.9 and Linux Ubuntu 22.04 lts. For machine learning tasks a GPU is recommended.

To use the workflow, follow these steps:

  1. Clone the repository: git clone https://github.com/tivenide/SpikeSense
  2. Install the required dependencies: pip install -r requirements.txt

Please install MEArec separately and follow their instructions on: https://mearec.readthedocs.io/en/latest/installation.html

Data Processing (pretrained Transformer)

Execute data processing with the following command:

python cli/spike_detection.py path/to/MEArec_recording_input_data.h5 path/to/spike_trains_output_data

Quick start

Only for demonstration purposes to better understand the workflow and check the installation. Please adjust your MEArec data according to your requirement.

Data generation with MEArec

  1. Use data_generation_MEArec/MEArec_data_generation_quick.py to generate some demo files.
  2. Put the recordings for training into quick/MEArec_training_data_recordings.

Model development

Execute development (quick) with the following command:

python cli/quick_cli.py develop

Model application

Execute data processing with the following command:

python  cli/quick_cli.py process path/to/MEArec_recording_input_data.h5 path/to/spike_trains_output_data

Future Work

  • choosing license

License

Copyright 2023 tivenide. All rights reserved.

spikesense's People

Contributors

tivenide avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.