METHODS article

Front. Virtual Real., 22 May 2026

Sec. Virtual Reality and Human Behaviour

Volume 7 - 2026 | https://doi.org/10.3389/frvir.2026.1803960

Methodological framework for integrating intracranial EEG with immersive virtual reality

  • 1. Institute for Human-Centered Technology Research, Universitat Politècnica de València, València, Spain

  • 2. Refractory Epilepsy Unit, Neurology and Neurosurgery Service, Hospital Universitario y Politécnico La Fe, València, Spain

Abstract

Introduction:

Understanding how the brain processes immersive experiences in artificial environments remains a central question in cognitive neuroscience. While traditional methods have relied on behavioral and questionnaire-based assessments of immersion in virtual environments, they fall short in capturing their underlying complex neural dynamics. This study presents a novel methodological framework that combines immersive virtual reality (VR) with intracranial EEG (iEEG) to explore some of these neural correlates of virtual environments. Additionally, it evaluates the capacity of the system to elicit different levels of presence by modulating immersion, as well as the usability of the system and the absence of cybersickness in healthy participants.

Methods:

We developed an experimental methodology integrating iEEG and immersive VR in clinical settings involving patients implanted with depth electrodes. The protocol includes four VR scenarios varying in immersion level, with synchronized acquisition of iEEG signals, behavioral, and questionnaire data. The planned analysis pipeline comprises preprocessing and anatomical localization of intracranial signals, spectral and oscillatory analyses across canonical frequency bands, functional connectivity analyses, event-related time-frequency analyses, spatial filtering approaches, and exploratory machine-learning classification. Subjective presence is assessed using an embedded questionnaire, together with usability and dizziness measures. In addition, a pilot study was conducted in a group of 30 healthy participants without iEEG, who completed the proposed procedure using the same system.

Results:

Healhty participants showed different levels of presence in response to the immersion conditions, and reported that the system was highly usable and produced only minimal cybersickness.

Conclusion:

This methodological framework enables the investigation of the neural responses to controlled variations in immersion with high spatial and temporal resolution. It provides a replicable workflow for combining bedside immersive VR with clinical iEEG in hospital settings and lays the groundwork for future studies exploring the neural mechanisms of experiences in virtual realities. The reported presence ratings in healthy participants support the validity of the system in modulating presence through changes in immersion, while remaining usable and not causing relevant cybersickness.

1 Introduction

As virtual reality (VR) and extended reality technologies become increasingly accessible and widely used (Fares et al., 2024), identifying the neural mechanisms underlying experiences in artificial environments has become a central issue in cognitive neuroscience. Immersive technologies progressively blur the line between simulated and physical experiences, raising the fundamental question of whether, and how, the human brain differentiates artificially generated experiences from genuine reality. Over the past 25 years, presence has become the cornerstone metric in immersive VR research, with numerous studies attempting to quantify this subjective sensation and elucidate the underlying neural processes involved.

While presence is a subjective construct that is influenced by multiple factors and may vary across users (Schubert et al., 2001), immersion is better understood as an objective property of the VR system. Following Slater, immersion refers to the extent to which the system provides rich and coherent sensorimotor contingencies, whereas presence refers to the user’s feeling of “being there” in the virtual environment (Slater, 2009; Slater, 2003). The two are closely related but not equivalent: immersion concerns what the system affords, while presence concerns how those affordances are experienced. Despite their connection, the relation between presence and immersion is not one to one, as presence is influenced by other factors, such as media content, which has been shown to modulate presence beyond immersion (Baños et al., 2004). In this context, fidelity can be understood, following Alexander et al., as the extent to which the virtual environment emulates relevant aspects of the real world, and therefore as one important component of immersion (Alexander et al., 2005). More specifically, fidelity may be expressed across different dimensions of the system, including display fidelity, which relates to the sensory scope and quality through which the virtual environment is presented; scenario fidelity, which concerns the richness and realism of the virtual scene itself, including its visual and auditory features; and interaction fidelity, which refers to the extent to which the user can meaningfully act within and engage with the environment (Skarbez et al., 2019). When other relevant factors are kept relatively constant, higher levels of fidelity across these dimensions are generally expected to increase immersion and, consequently, to promote a stronger sense of presence.

Research on responses to immersive experiences has traditionally relied on post-experience questionnaires heavily focused in the sense of presence (Souza et al., 2021; Schwind et al., 2019). However, numerous studies have highlighted the limitations of relying exclusively on self-report measures. Presence research, for example, has traditionally used post-experience questionnaires, with over 29 different instruments developed to date (Souza et al., 2021). First, such questionnaires are typically administered after the VR session, requiring participants to make retrospective judgements that may be subject to memory biases or influenced by the process of reflection itself. Although some researchers have demonstrated the feasibility of posing presence-related questions during the VR experience via head-up displays, these in situ approaches remain relatively uncommon (Schwind et al., 2019; Skarbez et al., 2017). Second, the act of questioning itself may shape or bias participants’ responses; for instance, an experiment where participants were asked to rate the fictitious “colourfulness of their day”, a fabricated construct to which individuals nevertheless responded, highlighted the tendency to quantify even “ill-defined” or non-existent experiences when prompted. Finally, the various presence questionnaires often reflect subtly different conceptual frameworks, complicating direct comparisons across studies and potentially contributing to inconsistencies in empirical findings.

