# How to process EEG data

**URL:** https://mne.discourse.group/t/how-to-process-eeg-data/3323
**Category:** Support & Discussions
**Tags:** preprocessing, meg, eeg, visualization, epochs
**Created:** [June 27, 2021, 8:02pm UTC](https://mne.discourse.group/t/how-to-process-eeg-data/3323 "2021-06-27T20:02:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![atulpandey352](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/atulpandey352/32/607_2.png) [@atulpandey352](https://mne.discourse.group/u/atulpandey352)
#### Post date: [June 27, 2021, 8:02pm UTC](https://mne.discourse.group/t/how-to-process-eeg-data/3323/1 "2021-06-27T20:02:32Z")

</div>

We have a eeg data `( n_channel * n_samples)` . This needs to be converted into 3d array based on the event info we have . What is the standard way of doing this ? Somewhere i see the data is converted into 3d array as `(n_channels * n_samples * n_events)` and somewhere i see that ‘`(n_events * n_channels * n_samples )`’ . Can somebody please explain this?

---

<div class="post-metadata">

### Author: ![BarryLiu97](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/barryliu97/32/33_2.png) [@BarryLiu97](https://mne.discourse.group/u/BarryLiu97)
#### Post date: [June 28, 2021, 7:26am UTC](https://mne.discourse.group/t/how-to-process-eeg-data/3323/2 "2021-06-28T07:26:41Z")

</div>

You could just use this [The Epochs data structure: discontinuous data — MNE 0.23.0 documentation](https://mne.tools/stable/auto_tutorials/epochs/10_epochs_overview.html#sphx-glr-auto-tutorials-epochs-10-epochs-overview-py)

---

<div class="post-metadata">

### Author: ![BarryLiu97](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/barryliu97/32/33_2.png) [@BarryLiu97](https://mne.discourse.group/u/BarryLiu97)
#### Post date: [June 28, 2021, 7:29am UTC](https://mne.discourse.group/t/how-to-process-eeg-data/3323/3 "2021-06-28T07:29:10Z")

</div>

As to the shape of the array, in my opinion, that just depends on how you would use the data. After all, that’s just two different presentation of dimension of your data(maybe numpy.ndarray). All you need is to clearly know what dimension of your data is, and the meaning of each dimension.
