I'm planning an experiment in which participants will respond to a stimulus by using a mouse to click somewhere on a computer screen. I'm interested in analyzing the strategies participants use to generate their responses.

On theoretical grounds, I expect the main strategies to be associated with a particular type of mouse movement trajectory, in which the mouse moves through a sequence of "fixations" prior to the final click. By "fixation" I mean a mouse movement to a certain spot (or small area) for purposes of "marking" the spot in the participant's mind. I expect fixations to be associated with the mouse cursor pausing or stopping within a small area (though it might not stop entirely), or by a sudden sharp change in direction without a pause.

How can I extract a succession of such "fixations" from the raw mouse cursor trajectory (i.e., positions & time stamps)?


closed as off-topic by Robin Kramer, Arnon Weinberg, Keno, Chris Rogers, Yvette Colomb Apr 22 '17 at 11:51

  • This question does not appear to be about psychology or neuroscience within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • $\begingroup$ may on stackoverflow you get better answers. $\endgroup$ – MimSaad Apr 5 '17 at 19:45
  • $\begingroup$ There are many studies that attempt similar things with eyetracking. The points you refer to are fixation points, which are spots that people gaze at for longer than 300 ms. $\endgroup$ – Robin Kramer Apr 5 '17 at 19:55
  • 4
    $\begingroup$ I'm voting to close this question as off-topic because the chances are higher to find an answer at StackOverflow. $\endgroup$ – Robin Kramer Apr 14 '17 at 12:25
  • 1
    $\begingroup$ @Baixiwei, I found this paper that discusses some psuedo algorithms for assessing eye tracking fixations. Maybe it could be of use for you: gruberpeplab.com/teaching/psych231_fall2013/documents/… . For any technical implementation of those algorithms I would like to refer you to www.stackoverflow.com . If you would like to know more about the concept of fixations in Eyetracking I could formulate an answer any time soon. $\endgroup$ – Robin Kramer Apr 20 '17 at 6:47
  • 1
    $\begingroup$ I think this is a legitimate methodological question for behavioral scientists. I have read many papers in cognitive science concerned where mouse and keyboard clicks are relevant. So, I'd agree with the advice that you may get better answers on a more technical forum, but it is on topic here. I usually go with the idea that if something is on topic at two sites, that it is up to the OP to choose. $\endgroup$ – Jeromy Anglim Apr 21 '17 at 2:13

I think the key term here is dwell time. There is abundant literature on this. For example, Sample et al. (2008), go into quite some detail as to how to calculate this. In a nutshell, it basically boils down to defining a cluster of pixels around the mouse pointer tip. If the mouse cursor stays within those bounds, the clock should start ticking. A certain time-based cutoff criterion (say a few hundred milliseconds) could mark it as a dwell.

- Sample et al., Geospatial Services and Applications for the Internet (2008), Springer


Not the answer you're looking for? Browse other questions tagged or ask your own question.