Decoding - Extract spatial patterns for each condition

  • MNE version: 1.9.0
  • Python: 3.13
  • Operating system: macOS 15.5

Hi MNE community,

Using MNE tutorials, I have been able to extract the spatial patterns and filters (MEG) allowing to separate my conditions A vs B in decoding analysis.
(Linear classifier on sensor data with plot patterns and filters — MNE 1.9.0 documentation)

I would like to extract the spatial patterns associated with condition A and B independently.
Is there a way to do it?

Thank you,
Camille.

If you train a model to choose between A or B then it learns a filter (and hence a pattern) that represents the difference between A and B (A - B if you will). In this case, there is no spatial pattern for condition A and B independently.

1 Like