Organizations: College of Artificial Intelligence and Computer Science, Northwest Normal University, Lanzhou 730070, China · Shanghai Key Lab of Intelligent Information Processing, College of Computer Science and Artificial Intelligence, Fudan University, Shanghai 200438, China · School of Software, Northwestern Polytechnical University, Xi’an, 710072, China
Motor imagery electroencephalography (MI-EEG) data are often collected and stored separately across subjects or institutions, and EEG acquisition and annotation remain costly. Training models solely on individual subject data limits the use of information from other subjects, whereas centralizing raw EEG recordings raises privacy and data governance concerns. Federated learning (FL) enables collaborative model training across distributed clients without sharing raw EEG data, providing a practical approach to leveraging information from multiple subjects. Accordingly, we propose PFedHASNet, a personalized federated hybrid analog-spike network for MI-EEG decoding. The shared encoder integrates continuous-valued temporal features, leaky integrate-and-fire (LIF) spike responses, and channel-wise log-variance statistics through learnable fusion weights. Client-private residual adapters and classifiers perform subject-specific feature refinement and personalized prediction, respectively. Experiments on held-out trials from participating subjects across four public MI-EEG datasets show that PFedHASNet achieves the highest mean client macro-F1 among 18 model configurations in cross-model comparisons, while maintaining competitive decoding performance with a compact client-side model in comparisons using the same backbone. Ablation studies further examine the contributions of hybrid representations and personalization components to decoding performance.
Figures & tables
Fig. 1: Personalized federated framework of PFedHASNet. The server aggregates the shared encoder, while each client retains local EEG, a private residual adapter, and a private classifier for personalized local training.
Fig. 2: Architecture of PFedHASNet. (a) Multi-scale spatiotemporal feature extraction backbone. (b) HASR, which integrates a continuous-valued summary, LIF spike rates, and channel-wise LogVar statistics. (c) Client-private residual adapter and private classifier.
Dataset (ID)
Clients
Channels
Classes
BCI Competition IV Dataset 2b (M1)
9
3
2
BCI Competition IV Dataset 1 (M2)
7
59
2
BCI Competition IV Dataset 2a (M3)
9
22
4
Weibo2014 (M4)
10
60
6
TABLE I: Dataset characteristics and input dimensions. Each trial contains 1,000 samples, corresponding to 4 s at 250 Hz after preprocessing.
Configuration
M1
M2
M3
M4
Average
Mean Rank
ShallowConvNet [ 24 ]
71.89 ± 1.40
63.99 ± 1.82
44.54 ± 1.44
25.76 ± 1.10
51.55
5.00
ADFCNN [ 40 ]
75.12 ± 0.39
65.70 ± 2.63
42.90 ± 1.23
19.64 ± 0.32
50.84
4.00
DSAINet [ 41 ]
72.77 ± 1.54
56.83 ± 0.58
42.58 ± 1.24
13.70 ± 2.01
46.47
9.75
TMSA-Net [ 42 ]
73.67 ± 1.15
59.86 ± 2.59
39.73 ± 1.74
12.24 ± 4.35
46.38
9.25
EEGNet [ 1 ]
73.85 ± 0.23
58.57 ± 0.61
37.25 ± 0.46
11.83 ± 0.88
45.37
10.75
DeepConvNet [ 24 ]
71.72 ± 0.76
47.23 ± 2.98
38.19 ± 0.88
19.06 ± 0.45
44.05
12.00
TABLE II: Cross-model mean-client macro-F1 (%; mean ± sample SD across three seeds) at round 100. Average and Mean Rank summarize four datasets; bold and underlining mark the best and second-best means.
Code
Method
M1
M2
M3
M4
Average
Non-federated references (excluded from A–G ranking)
–
Central
74.33 ± 0.98
72.18 ± 0.37
48.76 ± 0.84
30.92 ± 0.77
56.55
–
Local
70.72 ± 2.08
68.01 ± 4.07
50.10 ± 1.68
30.75 ± 0.83
54.89
Federated configurations A–G (same hybrid continuous-valued and spiking backbone)
A
FedAvg
75.88 ± 0.65
63.87 ± 1.25
39.16 ± 0.49
22.85 ± 1.46
50.44
B
FedProx
75.86 ± 0.61
64.04 ± 1.36
39.38 ± 0.53
22.82 ± 1.45
50.52
TABLE III: Same-backbone comparison: (a) mean-client macro-averaged F1 score (%, mean ± sample SD across three seeds); (b) training protocols and nominal costs. Federated methods A–G use 100 rounds; Central and Local use 200 epochs.
Fig. 3: Module ablations at round 100 ( μ=0.0006 ). (a) Full-minus-ablated mean-client test macro-F1 (pp) on M1–M4. (b) Adapter gains for seeds 42, 2026, and 3407; diamonds and whiskers show mean ± sample SD. Ablations remove the LogVar branch or private residual adapter, respectively; the latter retains the private classifier.
Fig. 4: Matched 2×2 LIF–personalization ablation at round 100 ( μ=0 ), with the analog and LogVar branches retained. Bars show mean-client test macro-F1 (%) across three seeds, with sample SD error bars. The four LIF–personalization configurations are compared on M1–M4. Conditional gains and interactions are reported in Table V .
Personalization gain (pp)
LIF gain (pp)
Interaction (pp)
Dataset
LIF off
LIF on
P off
P on
I
M1
+0.02±0.92
+0.91±0.19
−0.11±0.61
+0.78±1.43
+0.89±0.84
M2
+4.47±10.31
+3.83±6.35
+0.80±2.76
+0.16±1.50
−0.64±4.06
M3
+10.86±0.94
+8.45±1.90
+3.36±1.38
+0.95±0.38
−2.41±1.42
M4
+6.97±0.53
+5.04±0.35
+1.71±1.02
−0.22±0.64
−1.93±0.79
TABLE V: Conditional personalization and LIF gains in the matched 2×2 factorial ablation at round 100 ( μ=0 ). Values are within-seed paired mean ± sample SD across seeds 42, 2026, and 3407 (pp). The interaction I is the common difference of differences for the two factors.
Fig. 5: Client-level personalization gains at round 100 (LIF on, μ=0 ). Bars show mean paired personalization on–off differences in test macro-F1 across seeds 42, 2026, and 3407 (pp); whiskers indicate seed-wise minima and maxima, not SDs or confidence intervals. Blue and yellow denote positive and negative mean gains, respectively.
Fig. 6: Post-aggregation mean-client test macro-F1 (%) on M1–M4 for six configurations. Curves and shading show mean ± sample SD across three seeds; enlarged markers indicate round 100. Hybrid denotes Hybrid-FedAvg.
Fig. 7: Within-round aggregation effects on mean-client test macro-F1. (a) Mean post − pre change (MeanAgg, pp), with a zero-centered scale. (b) Frequency of strictly negative changes (%; scale 0–100). Each cell summarizes three seeds × 100 rounds.
Department of Computer Science and Engineering, University of Notre Dame, 307 Fitzpatrick Hall, Notre Dame, IN 46556, USA · Department of Computer Science and Engineering and the Lucy Family Institute for Data and Society, University of Notre Dame, Notre Dame, IN 46556, USA