Different measures have been suggested to as potentially overcome the limitations of the subjective measures. A landmark study by Baumgartner et al. provided the first evidence of a distinct neural network associated with the sense of presence during immersion on a virtual roller coaster ride using functional magnetic resonance imaging (fMRI) (Baumgartner et al., 2008). In this study, the dorsolateral prefrontal cortex in adults, appeared to modulate immersive experience, showing increased activation during reduced presence, while in children this effect remained absent, correlating with their greater susceptibility to full immersion. This aligns with theories positing that presence involves a top-down cognitive process that develops with age and maturity, allowing the frontal cortex to regulate engagement with virtual environments. Consistent with these findings, Clemente et. al. observed a negative correlation between the dorsolateral prefrontal cortex activation and self-reported presence (Clemente et al., 2014). In the same study, the insula showed positive correlations with presence intensity, coherent with a previous study that linked this region to the sense of presence (Bouchard et al., 2012). Some electroencephalography (EEG) studies have found associations between presence and specific brainwave patterns, such as modest changes in alpha or theta power during high-immersion states (Clemente et al., 2014; Grassini et al., 2021). Event-related potential approaches have also been employed, showing that unexpected real-world stimuli may elicit different brain responses depending on the immersion level (Kober and Neuper, 2013).

Despite the valuable contributions of neurophysiological and neuroimaging studies, these methods are inherently constrained by the inherent limitations of their respective instrumentation. EEG offers millisecond-level temporal resolution making it well-suited for capturing rapid neural dynamics. However, its spatial resolution is poor due to signal distortion form the scalp and skull and the sum of components from adjacent regions, which hampers the accurate localization of cortical and subcortical sources involved with immersive experiences (Cao et al., 2021; Safikhani et al., 2024). In contrast, fMRI provides high spatial resolution and whole-brain coverage, yet it is limited by its slow response to changes in neural activity, operating on the scale of seconds, failing to capture the fast transitions of non-stationary neural activity such as the evoked by punctual stimuli (Chen and Gauthier, 2021; Lu et al., 2025). Furthermore, the constrained physical environment required for fMRI scanning, such as remaining supine and motionless, along with limited compatibility with immersive VR equipment, substantially reduces the ecological validity of the experience (Faria et al., 2023).

In summary, research on neural correlates of immersive experiences has been hampered by limited resolution, and the difficulty of capturing the dynamic, distributed neural interactions that give rise to immersive cognitive states. Consequently, there is a pressing need for a paradigm shift toward high-resolution, multimodal methods capable of decoding the real-time neural mechanisms that shape immersive experiences. Such advances are essential to building a comprehensive framework for understanding how the human brain constructs and interprets virtual realities.

1.1 Intracranial electroencephalography studies on human cognition

Intracranial electroencephalography (iEEG) presents a promising avenue for investigating the neural underpinnings of immersive virtual experiences (Snider et al., 2013). Unlike noninvasive techniques, iEEG involves direct recording from the cortical surface or depth electrodes implanted in subcortical and medial temporal regions, offering both millisecond temporal resolution and millimeter-level spatial precision. This combination is particularly valuable in VR research, where neural responses are expected to unfold rapidly across distributed cortical and subcortical networks. In contrast to scalp EEG, iEEG enables a much more precise characterization of local activity and inter-regional interactions, while also granting access to deep structures like the insula, which are difficult to study reliably with surface recordings. Although its use is limited to clinical populations because of its invasive nature, in such contexts it offers a unique opportunity to investigate immersive experiences with a level of anatomical and temporal specificity that is not accessible though noninvasive methods.

Recent work by has begun to illuminate how coordinated brain activity supports the sense of reality in immersive contexts highlighting the hippocampus and prefrontal cortex as key nodes in a reality-monitoring network, which interact rhythmically to distinguish authentic experiences from imagined or virtual ones (Johnson et al., 2020). Specifically, the hippocampus has been suggested perform pattern separation, allowing the brain to recognize an event as novel and real rather than a memory or simulation. This process is tightly coupled with prefrontal oversight, as theta-band (4–8 Hz) oscillations have been shown to synchronize activity between the medial temporal lobe and the prefrontal cortex during memory retrieval, integrating stored representations with executive evaluation. The directionality of this interaction is informative: during retrieval, hippocampal activity precedes and influences the prefrontal cortex, whereas during encoding or imaginative states, prefrontal regions exert top-down modulation over the hippocampus (Euston et al., 2012). Cross-frequency coupling, such as hippocampal theta with cortical gamma, further facilitates information exchange, supporting accurate encoding and subsequent reactivation of memories. Strong memory traces are typically marked by broadband gamma increases and low-frequency suppression across cortical areas (Ursino and Pirazzini, 2024). Collectively, these dynamic patterns reflect a distributed neural system that continuously evaluates the authenticity of sensory experiences, offering a mechanistic foundation for distinguishing virtual experiences from reality (Jäncke et al., 2009).

