hvEEGNet: exploiting hierarchical VAEs on EEG data for neuroscience applications

summary

The gist

hvEEGNet is proposed as two variational autoencoder models to target high-fidelity EEG reconstruction and provide latent representations for neuroscience applications.<ref:2312.00799#pg1,two…

In short

hvEEGNet uses two hierarchical Variational Autoencoders to achieve high-fidelity EEG reconstruction and create useful latent representations for neuroscience. It outperforms previous models, showing superior reconstruction quality. The study also reveals that data quality significantly impacts model performance, allowing the model to potentially detect noisy or artifactual EEG segments.

Key concepts

Variational Autoencoder (VAE)
A VAE is a type of deep learning model designed to learn a probabilistic mapping between input EEG data and a compressed latent space. It learns how to reconstruct the original data from this compressed representation, which is essential for generating meaningful representations for neuroscience applications.
Hierarchical Latent Space
hvEEGNet evolves the standard VAE by incorporating multiple layers of latent spaces. This hierarchical structure allows the model to capture different levels of complexity in EEG data, leading to a richer and more detailed latent representation compared to simpler models.
Dynamic Time Warping (DTW)
DTW is a similarity score used here to measure how well the reconstructed EEG data matches the original input. It accounts for temporal distortions, meaning it measures similarity even if the timing of events in the reconstructed signal is slightly shifted relative to the original.

Terminology used across episodes

This episode discusses

The paper

hvEEGNet: exploiting hierarchical VAEs on EEG data for neuroscience applications · Read on arXiv

Department of Informatics, Systems, and Communication, University of Milan-Bicocca · Department of Information Engineering, University of Padova

DOI: 10.3389/fninf.2024.1459970

Transcript

Introduction to the show: ident: Electrical Engineering. The day in electrical engineering: signals, systems and the hardware that carries them.

Rosa: We're looking at the paper: "hvEEGNet: exploiting hierarchical VAEs on EEG data for neuroscience applications".

Paper summary: Rosa: So we're talking about this paper called "hvEEGNet: exploiting hierarchical VAEs on EEG data for neuroscience applications." It’s trying to use two variational autoencoder models to get really high-fidelity EEG reconstruction and also create latent representations that scientists can use for brain stuff.

Dev: That sounds complicated, but the main idea is tackling the problems of getting good EEG reconstructions and getting useful latent spaces for neuroscience research.

Rosa: Right, so they're using a hierarchical VAE, which is an evolution of a standard one, by adding multiple layers to each latent space. It’s designed specifically for EEG data where things are messy.

Dev: The training loss function they use is LV AE which is the sum of the KL divergence between two distributions and the reconstruction error. That means they balance making sure their model learns a good representation with how accurately it reconstructs the original signal, which is Eq of p theta x z >

Taro: So, for this specific version called vEEGNet-ver3, they quantified that reconstruction error using dynamic time warping similarity score. That’s a way to measure how close two time series are when they are slightly shifted in time >

Rosa: And the paper claims that hvEEGNet reconstructs EEG data with very high fidelity, outperforming most previous solutions, including vEEGNet-ver3. It seems much better at reconstructing the EEG segment overall >

Dev: They say this improvement is visible in both domains they look at, which suggests it's a significant step forward in handling that signal variability and noise >

Taro: But the paper also looked into how good the training data quality and size affect the model. They found that hvEEGNet failed to reconstruct some EEG data from test sessions S2 and S5 because of issues with the input data itself >

Rosa: That’s a key point, because they didn't blame the model for that failure; it was actually about the quality of the raw EEG recordings, like saturation during acquisition >

Dev: So if you look at this paper, it shows that even good deep learning models can struggle if the input data is corrupted in specific ways >

Taro: And they did provide an explanation for that failure by pointing out specific EEG segments and channels where the raw EEG data was actually corrupted, like when it got saturated during the acquisition phase >

Rosa: Once trained properly, hvEEGNet also has this ability to look for outliers. They use a kNN algorithm on a matrix made from averaging normalized dynamic time warping scores across all their training runs for each pair task repetition channel >

Dev: So they can use this model as an automatic detector for noisy EEG segments, like those caused by artifacts >

Taro: That means if you feed it new data, it can flag the parts that look like noise or artifacts >

Rosa: Their training dynamics also vary depending on the subject. They found that subject S3 reached an optimal model very quickly, in about fifteen epochs >

Dev: They also established a relationship between how long they train and the distribution of their input training set, defining a transition point based on when the global average error showed its maximal slope >

Taro: The paper seems to be opening up new research questions about what exactly drives the relationship between training these deep learning models and the quality of the input data >

Rosa: In conclusion, this work by Giulia Cisottoa, Alberto Zancanarob, Italo F. Zoppisa, and Sara L. Manzonia presents hvEEGNet: exploiting hierarchical VAEs on EEG data for neuroscience applications >

Dev: The paper shows that this model provides a very high-fidelity reconstruction of EEG data compared to previous methods like vEEGNet-ver3 >

Taro: It also gives us tools, like the anomaly detection capability, which could be useful for identifying artifacts in larger EEG datasets later on >

Rosa: Ultimately, this research opens up new fundamental questions about the link between how these deep learning models are trained and what kind of input data they need to succeed >

Conclusion: Rosa: So we're wrapping up the talk on hvEEGNet, which is this model that uses two variational autoencoders to reconstruct EEG data really accurately and create those latent representations for neuroscience work.

Dev: Yeah, it’s about taking those two models and adding a hierarchical structure so you get better latent spaces, making it more robust for what you want to do with the brain data.

Rosa: The authors are focusing on how this hierarchical setup helps them achieve much higher fidelity reconstruction than older methods we've seen.

Dev: They use a specific loss function called LV AE which balances trying to get a good representation in the latent space against how closely it reconstructs the original EEG signal using something called dynamic time warping similarity score.

Rosa: And what they found is that this approach gives them very high-fidelity reconstructions, outperforming vEEGNet version three and other models we've looked at before.

Dev: That’s impressive when you look at the actual comparison in Table three where their reconstruction error falls much lower than the other methods.

Rosa: But they also talked about a big caveat, which is that the quality of your input EEG data really matters for this model to work correctly.

Dev: They found that if you feed it certain test sessions, like S2 and S5 data, where the raw recordings were corrupted during acquisition—like maybe saturation—the model just couldn't reconstruct those parts.

Rosa: So the implication here is that even a sophisticated AI model has limits when the input signal itself is fundamentally flawed by noise or bad recording conditions.

Dev: It also showed they built in an anomaly detection capability using kNN on those similarity scores across all their training runs, which means once it’s trained, you can use it to automatically flag noisy EEG segments later on.

Rosa: So we’ve seen how this model reconstructs data and how it can spot bad data during testing, but the next big question is what this actually means for how we use these latent representations in actual neuroscience studies.

More episodes

← Home