### 2019-09-03, 16:00–17:30, Track 3 (Oteiza)

*kCSD* is a Python package for localization of sources of brain electric activity based on recorded electric potentials.

Electric potential measured in the brain is generated by transmembrane ionic currents of neural cells. Due to the long range of electric field simultaneously recorded extracellular potential - EEG, local field potential (LFP) - at different places are typically strongly correlated which complicates their analysis. It is thus useful to reconstruct their current sources which in practice means solving Poisson equation. The first method for estimation of *Current Source Density* (CSD) from measured potentials was proposed in the early 1950s (1). Despite some developments, a number of limitations were present until recently, in particular, most previous methods required recordings with regular grids of electrodes and overfitted to noise.

The *kernel Current Source Density* method (kCSD) developed in 2012 (2) uses kernel methods to estimate the potential and CSD in the whole space, from arbitrary distribution of electrodes using regularization to minimize the influence of noise on reconstruction. In this tutorial we will demonstrate kCSD-python package (3) which allows reconstruction of CSD in different dimensions.

After this tutorial you will be able to: * estimate the distribution of current sources based on the exact values of the electric field potentials, * deal with measurement noise, * diagnose the quality of the obtained reconstruction.

# Requirements:

- Python 2.7/3.4+ environment (Anaconda with Jupyter Notebook recommended),
- numpy, scipy, matplotlib packages installed,
- kcsd package installed or possibility to download it from GitHub (4) (network connection etc.).

# Authors

- Chaitanya Chintaluri,
- Marta Kowalska,
- Michał Czerwiński,
- Władysław Średniawa,
- Joanna Jędrzejewska-Szmek,
- Daniel K. Wójcik

# Bibliography

- Pitts, W. H. (1952),
*Investigations on synaptic transmission*, in 'Cybernetics, Trans. 9th Conf. Josiah Macy Foundation H. von Foerster', pp. 159-166. - Potworowski, J., Jakuczun, W., Łęski, S. & Wójcik, D. (2012)
*Kernel current source density method*. Neural Comput 24(2), 541-575. *Kernel Current Source Density*https://github.com/Neuroinflab/kCSD-python

# Acknowledgement

Project funded from the Polish National Science Centre's SYMFONIA (2013/08/W/NZ4/00691) and OPUS (2015/17/B/ST7/04123) grants.

**Abstract as a tweet**– Localize sources of brain activity using kcsd Python package.

**Domains**– Data Visualisation, Medicine/Health, Open Source

**Domain Expertise**– some

**Python Skill Level**– basic

**Project Homepage / Git**– https://github.com/Neuroinflab/kCSD-python