Skip to content

BrainWaves 1.2.1 - Analysis and timing fixes

Latest

Choose a tag to compare

@github-actions github-actions released this 19 Nov 18:56
· 22 commits to main since this release
82ec6ec

Fixes from the November 18 QA review of real classroom recordings (#319–#330). Analyze could show results from the wrong recordings, EEG markers could land early in the data, and several Clean tools misled students about which trials were noisy.

Analyzing data

  • Combining recordings works when sensors were flagged differently. Selecting several cleaned recordings failed when one of them had a sensor flagged bad and another didn't. Analyze then kept showing the previous selection's results under the new participant list, with no error. Now a flagged sensor is left out only in the recording that flagged it; the others still contribute it. A sensor flagged in every selected recording is shown as excluded.
  • A failed load shows an error instead of leaving old plots on screen.
  • ERPs are measured from the moment before the stimulus. Each trace now starts at 0 µV before the image appears; before, it could start several µV off zero.
  • The ERP's shaded band is a 95% confidence interval and no longer changes when the same data is plotted again.
  • "4 sessions from 3 participants": Overview counts each person once.
  • Multi-tasking response times and accuracy are recorded. They were never written, so Analyze → Behavior had nothing to plot for Multi-tasking. Recordings made before 1.2.1 are not fixed.

Recording

  • Markers line up with the EEG on Muse. Muse sample times were based on when the first Bluetooth packet arrived and then drifted with the headset's clock: about 4 ms per minute on one headset. As a result, stimulus markers landed 67 ms or more before the stimulus appeared, and every ERP looked that much later than it should. Samples are now timed from each packet's actual arrival.
  • Muse samples are corrected for Bluetooth and screen delay. A fixed 36.5 ms is subtracted from sample times: an assumed 20 ms Bluetooth delay plus the 16.5 ms measured between a trial starting and its image appearing. On a test run the face response moved from 215 ms to about 178 ms, the expected N170 range. The value is an estimate until it is measured with a photodiode or a flash-evoked run.
  • Practice trials no longer send EEG markers, so they are no longer averaged in as real trials. Recordings made before 1.2.1 still include them.

Cleaning data

  • Trials are drawn on one shared scale. Each trace used to be stretched to fill its row, so a quiet trial looked as busy as a noisy one, and blinks were drawn smaller than clean EEG. The scale now follows the auto-flag slider, and a "lane = 100 µV" label shows it: a trace that touches both edges of its row is over the threshold.
  • Raising the auto-flag threshold updates your accepted suggestions. Trials you accepted that the new list no longer suggests return to the kept trials. Trials you left out yourself are never changed, and are labelled "Left out by you".
  • Auto-flag ignores sensors you have flagged, even before you save.
  • The suggestion list says when it is out of date, after you move the slider or change a flagged sensor.
  • Accept all leaves out every suggested trial in one click. Trials accepted this way still come back if a re-run no longer suggests them.
  • More room for suggestions. The suggestion list sits right under "How cleaning works", which now shrinks to its text, and scrolls inside its own panel.
  • The Live ERP and saved cleaned files use the pre-stimulus baseline too, not only Analyze. Before, conditions could look several µV apart before the image appeared.

Installing on macOS

The macOS build is not notarized. If macOS says BrainWaves "is damaged", run xattr -dr com.apple.quarantine /Applications/BrainWaves.app (see the README).