
consciousnessModelR is an educational R package for simulating, visualizing, and explaining simplified computational models inspired by consciousness theories.
The package combines R functions, code tutorials, and a theory guide to help learners explore how different theories describe attention, conscious access, global broadcast, information integration, and threshold-like awareness.
Main features
The package provides educational toy simulations for:
- Global Workspace Theory
- Attention and competition models
- Broadcast dynamics
- Information integration
- Threshold-based awareness-like processing
Important note
This package does not detect, measure, or create real consciousness. The models are simplified educational abstractions for teaching, science communication, conceptual exploration, and portfolio development.
Installation
if (!requireNamespace("remotes", quietly = TRUE)) {
install.packages("remotes")
}
remotes::install_github("NoushinN/consciousnessModelR")Quick example
library(consciousnessModelR)
sim <- simulate_global_workspace(
n_processes = 8,
steps = 100,
seed = 123
)
head(sim)
plot_consciousness_sim(
sim,
x = "step",
y = "activation",
group = "process"
)Package structure
The package website includes three main sections:
| Section | Purpose |
|---|---|
| Reference | Formal documentation for each R function |
| Code Tutorials | Step-by-step examples showing how to run and interpret simulations |
| Theory Guide | Conceptual chapters explaining the consciousness theories behind the models |
Code tutorials
The code tutorials explain how to use the package functions:
- Getting Started
- Global Workspace Simulation
- Attention Competition
- Broadcast Network
- Information Integration
- Threshold Models
- Comparing Theories
- Limitations and Ethics
Theory guide
The theory guide provides academic background for the models:
- What Is Consciousness?
- Global Workspace Theory
- Attention and Competition
- Information Integration
- Broadcast and Conscious Access
- Threshold Models
- Comparing Consciousness Theories
- Limitations and Responsible Use
Core functions
| Function | Purpose |
|---|---|
simulate_global_workspace() |
Simulates competition among processes and possible global broadcast |
attention_competition_model() |
Simulates priority-based selection among competing signals |
broadcast_network() |
Simulates how selected information spreads across a network |
simulate_information_integration() |
Simulates a simplified integration and differentiation score |
consciousness_threshold() |
Applies a simplified awareness-like threshold to activation values |
plot_consciousness_sim() |
Visualizes simulation outputs |