Free SKILL.md scraped from GitHub. Clone the repo or copy the file directly into your Claude Code skills directory.
npx versuz@latest install hiyenwong-ai-collection-collection-skills-eeg-hopfield-emotion-energy-landscapesgit clone https://github.com/hiyenwong/ai_collection.gitcp ai_collection/SKILL.MD ~/.claude/skills/hiyenwong-ai-collection-collection-skills-eeg-hopfield-emotion-energy-landscapes/SKILL.md---
name: eeg-hopfield-emotion-energy-landscapes
description: "EEG-based Hopfield energy landscape analysis for quantifying brain network stability during emotional processing (happy/sad face tasks). Activation: emotion energy landscape, brain stability, happy sad face EEG, Hopfield emotion."
---
# EEG-Based Hopfield Energy Landscapes for Emotion Processing
> Quantifies brain network stability during emotional processing (happy/sad face perception) using EEG-derived Hopfield energy landscapes, extending network-based emotion analysis with dynamical systems theory.
## Metadata
- **Source**: arXiv:2603.27644
- **Authors**: Barry Djibrina, Jiajia Li
- **Published**: 2026-03
## Core Methodology
### Key Innovation
Constructs Hopfield energy landscapes from EEG-derived functional brain networks during emotional face processing tasks, enabling quantitative measurement of brain network stability differences between happy and sad emotional states.
### Technical Framework
1. **EEG Data Collection**: Record EEG during happy/sad face perception tasks
2. **Functional Connectivity Estimation**: Compute pairwise connectivity from EEG signals (e.g., phase locking value, coherence)
3. **Hopfield Network Construction**: Map functional connectivity to Hopfield network weights
4. **Energy Landscape Analysis**: Compute energy function for each emotional state, compare landscape topology
5. **Stability Quantification**: Measure energy barrier depths, basin sizes, transition probabilities
### Why This Approach
- Energy landscapes provide intuitive visualization of brain state dynamics
- Hopfield formalism connects neural network theory to emotional processing
- Quantitative stability metrics enable comparison across emotional states and subjects
## Implementation Guide
### Prerequisites
- EEG data from emotional face processing tasks
- Functional connectivity estimation tools
- Hopfield network implementation
### Step-by-Step
1. Preprocess EEG data (filtering, artifact removal)
2. Compute functional connectivity matrix for each emotional condition
3. Construct Hopfield network: W_ij = connectivity strength between electrodes i,j
4. Define energy function: E = -1/2 * sum(W_ij * s_i * s_j)
5. Sample network states and compute energy values
6. Build energy landscape: histogram/contour of energy values
7. Compare landscape properties between happy and sad conditions
### Code Example
```python
import numpy as np
def hopfield_energy(connectivity_matrix, states):
"""Compute Hopfield energy for given states."""
W = connectivity_matrix
energies = []
for state in states:
E = -0.5 * np.sum(W * np.outer(state, state))
energies.append(E)
return np.array(energies)
def compare_landscapes(energy_happy, energy_sad):
"""Compare energy landscape properties."""
stats = {
'happy_mean': np.mean(energy_happy),
'sad_mean': np.mean(energy_sad),
'happy_std': np.std(energy_happy),
'sad_std': np.std(energy_sad),
}
return stats
```
## Applications
- Emotion recognition from EEG
- Understanding neural basis of emotional processing
- Biomarker development for mood disorders
- Brain-computer interfaces for affective computing
## Pitfalls
- Hopfield model assumes symmetric connections (brain connectivity may be asymmetric)
- Energy landscape interpretation requires careful statistical validation
- EEG spatial resolution limits may obscure fine-grained network dynamics
## Related Skills
- eeg-hopfield-emotion-energy
- neuro-attractor-landscape-working-memory
- sgdm-eeg-visual-cognition