Despite its considerable promise, iEEG has not yet been applied to directly examine brain activity during immersive VR experiences to evaluate the responses to different levels of immersion. Notably, the feasibility of integrating VR with implanted iEEG electrodes has been demonstrated in prior work (Paschall et al., 2022), which addressed key technical challenges such as signal fidelity and artifact reduction. This study suggests that VR immersion can be well tolerated in clinical environments requiring iEEG monitoring; however, it did not investigate the neural responses associated with immersive virtual experiences. Given its unmatched temporal and spatial precision, iEEG is uniquely suited to capture the user’s responses to objective immersion changes. Indirect evidence supporting such mechanisms comes from related research: in rodents, hippocampal place cells exhibit distinct firing patterns in virtual versus real mazes, implying that the brain’s spatial memory system differentiates between virtual and physical environments (Safaryan and Mehta, 2021; Gherman et al., 2024). Similarly, in humans, specific hippocampal neurons have been shown to become inactive during VR tasks compared to real-world conditions, potentially indicating a diminished sense of authenticity or engagement (Snider et al., 2013). While intriguing, these findings do not examine the variation of the responses along the changes in the immersion levels.

1.2 Aims and objectives

This article introduces a novel methodology that integrates the high spatiotemporal resolution of iEEG with immersive VR technology to study brain activity during controlled experiences in virtual environments. The proposed framework addresses key methodological aspects of this integration, including clinically constrained electrode coverage, VR stimulus, synchronization of neural and behavioral data, and the practical implementation of the protocol in a hospital setting. Through precise tracking of neural activity across clinically available brain regions, this framework is intended to support the investigation of the neural mechanisms underlying immersive experiences in virtual environments. To test the feasibility of the system in providing immersive experiences, the study also investigates the subjective responses elicited by the paradigm in a sample of healthy participants.

Consequently, the objective of the study is twofold.

  • First, it aims to develop and describe a methodological framework for safely and effectively integrating iEEG with immersive VR in a clinical context. This methodology aims at ensuring that high-quality neural data can be recorded and synchronized with VR experiences without interference or signal degradation, while also considering the usability of the experimental setup and participants' comfort during its use, particularly among clinical populations with implanted electrodes. In addition, the framework is designed to support the investigation of neural responses to controlled variations in immersion through complementary analytical approaches, including spectral, connectivity, and event-related measures, together with subjective measures such as self-report questionnaires on presence, comfort and usability.

  • Second, the study aims to validate the ability of the proposed paradigm to elicit presence by modulating fidelity across different system dimensions, while maintaining acceptable usability and low cybersickness in a sample of healthy participants.

2 Methodological framework for integrating iEEG with immersive VR in a clinical context

2.1 Participants

Patients will be recruited from the Refractory Epilepsy Unit at Hospital Universitari i Politècnic La Fe (Valencia, Spain), a Spanish reference center for pharmacoresistant epilepsy. Patients will have undergone a neurosurgical procedure for the implantation of temporary depth electrodes into their brains to record iEEG and precisely localize the origins of epileptic seizures. The location of depth electrodes will be customized to each patient exclusively following clinical demands, following the principles of stereoelectroencephalography. Once the surgery has been completed, patients will be hospitalized in the hospital for at least a week, during which, different clinical tests will be performed while their iEEG is continuously monitored and registered. During this time, patients will progressively discontinue antiseizure medication. From sixth day post-surgery, patients will resume medication, once the recording of seizures has been completed. They will then undergo another surgery to remove the electrodes, and, if appropriate, undergo thermal ablation of previously targeted positions that are suspected to be the source or propagation of seizures.

Patients will be considered potential candidates to participate if they are between 18 and 60 years of age and have been diagnosed with pharmacoresistant epilepsy. Patients will be excluded if they have: a) comorbidities such as lesions caused by previous interventions, infarcts or tumors that affect brain functions; b) visual impairments such as partial or total blindness, or conditions that could prevent interaction with VR systems; and c) motor, cognitive or behavioral conditions that prevent participation.

2.2 Instrumentation

2.2.1 Intracranial recordings

Intracranial neural activity will be captured using MICRODEEP depth electrodes (DIXI Medical, Chaudefontaine, France) and will be recorded via a Natus Quantum LTM Amplifier system (Natus Medical Inc, Middleton, WI, USA) at up to 16 kHz. This system will also enable the synchronization of brain activity recordings with external events through triggers using a proprietary serial port interface with a parallel port protocol. Synchronization of neural recordings with the experimental conditions and events will be achieved by means of a photodiode attached to the laptop running the task, which will detect luminance changes generated by a blinking black square presented in the lower-right corner of the screen. The photodiode output will be digitized by a potentiometer-adjusted comparator and processed by a Raspberry Pi 3 (Raspberry Pi Ltd, Cambridge, United Kingdom), and the resulting triggers will be transmitted to the Natus amplifier through a parallel port hat (Elesar Ltd, Cambridge, United Kingdom).

2.2.2 Virtual environments

The audiovisual stimuli will be presented using a custom-made adapted version of the Meta Quest two head-mounted display (HMD) (Meta, Menlo Park, CA, USA) that incorporates adjustable velcro strips that can be fitted to accommodate electrode implantation for each participant. The Meta Quest two features a Qualcomm Snapdragon XR2 processor, a screen resolution of 1832 × 1920 pixels per eye, and a maximum refresh rate of 90 Hz. The device is also equipped with two front-facing cameras with pass-through and two side-facing cameras that enable 6-DoF tracking. Interaction with the virtual questionnaires and navigation in the virtual environment will be facilitated by the Meta Quest two controllers.

