<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.3 20070202//EN" "journalpublishing.dtd">
<article xml:lang="EN" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="brief-report">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Hum. Neurosci.</journal-id>
<journal-title>Frontiers in Human Neuroscience</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Hum. Neurosci.</abbrev-journal-title>
<issn pub-type="epub">1662-5161</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.3389/fnhum.2023.1223774</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Neuroscience</subject>
<subj-group>
<subject>Brief Research Report</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>CLET: Computation of Latencies in Event-related potential Triggers using photodiode on virtual reality apparatuses</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="yes">
<name><surname>Swami</surname> <given-names>Piyush</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<xref ref-type="aff" rid="aff3"><sup>3</sup></xref>
<xref ref-type="corresp" rid="c001"><sup>&#x002A;</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/2135741/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Gramann</surname> <given-names>Klaus</given-names></name>
<xref ref-type="aff" rid="aff4"><sup>4</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/5473/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Vonstad</surname> <given-names>Elise Kl&#x00E6;bo</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/1323770/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Vereijken</surname> <given-names>Beatrix</given-names></name>
<xref ref-type="aff" rid="aff5"><sup>5</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/295980/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Holt</surname> <given-names>Alexander</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
</contrib>
<contrib contrib-type="author">
<name><surname>Holt</surname> <given-names>Tomas</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
</contrib>
<contrib contrib-type="author">
<name><surname>Sandstrak</surname> <given-names>Grethe</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
</contrib>
<contrib contrib-type="author">
<name><surname>Nilsen</surname> <given-names>Jan Harald</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
</contrib>
<contrib contrib-type="author" corresp="yes">
<name><surname>Su</surname> <given-names>Xiaomeng</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="corresp" rid="c002"><sup>&#x002A;</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/1265381/overview"/>
</contrib>
</contrib-group>
<aff id="aff1"><sup>1</sup><institution>Motion Capture and Visualization Laboratory, Applied Information Technology Group, Department of Computer Science, Norwegian University of Science and Technology</institution>, <addr-line>Trondheim</addr-line>, <country>Norway</country></aff>
<aff id="aff2"><sup>2</sup><institution>Section for Visual Computing, Department of Applied Mathematics and Computer Science, Technical University of Denmark</institution>, <addr-line>Kongens Lyngby</addr-line>, <country>Denmark</country></aff>
<aff id="aff3"><sup>3</sup><institution>Biomedical Engineering Techies</institution>, <addr-line>Broendby</addr-line>, <country>Denmark</country></aff>
<aff id="aff4"><sup>4</sup><institution>Biological Psychology and Neuroergonomics, Technical University of Berlin</institution>, <addr-line>Berlin</addr-line>, <country>Germany</country></aff>
<aff id="aff5"><sup>5</sup><institution>Department of Neuromedicine and Movement Science, Norwegian University of Science and Technology</institution>, <addr-line>Trondheim</addr-line>, <country>Norway</country></aff>
<author-notes>
<fn fn-type="edited-by"><p>Edited by: Sunil Kumar Telagamsetti, KU Leuven, Belgium</p></fn>
<fn fn-type="edited-by"><p>Reviewed by: Kandala N. V. P. S. Rajesh, VIT-AP University, India; Shishir Maheshwari, Thapar Institute of Engineering and Technology, India</p></fn>
<corresp id="c001">&#x002A;Correspondence: Piyush Swami, <email>piyushswami@ieee.org</email></corresp>
<corresp id="c002">Xiaomeng Su, <email>xiaomeng.su@ntnu.no</email></corresp>
</author-notes>
<pub-date pub-type="epub">
<day>19</day>
<month>09</month>
<year>2023</year>
</pub-date>
<pub-date pub-type="collection">
<year>2023</year>
</pub-date>
<volume>17</volume>
<elocation-id>1223774</elocation-id>
<history>
<date date-type="received">
<day>16</day>
<month>05</month>
<year>2023</year>
</date>
<date date-type="accepted">
<day>31</day>
<month>08</month>
<year>2023</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#x00A9; 2023 Swami, Gramann, Vonstad, Vereijken, Holt, Holt, Sandstrak, Nilsen and Su.</copyright-statement>
<copyright-year>2023</copyright-year>
<copyright-holder>Swami, Gramann, Vonstad, Vereijken, Holt, Holt, Sandstrak, Nilsen and Su</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/"><p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.</p></license>
</permissions>
<abstract>
<p>To investigate event-related activity in human brain dynamics as measured with EEG, triggers must be incorporated to indicate the onset of events in the experimental protocol. Such triggers allow for the extraction of ERP, i.e., systematic electrophysiological responses to internal or external stimuli that must be extracted from the ongoing oscillatory activity by averaging several trials containing similar events. Due to the technical setup with separate hardware sending and recording triggers, the recorded data commonly involves latency differences between the transmitted and received triggers. The computation of these latencies is critical for shifting the epochs with respect to the triggers sent. Otherwise, timing differences can lead to a misinterpretation of the resulting ERPs. This study presents a methodical approach for the CLET using a photodiode on a non-immersive VR (i.e., LED screen) and an immersive VR (i.e., HMD). Two sets of algorithms are proposed to analyze the photodiode data. The experiment designed for this study involved the synchronization of EEG, EMG, PPG, photodiode sensors, and ten 3D MoCap cameras with a VR presentation platform (Unity). The average latency computed for LED screen data for a set of white and black stimuli was 121.98 &#x00B1; 8.71 ms and 121.66 &#x00B1; 8.80 ms, respectively. In contrast, the average latency computed for HMD data for the white and black stimuli sets was 82.80 &#x00B1; 7.63 ms and 69.82 &#x00B1; 5.52 ms. The codes for CLET and analysis, along with datasets, tables, and a tutorial video for using the codes, have been made publicly available.</p>
</abstract>
<kwd-group>
<kwd>motion-capture (Mocap)</kwd>
<kwd>latencies</kwd>
<kwd>electroencephalography (EEG)</kwd>
<kwd>event-related potential (ERP)</kwd>
<kwd>interface</kwd>
</kwd-group>
<contract-sponsor id="cn001">European Research Consortium for Informatics and Mathematics<named-content content-type="fundref-id">10.13039/501100001667</named-content></contract-sponsor>
<contract-sponsor id="cn002">Norges Teknisk-Naturvitenskapelige Universitet<named-content content-type="fundref-id">10.13039/100009123</named-content></contract-sponsor>
<counts>
<fig-count count="4"/>
<table-count count="0"/>
<equation-count count="1"/>
<ref-count count="27"/>
<page-count count="9"/>
<word-count count="4748"/>
</counts>
<custom-meta-wrap>
<custom-meta>
<meta-name>section-at-acceptance</meta-name>
<meta-value>Brain-Computer Interfaces</meta-value>
</custom-meta>
</custom-meta-wrap>
</article-meta>
</front>
<body>
<sec id="S1" sec-type="intro">
<title>1. Introduction</title>
<sec id="S1.SS1">
<title>1.1. Motivation</title>
<p>Many applications of electroencephalography (EEG) and event-related potentials (ERP) (<xref ref-type="bibr" rid="B17">Luck, 2012</xref>; <xref ref-type="bibr" rid="B19">Nidal and Malik, 2014</xref>) require the use of triggers (or tagging) (<xref ref-type="bibr" rid="B23">Wang et al., 2016</xref>; <xref ref-type="bibr" rid="B3">Cattan et al., 2018</xref>) to indicate the exact onset of presented stimuli (mostly visual or auditory events) (<xref ref-type="bibr" rid="B18">Miyakoshi et al., 2021</xref>; <xref ref-type="bibr" rid="B8">Ignatious et al., 2023</xref>) so that the recorded physiological data can be synchronized. However, variability in various hardware and software typically lead to differences in latencies between the transmission and reception of triggers (<xref ref-type="bibr" rid="B23">Wang et al., 2016</xref>; <xref ref-type="bibr" rid="B4">Cattan et al., 2021</xref>; <xref ref-type="bibr" rid="B9">Iwama et al., 2022</xref>). It is of importance that these latencies in triggers should not be confused with another type of latency that is present in the neural markers, such as N170, P250, N400, etc. (<xref ref-type="bibr" rid="B17">Luck, 2012</xref>; <xref ref-type="bibr" rid="B4">Cattan et al., 2021</xref>; <xref ref-type="bibr" rid="B18">Miyakoshi et al., 2021</xref>; <xref ref-type="bibr" rid="B1">Abreu et al., 2023</xref>). Although there are several studies (<xref ref-type="bibr" rid="B6">Hoormann et al., 1998</xref>; <xref ref-type="bibr" rid="B10">Kiesel et al., 2008</xref>; <xref ref-type="bibr" rid="B27">Wu et al., 2013</xref>; <xref ref-type="bibr" rid="B14">Liesefeld, 2018</xref>; <xref ref-type="bibr" rid="B8">Ignatious et al., 2023</xref>) that showcase the computation of latencies in neural markers and their association with brain activities, the focus of the current work is on the computation of latencies in event-related potential TRIGGERS, which is a critical pre-processing step for any brain-computer interface (BCI) study. Existing literature (discussed in the next section) lacks a methodical approach with datasets to compute trigger latencies, especially for immersive virtual reality (VR) apparatus. The objective to overcome this knowledge gap formed the main motivation of this work.</p>
</sec>
<sec id="S1.SS2">
<title>1.2. Literature survey</title>
<p>While past studies (<xref ref-type="bibr" rid="B3">Cattan et al., 2018</xref>; <xref ref-type="bibr" rid="B9">Iwama et al., 2022</xref>) have highlighted shifting of ERP epochs based on computed average latencies, other studies illustrate details about setting up the triggers to overcome latency differences (<xref ref-type="bibr" rid="B23">Wang et al., 2016</xref>; <xref ref-type="bibr" rid="B3">Cattan et al., 2018</xref>). To the best of our knowledge, only a few studies exist which describe the importance and considerations for computing the latencies in triggers using immersive VR systems (<xref ref-type="bibr" rid="B23">Wang et al., 2016</xref>; <xref ref-type="bibr" rid="B4">Cattan et al., 2021</xref>; <xref ref-type="bibr" rid="B9">Iwama et al., 2022</xref>). In the literature (<xref ref-type="bibr" rid="B23">Wang et al., 2016</xref>; <xref ref-type="bibr" rid="B12">Lees et al., 2018</xref>), Rapid Serial Visual Paradigm (RSVP) (<xref ref-type="bibr" rid="B23">Wang et al., 2016</xref>; <xref ref-type="bibr" rid="B12">Lees et al., 2018</xref>) is one of the common, simple, yet effective approaches for sending triggers. Lab Streaming Layer (LSL) (<xref ref-type="bibr" rid="B22">Stenner et al., 2023</xref>) is another preferred choice in many studies (<xref ref-type="bibr" rid="B23">Wang et al., 2016</xref>; <xref ref-type="bibr" rid="B9">Iwama et al., 2022</xref>). The availability of open-source resources like Simulation and Neuroscience Application Platform (SNAP) (<xref ref-type="bibr" rid="B11">Kothe, 2023</xref>) developed in Python to ease stimuli presentation, also favored using LSL. However, this could mandate using a setup with bigger memory and displays with higher refresh rates compared to the RSVP approach (<xref ref-type="bibr" rid="B23">Wang et al., 2016</xref>). For efficient hardware-software synchronization with the LSL approach, an extra hardware setup like Light Diode Resistor Comparator Circuit (LDRCC) (<xref ref-type="bibr" rid="B23">Wang et al., 2016</xref>) has also been used. Hence, the RSVP approach with C# programming was followed in this work.</p>
<p>Most of the existing literature (<xref ref-type="bibr" rid="B16">Lopez-Calderon and Luck, 2014</xref>; <xref ref-type="bibr" rid="B3">Cattan et al., 2018</xref>, <xref ref-type="bibr" rid="B4">2021</xref>; <xref ref-type="bibr" rid="B12">Lees et al., 2018</xref>; <xref ref-type="bibr" rid="B25">Williams et al., 2021</xref>; <xref ref-type="bibr" rid="B7">Huang et al., 2022</xref>; <xref ref-type="bibr" rid="B9">Iwama et al., 2022</xref>), which at least provide scattered details and some considerations for settings up triggers, are based on using only EEG sensors or at most a few auxiliary (AUX) sensors. Although synchronization with other modalities like motion-capture (MoCap) has been achieved (<xref ref-type="bibr" rid="B18">Miyakoshi et al., 2021</xref>), the knowledge about setting up its triggers and computation of latencies during VR experiments is lacking.</p>
</sec>
<sec id="S1.SS3">
<title>1.3. Objectives</title>
<p>The work present work contributes to overcoming the existing knowledge gaps in the literature by setting up the following objectives: (1) to demonstrate the Computation of Latencies in Event-related potential Triggers (CLET) as a tool for measuring latencies in multi-model experiments, especially when VR apparatuses are used; and (2) to provide open access to novel datasets, codes, tables, and a tutorial video<sup><xref ref-type="fn" rid="footnote1">1</xref></sup> to ensure transparency and reproducibility of results, as well as boost future improvements in the algorithms.</p>
</sec>
<sec id="S1.SS4">
<title>1.4. Brief outline of the next sections</title>
<p>The work was performed to test the synchronization of triggers in a multi-model experiment that was designed to monitor biomechanics (specifically gait patterns) and physiological signals. This article is limited to the illustration of the CLET approach. The experimentation is explained in the next section, and the proposed method is detailed in the subsequent section. The computed latencies and their distribution are described in the results section, with the method&#x2019;s advantages compared to the state-of-art being covered in the discussion section. Finally, the conclusions, limitations and future scope for improvement are described in the last section.</p>
</sec>
</sec>
<sec id="S2">
<title>2. Methods</title>
<sec id="S2.SS1">
<title>2.1. Experimentation</title>
<p>The experiment setup with the rapid serial visual paradigm (RSVP) is shown in <xref ref-type="fig" rid="F1">Figure 1A</xref>. The apparatus included one desktop personal computer (PC1)&#x2013;with Unity and Qualisys Track Manager (QTM) software installed and one laptop (PC2) with EEG Recorder (Brain Vision Recorder) software installed. The biomechanics monitoring setup included 3D MoCap cameras (nine Qualisys high-speed cameras and one Miqus camera), and the physiological monitoring setup included Brain Products LiveAmp with 64-channel wireless EEG with dual channels EMG and one PPG sensor. A photodiode was connected as an auxiliary (AUX) sensor with either a LED screen or an HMD at a time. The LED screen consisted of a Sony TV (KDL-75W855C) with dimensions of 167.7 &#x00D7; 96.9 &#x00D7; 7.9 cm and a refresh rate of 100 Hz. The HMD consisted of HTC VIVE Pro Eye with a field of view of 110&#x00B0; and a refresh rate of 90 Hz.</p>
<fig id="F1" position="float">
<label>FIGURE 1</label>
<caption><p><bold>(A)</bold> Block diagram showing the experimental setup. Procedure to place and cover photodiode on <bold>(B)</bold> Light Emitting Diode (LED) screen, and <bold>(C)</bold> left eyepiece of a head-mounted display (HMD). For both displays, step number 1 is to cover the photodiode with the black tape. Step number 2 is to cover the tape with a piece of black cloth and secure the cloth. Step number 3 is to repeat the last step. Although the experiment was conducted in a dark room, the above steps ensured that any ambient light, if present due to displays or other electronics, did not affect the photodiode signals.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fnhum-17-1223774-g001.tif"/>
</fig>
<p>As shown in <xref ref-type="fig" rid="F1">Figure 1A</xref>, PC1 was used to control the MoCap apparatus through a wired connection with the QTM software. The same computer was also used for stimulus presentation through the Unity software, which sent triggers to the EEG amplifier (amp.) unit via a USB connection to the wireless trigger box. Both displays were also connected to PC1. Data recorded using the amplifier was sent via Bluetooth to USB1 and USB2 dongles connected to PC2. The stimuli consisted of &#x223C;100 images of black and white colors. The neutral image consisted of a gray color image with a red-colored cross at the center. The selection of these images represented ON (white screen) and OFF (black screen) input signals to the photodiode placed on the display. This procedure aligned with the protocol described in <xref ref-type="bibr" rid="B4">Cattan et al. (2021)</xref>. The inter-stimulus interval (<italic>isi</italic>) was randomly varied between 1.0&#x2013;1.5 s with a fixed stimulus duration of 0.3 s. The experimental paradigm was written in C# inside the Unity software. Here, the white and black stimuli were assigned to be displayed as &#x201C;S1&#x201D; and &#x201C;S2&#x201D; triggers, respectively, in EEG recordings. Similarly, the start and end of the recordings were assigned &#x201C;S7&#x201D; and &#x201C;S8&#x201D; triggers, respectively.</p>
<p>The photodiode was placed on the LED screen and covered with a black tape and then black cloth to prevent any disturbance from any external light source. The procedure to place and cover the photodiode for both displays is shown in <xref ref-type="fig" rid="F1">Figure 1B</xref>. The entire experiment was performed in a dark room. After the calibration of Qualisys markers, the test involved recording QTM, then the Brain Vision Recorder (BV Rec.), followed by Unity. When the test was complete, a text notification was visible in the Unity console window. The operator was required to stop the software in the reverse order, i.e., Unity, then BV Rec., followed by QTM. The data was synchronized through triggers and time points noted in the log files. A similar process was repeated by the placement of the photodiode on the HMD and covering the sensor with black tape and black cloth. The procedure for placing the photodiode sensor is shown in <xref ref-type="fig" rid="F1">Figure 1C</xref>. Each test lasted &#x223C;5 min. The photodiode data recorded from each display is shown in <xref ref-type="fig" rid="F2">Figures 2</xref>, <xref ref-type="fig" rid="F3">3</xref>. For better visualization of its shape, a section of 5 s is shown in <xref ref-type="fig" rid="F2">Figures 2B</xref>, <xref ref-type="fig" rid="F3">3B</xref>. The methods developed to analyze the photodiode data recorded (see next section) have subtle variations for each of the displays due to the differences in their shapes.</p>
<fig id="F2" position="float">
<label>FIGURE 2</label>
<caption><p>Photodiode data recorded from Light Emitting Diode (LED) screen. Panel <bold>(A)</bold> is scaled to an instance of 10 s data, and panel <bold>(B)</bold> is scaled to an instance of 5 s data, to show changes in the shape of the signal after the onset of each type of stimulus.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fnhum-17-1223774-g002.tif"/>
</fig>
<fig id="F3" position="float">
<label>FIGURE 3</label>
<caption><p>Photodiode data recorded from the head-mounted display (HMD). Panel <bold>(A)</bold> is scaled to an instance of 10 s data, and panel <bold>(B)</bold> is scaled to an instance of 5 s data, to show changes in the shape of the signal after the onset of each type of stimulus.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fnhum-17-1223774-g003.tif"/>
</fig>
</sec>
<sec id="S2.SS2">
<title>2.2. Data analysis</title>
<sec id="S2.SS2.SSS1">
<title>2.2.1. Prerequisites</title>
<p>The algorithm was developed in MATLABBR2021a using inbuilt functions except for pop_fileio() (available in open-source EEGLAB library), which was used to load data.</p>
</sec>
<sec id="S2.SS2.SSS2">
<title>2.2.2. Algorithm for CLET using data recorded from the LED screen</title>
<p><italic>Notations:</italic> Let triggers sent for the first type (white image) and the second type (black image) of stimuli be <italic>S</italic>1 and <italic>S</italic>2, respectively. Let triggers detected for the first type (white image) and the second type (black image) of stimuli be <italic>D</italic>1 and <italic>D</italic>2, respectively.</p>
<p><italic>Inputs:</italic> Directory Path, File Name, the Lower limit of the inter-stimulus interval (<italic>Lisi</italic>, i.e., 1 s in this study), Thresholds <italic>ThD</italic>1 and <italic>ThD</italic>2 for detecting triggers for the first and the second type of stimuli, respectively. For the LED screen, <italic>ThD</italic>1 is the transient rise in the signal&#x2019;s amplitude (<xref ref-type="fig" rid="F2">Figure 2B</xref>) above which the algorithm would detect <italic>D</italic>1. Similarly, <italic>ThD</italic>2 is the transient drop in the signal&#x2019;s amplitude (<xref ref-type="fig" rid="F2">Figure 2B</xref>) below which the algorithm would detect <italic>D</italic>2. The developed code would first plot the photodiode data extracted from the .eeg file. Then the user would be required to visually inspect and define any one of the 100 values of <italic>D</italic>1 and <italic>D</italic>2. These values do not need to be precise. For the data shown in <xref ref-type="fig" rid="F2">Figure 2</xref>, the value of <italic>ThD</italic>1 = 60000 and <italic>ThD</italic>2 = 20000.</p>
<p><italic>Outputs:</italic> Array of onset time (s) when triggers were sent <italic>tS</italic>1 and <italic>tS</italic>2; array of onset time (s) when triggers were detected <italic>tD</italic>1 and <italic>tD</italic>2; array of latencies between <italic>D</italic>1 and <italic>S</italic>1, i.e., <italic>LatD</italic>1<italic>S</italic>1 (ms), and array of latencies between <italic>D</italic>2 and <italic>S</italic>2, i.e., <italic>LatD</italic>2<italic>S</italic>2 (ms).</p>
<p><italic>I. Steps:</italic></p>
<list list-type="simple">
<list-item>
<label>1.</label>
<p>Load photodiode data.</p>
</list-item>
<list-item>
<label>2.</label>
<p>The gap between the indices of the detected triggers <inline-formula><mml:math id="M1"><mml:mrow><mml:mi>i</mml:mi><mml:mi>n</mml:mi><mml:mi>d</mml:mi><mml:mi>x</mml:mi><mml:mi>G</mml:mi><mml:mi>a</mml:mi><mml:mi>p</mml:mi><mml:mtext>&#x00A0;=&#x00A0;</mml:mtext><mml:mi>S</mml:mi><mml:mi>a</mml:mi><mml:mi>m</mml:mi><mml:mi>p</mml:mi><mml:mi>l</mml:mi><mml:mi>i</mml:mi><mml:mi>n</mml:mi><mml:mi>g</mml:mi><mml:mtext>&#x2009;</mml:mtext><mml:mi>r</mml:mi><mml:mi>a</mml:mi><mml:mi>t</mml:mi><mml:mi>e</mml:mi><mml:mtext>&#x2009;</mml:mtext><mml:mi>f</mml:mi><mml:mi>s</mml:mi><mml:mtext>&#x00A0;</mml:mtext><mml:mo>&#x2217;</mml:mo><mml:mtext>&#x2009;</mml:mtext><mml:mi>L</mml:mi><mml:mi>i</mml:mi><mml:mi>s</mml:mi><mml:mi>i</mml:mi></mml:mrow></mml:math></inline-formula></p>
</list-item>
<list-item>
<label>3.</label>
<p>To compute <italic>LatD</italic>1<italic>S</italic>1:</p>
</list-item>
<list-item>
<label>3.1.</label>
<p>Define matrix <italic>PosPhoto</italic> containing 1&#x2019;s and 0&#x2019;s where 1&#x2019;s represent positions of positive peaks <italic>PosPhoto</italic> = <italic>DataPhoto</italic> &#x2265; <italic>ThD</italic>1</p>
</list-item>
<list-item>
<label>3.2.</label>
<p>For <italic>PosPhoto</italic> = <italic>P</italic><sub>1</sub>,<italic>P</italic><sub>2</sub>,&#x2026;,<italic>P</italic><sub><italic>n</italic></sub>; find the difference between the (<italic>n</italic> + 1) &#x2212; <italic>n</italic> terms, i.e., <italic>PosDiff</italic> = (<italic>P</italic><sub>2</sub> &#x2212; <italic>P</italic><sub>1</sub>), (<italic>P</italic><sub>3</sub> &#x2212; <italic>P</italic><sub>2</sub>), &#x2026;, (<italic>P</italic><sub><italic>n</italic> + 1</sub> &#x2212; <italic>P</italic><sub><italic>n</italic></sub>)</p>
</list-item>
<list-item>
<label>3.3.</label>
<p>Pad 0 in the beginning, &#x2234;<italic>PosDiff</italic> = 0, <italic>PosDiff</italic></p>
</list-item>
<list-item>
<label>3.4.</label>
<p>Indices for <italic>D</italic>1 <italic>indxD</italic>1 = <italic>find</italic> (<italic>PosDiff</italic> = = 1)</p>
</list-item>
<list-item>
<label>3.5.</label>
<p>Onset samples for <italic>D</italic>1 <italic>onsetsam</italic>_<italic>D</italic>1(1) = <italic>indxD</italic>1(1)</p>
</list-item>
<list-item>
<label>3.6.</label>
<p>For <italic>n</italic> = 2 : (<italic>Length of indxD</italic>1 &#x2212; 1)</p>
</list-item>
<list-item><p>If <italic>indxD</italic>1 (<italic>n</italic>) &#x003E; (<italic>indxD</italic>1 (<italic>n</italic> &#x2212; 1) + <italic>indxGap</italic>)</p>
</list-item>
</list>
<disp-formula id="S2.Ex1">
<mml:math id="M2">
<mml:mrow>
<mml:mrow>
<mml:mi>o</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>n</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>s</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>e</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>s</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>a</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>m</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi mathvariant="normal">_</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>D</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo>&#x2062;</mml:mo>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mi>n</mml:mi>
<mml:mo rspace="5.8pt">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo rspace="5.8pt">=</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>n</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>d</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>x</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mi>D</mml:mi>
<mml:mo>&#x2062;</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo>&#x2062;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mi>n</mml:mi>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:math>
</disp-formula>
<list list-type="simple">
<list-item>
<label>3.7.</label>
<p><italic>onsetsam_D</italic>1 = (<italic>Values of onsetsam_D</italic>1 &#x2245; 0)</p>
</list-item>
<list-item>
<label>3.8.</label>
<p><italic>tD</italic>1 = Time points in <italic>DataPhoto</italic> corresponding to <italic>onsetsam_D</italic>1</p>
</list-item>
<list-item>
<label>4.</label>
<p><inline-formula><mml:math id="M3"><mml:mrow><mml:mi>L</mml:mi><mml:mi>a</mml:mi><mml:mi>t</mml:mi><mml:mi>D</mml:mi><mml:mn>1</mml:mn><mml:mi>S</mml:mi><mml:mn>1</mml:mn><mml:mtext>&#x2009;</mml:mtext><mml:mo>=</mml:mo><mml:mtext>&#x2009;</mml:mtext><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>t</mml:mi><mml:mi>D</mml:mi><mml:mn>1</mml:mn><mml:mtext>&#x2009;</mml:mtext><mml:mo>&#x2212;</mml:mo><mml:mtext>&#x2009;</mml:mtext><mml:mi>t</mml:mi><mml:mi>S</mml:mi><mml:mn>1</mml:mn></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mtext>&#x2009;</mml:mtext><mml:mo>&#x2217;</mml:mo><mml:mtext>&#x2009;</mml:mtext><mml:mn>1000</mml:mn><mml:mtext>&#x2009;in&#x00A0;ms.</mml:mtext></mml:mrow></mml:math></inline-formula></p>
</list-item>
<list-item>
<label>5.</label>
<p>To compute <italic>LatD</italic>2<italic>S</italic>2:</p>
</list-item>
<list-item>
<label>5.1.</label>
<p>Define matrix <italic>NegPhoto</italic> containing 1&#x2019;s and 0&#x2019;s where 1&#x2019;s represents positions of negative peaks. <italic>NegPhoto</italic> = <italic>DataPhoto</italic> &#x2265; <italic>ThD</italic>2</p>
</list-item>
<list-item>
<label>5.2.</label>
<p>Substitute [<italic>S</italic>2/<italic>S</italic>1] and [<italic>D</italic>2/<italic>D</italic>1] in steps 3.2 to 4.</p>
</list-item>
</list>
</sec>
<sec id="S2.SS2.SSS3">
<title>2.2.3. Algorithm for CLET using data recorded from the HMD</title>
<p>The notations for HMD-based data are the same as for the LED screen. Also, the inputs are similarly defined, except <italic>ThD</italic>2 which is the threshold of the smaller peaks in between the gaps, as observed in <xref ref-type="fig" rid="F3">Figure 3B</xref>. In this case, <italic>ThD</italic>1 = 180000 and <italic>ThD</italic>2 = 8000.</p>
<p><italic>II. Steps:</italic></p>
<p>The algorithm to compute <italic>LatD</italic>1<italic>S</italic>1 here also remains the same as I. Steps 1 to 4 in section Algorithm for CLET using data recorded from the LED screen.</p>
<list list-type="simple">
<list-item>
<label>5.</label>
<p>To compute <italic>LatD</italic>2<italic>S</italic>2:</p>
</list-item>
<list-item>
<label>5.1.</label>
<p>Find all the ordinates of peaks in <italic>DataPhoto</italic></p>
</list-item>
<list-item>
<label>5.2.</label>
<p>Define matrix <italic>xVals</italic> containing 1&#x2019;s and 0&#x2019;s where 1&#x2019;s represents positions of peaks.</p>
</list-item>
<list-item>
<label>5.3.</label>
<p><italic>xVals</italic> = <italic>Replace positions of</italic> &#x2005; 1&#x2032; <italic>s with abisccas of DataPhoto</italic>.</p>
</list-item>
<list-item>
<label>5.4.</label>
<p>For <italic>n</italic> = 1 : (<italic>Length of signal</italic> &#x2013; <italic>indxGap</italic></p>
</list-item>
<list-item><p><inline-formula><mml:math id="M4"><mml:mrow><mml:mi>I</mml:mi><mml:mi>f</mml:mi><mml:mtext>&#x00A0;</mml:mtext><mml:mi>x</mml:mi><mml:mi>V</mml:mi><mml:mi>a</mml:mi><mml:mi>l</mml:mi><mml:mi>s</mml:mi><mml:mtext>&#x00A0;</mml:mtext><mml:mrow><mml:mo>(</mml:mo><mml:mi>n</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mtext>&#x2009;</mml:mtext><mml:mo>&#x039B;</mml:mo><mml:mtext>&#x2009;</mml:mtext><mml:mi>x</mml:mi><mml:mi>V</mml:mi><mml:mi>a</mml:mi><mml:mi>l</mml:mi><mml:mi>s</mml:mi><mml:mtext>&#x00A0;</mml:mtext><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mtext>&#x2009;</mml:mtext><mml:mo>&#x039B;</mml:mo><mml:mtext>&#x00A0;</mml:mtext><mml:mi>x</mml:mi><mml:mi>V</mml:mi><mml:mi>a</mml:mi><mml:mi>l</mml:mi><mml:mi>s</mml:mi><mml:mtext>&#x00A0;</mml:mtext><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn>2</mml:mn></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mtext>&#x2009;</mml:mtext><mml:mo>&#x039B;</mml:mo><mml:mtext>&#x00A0;</mml:mtext><mml:mi>x</mml:mi><mml:mi>V</mml:mi><mml:mi>a</mml:mi><mml:mi>l</mml:mi><mml:mi>s</mml:mi><mml:mtext>&#x00A0;</mml:mtext><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn>10</mml:mn></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mtext>&#x2009;</mml:mtext><mml:mo>&#x003C;</mml:mo><mml:mtext>&#x2009;</mml:mtext><mml:mi>T</mml:mi><mml:mi>h</mml:mi><mml:mi>D</mml:mi><mml:mtext>2</mml:mtext></mml:mrow></mml:math></inline-formula></p>
</list-item>
<list-item><p>Then, the ordinates of peaks with the rest of the values equal to 0 are <italic>yVals</italic></p>
</list-item>
<list-item>
<label>5.5.</label>
<p>Position of small peaks <italic>PosSmPhoto</italic> = <italic>Replace values of yVals</italic> &#x2260; 0 <italic>with</italic> 1&#x2032; <italic>s</italic>.</p>
</list-item>
<list-item>
<label>5.6.</label>
<p>Substitute [<italic>S</italic>2/<italic>S</italic>1], [<italic>D</italic>2/<italic>D</italic>1] and [<italic>PosSmPhoto</italic>/<italic>PosPhoto</italic>] in steps 3.2 to 4.</p>
</list-item>
</list>
<p>The outputs <italic>LatD</italic>1<italic>S</italic>1 and <italic>LatD</italic>2<italic>S</italic>2 computed from steps I and II (Tables available on the GitHub link mentioned in section 10 below) were used to plot distributions for the stimuli set (see <xref ref-type="fig" rid="F4">Figure 4</xref>).</p>
<fig id="F4" position="float">
<label>FIGURE 4</label>
<caption><p>Latency distributions for complete photodiode data recorded from <bold>(A)</bold> Light Emitting Diode (LED) screen and <bold>(B)</bold> head-mounted display (HMD). Blue and pink reflect LatD1S1 and LatD2S2, respectively, while purple reflects overlap in LatD1S1 and Lat D2S2.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fnhum-17-1223774-g004.tif"/>
</fig>
</sec>
</sec>
</sec>
<sec id="S3" sec-type="results">
<title>3. Results</title>
<p>The Computation of Latencies using the Event-related potential Triggers (CLET) method was successfully implemented and evaluated in two distinct virtual reality (VR) apparatuses, i.e., a non-immersive setup with a LED screen and an immersive setup with a Head-Mounted Display (HMD). The results obtained from both setups demonstrate the efficacy of the proposed CLET approach for accurately aligning EEG/ERP triggers with the presentation of stimuli, thus enabling the extraction and analysis of data with precision.</p>
<sec id="S3.SS1">
<title>3.1. Latency computation for LED screen</title>
<p>In the non-immersive VR environment with the LED screen (<xref ref-type="fig" rid="F4">Figure 4A</xref>), the CLET method efficiently computed the latencies for a set of white and black stimuli. For the white stimuli, the average latency was 121.98 &#x00B1; 8.71 ms. Similarly, for the black stimuli, the average latency was 121.66 &#x00B1; 8.80 ms. The distribution is maximum between 120&#x2013;125 ms range (<xref ref-type="fig" rid="F4">Figure 4A</xref>). Thus, the consistency in the latencies between the two sets of stimuli indicated the robustness of the CLET approach in this VR configuration.</p>
</sec>
<sec id="S3.SS2">
<title>3.2. Latency computation for HMD</title>
<p>In the immersive VR environment with the HMD (<xref ref-type="fig" rid="F4">Figure 4B</xref>), the average latencies were 82.80 &#x00B1; 7.63 ms, mainly distributed between 80&#x2013;85 ms, and 69.82 &#x00B1; 5.52 ms, mainly distributed between 67&#x2013;77 ms for white and black stimuli sets, respectively. The lower latencies observed with the HMD setup than the LED screen setup suggested faster temporal dynamics for the immersive VR apparatus (<xref ref-type="bibr" rid="B9">Iwama et al., 2022</xref>). Although this observation is consistent with findings in the literature (<xref ref-type="bibr" rid="B4">Cattan et al., 2021</xref>), variations are particularly subject to protocols that rely on sending triggers for synchronization (<xref ref-type="bibr" rid="B23">Wang et al., 2016</xref>; <xref ref-type="bibr" rid="B12">Lees et al., 2018</xref>) and specifications of the hardware apparatuses (<xref ref-type="bibr" rid="B21">Rebenitsch and Owen, 2017</xref>; <xref ref-type="bibr" rid="B3">Cattan et al., 2018</xref>; <xref ref-type="bibr" rid="B2">Andreev et al., 2019</xref>; <xref ref-type="bibr" rid="B26">Wilson, 2023</xref>).</p>
<p>The results from both VR setups (<xref ref-type="fig" rid="F4">Figure 4</xref>) also highlight the importance of considering latency distributions along with precision and accuracy (<xref ref-type="bibr" rid="B25">Williams et al., 2021</xref>) in the computation of latencies for aligning epochs, to avoid any timing discrepancies which would otherwise lead to misinterpretations of data (<xref ref-type="bibr" rid="B4">Cattan et al., 2021</xref>; <xref ref-type="bibr" rid="B9">Iwama et al., 2022</xref>).</p>
</sec>
</sec>
<sec id="S4" sec-type="discussion">
<title>4. Discussion</title>
<p>One of the primary strengths of this study lies in the rigorous experimental setup involving the synchronization of various sensors, including EEG, EMG, PPG, photodiode, and nine 3D and a 2D (Miqus) MoCap cameras. This multi-model approach assured a comprehensive investigation of the developed algorithms to compute trigger latencies in VR. Therefore, a direct comparison of this study with the state-of-the-art event-latency computation approaches (<xref ref-type="bibr" rid="B3">Cattan et al., 2018</xref>, <xref ref-type="bibr" rid="B4">2021</xref>; <xref ref-type="bibr" rid="B9">Iwama et al., 2022</xref>), which were based on lower number of modalities recorded, would be biased. Nevertheless, <xref ref-type="fig" rid="F4">Figure 4</xref> demonstrates latencies at par with the stated literature. The novelty lies in the two sets of algorithms proposed for the CLET method to accurately detect triggers and compute latencies for both LED screen and HMD data. The adaptability of the algorithms to the subtle variations in the photodiode data shapes for each display type further highlights their versatility and robustness.</p>
<p>The shorter latencies observed in the HMD setup compared to the LED screen setup can likely be attributed to the hardware characteristics of the display technology, which could facilitate faster triggering and data transmission (<xref ref-type="bibr" rid="B3">Cattan et al., 2018</xref>; <xref ref-type="bibr" rid="B2">Andreev et al., 2019</xref>).</p>
</sec>
<sec id="S5">
<title>5. Conclusion, limitations, and future scope</title>
<p>In conclusion, the results from this research successfully demonstrate the effectiveness of the CLET method for accurately computing latencies in event-related potential (ERP) triggers within two different virtual reality (VR) apparatuses. Efficient synchronization of different sensors and apparatuses also contributed to the validity and the applicability of the CLET method to real-world scenarios. The rapid serial visual paradigm (RSVP) discussed in this study has also been the suggested paradigm due to its simplicity and high temporal accuracy to achieve low values of latencies in triggers (<xref ref-type="bibr" rid="B23">Wang et al., 2016</xref>).</p>
<p>A limitation of the proposed algorithms is their semi-automated nature. However, providing open access to the developed codes for CLET, along with novel datasets, tables, and a tutorial video, provides transparency and reproducibility. This encourages the wider scientific community to adopt and validate this method in their own ERP studies, thereby also fostering improvements in the algorithm. One approach could be to use artificial intelligence (AI) or machine learning (ML)-based clustering method(s) to capture transient changes in the shared datasets, followed by automated thresholding to achieve the remaining computation steps as in CLET. Additionally, factors related to the photodiode&#x2019;s placement and sensor positioning on each display could have influenced the latency measurements. A separate study could be conducted to discuss the best positioning of the photodiode depending on the type of stimuli and display apparatus. It is also stressed that the HMD used in this study consisted of dual displays for each eyepiece. Thus, averaged latency calculated for each lens separately could be used for better accuracy (<xref ref-type="bibr" rid="B4">Cattan et al., 2021</xref>). It would be interesting to see the application of CLET in Brain-Computer Interface (BCI) extended to other neuroimaging modalities, such as functional magnetic resonance imaging (fMRI) (<xref ref-type="bibr" rid="B13">Levitt et al., 2023</xref>) and magnetoencephalography (MEG) (<xref ref-type="bibr" rid="B14">Liesefeld, 2018</xref>), to enable further multimodal investigations of brain activities during Virtual Reality (VR) or Augmented Reality (AR) experiences. This study was limited to only the onset of visual stimuli and offline analysis. With rapid progress in developing VR/AR and haptic technologies (<xref ref-type="bibr" rid="B15">Lm, 2023</xref>), accurate computation of trigger latencies will become more critical in real-time BCI feedback systems (<xref ref-type="bibr" rid="B20">Putze et al., 2020</xref>; <xref ref-type="bibr" rid="B24">Wen et al., 2021</xref>), as well as in transcranial magnetic stimulation (TMS)-based neurorehabilitation (<xref ref-type="bibr" rid="B5">Hernandez-Pavon et al., 2023</xref>) where inaccurate triggers could have serious impact on the course of rehabilitation.</p>
</sec>
<sec id="S6" sec-type="data-availability">
<title>Data availability statement</title>
<p>The datasets, codes, supplementary tables, and a tutorial video are freely available in this link: <ext-link ext-link-type="uri" xlink:href="http://github.com/BiomedicalEngineeringTechies/CLET.git">github.com/BiomedicalEngineeringTechies/CLET.git</ext-link>.</p>
</sec>
<sec id="S7" sec-type="author-contributions">
<title>Author contributions</title>
<p>PS designed research, conducted experiments, developed the algorithm, analyzed the data, wrote the manuscript, and contributed to procuring funds to buy instruments. KG validated the results and co-wrote the manuscript. EV helped to set up the experiment. BV, JN, and XS designed the research and co-wrote the manuscript. AH, TH, and GS contributed to setting up the experiment. GS, JN, and XS contributed to the procurement of funds. XS supervised the study. All authors contributed to the article and approved the submitted version.</p>
</sec>
<sec id="S8">
<title>Abbreviations</title>
<p>CLET, computation of latencies in event-related potential triggers; EEG, electroencephalography; ERP, event-related potential; EMG, electromyography; PPG, photoplethysmography; AUX, auxiliary; VR, virtual reality; LED, light emitting diode; HMD, head mounted display; MoCap, motion capture; RSVP, rapid serial visual paradigm; PC, personal computer; QTM, qualisys track manager; BV Rec, brain vision recorder; BCI, brain-computer interface.</p>
</sec>
</body>
<back>
<sec id="S9" sec-type="funding-information">
<title>Funding</title>
<p>This research was funded by the European Research Consortium for Informatics and Mathematics, and the Norwegian University of Science and Technology, Trondheim, Norway, from 2019&#x2013;21.</p>
</sec>
<ack><p>We would like to acknowledge the funding organizations for this work.</p>
</ack>
<sec id="S10" sec-type="COI-statement">
<title>Conflict of interest</title>
<p>The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p>
</sec>
<sec id="S11" sec-type="disclaimer">
<title>Publisher&#x2019;s note</title>
<p>All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.</p>
</sec>
<fn-group>
<fn id="footnote1">
<label>1</label>
<p><ext-link ext-link-type="uri" xlink:href="http://github.com/BiomedicalEngineeringTechies/CLET.git">github.com/BiomedicalEngineeringTechies/CLET.git</ext-link></p></fn>
</fn-group>
<ref-list>
<title>References</title>
<ref id="B1"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Abreu</surname> <given-names>A. L.</given-names></name> <name><surname>Fern&#x00E1;ndez-Aguilar</surname> <given-names>L.</given-names></name> <name><surname>Ferreira-Santos</surname> <given-names>F.</given-names></name> <name><surname>Fernandes</surname> <given-names>C.</given-names></name></person-group> (<year>2023</year>). <article-title>Increased N250 elicited by facial familiarity: an ERP study including the face inversion effect and facial emotion processing.</article-title> <source><italic>Neuropsychologia</italic></source> <volume>188</volume>:<issue>108623</issue>. <pub-id pub-id-type="doi">10.1016/j.neuropsychologia.2023.108623</pub-id> <pub-id pub-id-type="pmid">37356541</pub-id></citation></ref>
<ref id="B2"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Andreev</surname> <given-names>A.</given-names></name> <name><surname>Cattan</surname> <given-names>G.</given-names></name> <name><surname>Congedo</surname> <given-names>M.</given-names></name></person-group> (<year>2019</year>). <article-title>Engineering study on the use of head-mounted display for brain-computer interface.</article-title> <source><italic>arXiv</italic></source> [<comment>Preprint</comment>]. <pub-id pub-id-type="doi">10.48550/arXiv.1906.12251</pub-id></citation></ref>
<ref id="B3"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Cattan</surname> <given-names>G.</given-names></name> <name><surname>Andreev</surname> <given-names>A.</given-names></name> <name><surname>Maureille</surname> <given-names>B.</given-names></name> <name><surname>Congedo</surname> <given-names>M.</given-names></name></person-group> (<year>2018</year>). <article-title>Analysis of tagging latency when comparing event-related potentials.</article-title> <source><italic>arXiv</italic></source> [<comment>Preprint</comment>]. <pub-id pub-id-type="doi">10.48550/arXiv.1812.03066</pub-id></citation></ref>
<ref id="B4"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Cattan</surname> <given-names>G. H.</given-names></name> <name><surname>Andreev</surname> <given-names>A.</given-names></name> <name><surname>Mendoza</surname> <given-names>C.</given-names></name> <name><surname>Congedo</surname> <given-names>M.</given-names></name></person-group> (<year>2021</year>). <article-title>A comparison of mobile VR display running on an ordinary smartphone with standard PC display for P300-BCI stimulus presentation.</article-title> <source><italic>IEEE Trans. Games</italic></source> <volume>13</volume> <fpage>68</fpage>&#x2013;<lpage>77</lpage>.</citation></ref>
<ref id="B5"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Hernandez-Pavon</surname> <given-names>J. C.</given-names></name> <name><surname>Veniero</surname> <given-names>D.</given-names></name> <name><surname>Bergmann</surname> <given-names>T. O.</given-names></name> <name><surname>Belardinelli</surname> <given-names>P.</given-names></name> <name><surname>Bortoletto</surname> <given-names>M.</given-names></name> <name><surname>Casarotto</surname> <given-names>S.</given-names></name><etal/></person-group> (<year>2023</year>). <article-title>TMS combined with EEG: recommendations and open issues for data collection and analysis.</article-title> <source><italic>Brain Stimul.</italic></source> <volume>16</volume> <fpage>567</fpage>&#x2013;<lpage>593</lpage>. <pub-id pub-id-type="doi">10.1016/j.brs.2023.02.009</pub-id> <pub-id pub-id-type="pmid">36828303</pub-id></citation></ref>
<ref id="B6"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Hoormann</surname> <given-names>J.</given-names></name> <name><surname>Falkenstein</surname> <given-names>M.</given-names></name> <name><surname>Schwarzenau</surname> <given-names>P.</given-names></name> <name><surname>Hohnsbein</surname> <given-names>J.</given-names></name></person-group> (<year>1998</year>). <article-title>Methods for the quantification and statistical testing of ERP differences across conditions.</article-title> <source><italic>Behav. Res. Methods Instru. Comput.</italic></source> <volume>30</volume> <fpage>103</fpage>&#x2013;<lpage>109</lpage>.</citation></ref>
<ref id="B7"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Huang</surname> <given-names>J.</given-names></name> <name><surname>Yang</surname> <given-names>P.</given-names></name> <name><surname>Xiong</surname> <given-names>B.</given-names></name> <name><surname>Wan</surname> <given-names>B.</given-names></name> <name><surname>Su</surname> <given-names>K.</given-names></name> <name><surname>Zhang</surname> <given-names>Z. Q.</given-names></name></person-group> (<year>2022</year>). <article-title>Latency aligning task-related component analysis using wave propagation for enhancing SSVEP-based BCIs.</article-title> <source><italic>IEEE Trans. Neural Syst. Rehabil. Eng.</italic></source> <volume>30</volume> <fpage>851</fpage>&#x2013;<lpage>859</lpage>. <pub-id pub-id-type="doi">10.1109/TNSRE.2022.3162029</pub-id> <pub-id pub-id-type="pmid">35324445</pub-id></citation></ref>
<ref id="B8"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Ignatious</surname> <given-names>E.</given-names></name> <name><surname>Azam</surname> <given-names>S.</given-names></name> <name><surname>Jonkman</surname> <given-names>M.</given-names></name> <name><surname>De Boer</surname> <given-names>F.</given-names></name></person-group> (<year>2023</year>). <article-title>Frequency and time domain analysis of eeg based auditory evoked potentials to detect binaural hearing in noise.</article-title> <source><italic>J. Clin. Med.</italic></source> <volume>12</volume>:<issue>4487</issue>. <pub-id pub-id-type="doi">10.3390/jcm12134487</pub-id> <pub-id pub-id-type="pmid">37445522</pub-id></citation></ref>
<ref id="B9"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Iwama</surname> <given-names>S.</given-names></name> <name><surname>Takemi</surname> <given-names>M.</given-names></name> <name><surname>Eguchi</surname> <given-names>R.</given-names></name> <name><surname>Hirose</surname> <given-names>R.</given-names></name> <name><surname>Morishige</surname> <given-names>M.</given-names></name> <name><surname>Ushiba</surname> <given-names>J.</given-names></name></person-group> (<year>2022</year>). <article-title>Two common issues in synchronized multimodal recordings with EEG: jitter and latency.</article-title> <source><italic>bioRxiv</italic></source> [<comment>Preprint</comment>]. <pub-id pub-id-type="doi">10.1101/2022.11.30.518625</pub-id></citation></ref>
<ref id="B10"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Kiesel</surname> <given-names>A.</given-names></name> <name><surname>Miller</surname> <given-names>J.</given-names></name> <name><surname>Jolic&#x00E6;ur</surname> <given-names>P.</given-names></name> <name><surname>Brisson</surname> <given-names>B.</given-names></name></person-group> (<year>2008</year>). <article-title>Measurement of ERP latency differences: A comparison of single-participant and jackknife-based scoring methods.</article-title> <source><italic>Psychophysiology</italic></source> <volume>45</volume> <fpage>250</fpage>&#x2013;<lpage>274</lpage>. <pub-id pub-id-type="doi">10.1111/j.1469-8986.2007.00618.x</pub-id> <pub-id pub-id-type="pmid">17995913</pub-id></citation></ref>
<ref id="B11"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Kothe</surname> <given-names>C.</given-names></name></person-group> (<year>2023</year>). <source><italic>Simulation and Neuroscience Application Platform (SNAP).</italic></source> <publisher-loc>San Francisco, CA</publisher-loc>: <publisher-name>Github</publisher-name>.</citation></ref>
<ref id="B12"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Lees</surname> <given-names>S.</given-names></name> <name><surname>Dayan</surname> <given-names>N.</given-names></name> <name><surname>Cecotti</surname> <given-names>H.</given-names></name> <name><surname>McCullagh</surname> <given-names>P.</given-names></name> <name><surname>Maguire</surname> <given-names>L.</given-names></name> <name><surname>Lotte</surname> <given-names>F.</given-names></name><etal/></person-group> (<year>2018</year>). <article-title>A review of rapid serial visual presentation-based brain-computer interfaces.</article-title> <source><italic>J. Neural Eng.</italic></source> <volume>15</volume>:<issue>021001</issue>. <pub-id pub-id-type="doi">10.1088/1741-2552/aa9817</pub-id> <pub-id pub-id-type="pmid">29099388</pub-id></citation></ref>
<ref id="B13"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Levitt</surname> <given-names>J.</given-names></name> <name><surname>Yang</surname> <given-names>Z.</given-names></name> <name><surname>Williams</surname> <given-names>S. D.</given-names></name> <name><surname>L&#x00FC;tschg Espinosa</surname> <given-names>S. E.</given-names></name> <name><surname>Garcia-Casal</surname> <given-names>A.</given-names></name> <name><surname>Lewis</surname> <given-names>L. D.</given-names></name></person-group> (<year>2023</year>). <article-title>EEG-LLAMAS: A low-latency neurofeedback platform for artifact reduction in EEG-fMRI.</article-title> <source><italic>Neuroimage</italic></source> <volume>1</volume>:<issue>273</issue>. <pub-id pub-id-type="doi">10.1016/j.neuroimage.2023.120092</pub-id> <pub-id pub-id-type="pmid">37028736</pub-id></citation></ref>
<ref id="B14"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Liesefeld</surname> <given-names>H. R.</given-names></name></person-group> (<year>2018</year>). <article-title>Estimating the timing of cognitive operations with MEG/EEG latency measures: a primer, a brief tutorial, and an implementation of various methods.</article-title> <source><italic>Front. Neurosci.</italic></source> <volume>12</volume>:<issue>765</issue>. <pub-id pub-id-type="doi">10.3389/fnins.2018.00765</pub-id> <pub-id pub-id-type="pmid">30410431</pub-id></citation></ref>
<ref id="B15"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Lm</surname> <given-names>T. Y.</given-names></name></person-group> (<year>2023</year>). <article-title>A touch of virtual reality.</article-title> <source><italic>Nat. Mach. Intell.</italic></source> <volume>5</volume>:<issue>557</issue>.</citation></ref>
<ref id="B16"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Lopez-Calderon</surname> <given-names>J.</given-names></name> <name><surname>Luck</surname> <given-names>S. J.</given-names></name></person-group> (<year>2014</year>). <article-title>ERPLAB: an open-source toolbox for the analysis of event-related potentials.</article-title> <source><italic>Front. Hum. Neurosci.</italic></source> <volume>8</volume>:<issue>213</issue>. <pub-id pub-id-type="doi">10.3389/fnhum.2014.00213</pub-id> <pub-id pub-id-type="pmid">24782741</pub-id></citation></ref>
<ref id="B17"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Luck</surname> <given-names>S. J.</given-names></name></person-group> (<year>2012</year>). &#x201C;<article-title>Event-related potentials</article-title>,&#x201D; in <source><italic>APA&#x2019;s handbook of research methods in psychology: foundations, planning, measures, and psychometrics</italic></source>, <volume>Vol. 1</volume>, <role>eds</role> <person-group person-group-type="editor"><name><surname>Cooper</surname> <given-names>H.</given-names></name> <name><surname>Camic</surname> <given-names>P. M.</given-names></name> <name><surname>Long</surname> <given-names>D. L.</given-names></name> <name><surname>Panter</surname> <given-names>A. T.</given-names></name> <name><surname>Rindskopf</surname> <given-names>D.</given-names></name> <name><surname>Sher</surname> <given-names>K. J.</given-names></name></person-group> (<publisher-name>American Psychological Association</publisher-name>), <fpage>523</fpage>&#x2013;<lpage>546</lpage>.</citation></ref>
<ref id="B18"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Miyakoshi</surname> <given-names>M.</given-names></name> <name><surname>Gehrke</surname> <given-names>L.</given-names></name> <name><surname>Gramann</surname> <given-names>K.</given-names></name> <name><surname>Makeig</surname> <given-names>S.</given-names></name> <name><surname>Iversen</surname> <given-names>J.</given-names></name></person-group> (<year>2021</year>). <article-title>The AudioMaze: An EEG and motion capture study of human spatial navigation in sparse augmented reality.</article-title> <source><italic>Eur. J. Neurosci.</italic></source> <volume>54</volume> <fpage>8283</fpage>&#x2013;<lpage>8307</lpage>. <pub-id pub-id-type="doi">10.1111/ejn.15131</pub-id> <pub-id pub-id-type="pmid">33497490</pub-id></citation></ref>
<ref id="B19"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Nidal</surname> <given-names>K.</given-names></name> <name><surname>Malik</surname> <given-names>A. S.</given-names></name></person-group> (<role>eds</role>) (<year>2014</year>). <source><italic>EEG/ERP analysis: methods and applications.</italic></source> <publisher-loc>Boca Raton, FL</publisher-loc>: <publisher-name>CRC Press</publisher-name>.</citation></ref>
<ref id="B20"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Putze</surname> <given-names>F.</given-names></name> <name><surname>Vourvopoulos</surname> <given-names>A.</given-names></name> <name><surname>L&#x00E9;cuyer</surname> <given-names>A.</given-names></name> <name><surname>Krusienski</surname> <given-names>D.</given-names></name> <name><surname>Berm&#x00FA;dez</surname> <given-names>I.</given-names></name> <name><surname>Badia</surname> <given-names>S.</given-names></name><etal/></person-group> (<year>2020</year>). <article-title>Editorial: Brain-Computer Interfaces and augmented/virtual reality.</article-title> <source><italic>Front. Hum. Neurosci.</italic></source> <volume>14</volume>:<issue>144</issue>. <pub-id pub-id-type="doi">10.3389/fnhum.2020.00144</pub-id> <pub-id pub-id-type="pmid">32477080</pub-id></citation></ref>
<ref id="B21"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Rebenitsch</surname> <given-names>L.</given-names></name> <name><surname>Owen</surname> <given-names>C.</given-names></name></person-group> (<year>2017</year>). <source><italic>Evaluating factors affecting virtual reality display. Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics).</italic></source> <publisher-loc>Berlin</publisher-loc>: <publisher-name>Springer Verlag</publisher-name>.</citation></ref>
<ref id="B22"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Stenner</surname> <given-names>T.</given-names></name> <name><surname>Boulay</surname> <given-names>C.</given-names></name> <name><surname>Grivich</surname> <given-names>M.</given-names></name> <name><surname>Medine</surname> <given-names>D.</given-names></name> <name><surname>Kothe</surname> <given-names>C.</given-names></name> <name><surname>Tobiasherzke</surname> <given-names>G.</given-names></name><etal/></person-group> (<year>2023</year>). <source><italic>Lab streaming layer.</italic></source> <publisher-loc>San Francisco, CA</publisher-loc>: <publisher-name>Github</publisher-name>.</citation></ref>
<ref id="B23"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Wang</surname> <given-names>Z.</given-names></name> <name><surname>Healy</surname> <given-names>G.</given-names></name> <name><surname>Smeaton</surname> <given-names>A. F.</given-names></name> <name><surname>Ward</surname> <given-names>T. E.</given-names></name></person-group> (<year>2016</year>). &#x201C;<article-title>An investigation of triggering approaches for the rapid serial visual presentation paradigm in brain computer interfacing</article-title>,&#x201D; in <source><italic>Proceedings of the 27th Irish Signals and Systems Conference (ISSC)</italic></source>, <publisher-loc>Manhattan, NY</publisher-loc>.</citation></ref>
<ref id="B24"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Wen</surname> <given-names>D.</given-names></name> <name><surname>Fan</surname> <given-names>Y.</given-names></name> <name><surname>Hsu</surname> <given-names>S. H.</given-names></name> <name><surname>Xu</surname> <given-names>J.</given-names></name> <name><surname>Zhou</surname> <given-names>Y.</given-names></name> <name><surname>Tao</surname> <given-names>J.</given-names></name><etal/></person-group> (<year>2021</year>). <article-title>Combining brain&#x2013;computer interface and virtual reality for rehabilitation in neurological diseases: a narrative review.</article-title> <source><italic>Ann. Phys. Rehabil. Med.</italic></source> <volume>64</volume>:<issue>101404</issue>. <pub-id pub-id-type="pmid">32561504</pub-id></citation></ref>
<ref id="B25"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Williams</surname> <given-names>N. S.</given-names></name> <name><surname>McArthur</surname> <given-names>G. M.</given-names></name> <name><surname>Badcock</surname> <given-names>N. A.</given-names></name></person-group> (<year>2021</year>). <article-title>It&#x2019;s all about time: precision and accuracy of Emotiv event-marking for ERP research.</article-title> <source><italic>PeerJ</italic></source> <volume>9</volume>:<issue>e10700</issue>. <pub-id pub-id-type="doi">10.7717/peerj.10700</pub-id> <pub-id pub-id-type="pmid">33614271</pub-id></citation></ref>
<ref id="B26"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Wilson</surname> <given-names>D.</given-names></name></person-group> (<year>2023</year>). <source><italic>AnandTech. Exploring input lag inside and out [Internet].</italic></source> <publisher-loc>North Carolina</publisher-loc>: <publisher-name>AnandTech</publisher-name>.</citation></ref>
<ref id="B27"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Wu</surname> <given-names>C.</given-names></name> <name><surname>Wu</surname> <given-names>W.</given-names></name> <name><surname>Gao</surname> <given-names>X.</given-names></name></person-group> (<year>2013</year>). &#x201C;<article-title>Measuring ERP latency shifts across experimental conditions using spatial filtering</article-title>,&#x201D; in <source><italic>Proceedings of the International IEEE/EMBS Conference on Neural Engineering (NER)</italic></source>, <publisher-loc>Manhattan, NY</publisher-loc>. <pub-id pub-id-type="doi">10.1109/NER.2013.6696202</pub-id></citation></ref>
</ref-list>
</back>
</article>
