tdl.js - aquarium

ThinkTank

An aquarium you can control with a Muse 2 headband.

ThinkTank

Controls

Blinking activates all five bubble fountains.

Watch the Fish speed number as you try maintaining your attention on the aquarium. Higher EEG engagment estimate corresponds with a higher speed. The scale runs from 0 (slowest) to 100 (fastest), and the fish still move at 0.

Move your head gently up or down to adjust the camera view, then hold still when you reach a view you like.

Turn your head left to zoom out or right to zoom in; the zoom settles when you hold still.

ThinkTank

What is ThinkTank?

ThinkTank connects a Muse 2 headband to an interactive aquarium, giving you a way to see its signals affect something on screen. Blink-related electrical changes trigger bubbles, an estimate calculated from EEG frequency bands influences fish speed, and the headband's motion sensors let you adjust the view.

Controls

  • Blinking activates all five bubble fountains.
  • The EEG engagement estimate influences fish speed. Watch the 0-100 speed display as you try maintaining your attention on the aquarium; the number shows how fast the fish are moving within their configured range.
  • Move your head gently up or down to adjust the camera view, then hold still when you reach a view you like.
  • Turn your head left to zoom out or right to zoom in; the zoom settles when you hold still.

Tank and Lab

Tank turns your Muse signals into aquarium controls: blinks activate bubbles, the EEG engagement estimate influences fish speed, and head movements adjust the view.

Lab lets you look more closely at blink detection, movement artifacts, and EEG frequency bands through three guided activities. The fish keep swimming while sensor-driven controls are paused; switch back to Tank whenever you want to resume.

The Science Behind It

EEG records tiny voltage differences at the scalp that reflect the combined electrical activity of many brain cells. Muse uses electrodes on your forehead and behind your ears to record these signals and send them to ThinkTank.

The recordings also pick up electrical activity from your eyes and muscles, along with changes caused by movement or headset contact. ThinkTank uses some of these signals as inputs and checks for others that could interfere with its EEG estimate.

How Blink Detection Works

A blink can produce a brief downward spike in the recordings behind your ears. ThinkTank looks for a matching change in both channels and compares it with recent background activity to decide whether to count a blink.

A detection activates all five bubble fountains, with a short cooldown to avoid counting the same event repeatedly. Other movements can sometimes trigger the detector too; Blink Explorer lets you see how it responds.

EEG Engagement Estimate

ThinkTank compares the strength of theta, alpha, and beta frequency bands in the forehead recordings to calculate an experimental EEG engagement estimate. The estimate changes gradually and influences how fast the fish swim.

Lab shows the estimate on a 0–100 scale, but this is not a percentage of attention. Tank instead displays Fish speed, from the slowest to the fastest configured speed.

Blinks, muscle activity, and poor headset contact can affect the recording. When usable EEG is unavailable, updates pause and the fish eventually return to their normal speed. Frequency Explorer lets you examine the signals behind the estimate.

How Head Movement Works

Muse tracks head movement with motion sensors, separately from EEG. Turning left zooms out and turning right zooms in, while moving your head up or down changes where the camera looks.

These movements adjust the view gradually rather than copying your head angle directly. Hold still when you reach a view you like, and the camera will settle there.

1 / 6
Fish speed--
--
Muse disconnected
fps:
canvas width:
canvas height:
Number of Fish
Change View
Advanced
Options...