Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 85 additions & 0 deletions doc/experiments/vvep.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
********************************
_
*********************************

Visual Evoked Potential (VEP)
=========================================================

Visual Evoked Potentials (VEPs) are electrical signals generated by the visual cortex in response to visual stimulation. They are widely used in clinical and research settings to assess the functional integrity of the visual pathways from the retina to the occipital cortex.

Pattern Reversal VEP
---------------------

The Pattern Reversal Visual Evoked Potential (PR-VEP) is the most commonly used VEP paradigm in clinical practice. It involves presenting a checkerboard pattern that alternates (reverses) between black and white squares at a regular rate, typically 2 Hz (twice per second). This elicits a characteristic positive potential called the **P100**, which occurs approximately 100ms after each pattern reversal.

The P100 Component
~~~~~~~~~~~~~~~~~~

The P100 is a large positive deflection in the EEG signal that is most prominent at occipital electrode sites (O1, Oz, O2) and can also be detected at parietal-occipital sites (PO3, POz, PO4). Key characteristics include:

- **Latency**: ~100ms after stimulus onset (typically 95-110ms in healthy adults)
- **Amplitude**: Variable, but typically 5-20 μV
- **Polarity**: Positive at occipital sites
- **Retinotopic**: Larger amplitude in the hemisphere contralateral to the stimulated eye

Clinical Applications
~~~~~~~~~~~~~~~~~~~~~

Pattern Reversal VEP is used to:

- **Assess visual pathway function**: Detect abnormalities in the optic nerve, chiasm, or visual cortex
- **Diagnose optic neuritis**: Common in multiple sclerosis, shows delayed P100 latency
- **Evaluate amblyopia**: Assess visual development in children
- **Monitor visual recovery**: Track improvements after treatment
- **Detect subclinical lesions**: Identify demyelinating diseases before symptoms appear

Standard Parameters
~~~~~~~~~~~~~~~~~~~

The implementation in EEG-ExPy follows international clinical standards (ISCEV):

- **Check size**: 1 degree of visual angle (0.5 cycles per degree)
- **Reversal rate**: 2 Hz (pattern reverses twice per second)
- **Field size**: 16-20 degrees of visual angle
- **Contrast**: High contrast black and white (≥80%)
- **Luminance**: Equal for black and white (mean luminance ~50 cd/m²)
- **Fixation**: Central red dot for stable gaze
- **Recording**: Monocular (one eye at a time) with blocks alternating between eyes

Experiment Design
~~~~~~~~~~~~~~~~~

This implementation supports both standard monitor-based and VR-based (Meta Quest) presentation:

**Monitor Mode**:
- Participants manually close one eye
- Standard viewing distance and check size
- Text instructions guide eye closure

**VR Mode**:
- Stereoscopic presentation with precise monocular control
- Non-stimulated eye sees black screen
- Optimized parameters for Meta Quest display characteristics
- Immersive experience reduces distractions

The experiment runs in blocks, alternating between left and right eye stimulation to enable monocular VEP measurements and assess each visual pathway independently.

**Visual VEP Experiment Examples:**

When example notebooks and scripts are available, they will appear here.

.. Note: Once example files are added to examples/visual_vep/, uncomment the line below
.. .. include:: ../auto_examples/visual_vep/index.rst

API Reference
~~~~~~~~~~~~~

.. automodule:: eegnb.experiments.visual_vep
:members:
:undoc-members:
:show-inheritance:

.. autoclass:: eegnb.experiments.visual_vep.VisualPatternReversalVEP
:members:
:undoc-members:
:show-inheritance:
1 change: 1 addition & 0 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
experiments/vn170
experiments/vp300
experiments/vssvep
experiments/vvep
experiments/cueing
experiments/gonogo
experiments/all_examples
Expand Down
10 changes: 10 additions & 0 deletions eegnb/experiments/visual_vep/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"""Visual Evoked Potential (VEP) experiments module.

This module contains experiments for measuring visual evoked potentials,
including pattern reversal VEP for assessing the P100 component.
"""

from .vep import VisualVEP
from .pattern_reversal_vep import VisualPatternReversalVEP

__all__ = ['VisualVEP', 'VisualPatternReversalVEP']
Loading
Loading