Interactive Figure 3: Bayesian Perceptual Inference and Interoceptive Modulation

Type: Interactive Supplementary Figure

Associated Publication: Bodily rhythms and action-perception coupling

Figure: Figure 3 - Interactive simulation of precision-weighted Bayesian inference

Version: 1.0

Last Updated: February 2026

License: CC BY 4.0

â–¶ Launch Interactive Figure View on GitHub

Abstract

This interactive figure illustrates a simple Bayesian model of perceptual inference in which bodily state modulates how strongly sensory evidence is weighted. The visualization demonstrates how interoceptive signals (representing cardiac and respiratory cycles) dynamically modulate the relative precision of prior expectations versus incoming sensory evidence within an active inference framework.

Users can manually adjust or animate the interoceptive signal strength to observe how precision reallocation affects the posterior inference. The figure includes real-time visualization of distribution means, precision weights, and a Signal-to-Signal Ratio (SSR) panel showing the reciprocal relationship between interoceptive and exteroceptive precision over time.

Keywords: Bayesian inference Interoception Precision Active inference Cardiac cycle Respiratory cycle Perception Signal-to-Signal Ratio

Features

Technical Specifications

Format: Self-contained HTML5 file with embedded JavaScript

Dependencies: Plotly.js (loaded via CDN)

Browser Compatibility: Modern browsers (Chrome, Firefox, Safari, Edge)

File Size: ~20 KB

Performance: Optimized with Plotly.react() for smooth 60fps animation

How to Use

  1. Manual exploration: Use the slider to adjust interoceptive signal strength (I) from -1 to +1
  2. Observe changes: Watch how the posterior distribution (purple) shifts and changes shape
  3. Read tooltips: Hover over underlined terms to see definitions
  4. Animate: Click "Play" to see rhythmic oscillations simulating cardiac or respiratory cycles
  5. Try presets: Use "Heartbeat (~1s)" or "Respiration (~5s)" buttons for realistic physiological rhythms
  6. Monitor SSR panel: Watch how interoceptive and exteroceptive precision trade off over time

Citation

[Alejandro Galvez-Pol*, Micah Allen, Lucas Naranjo, James M. Kilner]. (2026). Interactive Figure 3: Bayesian Perceptual Inference and Interoceptive Modulation. GitHub. https://galvez-pol.github.io/bodily-rhythms-figure3/ Associated with: [Galvez-Pol, A., et al. Bodily Rhythms Gate Action–perception Coupling. PsyArXiv, 8 Dec. 2025, doi:10.31234/osf.io/zj23s_v1]

BibTeX

@misc{interactive_figure3_2026, author = {Alejandro Galvez-Pol, Micah Allen, Lucas Naranjo, James M. Kilner}, title = {Interactive Figure 3: Bayesian Perceptual Inference and Interoceptive Modulation}, year = {2026}, publisher = {GitHub}, url = {https://galvez-pol.github.io/bodily-rhythms-figure3/} }

Links & Resources

License & Reuse

This interactive figure is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0). You are free to share and adapt this material for any purpose, even commercially, as long as you give appropriate credit.

Contact

For questions or feedback about this interactive figure, please open an issue on the GitHub repository or contact the corresponding author.