You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-2Lines changed: 22 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -155,19 +155,39 @@ To create a new stimulus type, simply add a new image in [this folder](https://g
155
155
156
156
The application classifies single flashes. Epochs are triggered at each frame on 250ms windows. The classification pipeline computes xdawn covariances projected on the tangent space followed by a linear discriminant analysis. The resulting probabilities are [accumulated](https://github.com/timeflux/burst/blob/main/nodes/predict.py) in a circular buffer on which correlation analysis is performed. When enough confidence is reached for a specific target, a final prediction is made.
157
157
158
-
The accumulation engine is [configurable](https://github.com/timeflux/burst/blob/main/graphs/classification.yaml).
158
+
Several accumulation engines are available, which can be configured either from the [classification graph](https://github.com/timeflux/burst/blob/main/graphs/classification.yaml) or adjusted in realtime using the contextual menu (by pressing the `s` key).
159
+
160
+
The current default decision engine is _Steady_.
161
+
162
+
#### Parameters available for all decision engines
159
163
160
164
| Setting | Description | Default |
161
165
|---------|--------------|---------|
162
166
| codes | The list of burst codes, one for each target ||
163
167
| min_buffer_size | Minimum number of predictions to accumulate before emitting a prediction | 30 |
164
168
| max_buffer_size | Maximum number of predictions to accumulate for each class | 200 |
169
+
| recovery | Minimum duration in ms required between two consecutive epochs after a prediction | 300 |
170
+
171
+
#### _Pearson_ decision engine
172
+
173
+
This method computes the Pearson correlation for each frame and code. The final prediction is made when the `threshold` and `delta` limits are reached.
174
+
175
+
| Setting | Description | Default |
176
+
|---------|--------------|---------|
165
177
| threshold | Minimum value to reach according to the Pearson correlation coefficient | .75 |
166
178
| delta | Minimum difference percentage to reach between the p-values of the two best candidates | .5 |
167
-
| recovery | Minimum duration in ms required between two consecutive epochs after a prediction | 300 |
168
179
169
180
Please note that default values are reasonnably suitable for random data. For real EEG data, the threshold should probably be raised.
170
181
182
+
#### _Steady_ decision engine
183
+
184
+
Based on the _Pearson_ engine, this method uses a different decision process
185
+
186
+
| Setting | Description | Default |
187
+
|---------|--------------|---------|
188
+
| min_frames_pred | Minimum number of times the current candidate must have been detected to emit a prediction | 50 |
189
+
| max_frames_pred | Maximum number of frames after which the best performing candidate is chosen | 200 |
0 commit comments