The virtual environments have been implemented using Unity (Unity Technologies, San Francisco, CA, USA) and run in a dedicated laptop featuring an Intel Core i7-13700HX Processor @5GHz, 32 GB of RAM, and a NVIDIA GeForce RTX 4080 with 12 GB of GDDR6.

2.2.2.1 Experimental conditions

A virtual forest has been designed for the experiment. It includes visual stimuli, such as trees, plants, rocks, rivers, bridges, etc., spread over an irregular terrain, with hills and flat areas, under a clear sky with clouds (Figure 1). And also features sounds, such as wind, bird tweets, running water in areas close to the rivers, and footsteps.

FIGURE 1

Four different versions of the virtual forest have been designed with two levels of immersion (high and low) and navigation (enabled and disabled) (Table 1).

TABLE 1

ImmersionTypeInteractionAudio stimuliVisual stimuli
Low ImmersionStaticExplorationNo soundLimited field of view
Low-quality textures
No shadows and reflections
DynamicExploration
Navigation
No soundLimited field of view
Low-quality textures
No shadows and reflections
High ImmersionStaticExploration3D soundsComplete field of view
High-quality textures
Dynamic shadows and water reflections
DynamicExploration
Navigation
3D soundsComplete field of view
High-quality textures
Dynamic shadows and water reflections

Immersion levels and their characteristics.

The different versions have been created by manipulating objective virtual-environment parameters expected to modulate immersion. Following Slater’s definition of immersion, the system configuration varies visual quality, field of view, environmental sound, and navigation. Visual quality and sound are manipulated to alter the fidelity of the environment, following Alexander et al.’s definition of fidelity as the extent to which the virtual environment emulates relevant aspects of the real world. Field of view is manipulated to alter the amount of sensory information available to the participant, and navigation is manipulated to alter the set of valid actions supported by the virtual environment.

Accordingly, in the high-immersion condition, the virtual forest will be presented with high-quality textures, shadows, water reflections, environmental sound, and the complete field of view of the HMD, 110° horizontally and vertically (Sauer et al., 2022; Masnadi, 2025). In contrast, in the low immersion conditions, the same environment will be presented with low-quality textures, without shadows or reflections, without sound and with the participant’s field of view restricted to 55° in both dimensions, effectively limiting the visual scope by half.

In all conditions, participants can explore the environment with head movements. In the conditions that allow for navigation, the participants can also move through the environment using a navigation metaphor based on teleports between predefined points arranged along a path in the environment (Bowman et al., 2004). The possible teleport locations are highlighted with two yellow feet over the ground when they are pointed with a controller. A teleport is performed when the participants aims at a teleport location and press a trigger in the controller.

Under this configuration, the high-immersion settings provide richer visual and auditory information, a wider field of view, and, where applicable, greater action possibilities, whereas the low-immersion configuration deliberately reduce these objective system properties. In this way, the experimental conditions have been designed to manipulate immersion through controlled variations in display, scenario, and interaction fidelity.

2.2.2.2 Tutorial and training

Given that interaction mechanics, such as exploring, navigating, and pointing within virtual environments, can be challenging for inexperienced participants, a tutorial has been created. The tutorial features a simple terrain with a curved path and includes text instructions to guide participants in exploring and navigating the virtual environment (Figure 2).

FIGURE 2

2.2.2.3 Embedded presence measurement

A virtual environment displaying a presence questionnaire has been also designed to collect the sense of presence experienced by the participants without removing the HMD (Table 2). While the methodological framework has been designed to investigate the neural responses to varying levels of immersion, the experiment also registers the sense of presence in order to investigate the subjective responses to the experiences. We used a reduced form of the Presence Questionnaire (Witmer and Singer, 1998) with six selected items (out of the original ∼32). The chosen questions reflect key aspects of presence, involvement (the sense of “being there” and time distortion), multi-sensory realism (e.g., vividness and consistency of the virtual experience), awareness of real-world distractions (the extent to which participants feel “somewhere else” versus the forest), and post-exposure after-effects (how participants recall the environment as an actual place visited). These six items are administered on the same seven-point Likert scale employed by the original instrument.

TABLE 2

No.Question
Q1Please, rate your feeling of having been in the forest on the following scale from 1 to 7, where 7 represents the actual experience of being in a place
Q2To what extent were there moments during the experience when the forest was reality for you? There were moments during the experience when the forest was reality for me
Q3When you remember your experience in the forest, do you think of the forest more as images you have seen or more as a place you have visited?
Q4During the experience, what was stronger overall: The feeling of being in the forest or the feeling of being somewhere else?
Q5Think about your memory of being in the forest. How similar is it, in terms of realism, vividness, color, panorama, etc., to other real places you have been?
Q6During the time the experience lasted, did you frequently think that you were truly in the forest?

Items of the questionnaire used to investigate participants’ subjective experience of being in the virtual realities.

2.3 Procedure

The experiment will be conducted in the participants’ hospital room on the final day of their hospital stay, after they have received antiepileptic medication and before the electrodes are removed during surgery (Figure 3). An experimenter will supervise and conduct the entire experiment, documenting any events that occur, such as posture changes, patient communications, and other relevant occurrences.

FIGURE 3

The experimenter will introduce the participant to the aim of the study and, in collaboration with a nurse, will connect the laptop to the Natus amplifier using a serial port, and will fix the HMD to the participant’s head (Figure 4). The participant will be asked to remain comfortably seated on the bed with their legs extended over it. Participants will also be informed that during the experiment, the experimenter will be present to assist, but they should minimize interaction. Then, the experiment will start.

FIGURE 4

The participants will alternate 30-s rest periods (displaying a black screen and no sound), where they will be asked to keep their eyes open and relax, with 90-s interactive phases, during which they will be required to freely interact with each of the four conditions of the virtual forest described previously. Each condition will be presented once, yielding a total of eight consecutive phases per session: four resting periods and four stimulation periods. These four stimulation conditions will appear in a randomized order, until the participants have interacted with all environments. On-screen instructions at the start of each environment will remind participants whether navigation is available. After interacting with each version of the forest, the participants will complete the virtual questionnaire on presence to provide subjective feedback on their experience within the corresponding virtual environment. At the end of the session, once the HMD has been removed, participants will complete an adapted version of the System Usability Scale (Brooke, 1996) to evaluate the usability of the experimental setup, as well as the Virtual Reality Sickness Questionnaire (Campo-Prieto et al., 2021) to assess their physical comfort during the VR experience. In addition, participants will be invited to provide verbal feedback about the session, which the experimenter will record to qualitatively support and cross-validate the questionnaire responses.

User interactions within the virtual environments, including head movements, teleports in the virtual forest, and button selection in the virtual questionnaire, will be registered during the experiment. Temporal markers of the experimental conditions and events in the virtual environment will be registered in the Natus system for improved alignment with the neural signals.

3 Data analyses

Figure 5 shows a complete diagram of the entire data analysis workflow.

FIGURE 5

3.1 Image preprocessing

MRI and postoperative CT images will be co-registered and transformed into the Montreal Neurological Institute coordinate system. This transformation will allow the use of anatomical atlases to automatically locate brain regions and electrode contacts within a common and standardized space. Neuromorphometrics atlas and cytoarchitectonic maps included in the SPM Anatomy toolbox (Eickhoff et al., 2005) the Yale Brain Atlas (YBA) (McGrath et al., 2022) and the Brainnetome Atlas 246 3 mm (BNA) (Fan et al., 2016) will be used to cover all the brain regions and subregions of interest. An initial estimate of the electrode contact positions will be made using an automated computer vision method that detects the connected areas of the contacts in the magnetic resonance imaging and then identifies the centroid of these areas as the contact locations. These locations will be manually refined if necessary, and any contacts that are not automatically detected will be added. This process will be performed using the LeGUI software package (Davis et al., 2021) for MATLAB (Mathworks, Natick, MA, USA).

3.2 Signal preprocessing

The registered signals will be exported with a bipolar montage, which will provide an estimate of the electrical signal of a virtual contact located at the midpoint between each pair of physical contacts. If both physical contacts belong to the same brain region, the virtual contact will be associated with that region. If the contacts belong to different regions, the virtual contact will be discarded for any analyses involving those regions. It is important to note that some atlases, such as the YBA, provide subregions (e.g., hippocampal pes, body, and tail) rather than entire regions (e.g., hippocampus). If two contacts are located in different subregions, the virtual contact will be discarded in analyses focused on those subregions but retained when considering activity in the entire region. The importance of maintaining brain subregions lies in the ability to study their specific functions and interactions separately (Sherman et al., 2023).

Electrical signals will be downsampled to 512 Hz to lower computational load. To remove European power line noise, a Notch filter will be applied at 50 Hz and its next four harmonics. Epileptiform fragments, including ictal and interictal epileptiform discharges will be manually identified and removed by visual inspection conducted by a trained expert, following standard iEEG criteria based on the presence of spikes, sharp waves, spike-wave complexes and their characteristic evolution across contacts (Abdallah et al., 2024). Finally, each contact’s signal will be independently normalized using z-scores.

Different metrics will then be calculated across frequency bands, including delta (1–4 Hz), theta (4–8 Hz), alpha (7–12 Hz), beta (12–30 Hz), and gamma (30–100 Hz). Spectral measures, including Power Spectral Density and Fitting Oscillations and One Over F (FOOOF) (Donoghue et al., 2020), as well as connectivity measures like imaginary coherence and Granger causality, will be estimated from 5-s epochs, into which the signal will be segmented. Event-related analyses, such as amplitude analysis and Morlet wavelet convolution, will also be performed to investigate neural responses linked to events during interaction with the virtual environment (e.g., teleports, head movements, etc.). For these analyses, 1-s epochs centered around each event will be used. First, the Power Spectral Density will be examined using Welch’s method. For each frequency band, spectral parameters related to power magnitude (e.g., median power, total power, relative band power, etc.) and oscillatory components (e.g., peak frequency, spectral entropy, skewness, etc.) will be calculated. Before extracting these parameters, each condition will be normalized to its respective preceding resting state. Moreover, FOOOF will be used to model the aperiodic and periodic components of the power spectrum, allowing for the quantification of oscillatory peaks in terms of central frequency, amplitude, and bandwidth for each experimental condition. This approach has previously been applied to analyse spectral changes of iEEG across different conditions (Shabestari et al., 2024; Maher et al., 2025). Second, functional connectivity between brain regions will be examined using two complementary measures: imaginary coherence, which quantifies the consistency of phase differences between signals while minimizing the effects of volume conduction (Sanchez Bornot et al., 2018), and Granger causality, which evaluates directed functional connectivity by measuring how well one signal predicts another (Granger, 1969). These connectivity measures will be computed for each frequency band and for all pairs of electrode contacts located within the anatomical regions of interest. This will allow the investigation of how functional relationships between brain regions will change across different experimental conditions and spatial scales (Sherman et al., 2023). Finally, event-related potentials will be averaged across trials from the time-domain signals to reveal consistent voltage deflections that are time-locked to the events (Mana et al., 2024). Morlet wavelet convolution will also be applied to decompose the signal into its time-frequency representation, enabling the analysis of both evoked (phase-locked) and induced (non-phase-locked) oscillatory responses linked to the events (Vila-Vidal et al., 2023).

Additionally, spatial filter-based techniques, such as Common Spatial Pattern (CSP), will be used to examine the differences between experimental conditions.

3.3 Statistical analysis

For statistical analyses, the data will consist of preprocessed epochs extracted from the iEEG recordings for each experimental condition. Spectral features will be computed for each virtual contact and organized for comparison by anatomical region, frequency band, and condition. For connectivity analyses, the observations will correspond to epoch-wise connectivity values computed for each pair of virtual contacts within or between the selected regions of interest.

The normality of the data distribution will be assessed using the Shapiro-Wilk test. If the data are normally distributed, for comparisons between the four experimental conditions, low-immersion static, low-immersion dynamic, high-immersion static, and high-immersion dynamic, one-way repeated measures analyses of variance (ANOVA) will be performed. This will allow for the evaluation of condition-specific effects and interactions. If the sphericity assumption is violated, the Greenhouse-Geisser correction will be applied. Pairwise comparisons between conditions will be conducted using post-hoc t-tests with Bonferroni correction to account for multiple comparisons. Partial eta squared (η2) will be calculated for each ANOVA as a measure of effect size, with values ranging from 0 to 1, where higher values indicate a greater proportion of variance explained by the independent variable. If the data are non-normally distributed, the Aligned Rank Transform ANOVA will be used. The appropriate non-parametric effect size measures will be reported. To investigate differences between two conditions (e.g., low-immersion static vs. high-immersion static), if the data are normally distributed, a paired sample t-test will be performed for comparing the means of the two conditions, with Cohen’s d used as a measure of effect size. If the data are non-normally distributed, the Wilcoxon signed-rank test will be used as a non-parametric alternative to the paired t-test, and the rank-biserial correlation will serve as the effect size measure.

The α level will be set at 0.05 for all analyses (two-sided). All statistical tests, including effect size calculations, will be performed by a researcher blind to the experiment.

All analyses will be performed using Python’s SciPy (v.1.15.2) and pingouin (v.0.5.5) packages.

3.4 Machine learning-based analysis

The differences of the neural responses between conditions will also be investigated using machine learning techniques based on features extracted from the iEEG data. Specifically, features derived from the iEEG signals across different frequency bands will be used as inputs for classification algorithms such as support vector machines, random forests, or k-nearest neighbours to assess the condition-specific differences. Beyond conventional statistical analyses, these approaches will be useful for capturing distributed and potentially non-linear patterns across electrode contacts and spectral features, and may reveal higher-dimensional structure in the data that is not readily apparent in univariate comparisons. They may also help identify which anatomical regions, or combinations of regions, contribute most strongly to classification performance, thereby refining region-specific hypotheses about the neural substrates of immersive virtual experience.

The models will be evaluated using standard performance metrics such as accuracy, precision, recall, and F1-score to assess classification performance. Cross-validation techniques, including k-fold cross-validation, will be used to ensure that the models generalize well across participants, minimizing overfitting. Additionally, confusion matrices will be generated to visually assess the model’s ability to correctly classify the conditions and identify misclassifications.

4 Preliminary investigation of presence, usability and cybersickness in healthy participants

A convenience sample of healthy controls with no history of neurological or mental health disorders was recruited from university staff and acquaintances of the research team. A total of 30 participants agreed to take part in this preliminary study. The sample included 12 women and 18 men, with a mean age of 33.2 ± 7.8 years and a mean of 14.4 ± 4.7 years of formal education.

Participants followed the same procedure described in this methodological article, with the exception of the steps related to intracranial surgery. After interacting with the four virtual environments, they reported the lowest levels of presence in the low-immersion conditions, particularly in the static condition (2.8 ± 1.2), followed by the dynamic condition, in which navigation was allowed (3.3 ± 1.6). In contrast, the high-immersion conditions elicited stronger feelings of presence, with higher ratings in both the static (4.6 ± 1.2) and especially the dynamic environments (5.1 ± 0.8). Paired-samples Student’s t-tests showed statistically significant differences between low- and high-immersion levels in both the static condition (p = 0.005) and the dynamic condition (p < 0.001).

