Skip to content

EEG P300 data generation demo and classification - #137

Closed
toncho11 wants to merge 3 commits into
IBM:mainfrom
toncho11:eeg_classify_generate_01
Closed

EEG P300 data generation demo and classification#137
toncho11 wants to merge 3 commits into
IBM:mainfrom
toncho11:eeg_classify_generate_01

Conversation

@toncho11

@toncho11 toncho11 commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

A joint p-bit probabilistic model for P300 EEG that does:

  • primary: stochastic conditional EEG generation with a p-bit PCircuit.
  • secondary: the same circuit also gives competitive classification using exact conditional classification

The demo runs in 3 modes:

  • classify - compares classical FlatLR with JointPBit, a hybrid Fourier + PCircuit version (of FlatLR)
  • generate - uses the same PCircuit architecture for P300 generation, independently for each subject
  • both - demonstrates classification and generation

Check inside eeg_classify_generate.py for more details.

This required the addition of 2 solvers and fixed_point_quadratic primitive.

… is to use a PCircuit as much as possible for both EEG classification and EEG generation.

A specific EEG algorithm was selected to be encoded as PCircuit. Encoding is partial, since the FFT is still done in a classical way.

Check inside eeg/eeg_classify_generate.py for more details.

This required the addition of 2 solvers and fixed_point_quadratic primitive.
Added comments.
@toncho11

Copy link
Copy Markdown
Collaborator Author

I am going to work more about it first.

@toncho11 toncho11 closed this Sep 11, 2026
@toncho11 toncho11 changed the title EEG P300 classification and generation demo EEG P300 data generation demo and classification Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant