A package for processing and extracting eye-tracking data.
Project description
SPEED v3.6 - Desktop App & Analysis Package
An Advanced Eye-Tracking Data Analysis Software
SPEED is a Python-based project for processing, analyzing, and visualizing eye-tracking data. Version 3.6 introduces a major restructuring, offering two distinct components:
- SPEED Desktop App: A user-friendly GUI application for running a full analysis pipeline, designed for end-users and researchers.
speed-analyzer: A programmatic Python package for developers who want to integrate the analysis logic into their own scripts.
This version also supports GPU acceleration for YOLO analysis.
1. SPEED Desktop Application (For End Users)
An application with a graphical user interface (GUI) for a complete, visually-driven analysis workflow.
How to Use the Application
- Download the latest version: Go to the Releases page and download the
.zipfile for your operating system (Windows or macOS). - Extract and Run: Unzip the file and run the
SpeedAppexecutable. - Follow the Instructions: Use the interface to select your data folders (RAW, Un-enriched, etc.), manage events with the interactive editors, and run the analysis.
2. speed-analyzer (Python Package for Developers)
The core analysis engine of SPEED, now available as a reusable package. It's designed for automation and integration into custom data pipelines.
Installation from PyPI
You can install the package directly from the Python Package Index (PyPI) using pip:
pip install speed-analyzer
How to Use the Package
The package exposes a main function, run_full_analysis, that takes paths and options as arguments. See the example_usage.py file for a complete demonstration.
Here is a basic snippet:
import pandas as pd
from speed_analyzer import run_full_analysis
# 1. Define paths and parameters
raw_path = "./data/raw"
unenriched_path = "./data/unenriched"
output_path = "./analysis_results"
# 2. Create an events DataFrame
events_df = pd.DataFrame({
'name': ['Task_Start', 'Task_End'],
'timestamp [ns]': [1672531201000000000, 1672531215000000000]
})
# 3. Run the full analysis programmatically
run_full_analysis(
raw_data_path=raw_path,
unenriched_data_path=unenriched_path,
output_path=output_path,
subject_name="participant_01",
events_df=events_df,
run_yolo=True,
yolo_model_path="yolov8n.pt"
)
The Modular Workflow (GUI)
SPEED v3.6 operates on a two-step workflow designed to save time and computational resources.
Step 1: Run Core Analysis
This is the main data processing stage. You run this step only once per participant for a given set of events. The software will:
- Load all necessary files from the specified input folders (RAW, Un-enriched, Enriched).
- Dynamically load events from
events.csvinto the GUI, allowing you to select which events to analyze. - Segment the data based on your selection.
- Calculate all relevant statistics for each selected segment.
- Optionally run YOLO object detection on the video frames, saving the results to a cache to speed up future runs.
- Save the processed data (e.g., filtered dataframes for each event) and summary statistics into the output folder.
This step creates a processed_data directory containing intermediate files. Once this is complete, you do not need to run it again unless you want to analyze a different combination of events.
Step 2: Generate Outputs On-Demand
After the core analysis is complete, you can use the dedicated tabs in the GUI to generate as many plots and videos as you need, with any combination of settings, without re-processing the raw data.
- Generate Plots: Select which categories of plots you want to create.
- Generate Videos: Compose highly customized videos with various overlays.
- View YOLO Results: Load and view the quantitative results from the object detection.
Environment Setup (For Development) ⚙️
To run the project from source or contribute to development, you'll need Python 3 and several libraries.
- Install Anaconda: Link
- (Optional) Install CUDA Toolkit: For GPU acceleration with NVIDIA. Link
- Create a virtual environment:
conda create --name speed
conda activate speed
conda install pip
- Install the required libraries:
pip install -r requirements.txt
How to Use the Application from Source 🚀
Launch the GUI:
# Navigate to the desktop_app folder
cd desktop_app
python GUI.py
Setup and Analysis:
- Fill in the Participant Name and select the Output Folder.
- Select the required Input Folders: RAW and Un-enriched.
- Use the Advanced Event Management section to load and edit events using the table or interactive video editor.
- Click "RUN CORE ANALYSIS".
- Use the other tabs to generate plots, videos, and view YOLO results.
🧪 Synthetic Data Generator (generate_synthetic_data.py)
Included in this project is a utility script to create a full set of dummy eye-tracking data. This is extremely useful for testing the SPEED software without needing Pupil Labs hardware or actual recordings.
How to Use
Run the script from your terminal:
python generate_synthetic_data.py
The script will create a new folder named synthetic_data_output in the current directory.
This folder will contain all the necessary files (gaze.csv, fixations.csv, external.mp4, etc.), ready to be used as input for the GUI application or the speed-analyzer package.
✍️ Authors & Citation
This tool is developed by the Cognitive and Behavioral Science Lab (LabSCoC), University of L'Aquila and Dr. Daniele Lozzi.
If you use this script in your research or work, please cite the following publications:
- Lozzi, D.; Di Pompeo, I.; Marcaccio, M.; Ademaj, M.; Migliore, S.; Curcio, G. SPEED: A Graphical User Interface Software for Processing Eye Tracking Data. NeuroSci 2025, 6, 35. https://doi.org/10.3390/neurosci6020035
- Lozzi, D.; Di Pompeo, I.; Marcaccio, M.; Alemanno, M.; Krüger, M.; Curcio, G.; Migliore, S. AI-Powered Analysis of Eye Tracker Data in Basketball Game. Sensors 2025, 25, 3572. https://doi.org/10.3390/s25113572
It is also requested to cite Pupil Labs publication, as requested on their website https://docs.pupil-labs.com/neon/data-collection/publication-and-citation/
- Baumann, C., & Dierkes, K. (2023). Neon accuracy test report. Pupil Labs, 10. https://doi.org/10.5281/zenodo.10420388
If you also use the Computer Vision YOLO-based feature, please cite the following publication:
- Redmon, J., Divvala, S., Girshick, R., & Farhadi, A. (2016). You only look once: Unified, real-time object detection. In Proceedings of the IEEE conference on computer vision and pattern recognition (pp. 779-788). https://doi.org/10.1109/CVPR.2016.91
💻 Artificial Intelligence disclosure
This code is partially written using Google Gemini 2.5 Pro
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file speed_analyzer-3.6.0.tar.gz.
File metadata
- Download URL: speed_analyzer-3.6.0.tar.gz
- Upload date:
- Size: 25.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c12071772546041db6ebdf7f1f732bbd27776a3374f576a05e8c7406c78e52d
|
|
| MD5 |
6f9a5cf8ea2e3eb674f7ace0f4b9fa5a
|
|
| BLAKE2b-256 |
338a66dad3acc127ef16a394b7580d739db82117cca519107fe972c30aa00c9f
|
File details
Details for the file speed_analyzer-3.6.0-py3-none-any.whl.
File metadata
- Download URL: speed_analyzer-3.6.0-py3-none-any.whl
- Upload date:
- Size: 24.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f27582f6dad95fb86d8283d11863d3b0065f020fb6511f557e1bd7114571d68d
|
|
| MD5 |
beaf6b8253b0df14a058418cb3818f3c
|
|
| BLAKE2b-256 |
7a3b0adc4fc0680c4a3921474dd379b3260d7376b3ba04371bb77a0276a8ba94
|