Participants also rated the experimental system used for VR exposure as highly usable, with a mean score on the System Usability Scale of 84.3 ± 8.7 over 100, indicating excellent usability. In addition, all participants reported minimal cybersickness symptoms, with a mean score on the Virtual Reality Sickness Questionnaire of 6.8 ± 5.4 over 100, consistent with a low level of VR-related discomfort.

Verbal feedback from participants indicated that the VR experience was generally perceived as highly positive, realistic, and progressively more immersive across conditions. Participants consistently reported noticeable differences in visual quality, graphical realism, and environmental detail between the forest scenarios, with the higher-fidelity conditions being described as especially convincing. Several participants also emphasized the contribution of spatialized and realistic sound to the sense of immersion. Importantly, multiple comments suggested that participants experienced a growing sense of presence over the course of the task, with some reporting that the virtual forest increasingly displaced awareness of the laboratory environment. These impressions support the effectiveness of the fidelity manipulation in modulating the subjective quality of the immersive experience. However, one participant reported “certain degree of dizziness” in the final condition, suggesting that increased immersion may in some cases be accompanied by greater discomfort.

5 Discussion

This manuscript presents a novel methodology for the future integration of iEEG with immersive VR to investigate neural correlates underlying experiences in virtual environments. Its main contribution lies in the definition of a unified experimental framework that combines controlled immersion manipulation, synchronized neural and behavioral acquisition, embedded subjective assessment, and a multilevel analysis pipeline suitable for clinical settings. Additionally, the preliminary evaluation in healthy participants validates the capacity of the proposed paradigm to elicit presence by modulating fidelity across different system dimensions, while maintaining high usability and minimal cybersickness. However, the transferability of these results to the clinical cohort of participants remains to be studied.

5.1 Technical feasibility

The importance of achieving technical feasibility of the proposed paradigm lies in its potential ability to ensure that the integration of iEEG with immersive VR can be safely and effectively implemented in clinical environments, particularly with neurosurgical patients. This is especially relevant given the technical challenges involved in combining high-density neural recordings with real-time, interactive virtual environments. A stable and well-integrated system should not only support the methodological robustness of the proposed approach but also enable the scalability of this research for broader applications. Furthermore, technical reliability is essential for maintaining the validity of neural data by minimizing artifacts that could obscure meaningful brain signal. Although the feasibility of the methodological framework still needs to be validated in patients with implanted electrodes, this rationale is consistent with the only previous study to combine iEEG with VR, which demonstrated that VR headsets introduce only minimal, correctable noise to the iEEG signal, thereby supporting the feasibility of conducting simultaneous VR exposure and intracranial recordings (Paschall et al., 2022).

5.2 Usability and comfort

There is substantial evidence indicating that usability and physical comfort when using a HMD can significantly impact the user’s experience in VR, particularly their sense of presence (Rebenitsch and Owen, 2016; Weech et al., 2019). Discomfort, poor ergonomics, or usability issues have been shown to disrupt immersion and prevent users from fully engaging with the experience. For this reason, usability and comfort were incorporated as explicit methodological dimensions of the framework. The findings of the preliminary healthy-subject validation are especially relevant for the future clinical implementation of the paradigm, as they suggest that the protocol can be delivered in a way that is both acceptable and well tolerated, reducing the likelihood that usability barriers or physical discomfort will interfere with immersion or compromise neural measurements. However, these results cannot be assumed to generalize directly to patients undergoing iEEG monitoring, whose comfort, fatigue, mobility constraints, head sensitivity, and overall tolerability may differ substantially because of their clinical context, involving the presence of implanted electrodes and associated equipment.

5.3 Sense of presence

The inclusion of an embedded presence measure is a central part of the proposed framework because it provides a subjective counterpart to the neural and behavioral data collected during the experiment. In the preliminary healthy-subject evaluation, higher presence ratings in the high-immersion conditions confirmed that the designed manipulation was subjectively detectable and that the embedded questionnaire was sensitive to differences between conditions. These reports also support the interpretation that the system effectively modulates presence through changes in fidelity across multiple dimensions. These findings provide important support for the methodological validity of the virtual environments as experimental stimuli, as they suggest that the paradigm is capable of producing graded immersive conditions. This is a key strength for future iEEG studies, as it increases the likelihood of detecting neural responses that scale with immersion and presence. More broadly, embedding the questionnaire within the immersive workflow potentially reduces disruption, avoids removing the HMD between conditions, and preserves closer temporal alignment between the subjective report and the immediately preceding experience. Nevertheless, whether patients undergoing iEEG monitoring experience comparable levels of presence, or whether the same manipulation produces equivalent graded subjective effects under clinical constraints, remains an open empirical question.

5.4 Limitations and future directions

