Closed oreHGA closed 1 year ago
This is the basis for the next study we'd be running & sharing current data + analysis will hopefully ginger people to join in!
Erik has been working on a script that returns for a single recording :
return {
"timestamp": df_pbb.index[0],
"duration": df_pbb.index[-1] - df_pbb.index[0],
"avg_power_per_channel_by_band": {
channel: {band: df_pbb[channel + "_" + band].mean() for band in bands}
for channel in channels
},
"avg_power_by_band": dict(average_band_power),
"avg_power_by_channel": dict(average_channel_power),
"avg_calm_score": avg_calm_score,
"avg_focus_score": avg_focus_score,
"time_spent_calm": time_spent_calm,
"time_spent_focused": time_spent_focused,
# `relative_power` keys are 2-tuples (band1, band2), values are ratios
# maybe doesn't need to be computed here,
# can be computed later from `avg_power_by_band`
# "relative_power": {},
}
Oh I think we could also include signal quality averages per channel
There's a snippet of code that allows us to choose channels based on signal Quality
Dataset
Resting state EEG data Link
[x] upload dataset to hugging face