Kaggle: seizure prediction MATLAB solution -- LASSO GLM approach

Starter code for completing the Kaggle seizure prediction competition with MATLAB
291 Downloads
Updated 19 Sep 2016

View License

This is a MATLAB solution to the Melbourne University AES/MathWorks/NIH Seizure Prediction (https://www.kaggle.com/c/melbourne-university-seizure-prediction).
It is built upon a winning solution (https://github.com/drewabbot/kaggle-seizure-prediction) from a previous Kaggle seizure competition (https://www.kaggle.com/c/seizure-prediction), using lassoGLM models from the Statistics and Machine Learning Toolbox.
The zip file contains:
1. calculate_features.m -- a function that calculates a set of features from the iEEG sample values
2. step1_generate features -- a function that loads in patient training (and test) iEEG sample data and calculates features (using function calculate_features.m).
3. step2_generate_models.m -- a function that trains a LASSO GLM model using the features extracted from step1_generate_features.m.
4. step3_evaluate_models.m -- a function that evaluates the trainted model and returns in-sample and out-of-sample skill for model assessment. Output is stored to a .csv file for Kaggle submission.
5. step4_predict_seizure.m -- a function that make predictions on test data, with the model trained and evaluated from the previous steps. Output is stored to a .csv file for Kaggle submission.
6. kaggle_seizure_prediction_workflow.m -- a master script that runs through the above-mentioned steps.

Cite As

Jianghao Wang (2024). Kaggle: seizure prediction MATLAB solution -- LASSO GLM approach (https://www.mathworks.com/matlabcentral/fileexchange/59158-kaggle-seizure-prediction-matlab-solution-lasso-glm-approach), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Teaching Resources in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0