2.1.2.7. Medical Data

2.1.2.7.1. Main Functions

teaspoon.MakeData.DynSysLib.medical_data.EEG(SampleSize=5000, dynamic_state='normal')[source]

The EEG signal was taken from andrzejak et al. [1]. Specifically, the first 5000 data points from the EEG data of a healthy patient from set A (file Z-093) was used and the first 5000 data points of a patient experiencing a seizure from set E (file S-056) was used (see figure below for case during seizure).

../../../_images/EEG_Data.png
Parameters:
  • SampleSize (Optional[int]) – length of sample at end of entire time series

  • dynamic_state (Optional[str]) – Set dynamic state as either ‘normal’ or ‘seizure’.

Returns:

Array of the time indices as t and the simulation time series ts

Return type:

array

References

teaspoon.MakeData.DynSysLib.medical_data.ECG(dynamic_state='normal')[source]

The Electrocardoagram (ECG) data was taken from SciPys misc.electrocardiogram data set. This ECG data was originally provided by the MIT-BIH Arrhythmia Database [2]. We used data points 3000 to 5500 during normal sinus rhythm and 8500 to 11000 during arrhythmia (arrhythmia case shown below in figure).

../../../_images/ECG_Data.png
Parameters:

dynamic_state (Optional[str]) – Set dynamic state as either ‘normal’ or ‘seizure’.

Returns:

Array of the time indices as t and the simulation time series ts

Return type:

array

References

2.1.2.7.2. Meta Function

This function is for being able to input into the original teaspoon.MakeData.DynSysLib.DynamicSystems function with default parameters.

teaspoon.MakeData.DynSysLib.medical_data.medical_data(system, dynamic_state=None, L=None, fs=None, SampleSize=None, parameters=None, InitialConditions=None)[source]