This is the public repository for the paper: Efficient Patient-Finetuned Seizure Detection with Tensor Kernel Ridge Regression.
The required python packages can be found in requirements.txt. It is recommended to first create a conda environment to install the packages and required python version. This can be done with the environment.yml file, which also installs the conda packages. Note that the remaining packages still need to be installed with pip.
For pre-processing the seizure_data_processing
package is needed: https://github.com/sderooij/seizure_data_processing/releases/tag/v0.0.1
In addition to that also the (self-created) TensorLibrary
package is required, as it contains the CP-KRR model: https://github.com/sderooij/tensorlibrary/releases/tag/v0.0.1.
Before running the scripts and notebooks please modify the src/config.py
file.
The order in which the scripts and notebooks need to be run is as follows:
find_tle_patients.ipynb
feature_exstraction.py
create_set.ipynb
preprocess.py
classification.py
(or runclassify.sh
)fine_tune.py
post_process.py
visualize_results.py
convergence.py
convergence_auc_plot.ipynb
Explanation on their usage is (in principle) provided in the respective files. Note that there may be issues with import due to different (working) paths
For any questions you can contact: [email protected]