Olfactory EEG Signal Classification Network
- The paper introduces OESCN, a deep learning framework that classifies olfactory EEG signals using adaptive frequency band extraction and subject-specific attention.
- It employs a four-stage pipeline—PSD estimation, multi-scale band generation, attention mechanism, and a spatio-spectral CNN—to process and classify EEG data.
- Benchmarking shows OESCN achieves 97.1% accuracy, outperforming EEGNet by 13.3% and reducing inter-subject variability significantly.
The Olfactory EEG Signal Classification Network (OESCN) is a deep learning framework specifically designed for classifying electroencephalogram (EEG) signals elicited by olfactory stimuli. The architecture emphasizes adaptive frequency band feature extraction and subject-specific spectral attention, coupled with a compact spatio-spectral convolutional neural network (CNN), achieving robust and high-accuracy classification across individuals for 13-class odor recognition tasks (Sun et al., 2022).
1. Architectural Overview
OESCN is constructed as a four-stage pipeline optimized for extracting discriminative representations from olfactory-induced EEG. The stages are:
- Pre-processing & PSD Estimation: Raw EEG data (C channels, T time samples) are processed via Welch’s periodogram per channel, producing a power spectral density (PSD) representation , where denotes frequency bins over 0.5–70 Hz.
- Frequency Band Generator: A sliding-window mechanism extracts candidate frequency sub-bands over the PSD, aggregating multi-scale bandwise features into .
- Frequency Band Attention Mechanism: Subject-specific attention is imposed on bandwise features: a multi-head self-attention incorporates a global and several local heads, followed by head fusion and a skip connection, yielding a re-weighted spatio-spectral map .
- Spatio-Spectral CNN Classifier: serves as a single-channel 2D “image,” processed via parallel convolutions of varying kernel sizes, pooled, and passed through fully-connected (FC) layers to output a 13-way softmax for odor identification.
The data-flow is: .
2. Frequency Band Generation
The frequency band generator performs an exhaustive, multi-scale sweep over the PSD for each channel:
- For window lengths Hz, with Hz step, the number of bands per :
0
- For each slice 1, average spectral power over 2:
3
- Concatenate all 4 to form 5, 6.
- Band-combination tensor 7 is obtained by stacking across channels.
This process enables high-resolution, adaptive capturing of both narrow and broad frequency features, essential for encoding the olfactory event-related EEG.
3. Frequency Band Attention Mechanism
This module adaptively emphasizes subject-relevant bands through multi-head self-attention:
- Global Head:
- Linear transformations:
8
where 9. - Scaled dot-product attention:
0
Local Heads (for each 1): Apply attention as above to each 2.
Head Fusion:
- Concatenate outputs: 3.
- Max-pooling and average-pooling:
4 - Fuse via 5 convolution:
6 - Add skip connection:
7
The attention mechanism is explicitly trained for each subject’s dataset split, ensuring adaptation to inter-subject spectral variability.
4. Spatio-Spectral CNN Classifier
The CNN receives 8 interpreted as a single-channel image of size 9:
Layer 0: Reshape to 0.
Layer 1: Parallel 2D convolutions:
- 1, 2, and 3 kernels (4 filters each), ELU activations, concatenated → 5.
- Layer 2: Average-pooling across spatial dimensions.
- Layer 3: 6 conv with 7 filters (ELU), average-pooling.
- Layer 4: Flatten, FC (128 units, ELU, BN, Dropout 0.25), FC (64 units, ELU, BN, Dropout 0.25), FC (13 units, softmax).
Typical hyperparameters: 8, 9, stride=1, padding="same". This structure exploits electrode (spatial) and frequency-band (spectral) topology.
5. Training and Evaluation Protocol
- Dataset: 11 healthy subjects, 13 odors, 35 trials each, yielding 5,005 total trials. EEGs are sampled at 1 kHz over 32 channels (30 analyzed), 10 seconds per trial.
- Pre-processing: PSD extracted via Welch’s method (Hamming window, 200 samples, overlap 8).
- Cross-validation: 10-fold, per subject.
- Optimization: Cross-entropy loss, Adam (0), 500 epochs, batch size 39.
Performance Benchmarking:
OESCN was benchmarked against EEGNet and AFBD-SVM; results are summarized below:
| Method | Average Accuracy (%) | Inter-subject Std |
|---|---|---|
| EEGNet | 83.8 | 12.3 |
| AFBD-SVM | 87.3 | 10.2 |
| OESCN | 97.1 | 3.7 |
OESCN delivers a 13.3% gain over EEGNet and substantially reduces inter-subject variability.
6. Ablation Analysis
Two OESCN variants were constructed to assess contribution of each module:
- OESCN_a1: removes the attention mechanism, passing 1 directly to the CNN.
- OESCN_a2: removes both band generator and attention, using fixed uniform sub-bands plus CNN.
| Variant | Avg Acc (%) | Inter-subj Std |
|---|---|---|
| OESCN_a2 | 94.3 | 5.3 |
| OESCN_a1 | 95.9 | 4.5 |
| OESCN | 97.1 | 3.7 |
Removing attention reduces accuracy by ≈1.2%. Eliminating both generator and attention further reduces accuracy by ≈1.6%. This demonstrates that both exhaustive band extraction and subject-specific attention are critical for top performance and robustness.
7. Algorithmic Workflow
A single training epoch for one subject proceeds as:
2
The design leverages a comprehensive multiscale frequency extraction strategy and lightweight subject-specific attention. This hybrid architecture yields state-of-the-art olfactory EEG classification accuracy and significantly enhanced inter-subject robustness (Sun et al., 2022).