MNE plot of EEG signals

  • MNE-Python version: 0.22.0
  • operating system: colab

I used a men library to visualize EEG signals in a CSV file. This. The file contains multiple rows and columns. the problem is when I use this code

sfreq =20 # Hz

# Create the info structure needed by MNE

info = mne.create_info(12, sfreq)

# Finally, create the Raw object

raw = mne.io.RawArray(X_pca, info)

# Plot it!

raw.plot()

the visualization image was like this:

Notably: X_pca has 12 components.

How can I get clear waves for each channel? Can anyone help me?

what makes your think it’s a bug?

you have only an sfreq of 20Hz so 20 values per second.

A

What is mean if the wave is like above? is it means there is a lot of noise for example.
and if I want to have a wave signal like this:

what your advice? about a number of rows, columns, HZ, and so on.

You need data with a higher sampling frequency. Many more data points per second. Like, 500 or so, not just 20 like in your example. :slight_smile: And then low-pass filter the data to smooth it.

This is the actual data, and I don’t know their frequency, so I tried to change it each time with higher and lower, but I didn’t get a good smooth appearance. I am a newbie in this field, so I don’t know if there are any steps to decide the appropriate frequency of my sample.