This repository contains Python scripts and utilities for analyzing eye movement data collected during Vestibular/Ocular Motor Screening (VOMS) in virtual reality (VR) environments. The analysis includes processing, visualization, and statistical analysis of saccades, smooth pursuits, VOR, and VOR cancellation.
- Saccade Analysis: Detect and analyze saccadic eye movements.
- Smooth Pursuits: Measure and analyze smooth pursuit gain.
- VOR Asymmetry: Calculate the Vestibulo-Ocular Reflex (VOR) asymmetry index.
- Statistical Analysis: Perform various statistical tests and linear regressions.
- Visualization: Generate 3D plots and animations to visualize eye movement data.
To run the scripts, ensure you have the following Python packages installed:
pip install numpy pandas matplotlib scipy seaborn scikit-learn colorama tqdm
-
Preprocessing:
- Place your experimental CSV files in the appropriate directory.
- Use the provided functions to extract and preprocess data.
-
Running the Analysis:
- Modify the script parameters as necessary for your dataset.
- Execute the script to perform the analysis.
python vr_voms_all_eye_analysis.py
- Visualization:
- The script will generate various plots and animations to help visualize the results.
- Output files can be saved in the desired format.
This is the main script for analyzing VOMS data. It includes several classes and functions:
vrVomsSaccade:
Class for processing and analyzing saccades.vrVomsSymptoms:
Class for analyzing VOMS symptoms data.- Utility functions for data extraction, filtering, and statistical analysis.
vr_voms_utils.py:
Contains utility functions such asfind_files
,az_el
,detect_square_wave_periods
, and more.vr_voms_symptoms.py:
Handles symptom data specific to the VOMS protocol.
HEATMAP SPEARMAN RANK CORRELATION WITH VOMS CHANGE SCORE
HEATMAP SPEARMAN RANK CORRELATION WITH VOMS CHANGE SCORE - OUTLIERS REMOVED
SPEARMAN RANK CORRELATION WITH HORIZONTAL SACCADES SUBTEST
SPEARMAN RANK CORRELATION WITH VERTICAL SACCADES SUBTEST
SPEARMAN RANK CORRELATION WITH SMOOTH PURSUIT SUBTEST
SPEARMAN RANK CORRELATION WITH HORIZONTAL VOR SUBTEST
SPEARMAN RANK CORRELATION WITH VERTICAL VOR SUBTEST
SPEARMAN RANK CORRELATION WITH VOR CANCELLATION SUBTEST
Contributions are welcome! Please submit a pull request or open an issue if you have suggestions for improvements or new features.