Skip to content

Braindecode and Moabb dataset #663

Closed
nemarDatasets/nm000343
#4

Description

@bruAristimunha

The following datasets are not working with the braindecode loader:

  • <class 'moabb.datasets.epfl.EPFLP300'>
  • <class 'moabb.datasets.hinss2021.Hinss2021'>
  • <class 'moabb.datasets.huebner_llp.Huebner2017'>
  • <class 'moabb.datasets.huebner_llp.Huebner2018'>
  • <class 'moabb.datasets.schirrmeister2017.Schirrmeister2017'>

Activity

  1. bruAristimunha commented on Oct 21, 2024

    @bruAristimunha
    CollaboratorAuthor
    • <class 'moabb.datasets.epfl.EPFLP300'>
    • <class 'moabb.datasets.hinss2021.Hinss2021'>
    • <class 'moabb.datasets.huebner_llp.Huebner2017'>
    • <class 'moabb.datasets.huebner_llp.Huebner2018'>
    • <class 'moabb.datasets.schirrmeister2017.Schirrmeister2017'>
    • <class 'moabb.datasets.liu2024.Liu2024'>
    • <class 'moabb.datasets.mpi_mi.MunichMI'>
    • <class 'moabb.datasets.mpi_mi.GrosseWentrup2009'>
    • <class 'moabb.datasets.upper_limb.Ofner2017'>
    • <class 'moabb.datasets.physionet_mi.PhysionetMI'>
    • <class 'moabb.datasets.sosulski2019.Sosulski2019'>
    • <class 'moabb.datasets.Zhou2016.Zhou2016'>
  2. bruAristimunha commented on Oct 21, 2024

    @bruAristimunha
    CollaboratorAuthor

    Less that I expected :)

  3. bruAristimunha commented on Oct 23, 2024

    @bruAristimunha
    CollaboratorAuthor

    The issue with EPFLP300 is the irregular size of events in the raw data in the last events. Initially, I thought it was the case where drop_bad would solve it, but no. In some sessions, we have different values.

    I tried to solve it on the braindecode side for half an hour, but I couldn't. I'll come back to this later, but on the moabb side.

    Same issue with Hinss2021:

    assert np.all(this_trial_sizes == window_size_samples), (
    

    AssertionError: All trial sizes should be the same if you do not supply a window size.

  4. bruAristimunha commented on Oct 23, 2024

    @bruAristimunha
    CollaboratorAuthor

    Huebner2017 has an issue too.

  5. PierreGtch commented on Nov 11, 2024

    @PierreGtch
    Collaborator

    @bruAristimunha

    Couls this be related to braindecode/braindecode#563 and #607 ?

    Now the annotations should always be set on raw moabb datasets thanks to the SetAnnotations step:

    SetRawAnnotations(
    self.event_id,
    interval=self.interval,
    ),

    But if the raw already has annotations, this step is skipped:

    if raw.annotations:
    return raw

    I think we should overwrite the annotations' durations, even if they are already set.

  6. bruAristimunha commented on Feb 12, 2025

    @bruAristimunha
    CollaboratorAuthor

    Thanks for the reply @PierreGtch, I think I missed your answer in the past, I will test and comment that if solve the probl with other datasets

  7. bruAristimunha commented on Feb 12, 2025

    @bruAristimunha
    CollaboratorAuthor

    It only five dataset that are not working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions