EEG_ADC Analog-Digital Converter and Analyzer for scanned EEG recordings
Adam Wysokiński 69e56eca2d license changed to 2-clause BSD | 9 months ago | |
---|---|---|
example | 2 years ago | |
LICENSE | 9 months ago | |
README.md | 9 months ago | |
eeg_adc.py | 2 years ago |
This Python script converts scanned EEG recording produced by ECT machines, e.g. Thymatron.
Digitized EEG signal is further analyzed: mainly spectrum and power spectrum are calculated for the whole signal and all EEG bands.
Download and unzip the repository from: https://notabug.org/AdamWysokinski/EEG_ADC/archive/master.zip or clone it using git:
$ git clone https://notabug.org/AdamWysokinski/EEG_ADC
Python 3 and the following Python modules are required:
The scanned input image (PNG preferably) has to be:
The program tries to eliminate noise, background grid, etc. In order to get best results you may also manually remove them using any image editor, e.g. free and open-source GIMP.
To analyze the scanned image, run the program as:
$ ./eeg_adc.py file_name.png
After processing, the following output files are produced:
Output files are stored in the same directory as the input file. Important: old output files are overwritten without prompting!
Below is a typical session:
$ ./eeg_adc.py example/example.png
EEG-ADC analyzer v1.0
=====================
Imported modules:
Matplotlib 3.3.4
NumPy 1.19.5
pandas 1.1.5
SciPy 1.6.0
skimage 0.18.3
Reading input image: example/example.png
Interpolate and digitize..
Saving PNG: example/example-bw.png
Saving CSV: example/example-signal.csv
Applying HP filter at 0.5 Hz..
Calculating FFT..
Calculating PSD..
Saving PDF: example/example-signal.pdf
Saving PDF: example/example-fft.pdf
Saving PDF: example/example-psd.pdf
Saving PDF: example/example-bands.pdf
Saving CSV: example/example-bands.csv
Saving TXT: example/example-report.txt
Analysis completed.
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
v1.0 (06/10/2021) First official release.
Author: Prof. Adam Wysokiński (adam.wysokinski AT umed.lodz.pl)
Department of Old Age Psychiatry and Psychotic Disorders
Medical University of Lodz, Poland
This software is licensed under The 2-Clause BSD License.