Skip to main content

Simulating Realistic Human Scanpaths in Dynamic Real-World Scenes

Project description

Code style: black paper

Introduction

ScanDy is a modular and mechanistic computational framework for simulating realistic scanpaths in dynamic real-world scenes. It is specifically designed to quantitatively test hypotheses about eye-movement behavior in videos. Specifically, it can be used to demonstrate the influence of object-representations on gaze behavior by comparing object-based and location-based models.

For a visual guide of how ScanDy works, have a look at the interactive notebook and the example usecases.

Software architecture

The structure of ScanDy is inspired by the neurolib framework, which is also used for parameter optimization and exploration.

Scanpath models inherit from the `Model` base class, whose functionality includes initializing and running model simulations and the evaluation and visualization of the resulting scanpaths. Models are implemented in a modular way, consiting of moules for (I) Scene features, (II) Visual sensitivity, (III) Scanpath history, (IV) Decision making, and (V) Gaze update.

Installation

You can install ScanDy as pypi package using pip:

pip install scandy

We however reccomend that you clone (or fork) this repository and install all dependencies with

git clone https://github.com/rederoth/ScanDy.git
cd neurolib/
pip install -r requirements.txt
pip install .

This gives you more freedom to modify the existing models and run the examples.

Dataset

The scanpath models require precomputed maps of the video data. We use the VidCom dataset (Li et al., 2011), for which we provide all the required data on OSF (https://www.doi.org/10.17605/OSF.IO/83XUC).

To prepare the dataset, we used the following resources:

If you only want to play around with a single video, we uploaded a version of the dataset only containing the "field03" video to Google drive.

Examples

We prepared a number of IPython Notebooks for you to explore the framework.

To get started with ScanDy, have a look at our interactive guide, where you can explore the effect of individual model parameters.

Additionally, we show instructive usecases, including:

  • Example 1: Scanpath simulation and visualization for a single video
  • Example 2: Evolutionary optimization of model parameters
  • Example 3: Extending on existing models: Location-based model with object-based sensitivity

More information

How to cite

If ScanDy is useful for your research, please cite our preprint:

Roth, N., Rolfs, M., Hellwich, O., & Obermayer, K. (2023). Objects guide human gaze behavior in dynamic real-world scenes. bioRxiv, 2023-03.

@article{roth2023objects,
 title = {Objects Guide Human Gaze Behavior in Dynamic Real-World Scenes},
 author = {Roth, Nicolas and Rolfs, Martin and Hellwich, Olaf and Obermayer, Klaus},
 elocation-id = {2023.03.14.532608},
 year = {2023},
 doi = {10.1101/2023.03.14.532608},
 publisher = {Cold Spring Harbor Laboratory},}

Contact

If you have feedback, questions, and/or ideas, feel free to send a mail to Nico.

Nicolas Roth, PhD Student at Science of Intelligence; Neural Information Processing Group, Fakultaet IV, Technische Universitaet Berlin, MAR 5-6, Marchstr. 23, 10587 Berlin

Acknowledgments

This work was funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) under Germany’s Excellence Strategy – EXC 2002/1 "Science of Intelligence" – project number 390523135.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scandy-0.0.2.tar.gz (28.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page