The f findings obtained from the proposed methodological framework in implanted participants, and from studies based on iEEG in general, should be interpreted with appropriate caution. Participant recruitment will be necessarily constrained by clinical indication, electrode implantation plans, hospital logistics, and patient tolerability. As a result, cohorts in this type of research are often limited in size, which restricts generalizability and makes it difficult to establish definitive neural markers of the different immersive parameters evaluated. Moreover, individual variability in brain anatomy and the clinical placement of electrodes, determined by the location of epileptogenic zones, will inevitably influence the neural signals recorded and limit broader applicability. Furthermore, the lesions caused by the electrodes while penetrating the brain may slightly affect cognitive processes such as perception, attention, or the integration of sensory information (Murray-Douglass et al., 2024), which may contribute to the processing of the immersion level. The potential influence of antiepileptic medication must also be considered. For example, valproate has been associated with a decrease in spectral power across all canonical frequency bands, while carbamazepine increases the delta and theta bands and decreases the alpha band, leading to a reduced cognitive performance (Höller et al., 2018). Although such pharmacological effects may dampen neural responses related to immersive perception and attentional engagement, medication will be administered consistently across experimental conditions, thereby preserving the validity of within-subject comparisons.

The major limitation of the present work is that the framework has not yet been tested in the target clinical population under actual iEEG recording conditions. The healthy-participant validation reported here was designed as a preliminary step to examine whether the VR manipulation elicited graded subjective presence while remaining usable and well tolerated in a non-clinical sample. The control sample was recruited by convenience and was intended to assess the feasibility of the paradigm before application in implanted patients, rather than to provide a definitive characterization of immersive responses in the general population. Future studies should therefore examine how these ratings relate to concurrent neural and behavioral markers, and whether similar graded effects are observed in clinical iEEG populations.

6 Conclusion

This study presents a novel methodological framework for the future integration of immersive VR with iEEG to investigate the neural underpinnings of experiences in virtual environments. The preliminary results obtained in healthy volunteers support the ability of the VR component to induce graded differences in subjective presence while maintaining high usability and low cybersickness under non-clinical conditions. However, direct evidence in patients undergoing iEEG monitoring is still required. Accordingly, the present study lays the groundwork for future research that seeks to map the neural architecture of immersive experience in high resolution, using iEEG to bridge the gap between subjective states and real-time brain activity in virtual environments.

Statements

Data availability statement

The data supporting the findings of this study will be made available from the corresponding author upon reasonable request.

Ethics statement

The studies involving humans were approved by Hospital Universitari i Politècnic La Fe (91CD9IM2-BUIVNF3N-DMCY4ST5). The studies were conducted in accordance with the local legislation and institutional requirements. The participants provided their written informed consent to participate in this study. Written informed consent was obtained from the individual(s) for the publication of any potentially identifiable images or data included in this article.

Author contributions

MA: Conceptualization, Funding acquisition, Investigation, Methodology, Project administration, Resources, Supervision, Writing – review and editing. TO: Data curation, Formal Analysis, Investigation, Methodology, Software, Visualization, Writing – original draft, Writing – review and editing. AG: Conceptualization, Data curation, Investigation, Methodology, Validation, Writing – review and editing. VV: Investigation, Project administration, Validation, Writing – review and editing. RL: Conceptualization, Investigation, Methodology, Project administration, Supervision, Writing – original draft, Writing – review and editing.

Funding

The author(s) declared that financial support was received for this work and/or its publication. This work was supported by Conselleria Educació, Cultura, Universitats i Ocupació of Generalitat Valenciana (CIPROM/2023/48, CIDEXG/2022/15), Ministerio de Ciencia, Innovación y Universidades (PID2023-147284OB-I00, PID2022-141498OA-I00), and Fundació la Marató de la TV3 (60/2023).

Acknowledgments

We would like to sincerely thank the nursing team at the recruitment center, especially María Palanca, for their invaluable support during participant recruitment and data collection. We also extend our gratitude to José Roda, Albert Duran and Álvaro Morales for his technical assistance in establishing communication between the experimental system and the intracortical recording amplifier.

Conflict of interest

The author(s) declared that this work was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

The author RL declared that they were an editorial board member of Frontiers at the time of submission. This had no impact on the peer review process and the final decision.

Generative AI statement

The author(s) declared that generative AI was used in the creation of this manuscript. Generative AI was used to check grammar.

Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.

Publisher’s note

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.

References

Summary

Keywords

immersion, intracranial electroencephalography, pharmacoresistant epilepsy, presence, virtual reality

Citation

Alcañiz M, Ors T, Gutierrez A, Villanueva V and Llorens R (2026) Methodological framework for integrating intracranial EEG with immersive virtual reality. Front. Virtual Real. 7:1803960. doi: 10.3389/frvir.2026.1803960

Received

04 February 2026

Revised

24 April 2026

Accepted

27 April 2026

Published

22 May 2026

Volume

7 - 2026

Edited by

Alfonso Mastropietro, National Research Council (CNR), Italy

Reviewed by

Athanasios Vourvopoulos, Instituto Superior Técnico (ISR), Portugal

Galih Restu Fardian Suwandi, Bandung Institute of Technology, Indonesia

Venkateswarlu Gonuguntla, Symbiosis International University (SIU), India

Updates

Copyright

*Correspondence: M. Alcañiz,

Disclaimer

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.

Outline

Figures

Cite article

Copy to clipboard


Export citation file


Share article

Article metrics