Skip to main navigation Skip to search Skip to main content

TraceLAB: A MATLAB Toolbox for Interindividual Synchrony Analysis of Facial Expression and Head Movement Data Acquired via Trace

Felix Carter, Mike Richardson, Danae Stanton Fraser, Iain D. Gilchrist

Research output: Contribution to journalArticlepeer-review

Abstract

Facial expressions transmit information about internal states, both during social interaction and in response to shared stimuli such as films. When individuals view the same content, synchrony in their expressions reflects shared information processing, and the degree to which their expressions correlate indicates how similarly their perceptual and affective systems are responding to the common input. This makes interindividual expression synchrony a potential marker of engagement and subjective experience. However, the acquisition and analysis of facial data pose both ethical and technical challenges to researchers. ‘Trace’ is a research media player implemented in PsychoPy’s online platform Pavlovia, which captures anonymised facial landmark coordinates through a webcam, without the ethical and technical constraints of capturing and storing video images of participants. Nonetheless, its usefulness is currently limited due to the lack of available preprocessing and analysis tools. This paper describes the functionality of TraceLAB, a MATLAB-based toolbox designed for the preprocessing of Trace data: specifically, the formatting, aligning, and filtering of data. In addition, TraceLAB implements some novel analysis techniques to allow researchers to quantify interindividual synchrony of expressions (through correlated component analysis) and head movements (through Surrogate Synchrony), which may be interpreted as measures of shared information processing. These techniques are demonstrated here on both simulated and real datasets.
Original languageEnglish
JournalEntropy
Volume28
Issue number5
Early online date29 Apr 2026
DOIs
Publication statusPublished - 30 Apr 2026

Data Availability Statement

Source code and all data reported can be found at https://github.com/FelixCarter/tracelab (accessed on 22 April 2026), except for the data presented in Figure 2, which can be found at https://doi.org/10.17605/OSF.IO/E8ZJ2.

Funding

This research was supported by MyWorld, funded by the United Kingdom Research and Innovation, grant number: SIPF00006/1. For more information on this project and its partners, visit https://www.myworld-creates.com/ (accessed on 22 April 2026).

Fingerprint

Dive into the research topics of 'TraceLAB: A MATLAB Toolbox for Interindividual Synchrony Analysis of Facial Expression and Head Movement Data Acquired via Trace'. Together they form a unique fingerprint.

Cite this