Coder Social home page Coder Social logo

strategichmm's Introduction

strategicHMM

software: matlab package for estimation: HMM toolbox for matlab

For installation and reference: https://www.cs.ubc.ca/~murphyk/Software/HMM/hmm.html

eyeMMV-master for fixation extraction: https://github.com/krasvas/EyeMMV/blob/master/README.txt

behavioral data: data/

gaze_data raw: gaze_data/ Raw data has 27 fields, many of them are redundant. Need to refer to script for detailed reference.

fixation data: fixation/

Fixation locations after filtering through the fixation extraction algorithm EyeMMV. There are two kinds of extractions, t2 and 3s. See EyeMMV for further reference about the difference. We are using t2 for now. The first two columns refers to the 2D coordinates on the screen of fixation center. The screen size is always 1080*1920. The fifth column and sixth refers to the starting time and ending time for a fixation. Fixation durations can be calculated accordingly.

gaze data in fixation and salience format: fixationSal/

Salience values of each fixation. (this is the input of the HMM model) fixSalience.m transform fixation location data above to fixation salience data as well as fixation duration.

For all four kinds of data, each folder is one subject with denominated id, say 1_hiding_1_6.mat is data for the first subject, hiding game, no feedback, image 6. All the IDs are consistent among three folders.

There are also aggregated data regardless of individuals in hmmSourceWithRT/game/allData.mat

All processing scripts for image game are in hmm/dataProcessing/ key scripts: For model estimation. hmmEstimation.m, hmmEstimationChoicev.m for model estimation with fixation duration: hmmCTModel.m

Trained model will be saved to hmmGazeResults/ (you can also change the dir in the scripts above).

There are also simulation code for trained model: simulateDecisionOverTime.m for continuous model.

For level estimation using HMM: individualLevel.m to estimate individual levels. HMMwithLevelk.m main scripts to estimate per trial level.

For polonio's matrix game is in hmm/polonioHMM

Polonio raw data: polonio1.csv and polonio2.csv in the main folder.

preprocessing code for polonio dataset: polonioPreprocessing.m for separating different types of games.

Main code: polonioEstimate.m

Visualization code: visualizeHiddenStates.m to generate pictures on game matrix.

strategichmm's People

Contributors

lixiaomin328 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.