File size: 96,865 Bytes
b06f25f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
[
    {
        "type": "text",
        "text": "PRACTICAL ADVERSARIAL ATTACKS ON BRAIN– COMPUTER INTERFACES ",
        "text_level": 1,
        "bbox": [
            176,
            99,
            828,
            146
        ],
        "page_idx": 0
    },
    {
        "type": "text",
        "text": "Anonymous authors Paper under double-blind review ",
        "bbox": [
            183,
            170,
            398,
            198
        ],
        "page_idx": 0
    },
    {
        "type": "text",
        "text": "ABSTRACT ",
        "text_level": 1,
        "bbox": [
            454,
            234,
            544,
            251
        ],
        "page_idx": 0
    },
    {
        "type": "text",
        "text": "Deep learning has been widely employed in brain–computer interfaces (BCIs) to decode a subject’s intentions based on recorded brain activities enabling direct interaction with computers and machines. BCI systems play a crucial role in motor rehabilitation and have recently experienced a significant market boost as consumer-grade products. Recent studies have shown that deep learning-based BCIs are vulnerable to adversarial attacks. Failures in such systems might cause medical misdiagnoses, physical harm, and financial damages, hence it is of utmost importance to analyze and understand in-depth, potential malicious attacks to develop countermeasures. In this work, we present the first study that analyzes and models adversarial attacks based on physical domain constraints in EEGbased BCIs. Specifically, we assess the robustness of EEGNet which is the current state-of-the-art network for embedded BCIs. We propose new methods to induce denial-of-service attacks and incorporate domain-specific insights and constraints to accomplish two key goals: (i) create smooth adversarial attacks that are physiologically plausible; (ii) consider the realistic case where the attack happens at the origin of the signal acquisition and it propagates on the human head. Our results show that EEGNet is significantly vulnerable to adversarial attacks with an attack success rate of more than $50 \\%$ . With our work, we want to raise awareness and incentivize future developments of proper countermeasures. ",
        "bbox": [
            233,
            263,
            766,
            527
        ],
        "page_idx": 0
    },
    {
        "type": "text",
        "text": "1 INTRODUCTION ",
        "text_level": 1,
        "bbox": [
            176,
            553,
            336,
            568
        ],
        "page_idx": 0
    },
    {
        "type": "text",
        "text": "Recent work has shown that adversarial perturbations can cause state-of-the-art (SoA) deep learning models to misbehave in various domains including vision (Szegedy et al., 2014; Goodfellow et al., 2015), NLP (Li et al., 2019a; Zhang et al., 2020), speech (Qin et al., 2019; Li et al., 2019b), and biomedicine (Finlayson et al., 2019; Han et al., 2020). Neural networks have been applied in brain–computer interfaces (BCIs) achieving impressive results (Lawhern et al., 2018; Dose et al., 2018). A BCI enables direct interactions with external devices based on brain activities, typically recorded using electroencephalographic (EEG) systems. It can provide a communication pathway for severely paralyzed patients or assist in rehabilitation (Chaudhary et al., 2016). Besides medical applications, recent developments in wearable devices have pushed BCIs towards consumer-grade products to improve life quality (Aricò et al., 2020), e.g., the Interaxon Muse headband for stress relief (Arsalan et al., 2019) or the Emotiv headset for controlling drones (Marin et al., 2020) and ground vehicles (Zhuang et al., 2021). Safety in BCI systems is paramount (Dutta, 2020; Bernal et al., 2021), because a failure would cause misdiagnoses, user frustration, or even danger while driving a wheelchair or controlling a drone, causing physical and financial damages. ",
        "bbox": [
            174,
            584,
            825,
            777
        ],
        "page_idx": 0
    },
    {
        "type": "text",
        "text": "Zhang & Wu (2019) were the first to show that EEG-based BCIs are vulnerable to adversarial attacks by proposing an unsupervised fast gradient sign method (FGSM) (Goodfellow et al., 2015). More recent work has proposed a more practical attack where a universal adversarial perturbation (UAP) is computed once and can be applied to all EEG trials without learning it for every new input (Liu et al., 2021). Both works assume that the acquired signals are sent to a remote compute engine, e.g., a computer, and the attacker can alter the signals during the transmission by attaching a “jamming” module between the signal preprocessing step and the classifier. Recent developments in smart edge computing (Akmandor & Jha, 2018; Beach et al., 2021) eliminate the need for data transmission, making this attack scenario inapplicable. Novel BCI solutions (Kartsch et al., 2019; Wang et al., 2020) embed the signal processing and classification directly at the sensor edge. A more practical adversarial example has been identified by Meng et al. (2021). It consists of a square-shaped signal that can be added to EEG trials before the preprocessing step. However, the attack is proposed as a backdoor key, which means that the attacker has direct access to the training dataset and pollutes it with adversarial examples, which is improbable if the attacker is not directly involved in the data acquisition or in the training of the classifier. Li et al. (2019b) have shown an attack scenario in the audio domain by considering the on-board edge processing of a wake-word detection system, where an adversarial audio trace is delivered to the environment causing denial-of-service (DoS). No similar studies can be currently found in the BCI domain. ",
        "bbox": [
            174,
            785,
            825,
            924
        ],
        "page_idx": 0
    },
    {
        "type": "text",
        "text": "",
        "bbox": [
            174,
            103,
            825,
            214
        ],
        "page_idx": 1
    },
    {
        "type": "text",
        "text": "Challenges: Designing natural attacks and modeling its propagation. Unlike in audio applications where the signal can simply propagate over-the-air and is sensed by a microphone, extra modeling is required to evaluate the signal propagation in BCIs based on the physical properties of the biological tissues. In this work, rather than assuming a “jamming” module between the preprocessing and the classification steps as in related works, we consider a more realistic and practically applicable attack scenario where the adversarial perturbations are introduced at the source of the data acquisition, as showcased in Figure 6 in Appendix A. This can be achieved, for example, via electromagnetic waves delivered to the environment (Dutta, 2020) or via transcranial current stimulation with electrical current delivered directly to the scalp (Bodranghien et al., 2017; Fertonani et al., 2015), by exploiting wearable devices, such as smart glasses or over-ear headsets (Flowneuroscience, 2021; Marin et al., 2020). The adversarial perturbations translate into electrical signals propagating over the scalp and are sensed by the electrodes in addition to the EEG signals. ",
        "bbox": [
            174,
            222,
            825,
            388
        ],
        "page_idx": 1
    },
    {
        "type": "text",
        "text": "To guarantee the imperceptibility of the attacks, previous works in BCIs create perturbations that are small in amplitude (Zhang & Wu, 2019; Jiang et al., 2019; Liu et al., 2021), limiting the attack success rate (ASR). Increased perturbation’s amplitude yields higher ASR (Meng et al., 2021), but makes the attack more easily detectable. Moreover, the generated perturbations are square-shaped, which is implausible for biosignals. Han et al. (2020) are the first to observe square-wave artifacts in biosignals’ attacks and propose smooth perturbations for electrocardiograms (ECGs). No similar works have been found for EEGs. ",
        "bbox": [
            174,
            395,
            825,
            492
        ],
        "page_idx": 1
    },
    {
        "type": "text",
        "text": "This work: Practical attacks on BCI models. To address the above technical challenges, and for analyzing the vulnerability of embedded BCI models in practical scenarios, we design a new attack algorithm that generates smooth adversarial examples based on the signals’ first derivative and model its propagation over the scalp based on a realistic head model by taking into consideration the attack source and the electrical and physical properties of the conducting tissues. This enables the creation of practically effective perturbations, that can be delivered by an external device to attack EEG-based BCIs at the source of signal acquisition. We attack the most energy-efficient network that has been embedded on microcontrollers for smart wearable BCIs called EEGNet (Lawhern et al., 2018; Schneider et al., 2020). It is a resource-friendly convolutional neural network (CNN) and is the SoA in terms of accuracy and energy-efficiency trade-off (Belwafi et al., 2018; Malekmohammadi et al., 2019; Wang et al., 2020; Schneider et al., 2020). ",
        "bbox": [
            173,
            500,
            825,
            652
        ],
        "page_idx": 1
    },
    {
        "type": "text",
        "text": "We evaluate our methods and show experimental results on BCIs based on the motor imagery (MI) paradigm, which is of special interest among others because it can be asynchronously self-paced without external stimuli (Freer & Yang, 2020). By imagining the movement of different body parts, the decoded intention is translated into control signals. It is widely applied in several BCI applications, such as the control of wheelchairss (Yu et al., 2018), prosthetic armss (Elstob & Secco, 2016), ground vehicles (Zhuang et al., 2021), and in communication (Brumberg et al., 2016). It has been proven to be the most difficult task to be attacked among the most common BCI paradigms (Zhang & Wu, 2019; Meng et al., 2021). We evaluate our methods by “fooling” the victim model to always predict “rest” class. This essentially yields a DoS attack, because resting-state EEG signals are generally interpreted as no subject’s intention decoded, i.e., no control action needs to be taken by the BCI system (Yu et al., 2018). While for healthy subjects it might solely cause user frustration and financial losses, for severely paralyzed patients it can lead to loss of communication and independence. We generalize our methodology to an other MI task of BCI Competition IV-2a dataset and believe that it can be easily adapted to other BCI paradigms. ",
        "bbox": [
            173,
            660,
            826,
            853
        ],
        "page_idx": 1
    },
    {
        "type": "text",
        "text": "Main contributions. Our main contributions are: ",
        "bbox": [
            176,
            861,
            500,
            875
        ],
        "page_idx": 1
    },
    {
        "type": "text",
        "text": "• We design a new method to generate smooth adversarial perturbations that are physiologically plausible and imperceptible to the human eye. ",
        "bbox": [
            218,
            882,
            823,
            911
        ],
        "page_idx": 1
    },
    {
        "type": "text",
        "text": "• We consider a practical scenario where the perturbation is added at the signal acquisition source and model its propagation constrained by the physical properties of the human scalp. • The first study of adversarial perturbations in BCI to consider the practical scenario of smart edge computing and physical signal propagation. We create both local and global perturbations and show that our attacks consistently achieve a success rate of $> 5 0 \\%$ in different settings pointing to the significant vulnerability of the SoA embedded EEGNet. ",
        "bbox": [
            217,
            103,
            825,
            191
        ],
        "page_idx": 2
    },
    {
        "type": "text",
        "text": "We hope that our work raises awareness for potential risks and motivates the future development of appropriate countermeasures. ",
        "bbox": [
            174,
            198,
            825,
            227
        ],
        "page_idx": 2
    },
    {
        "type": "text",
        "text": "2 BACKGROUND ",
        "text_level": 1,
        "bbox": [
            176,
            244,
            328,
            262
        ],
        "page_idx": 2
    },
    {
        "type": "text",
        "text": "2.1 CLASSIFICATION IN BCIS ",
        "text_level": 1,
        "bbox": [
            176,
            275,
            393,
            291
        ],
        "page_idx": 2
    },
    {
        "type": "text",
        "text": "We first describe the commonly used approach in BCIs for classification, consisting of a preprocessing step and a classifier. The brain activity is recorded with an EEG device which samples $N _ { c h }$ channels at rate $F _ { s }$ . We define one trial $j$ as $( \\mathbf { X } ^ { ( j ) } , y ^ { ( j ) } )$ , where $y ^ { ( j ) } \\in \\{ 0 , 1 , . . . , N _ { c l } - 1 \\}$ is the true label of $N _ { c l }$ MI tasks, and $\\mathbf { X } ^ { ( j ) } \\in \\mathbb { R } ^ { N _ { s } \\times N _ { c h } }$ the multi-channel recording defined as ",
        "bbox": [
            173,
            301,
            825,
            361
        ],
        "page_idx": 2
    },
    {
        "type": "equation",
        "img_path": "images/4adef2bd32024f0155b08bd021946820057f4e0a6d08b9b081db9e63f5cb922a.jpg",
        "text": "$$\n\\mathbf { X } ^ { ( j ) } : = \\left( \\mathbf { x } _ { 0 } ^ { ( j ) } , \\mathbf { x } _ { 1 } ^ { ( j ) } , . . . , \\mathbf { x } _ { N _ { c h } - 1 } ^ { ( j ) } \\right) ,\n$$",
        "text_format": "latex",
        "bbox": [
            385,
            362,
            611,
            388
        ],
        "page_idx": 2
    },
    {
        "type": "text",
        "text": "with $\\mathbf { x } _ { i } ^ { ( j ) } \\in \\mathbb { R } ^ { N _ { s } }$ corresponding to the recording of the $j$ -th trial and the $i$ -th channel containing $N _ { s }$ temporal samples. For simplicity, we denote $\\mathbf { X } : = \\mathbf { X } ^ { ( j ) }$ and $y : = y ^ { ( j ) }$ . ",
        "bbox": [
            178,
            393,
            825,
            424
        ],
        "page_idx": 2
    },
    {
        "type": "text",
        "text": "The EEG recordings are often preprocessed with a band-pass filter, e.g., using a Fast Fourier Transform (FFT) filter $h _ { b p } ( \\cdot )$ , before being fed to a classifier, yielding ",
        "bbox": [
            173,
            430,
            821,
            459
        ],
        "page_idx": 2
    },
    {
        "type": "equation",
        "img_path": "images/92578742fa44b8eb625a3c6e4e087ff7ad891f1315813fccd22129d3165cbf68.jpg",
        "text": "$$\n\\mathbf { X } _ { b p } = H _ { b p } ( \\mathbf { X } ) = \\left( h _ { b p } ( \\mathbf { x } _ { 0 } ) , h _ { b p } ( \\mathbf { x } _ { 1 } ) , . . . , h _ { b p } ( \\mathbf { x } _ { N _ { c h } - 1 } ) \\right) .\n$$",
        "text_format": "latex",
        "bbox": [
            312,
            460,
            686,
            478
        ],
        "page_idx": 2
    },
    {
        "type": "text",
        "text": "Finally, the preprocessed signal $\\mathbf { X } _ { b p }$ is classified with a trainable model $f$ and is mapped to $\\mathbf { p } : =$ $f \\left( { \\bf { X } } _ { b p } \\right)$ , where $\\mathbf { p } \\in \\mathbb { R } ^ { N _ { c l } }$ contains the output probabilities, e.g., originating from a softmax activation as final operation in $f$ . The model’s final prediction $\\hat { y }$ is the index with the maximum score in $\\mathbf { p }$ : ",
        "bbox": [
            174,
            479,
            826,
            522
        ],
        "page_idx": 2
    },
    {
        "type": "equation",
        "img_path": "images/090de2464ceebb19449b8aaa8df74dfb9fcbf1932b76ec9c09e0616b0fd63a0c.jpg",
        "text": "$$\n\\boldsymbol { \\hat { y } } = \\boldsymbol { \\hat { f } } \\left( \\mathbf { X } _ { b p } \\right) = \\underset { y \\in \\{ 0 , \\ldots , N _ { c l } - 1 \\} } { \\mathrm { a r g m a x } } ~ f \\left( \\mathbf { X } _ { b p } \\right) [ y ] .\n$$",
        "text_format": "latex",
        "bbox": [
            357,
            523,
            638,
            554
        ],
        "page_idx": 2
    },
    {
        "type": "text",
        "text": "2.2 INSTANCE-BASED ATTACKS ",
        "text_level": 1,
        "bbox": [
            176,
            568,
            405,
            582
        ],
        "page_idx": 2
    },
    {
        "type": "text",
        "text": "Instance-based attacks try to fool an EEG classifier $f$ to misclassify an EEG signal $\\mathbf { X }$ to a targeted class $y _ { t }$ . In this section, we describe the attack directly on the classifier $f$ without considering the preprocessing $H _ { b p }$ ; the inclusion of the preprocessing is described in Section 3.3. We define an adversarial example as any $\\mathbf { X } ^ { * } = \\mathbf { X } + \\mathbf { V } \\in \\mathbb { R } ^ { N _ { s } \\times N _ { c h } }$ such that ",
        "bbox": [
            173,
            593,
            825,
            651
        ],
        "page_idx": 2
    },
    {
        "type": "equation",
        "img_path": "images/ae96fbca25561b728f407743e94ef7daae4c068465648eca1989b79f54f18f8f.jpg",
        "text": "$$\n\\hat { f } \\left( \\mathbf { X } \\right) \\neq \\hat { f } \\left( \\mathbf { X } ^ { * } \\right) = y _ { t } .\n$$",
        "text_format": "latex",
        "bbox": [
            423,
            652,
            573,
            672
        ],
        "page_idx": 2
    },
    {
        "type": "text",
        "text": "FGSM. The FGSM (Goodfellow et al., 2015) generates an adversarial perturbation $\\mathbf { V } \\in \\mathbb { R } ^ { N _ { s } \\times N _ { c h } }$ of magnitude $\\epsilon$ which points in the negative direction of a loss function’s gradient: ",
        "bbox": [
            173,
            683,
            821,
            710
        ],
        "page_idx": 2
    },
    {
        "type": "equation",
        "img_path": "images/0d4290c3afb9da2ee94681d4b078c69233401f350f53f236fd055d34090accc5.jpg",
        "text": "$$\n\\mathbf { V } = - \\epsilon \\cdot \\mathrm { s i g n } \\left( \\nabla _ { \\mathbf { X } } \\cdot l \\left( \\mathbf { X } , y _ { t } \\right) \\right) ,\n$$",
        "text_format": "latex",
        "bbox": [
            390,
            712,
            604,
            729
        ],
        "page_idx": 2
    },
    {
        "type": "text",
        "text": "where the loss function contains the negative log likelihood ",
        "bbox": [
            173,
            729,
            566,
            744
        ],
        "page_idx": 2
    },
    {
        "type": "equation",
        "img_path": "images/76d960042d0c715217ff55097d0087d7852aed951636159758fb7c8f7d3fa671.jpg",
        "text": "$$\nl ( \\mathbf { X } , y _ { t } ) = - \\log \\left( { \\mathbf { p } } [ y _ { t } ] \\right) = - \\log \\left( f \\left( \\mathbf { X } \\right) [ y _ { t } ] \\right) .\n$$",
        "text_format": "latex",
        "bbox": [
            346,
            746,
            650,
            762
        ],
        "page_idx": 2
    },
    {
        "type": "text",
        "text": "As $\\mathbf { p }$ is the output of the softmax activation function, equation 6 becomes a cross-entropy loss which maximizes the output $\\mathbf { p } [ y _ { t } ]$ while minimizing the remaining outputs. ",
        "bbox": [
            171,
            765,
            823,
            792
        ],
        "page_idx": 2
    },
    {
        "type": "text",
        "text": "PGD. The projected gradient descent (PGD) (Madry et al., 2018) is a variant of the basic iterative method (Kurakin et al.), generally considered to be more effective than FGSM. PGD aims to find a perturbation by iteratively taking small steps of size $\\alpha$ in the gradient’s direction and projecting the resulting perturbation back to the sample’s neighborhood after each iteration. We randomly initialize the attack inside the $L _ { \\infty }$ ball of radius $\\epsilon$ and update the attack $\\mathbf { V } _ { t + 1 }$ for any iteration $t$ with ",
        "bbox": [
            173,
            805,
            825,
            876
        ],
        "page_idx": 2
    },
    {
        "type": "equation",
        "img_path": "images/5018cbeb47f39276c0e84f65e695e567cca2809727b109293d37f372e63a064d.jpg",
        "text": "$$\n\\mathbf { V } _ { t + 1 } = \\mathrm { c l i p } _ { \\epsilon } \\left( \\mathbf { V } _ { t } - \\alpha \\cdot \\mathrm { s i g n } \\left( \\nabla _ { \\mathbf { V } } l \\left( \\mathbf { X } + \\mathbf { V } _ { t } , y _ { t } \\right) \\right) \\right) ,\n$$",
        "text_format": "latex",
        "bbox": [
            326,
            878,
            666,
            895
        ],
        "page_idx": 2
    },
    {
        "type": "text",
        "text": "where $\\alpha$ is a step size smaller than $\\epsilon$ which decays linearly with each iteration and the function $\\mathrm { c l i p } _ { \\epsilon } \\left( \\cdot \\right)$ clips the signal at the maximum desired amplitude $\\epsilon$ . ",
        "bbox": [
            173,
            896,
            828,
            924
        ],
        "page_idx": 2
    },
    {
        "type": "text",
        "text": "2.3 UNIVERSAL ATTACKS ",
        "text_level": 1,
        "bbox": [
            176,
            103,
            364,
            117
        ],
        "page_idx": 3
    },
    {
        "type": "text",
        "text": "UAPs have been introduced by Moosavi-Dezfooli et al. (2017) in the context of natural images, seeking to find an image-agnostic perturbation that fools the classifier on any input image. In the BCI domain (Liu et al., 2021), we seek to find a perturbation $\\mathbf { V } \\in \\mathbb { R } ^ { N _ { s } \\times N _ { c h } }$ such that ",
        "bbox": [
            173,
            128,
            826,
            171
        ],
        "page_idx": 3
    },
    {
        "type": "equation",
        "img_path": "images/831387fcf3fae8922d58bc63c66078fe603ae4b2c440daa59c8a14c9c37671c9.jpg",
        "text": "$$\n\\begin{array} { r } { \\hat { f } \\left( \\mathbf { X } + \\mathbf { V } \\right) \\neq \\hat { f } \\left( \\mathbf { X } \\right) \\mathrm { f o r } ^ { * } \\mathrm { m o s t } ^ { * } \\mathbf { X } \\sim D , } \\end{array}\n$$",
        "text_format": "latex",
        "bbox": [
            362,
            176,
            633,
            195
        ],
        "page_idx": 3
    },
    {
        "type": "text",
        "text": "where $D$ is the distribution of the EEG data. The UAP can be determined by optimizing the negative log-likelihood loss with respect to $\\mathbf { V }$ using batch gradient descent on the trials in the training set. ",
        "bbox": [
            173,
            199,
            828,
            228
        ],
        "page_idx": 3
    },
    {
        "type": "text",
        "text": "3 MODELING PRACTICAL ATTACKS IN BCI ",
        "text_level": 1,
        "bbox": [
            174,
            247,
            544,
            263
        ],
        "page_idx": 3
    },
    {
        "type": "text",
        "text": "This section is the main contribution of the paper: we present a design of practical DoS attacks on MIBCIs that operates at the source of the signal acquisition. We propose a new method to eliminate the square wave artifacts to generate adversarial examples that are natural and physiologically plausible. The perturbation is emitted by a smart, adversarial device placed close to the ear, e.g., a smart glass or in-ear headphones, and is propagated to the individual EEG electrodes over the scalp’s skin. As can be experimentally observed on measured EEG traces (Merlet et al., 2013; Sazgar & Young, 2019), the same electrical source, e.g., electrocardiographic activities, is sensed by each EEG electrode with different degrees of attenuation and delay. We present a practical propagation model that determines the magnitude and delay for every individual electrode based on the distance along the scalp to the adversarial device. The perturbation is trained end-to-end to fool the classifier to always output “rest,” hence DoS, while respecting the spatial model and the amplitude constraints to remain imperceptible. ",
        "bbox": [
            173,
            277,
            826,
            431
        ],
        "page_idx": 3
    },
    {
        "type": "text",
        "text": "3.1 DESIGN AND ASSESSMENT OF PHYSIOLOGICALLY PLAUSIBLE ATTACKS ",
        "text_level": 1,
        "bbox": [
            174,
            446,
            714,
            463
        ],
        "page_idx": 3
    },
    {
        "type": "text",
        "text": "PGD-designed attacks on EEG tend to form perturbation signals which resemble a square-wave artifact (see Figure 2), an effect that has been observed on ECG data, too (Han et al., 2020). However, EEG signals are of random nature and can be modeled as frequency dependent stationary or nonstationary random processes (Karlekar & Gupta, 2014). To this end, we introduce a new loss term in the PGD optimization such that the perturbation resembles the random nature of EEG signals, which we achieve by promoting signal changes represented in the first order derivative. We estimate the per-channel derivative $\\begin{array} { r } { \\bar { { \\bf V } ^ { \\prime } } = ( { \\bf v } _ { 0 } ^ { \\prime } , { \\bf v } _ { 1 } ^ { \\prime } , . . . , { \\bf v } _ { N _ { c h } - 1 } ^ { \\prime } ) \\in \\mathbb { R } ^ { N _ { s } - 1 \\times N _ { c h } } } \\end{array}$ using the sample-wise difference: ",
        "bbox": [
            173,
            473,
            826,
            573
        ],
        "page_idx": 3
    },
    {
        "type": "equation",
        "img_path": "images/ce0c71c6986adead5a7ef4f07c8039c9cf9397e84e03cd7c9175ee0546e8ce8a.jpg",
        "text": "$$\n\\begin{array} { r } { \\mathbf { v } _ { c } ^ { \\prime } [ t ] : = \\mathbf { v } _ { c } [ t ] - \\mathbf { v } _ { c } [ t - 1 ] \\quad t \\in \\{ 1 , 2 , . . . , N _ { s } - 1 \\} , c \\in \\{ 0 , 1 , . . . , N _ { c h } - 1 \\} } \\end{array}\n$$",
        "text_format": "latex",
        "bbox": [
            253,
            578,
            745,
            594
        ],
        "page_idx": 3
    },
    {
        "type": "text",
        "text": "The additive loss term is determined by $\\begin{array} { r } { l _ { 1 } ( { \\bf V } ) = - \\frac { \\beta } { \\epsilon } \\sum _ { c = 1 } ^ { N _ { c h } } | | { \\bf v } _ { c } ^ { \\prime } | | _ { 1 } } \\end{array}$ − β\u000f PNchc=1 ||v0c||1, where || · ||1 is the \\`1-norm, \u000f the maximum perturbation amplitude, and $\\beta \\geq 0$ a weighting factor. When designing a one-dimensional perturbation, the derivative loss becomes $\\begin{array} { r } { l _ { 1 } ( \\mathbf { v } ) = - \\frac { \\beta } { \\epsilon } | | \\mathbf { v } ^ { \\prime } | | } \\end{array}$ . ",
        "bbox": [
            173,
            601,
            825,
            650
        ],
        "page_idx": 3
    },
    {
        "type": "text",
        "text": "Measuring the Plausibility of Attacks None of the previous works have given quantitative measures to assess the physiological plausibility of an EEG adversarial attack. In this work, we propose data-driven measures for quantifying the naturalism of an attack. We compute either the cross correlation, the Euclidian distance, or the cosine similarity between the attacked signal and the original EEG, and average the values over the $N _ { c h }$ channels and over the samples in the dataset. ",
        "bbox": [
            174,
            661,
            825,
            732
        ],
        "page_idx": 3
    },
    {
        "type": "text",
        "text": "3.2 SPATIAL PROPAGATION MODEL ",
        "text_level": 1,
        "bbox": [
            176,
            748,
            428,
            762
        ],
        "page_idx": 3
    },
    {
        "type": "text",
        "text": "So far, a perturbation signal was designed for every individual channel. It is unrealistic for an attacker to perturb the signal for all individual channels simultaneously; hence, we consider a more practical use case where the perturbation signal $\\mathbf { v } \\in \\mathbb { R } ^ { N _ { s } }$ is emitted from one location, e.g., from an adversarial device placed on the left side of the subject or close to the left ear. More specifically, in this study, we assume that the EEG electrode at the position T9 according to the international 10-10 system (Sch), which is the closest to the left ear, senses the largest perturbation. The signal subsequently propagates over the skin to each electrode, which results in an individual magnitude and delay depending on the distance between the adversarial device and the electrode. More formally, we model the sensed perturbation at channel $i$ and time instant $t$ as ",
        "bbox": [
            173,
            773,
            825,
            900
        ],
        "page_idx": 3
    },
    {
        "type": "equation",
        "img_path": "images/376c0312852c9f41d7a3778ae583d8e40b0cf5932a3541026cd26602e02373b7.jpg",
        "text": "$$\nh _ { i } ( \\mathbf { v } , \\lambda _ { m } , \\lambda _ { d } ) ( t ) : = m ( l _ { i } , \\lambda _ { m } ) \\cdot \\mathbf { v } \\left( t - d ( l _ { i } , \\lambda _ { d } ) \\right) ,\n$$",
        "text_format": "latex",
        "bbox": [
            333,
            904,
            663,
            921
        ],
        "page_idx": 3
    },
    {
        "type": "text",
        "text": "where $m ( l _ { i } , \\lambda _ { m } )$ and $d ( l _ { i } , \\lambda _ { d } )$ are the magnitude and the delay respectively, both of which depend on the distance $l _ { i }$ and on characteristic parameters $\\lambda _ { m }$ and $\\lambda _ { d }$ . We define the resulting multi-channel perturbation $\\mathbf { V } \\in \\mathbb { R } ^ { N _ { s } \\times N _ { c h } }$ , which is added to the multi-channel EEG signal, as ",
        "bbox": [
            174,
            103,
            825,
            146
        ],
        "page_idx": 4
    },
    {
        "type": "equation",
        "img_path": "images/de96e5a139b1fc23afd99dccaff6c949ce6e68096635c4b34caf36537f06be33.jpg",
        "text": "$$\n\\begin{array} { r } { { \\bf V } ( \\lambda _ { m } , \\lambda _ { d } ) = H ( { \\bf v } , \\lambda _ { m } , \\lambda _ { d } ) : = \\left( h _ { 0 } ( { \\bf v } , \\lambda _ { m } , \\lambda _ { d } ) , h _ { 1 } ( { \\bf v } , \\lambda _ { m } , \\lambda _ { d } ) , . . . , h _ { N _ { c h } - 1 } ( { \\bf v } , \\lambda _ { m } , \\lambda _ { d } ) \\right) . } \\end{array}\n$$",
        "text_format": "latex",
        "bbox": [
            192,
            152,
            777,
            170
        ],
        "page_idx": 4
    },
    {
        "type": "text",
        "text": "We estimate the distance $l _ { i }$ between the electrode at position T9 and the remaining, attacked positions using the 10-10 system and a head model with a radius of $8 . 7 \\mathrm { c m }$ (Algazi et al., 2001). We decouple the distance-dependent modeling of the magnitude and delay, explained in the following paragraphs. ",
        "bbox": [
            173,
            184,
            825,
            227
        ],
        "page_idx": 4
    },
    {
        "type": "text",
        "text": "Magnitude. For modeling the magnitude, we assume that the adversarial device injects or induces a current $I$ , yielding a potential $V$ measured near T9. The current propagates over the head surface through the skin to each of the remaining attacked electrodes, which can be modeled as a cylindrical resistor with resistance ",
        "bbox": [
            173,
            242,
            825,
            297
        ],
        "page_idx": 4
    },
    {
        "type": "equation",
        "img_path": "images/df7117bdb4d5c93cccf2e90b25cc3c804499313daf11d78a2ed1cb0219bdb070.jpg",
        "text": "$$\nR _ { i } = \\frac { l _ { i } } { \\sigma A } ,\n$$",
        "text_format": "latex",
        "bbox": [
            460,
            301,
            534,
            333
        ],
        "page_idx": 4
    },
    {
        "type": "text",
        "text": "where $\\sigma$ is the conductivity of the skin which can be in the range of [0.28, 0.87] Siemens/m (Vorwerk et al., 2019), and $A$ is the area of the skin conductor. The potential at electrode $i$ is $V _ { i } = V - I \\cdot R _ { i }$ , and hence the magnitude can be described as ",
        "bbox": [
            174,
            338,
            825,
            381
        ],
        "page_idx": 4
    },
    {
        "type": "equation",
        "img_path": "images/be06049f08f97d940ab4e03b5c05093432b85058b4a81d8046d097f375f7225f.jpg",
        "text": "$$\nm ( l _ { i } , \\lambda _ { m } ) = 1 - \\frac { V - V _ { i } } { V } = 1 - \\frac { I } { V \\sigma A } l _ { i } = 1 - \\lambda _ { m } l _ { i } ,\n$$",
        "text_format": "latex",
        "bbox": [
            320,
            387,
            676,
            419
        ],
        "page_idx": 4
    },
    {
        "type": "text",
        "text": "where we further constrain $0 \\leq m ( l _ { i } , \\lambda _ { m } ) \\leq 1$ . The characteristic magnitude parameter $\\lambda _ { m }$ represents the complex interplay between input current, voltage, conductivity, and area, covering various attack scenarios. We consider different characteristic magnitude parameters $\\lambda _ { m } \\in [ 1 , 1 5 ]$ . A large $\\lambda _ { m }$ represents cases with large attenuation and limited propagation, i.e., a limited set of neighboring electrodes sense the perturbation. Conversely, a small $\\lambda _ { m }$ covers cases with lower attenuation where the perturbation can propagate further and infects all electrodes. We consider also an intermediate case where around half of the electrodes are affected by the attack with $\\lambda _ { m } = 5$ . Appendix B provides examples of the magnitude of the spatial propagation on the head model. ",
        "bbox": [
            173,
            422,
            826,
            537
        ],
        "page_idx": 4
    },
    {
        "type": "text",
        "text": "Delay. The propagation of a signal on the head surface yields a position-dependent phase angle or delay, as shown by experimental measurements of related studies (Plutchik & Hirsch, 1963; Qiao et al., 1994). The delay stems from a combination of resistive and capacitive components that are encountered during the propagation of the signal, which can be modeled as an RC-circuit with resistance $R$ , capacity $C$ , and time constant $\\tau = R \\cdot C$ that relates to the group delay. Specifically, the contacts between the electrodes and the skin are predominantly capacitive whereas the skin itself is both resistive and capacitive (Kim et al., 2010). As explained in the previous part, an increasing distance between the attacker and the target electrode yields a larger resistance $R$ . As a result, the time constant $\\tau$ and the delay increase too. ",
        "bbox": [
            173,
            551,
            825,
            678
        ],
        "page_idx": 4
    },
    {
        "type": "text",
        "text": "Here, we model a linear distance-delay relation. We rely on a study by Plutchik & Hirsch (1963), which conducted human skin impedance and phase angle measurements by placing electrodes at an approximate distance of $1 0 \\mathrm { c m }$ and applying voltages with frequencies in the range $2 { \\mathrm { - } } 1 0 0 0 \\mathrm { { H z } }$ . When assuming a linear frequency-phase relation in low-frequency region (Qiao et al., 1994), one can derive the group delay to be $2 . 8 \\mathrm { m s }$ when considering a measured angle of $1 0 ^ { \\circ }$ at $1 0 \\mathrm { H z }$ . As those measurements were conducted for only one distance, we extrapolate the delay for the remaining distances using a rectified linear model: ",
        "bbox": [
            173,
            683,
            826,
            781
        ],
        "page_idx": 4
    },
    {
        "type": "equation",
        "img_path": "images/8c109f14baba8fdb3fa4ca00a590e185e17699666a46300fe54ae3c09558dc5d.jpg",
        "text": "$$\n\\lambda _ { d } \\cdot ( l _ { i } - l _ { 0 } ) > 0 \\uparrow d ( l _ { i } , \\lambda _ { d } ) = \\lambda _ { d } \\cdot ( l _ { i } - l _ { 0 } ) + d _ { 0 } : d ( l _ { i } , \\lambda _ { d } ) = 0 ,\n$$",
        "text_format": "latex",
        "bbox": [
            279,
            787,
            715,
            806
        ],
        "page_idx": 4
    },
    {
        "type": "text",
        "text": "where $d _ { 0 } = 2 . 8 \\mathrm { m s }$ is the delay at distance $l _ { 0 } = 1 0 \\mathrm { c m }$ . The delay depends not only on the distance, but also on other parameters such as the electrode-to-skin contact, the humidity of the skin, etc. To this end, we evaluate the propagation of the attack with different characteristic delay parameters $\\lambda _ { d } \\in \\left[ 0 . 1 , 0 . 5 6 3 \\right] \\mathrm { s / m }$ . With $\\lambda _ { d } = 0 . 1$ we cover the cases where very little delay happens, while the largest considered $\\lambda _ { d } = 0 . 5 6 3 \\mathrm { s / m }$ yields a maximum delay of $0 . 1 \\mathrm { s }$ at the farthest electrode T10, which is in alignment with the observed EEG measurements (Merlet et al., 2013; Sazgar & Young, 2019). Similarly to $\\lambda _ { m }$ , we showcase also for an intermediate value of $\\lambda _ { d } = 0 . 3$ which corresponds to a delay of $0 . 0 5 3 \\mathrm { m s }$ at T10. ",
        "bbox": [
            173,
            811,
            826,
            924
        ],
        "page_idx": 4
    },
    {
        "type": "text",
        "text": "Algorithm 1: Generation of physiologically plausible UAP. input : $\\mathbf { X } _ { t r a i n }$ , EEG training samples; $\\lambda _ { m } , \\lambda _ { d }$ , spatial propagation parameters; $\\beta$ , weight of derivative loss term; \u000f, maximum perturbation amplitude; $G$ , number of PGD iterations; $E$ , number of epochs output :v, adversarial perturbation 1 $\\mathbf { v }  \\mathcal { U } ( - \\epsilon , \\epsilon ) \\in \\mathbb { R } ^ { N _ { s } } ;$ ; // Initialisation 2 for $e \\gets 1$ to $E$ do 3 Shuffle $\\mathbf { X } _ { t r a i n }$ ; 4 for each batch $\\mathbf { B } \\in \\mathbf { X } _ { t r a i n }$ do 5 $\\alpha  \\frac \\epsilon 2$ ; 6 for $g \\gets 1$ to $G$ do 7 $\\mathbf { \\bar { V } }  H ( \\mathbf { v } , \\lambda _ { m } , \\lambda _ { d } ) ;$ // Spatial propagation 8 $\\begin{array} { r } { \\dot { \\mathbf { p } }  f ( H _ { b p } ( \\mathbf { B } + \\mathbf { V } ) ) } \\end{array}$ ; // Model pass with perturbation 9 $\\begin{array} { r } { \\mathbf { v }  \\mathbf { v } - \\alpha \\cdot \\mathrm { s i g n } ( \\nabla _ { \\mathbf { v } } ( l ( \\mathbf { p } , y _ { r e s t } ) - \\frac { \\beta } { \\epsilon } | | \\mathbf { v } ^ { \\prime } | | _ { 1 } ) ) } \\end{array}$ ; // Update w/derivative 10 v ← clip\u000f (v); // PGD projection 11 $\\alpha  { \\frac { 0 . 1 - { \\frac { \\epsilon } { 2 } } } { G } } \\cdot g + { \\frac { \\epsilon } { 2 } }$ ; // Learning rate update 12 end 13 end 14 end ",
        "bbox": [
            158,
            106,
            818,
            406
        ],
        "page_idx": 5
    },
    {
        "type": "text",
        "text": "3.3 ATTACK DESIGN ",
        "text_level": 1,
        "bbox": [
            174,
            435,
            331,
            450
        ],
        "page_idx": 5
    },
    {
        "type": "text",
        "text": "We present practical DoS attacks in BCIs that respect domain constraints such as maximum amplitude, spectral distribution, physiological plausibility, and the spatial propagation of the perturbation. To this end, we formulate a general objective function that contains the spatial propagation, the preprocessing step, and the first order derivative loss term: ",
        "bbox": [
            174,
            462,
            826,
            517
        ],
        "page_idx": 5
    },
    {
        "type": "equation",
        "img_path": "images/fe16bc6e9801b89541c1b4b4d593a5597c8f9ad0f759f089214314544b703deb.jpg",
        "text": "$$\n\\mathcal { L } _ { t o t } \\left( \\mathbf { X } , \\mathbf { v } , \\lambda _ { m } , \\lambda _ { d } \\right) = l \\left( H _ { b p } \\left( \\mathbf { X } + H ( \\mathbf { v } , \\lambda _ { m } , \\lambda _ { d } ) \\right) , y _ { r e s t } \\right) - \\frac { \\beta } { \\epsilon } | | \\mathbf { v } ^ { \\prime } | | _ { 1 } ,\n$$",
        "text_format": "latex",
        "bbox": [
            266,
            525,
            730,
            555
        ],
        "page_idx": 5
    },
    {
        "type": "text",
        "text": "where $l ( \\cdot , \\cdot )$ is the negative log-likelihood loss defined in equation 6 and $\\beta { = } 1 \\mathrm { e } { - } 6$ is a scalar that weights the contribution of the derivative loss term. We compare different attack scenarios: ",
        "bbox": [
            174,
            561,
            825,
            590
        ],
        "page_idx": 5
    },
    {
        "type": "text",
        "text": "Instance-based attacks. A perturbation is computed using either FGSM or PGD based on the knowledge of the currently attacked EEG signal $\\mathbf { X }$ . FGSM computes the perturbation as stated in equation 5, where the $\\epsilon$ defines the perturbation amplitude which is varied between $1 { - } 5 0 \\mathrm { m V } .$ Alternatively, we compute the perturbation using PGD with $G { = } 1 0$ iterations, where each iteration consists of a gradient-based update of the perturbation and a projection to the $L _ { \\infty }$ ball with radius $\\epsilon$ (see equation 7). The update rate $\\alpha$ is initialized with $\\epsilon / 2$ and linearly decreased with each iteration, reaching a final value of $0 . 1 \\mathrm { m V }$ at iteration 10. The PGD computation is restarted 5 times with different initial perturbations, which are drawn from a uniform distribution within the range $[ - \\epsilon , + \\epsilon ]$ . ",
        "bbox": [
            173,
            604,
            826,
            718
        ],
        "page_idx": 5
    },
    {
        "type": "text",
        "text": "Universal attacks. A universal perturbation is computed for all the samples in the training data. We optimize the UAP objective function ",
        "bbox": [
            173,
            732,
            823,
            761
        ],
        "page_idx": 5
    },
    {
        "type": "equation",
        "img_path": "images/abca44dd6ab1e65427156e0254551c8079b96a3d17410266c428125a6fa67a74.jpg",
        "text": "$$\n\\operatorname* { m i n } _ { \\mathbf { v } } E _ { \\mathbf { X } \\sim D } \\mathcal { L } _ { t o t } \\left( \\mathbf { X } , \\mathbf { v } , \\lambda _ { m } , \\lambda _ { d } \\right) \\quad \\mathrm { ~ s . t . ~ } | | \\mathbf { v } | | _ { \\infty } \\leq \\epsilon\n$$",
        "text_format": "latex",
        "bbox": [
            338,
            767,
            660,
            790
        ],
        "page_idx": 5
    },
    {
        "type": "text",
        "text": "using batched PGD. We pass a batch of 16 samples together with the current perturbation through the preprocessing and classifier, compute the loss function, and update the perturbation based on the negative gradient with consecutive projection to the $L _ { \\infty }$ ball with radius $\\epsilon$ . This step is repeated $G { = } 1 0$ times before processing the next batch. Overall, the UAP is learned for $E { = } 1 0$ epochs. ",
        "bbox": [
            173,
            796,
            825,
            853
        ],
        "page_idx": 5
    },
    {
        "type": "text",
        "text": "Propagation model. We distinguish between three use cases of spatial propagation model, where in all cases either an instance-specific attack or a universal attack can be computed: Case 1) Ignore the propagation model: a multi-channel perturbation $\\mathbf { V }$ is computed, which attacks each channel individually, replacing the terms $H ( \\mathbf { v } , \\lambda _ { m } , \\lambda _ { d } )$ by $\\mathbf { V }$ and $\\mathbf { v } ^ { \\prime }$ by $\\mathbf { V } ^ { \\prime }$ in equation 15. Case 2) Consider the propagation model: a single-channel perturbation v is computed and tested with a specific propagation configuration $\\lambda _ { m }$ and $\\lambda _ { d }$ . Case 3) Consider a use-case where the attacker does not know the spatial propagation model and computes the same perturbation $\\mathbf { v }$ for all channels. The actual propagation model is applied during testing to model the real-world signal propagation. ",
        "bbox": [
            174,
            867,
            825,
            924
        ],
        "page_idx": 5
    },
    {
        "type": "image",
        "img_path": "images/a1324eec3369ab8d3e852dd7a1f3de592be68aba36ad56c69f815c71827712f0.jpg",
        "image_caption": [
            "Figure 1: Performance of random noise, FGSM, PGD, and UAP with and without derivative loss term. "
        ],
        "image_footnote": [],
        "bbox": [
            183,
            103,
            478,
            262
        ],
        "page_idx": 6
    },
    {
        "type": "table",
        "img_path": "images/e61df40a1bdb0c2d0c3c4f3479777943c9d67c63241455dde0304702d2c127b4.jpg",
        "table_caption": [
            "Table 1: Plausibility metrics for PGD attack (a) without derivative term, (b) with the derivative loss term, and (c) with a Gaussian kernel (Han et al., 2020). The smaller the cross correlation $\\eta$ and the Euclidian distance $\\ell _ { 2 }$ - norm, and the higher the cosine similarity $\\gamma$ , the more natural the generated attack. "
        ],
        "table_footnote": [],
        "table_body": "<table><tr><td></td><td colspan=\"3\">n[10-3v2]</td><td colspan=\"3\">l2-norm [mV]</td><td colspan=\"3\">γ[%]</td></tr><tr><td>ε[mV]</td><td>(a)</td><td>(b)</td><td>(c)</td><td>(a)</td><td>(b)</td><td>(c)</td><td>(a)</td><td>(b)</td><td>(c)</td></tr><tr><td>1</td><td>3.31</td><td>1.98</td><td>3.42</td><td>20.8</td><td>15.2</td><td>21.2</td><td>99.89</td><td>99.93</td><td>99.89</td></tr><tr><td>5</td><td>16.6</td><td>7.76</td><td>17.3</td><td>99.1</td><td>61.2</td><td>102</td><td>97.99</td><td>99.22</td><td>97.87</td></tr><tr><td>10</td><td>32.5</td><td>12.6</td><td>34.1</td><td>191</td><td>112</td><td>198</td><td>93.82</td><td>97.47</td><td>93.49</td></tr><tr><td>25</td><td>74.9</td><td>27.3</td><td>79.2</td><td>461</td><td>263</td><td>475</td><td>79.61</td><td>90.05</td><td>78.92</td></tr><tr><td>50</td><td>125</td><td>39.0</td><td>135</td><td>823</td><td>462</td><td>855</td><td>64.17</td><td>79.70</td><td>63.06</td></tr></table>",
        "bbox": [
            503,
            121,
            825,
            208
        ],
        "page_idx": 6
    },
    {
        "type": "image",
        "img_path": "images/0be065a5743b1cee7251d7d88da8df12f3001691d68088f221c3d7a7df59ba26.jpg",
        "image_caption": [
            "Figure 2: A successful attack (a) without and (b) with derivative loss term (PGD, $\\scriptstyle \\epsilon = 1 0 \\mathrm { m V }$ ). The background traces show the original signal before the preprocessing filter. "
        ],
        "image_footnote": [],
        "bbox": [
            178,
            311,
            823,
            410
        ],
        "page_idx": 6
    },
    {
        "type": "text",
        "text": "",
        "bbox": [
            174,
            476,
            825,
            532
        ],
        "page_idx": 6
    },
    {
        "type": "text",
        "text": "End-to-end algorithm. We illustrate the algorithmic procedure for designing a physiologically plausible UAP in Algorithm 1. Analogously, the proposed methods of derivative loss term and model propagation are applied with PGD. The hyperparameters $\\alpha$ , $\\beta$ , the number of PGD iterations and the restarts, the batch size and the number of epochs in UAP are determined based on a cross-validated grid search on the training set. ",
        "bbox": [
            174,
            547,
            825,
            617
        ],
        "page_idx": 6
    },
    {
        "type": "text",
        "text": "4 EXPERIMENTS AND RESULTS ",
        "text_level": 1,
        "bbox": [
            176,
            638,
            444,
            654
        ],
        "page_idx": 6
    },
    {
        "type": "text",
        "text": "We evaluate our methods on the Physionet EEG Motor Movement/Imagery Dataset (Goldberger et al., 2000; Sch) tackling inter-subject challenges, and generalize to subject-specific inter-session dataset IV-2a of BCI Competition (Brunner et al., 2008) (See Appendix C). ",
        "bbox": [
            174,
            669,
            825,
            712
        ],
        "page_idx": 6
    },
    {
        "type": "text",
        "text": "Dataset. The Physionet dataset contains valid EEG recordings of 105 subjects (Dose et al., 2018) and is publicly available under Open Data Commons Attribution License v1.0. We use the MI recordings that contain tasks of the imagination of left against right fist for $3 \\mathrm { s }$ . The EEG trials were recorded with $N _ { c h } { = } 6 4$ channels sampled at $F _ { s } { = } 1 6 0 \\mathrm { H z }$ , yielding $N _ { s } { = } 3 { \\cdot } 1 6 0 { = } 4 8 0$ samples per trial. Additional baseline runs provide resting-state data, where the subjects did not perform any tasks while having eyes open. Overall, we get a total of 6615 trials with $N _ { c l } { = } 3$ balanced classes “left”, “right”, and “rest.” ",
        "bbox": [
            173,
            727,
            825,
            824
        ],
        "page_idx": 6
    },
    {
        "type": "text",
        "text": "Training and validation. We train and validate both the classification models and the generated adversarial examples with a 5-fold cross-validation, splitting the dataset into 84 subjects used for training and 21 subjects used for validation to effectively test the model on inter-subject variability. Similar to Wang et al. (2020), which achieved SoA performance on this dataset, the baseline model is trained for 100 epochs using Adam with $\\beta _ { 1 } { = } 0 . 9$ , $\\beta _ { 2 } { = } 0 . 9 9 9$ , and batch size of 16. The learning rate is 0.01 and decreased by a factor of 10 at epochs 20 and 50, achieving an average accuracy of $7 4 . 7 8 \\%$ . ",
        "bbox": [
            174,
            839,
            825,
            924
        ],
        "page_idx": 6
    },
    {
        "type": "image",
        "img_path": "images/61e50ae1624936e4724c0a3920f25f9cef6e945f75c78ede3ed08a1fb5c4512d.jpg",
        "image_caption": [
            "Figure 3: A successful attack with derivative loss term and spatial constraints $\\lambda _ { m } = 1$ and $\\lambda _ { d } = 0 . 5 6 3$ (PGD, $\\scriptstyle \\epsilon = 5 0 \\mathrm { m V }$ ). The background traces show the original signal before the preprocessing filter. "
        ],
        "image_footnote": [],
        "bbox": [
            176,
            102,
            820,
            263
        ],
        "page_idx": 7
    },
    {
        "type": "image",
        "img_path": "images/1523c7615753b90b2c8e0e94fb41fcac116f3a3069037a001618243cb754a843.jpg",
        "image_caption": [
            "Figure 4: ASR of PGD and UAP in Case 2), i.e., computed with head model (w/HM), and in Case 3), i.e., computed without head model (w/oHM). "
        ],
        "image_footnote": [],
        "bbox": [
            179,
            323,
            619,
            631
        ],
        "page_idx": 7
    },
    {
        "type": "image",
        "img_path": "images/2c2e639cc82a57badda6f507c714534618e64bf003ecf1957433ac239f2e7d18.jpg",
        "image_caption": [
            "Figure 5: ASR with the PGD attack propagating from different EEG channels with fixed $\\lambda _ { d } { = } 0 . 3$ and variable $\\lambda _ { m }$ . "
        ],
        "image_footnote": [],
        "bbox": [
            645,
            325,
            816,
            603
        ],
        "page_idx": 7
    },
    {
        "type": "text",
        "text": "An FFT band-pass filter $h _ { b p }$ with a customary passband of $0 . 1 { - } 4 0 \\mathrm { H z }$ (Lawhern et al., 2018) is used as preprocessing step in both baseline and attack experiments.To determine the ASR, we compute the ratio between the successfully fooled trials, i.e., trials now classified as “rest”, and the total number of attacked trials, where we only consider the ones initially correctly classified as “left”/“right”. ",
        "bbox": [
            174,
            695,
            825,
            752
        ],
        "page_idx": 7
    },
    {
        "type": "text",
        "text": "Physiologically plausible attacks. We first analyze the instance-based attacks without considering the propagation model (Case 1), depicted in Figure 1. We compare our methods against random noise with amplitude $\\epsilon$ as in (Zhang & Wu, 2019), FGSM that is the same as in (Zhang & Wu, 2019) with targeted scenario, and a UAP designed specifically for EEG (Liu et al., 2021). For both FGSM and PGD, the ASR increases together with the maximum amplitude $\\epsilon$ of the perturbation. They always outperform the random noise, with PGD performing slightly better than FGSM. They reach the maximum ASR of $9 9 . 9 7 \\%$ with $1 0 \\mathrm { m V } .$ The post-attack classification accuracy drops from $7 4 . 7 8 \\%$ to $48 \\%$ for a perturbation amplitude of $2 \\mathrm { m V }$ and to $33 \\%$ for $1 0 \\mathrm { m V }$ and higher amplitudes. Figure 2a shows the signals of a successful attack using PGD. The adversarial perturbation has a squarewave form which negatively affects the natural shape of the EEG signal. By adding the proposed derivative term, the square-wave artifacts are significantly reduced (2b), making the perturbation more physiologically plausible. When comparing the power spectral density of the original and attacked signals, the attacked signal designed without derivative presents large components in low frequencies, making it more easily detectable. Whereas the attack with derivative loss better resembles the power spectral density of the original signal (see Appendix D). Moreover, the introduction of the derivative term does not degrade the ASR (Figure 1). The quantitative measures between the original and the adversarial samples in Table 1 demonstrate that our proposed method with derivative term generates adversarial samples that are more similar to the original EEG, allowing them to remain imperceptible even with high $\\epsilon$ (Appendix D). We reproduce the attacks using a Gaussian kernel as in (Han et al., 2020). After tuning the kernel size and variance of the Gaussian kernel, the method could not improve the plausibility metrics. The inferior performance of the Gaussian kernel could stem from the different nature of the signal: it was originally designed for ECGs which have a pseudo-periodic structure. ",
        "bbox": [
            174,
            770,
            825,
            924
        ],
        "page_idx": 7
    },
    {
        "type": "text",
        "text": "",
        "bbox": [
            174,
            103,
            825,
            256
        ],
        "page_idx": 8
    },
    {
        "type": "text",
        "text": "We extend the application of the derivative term to the UAP attack, while still not considering the propagation model (Case 1). Figure 1 shows a comparison in performance for different values of $\\epsilon$ The saturation in ASR is reached with higher $\\epsilon$ , i.e., $9 9 . 9 4 \\%$ with $5 0 \\mathrm { m V } .$ . This is expected since the UAP is a more difficult attack where a single set of perturbations per EEG channel is generated for all the test samples. Likewise in PGD, the ASR does not drop with the addition of the derivative term. We reproduce the UAP proposed by (Liu et al., 2021). Our UAP consistently reaches higher ASR. ",
        "bbox": [
            174,
            263,
            825,
            347
        ],
        "page_idx": 8
    },
    {
        "type": "text",
        "text": "Spatial Propagation. Finally, we introduce the spatial constraints in the signal propagation over the scalp (Case 2). We consider 9 different scenarios by combining 3 realistic attenuation configurations $\\lambda _ { m } \\ \\in \\ \\{ 1 , 5 , 1 5 \\}$ with 3 delay configurations $\\lambda _ { d } \\ \\in \\ \\{ 0 . 1 , 0 . 3 , 0 . 5 6 3 \\}$ , which capture the range described in Section 3.2. For evaluating the highest achievable attack efficiency, we test a scenario where the attacker is assumed to know the propagation model: the adversarial perturbation is generated and evaluated on fixed spatial parameters $\\lambda _ { m }$ and $\\lambda _ { d }$ , shown in Figure 4, where the ASR reaches up to $6 9 . 2 \\%$ with PGD and $4 5 . 6 \\%$ with UAP at $5 0 \\mathrm { m V } .$ Figure 3 depicts an example of a successful attack with the highest perturbation amplitude. The introduction of the spatial constraints makes the attack problem harder yielding seldom square distortions. However, the resulting EEG signals still resemble physiological random processes typical of EEGs. Next, we ablate the spatial constraints during generation and test the resulting perturbations on the 9 above-mentioned scenarios (Case 3). The ASR drops significantly, especially for $\\lambda _ { m } { = } 5$ and $\\lambda _ { m } { = } 1 5$ where the attenuation of the perturbation over the scalp is greater (see Figure 7), and with the global UAP attack, where the attacker does not have access to the attacked EEG signals. ",
        "bbox": [
            174,
            366,
            825,
            560
        ],
        "page_idx": 8
    },
    {
        "type": "text",
        "text": "Our spatial propagation models allows us to identify the vulnerability of the individual EEG channels. Figure 5 shows the ASR when initiating an attack from a specific channel (T9, T10, etc.) and propagating it to the rest of the head. In the case with the greatest attenuation $\\left( \\lambda _ { m } = 1 5 \\right)$ we find the maximum ASR at the electrode $\\mathbf { C } \\mathbf { z }$ between the regions of the electrodes C3 and C4, which are the most relevant ones for MI of the left and right hand tasks (Pfurtscheller & Lopes da Silva, 1999). We compute the pre- and post-attack confusion matrices for attacks from T9 and T10 (see Appendix E). When the attack propagates from the left side (T9), more samples with ground-truth label “right” can be fooled to “rest”, while the attacks from the right side (T10) are more effective “left” labels. ",
        "bbox": [
            174,
            568,
            825,
            679
        ],
        "page_idx": 8
    },
    {
        "type": "text",
        "text": "Overall, our methods successfully generates perturbations resembling natural noise in EEGs, that can be added at the source of the signal acquisition and are propagated over the scalp, creating attacked signals that are physiologically plausible. Similar results have been observed on the BCI Competition IV-2a dataset, shown in Appendix C. ",
        "bbox": [
            176,
            685,
            825,
            741
        ],
        "page_idx": 8
    },
    {
        "type": "text",
        "text": "5 CONCLUSION ",
        "text_level": 1,
        "bbox": [
            176,
            765,
            318,
            781
        ],
        "page_idx": 8
    },
    {
        "type": "text",
        "text": "With the incentive of improving security in BCIs, in this work, we demonstrated that DoS attacks are feasible and effective despite physical domain constraints. Experimental results reveal potential risks of realistic attacks on smart wearable BCIs and incentivize the need for future development of defense mechanisms while designing deep learning models to be embedded in smart wearable BCIs. Our detailed analysis on each EEG channel shows that special attention has to be paid, combined with the findings in neuroscience, to the brain regions that are found responsible for a specific task. In future work, the proposed attacks can cover uncertainty in the propagation model and the timing of the MI activity. Moreover, hardware implementations of such attacks can be created to evaluate the proposed methods in real-world, with the ultimate goal of developing effective countermeasures. ",
        "bbox": [
            174,
            797,
            826,
            924
        ],
        "page_idx": 8
    },
    {
        "type": "text",
        "text": "ETHICS STATEMENT ",
        "text_level": 1,
        "bbox": [
            174,
            103,
            316,
            117
        ],
        "page_idx": 9
    },
    {
        "type": "text",
        "text": "The sore goal of this work is to raise awareness of potential adversarial attacks in BCIs and incentivize the development of coutermeasures, especially in the current moment when the BCIs are facing an increasing growth in applications of everyday life. The active development of smart wearable BCIs is introducing a paradigm shift where the processing algorithms are embedded near the data acquisition. While this improves the system security to a certain extend, with this work we have shown that it is not the only and ultimate way to a safe and reliable BCI, since we have shown that BCI systems are vulnerable also to attacks at the signals’ source. We hope that our work sheds light on the fact that practical BCI systems are vulnerable, despite the physical constraints, and motivates the design and development of more reliable and robust BCI systems. ",
        "bbox": [
            174,
            128,
            825,
            253
        ],
        "page_idx": 9
    },
    {
        "type": "text",
        "text": "REPRODUCIBLITY ",
        "text_level": 1,
        "bbox": [
            176,
            270,
            300,
            284
        ],
        "page_idx": 9
    },
    {
        "type": "text",
        "text": "A link to a anonymous downloadable source code of this work is submitted as supplementary materials. ",
        "bbox": [
            176,
            294,
            823,
            321
        ],
        "page_idx": 9
    },
    {
        "type": "text",
        "text": "REFERENCES ",
        "text_level": 1,
        "bbox": [
            176,
            343,
            285,
            359
        ],
        "page_idx": 9
    },
    {
        "type": "text",
        "text": "BCI2000: A general-purpose brain-computer interface (BCI) system. ",
        "bbox": [
            174,
            368,
            627,
            382
        ],
        "page_idx": 9
    },
    {
        "type": "text",
        "text": "Ayten Ozge Akmandor and Niraj K. Jha. Smart health care: An edge-side computing perspective. IEEE Consumer Electronics Magazine, 7(1):29–37, 2018. ",
        "bbox": [
            169,
            393,
            825,
            421
        ],
        "page_idx": 9
    },
    {
        "type": "text",
        "text": "Ralph Algazi, Carlos Avendano, and Richard O Duda. Estimation of a spherical-head model from anthropometry. J. Aud. Eng. Soc., 49, 2001. ",
        "bbox": [
            174,
            431,
            823,
            462
        ],
        "page_idx": 9
    },
    {
        "type": "text",
        "text": "Pietro Aricò, Nicolina Sciaraffa, and Fabio Babiloni. Brain–computer interfaces: Toward a daily life employment. Brain Sciences, 10(3), 2020. ",
        "bbox": [
            173,
            470,
            821,
            500
        ],
        "page_idx": 9
    },
    {
        "type": "text",
        "text": "Aamir Arsalan, Muhammad Majid, Amna Rauf Butt, and Syed Muhammad Anwar. Classification of perceived mental stress using a commercially available EEG headband. IEEE Journal of Biomedical and Health Informatics, 23(6):2257–2264, 2019. ",
        "bbox": [
            173,
            510,
            826,
            554
        ],
        "page_idx": 9
    },
    {
        "type": "text",
        "text": "Christopher Beach, Ertan Balaban, and Alexander J. Casson. Chapter 14 - edge algorithms for wearables: an overview of a truly multi-disciplinary problem. In Edward Sazonov (ed.), Wearable Sensors (Second Edition), pp. 379–414. Academic Press, Oxford, second edition edition, 2021. ",
        "bbox": [
            176,
            563,
            825,
            607
        ],
        "page_idx": 9
    },
    {
        "type": "text",
        "text": "Kais Belwafi, Olivier Romain, Sofien Gannouni, Fakhreddine Ghaffari, Ridha Djemal, and Bouraoui Ouni. An embedded implementation based on adaptive filter bank for brain–computer interface systems. Journal of Neuroscience Methods, 2018. ",
        "bbox": [
            176,
            616,
            823,
            660
        ],
        "page_idx": 9
    },
    {
        "type": "text",
        "text": "Sergio López Bernal, Alberto Huertas Celdrán, Gregorio Martínez Pérez, Michael Taynnan Barros, and Sasitharan Balasubramaniam. Security in brain-computer interfaces: State-of-the-art, opportunities, and future challenges. ACM Comput. Surv., 54(1), January 2021. ",
        "bbox": [
            174,
            669,
            826,
            712
        ],
        "page_idx": 9
    },
    {
        "type": "text",
        "text": "Florian C. A. A. Bodranghien, Margot Langlois Mahe, Serge Clément, and Mario U. Manto. A pilot study on the effects of transcranial direct current stimulation on brain rhythms and entropy during self-paced finger movement using the Epoc helmet. Frontiers in Human Neuroscience, 11:201, 2017. ",
        "bbox": [
            173,
            722,
            826,
            779
        ],
        "page_idx": 9
    },
    {
        "type": "text",
        "text": "Jonathan S. Brumberg, Jeremy D. Burnison, and Kevin M. Pitt. Using motor imagery to control brain-computer interfaces for communication. In Dylan D. Schmorrow and Cali M. Fidopiastis (eds.), Foundations of Augmented Cognition: Neuroergonomics and Operational Neuroscience, pp. 14–25, Cham, 2016. Springer International Publishing. ",
        "bbox": [
            174,
            789,
            826,
            845
        ],
        "page_idx": 9
    },
    {
        "type": "text",
        "text": "C Brunner, R Leeb, G R Müller-Putz, A Schlögl, and G Pfurtscheller. BCI competition 2008 - Graz data set A, 2008. URL http://bnci-horizon-2020.eu/database/data-sets. ",
        "bbox": [
            173,
            856,
            825,
            885
        ],
        "page_idx": 9
    },
    {
        "type": "text",
        "text": "Ujwal Chaudhary, Niels Birbaumer, and Ander Ramos-Murguialday. Brain–computer interfaces for communication and rehabilitation. Nature Reviews Neurology, 12, 08 2016. ",
        "bbox": [
            176,
            895,
            823,
            924
        ],
        "page_idx": 9
    },
    {
        "type": "text",
        "text": "Hauke Dose, Jakob S. Moller, Sadasivan Puthusserypady, and Helle K. Iversen. A deep learning MI - EEG classification model for BCIs. In 2018 26th European Signal Processing Conference (EUSIPCO), pp. 1676–1679. IEEE, 2018. ",
        "bbox": [
            176,
            103,
            823,
            146
        ],
        "page_idx": 10
    },
    {
        "type": "text",
        "text": "Anirban Dutta. Brain–computer interface spellers for communication: Why we need to address their security and authenticity. Brain Sciences, 10:139, 03 2020. ",
        "bbox": [
            171,
            154,
            823,
            183
        ],
        "page_idx": 10
    },
    {
        "type": "text",
        "text": "Daniel Elstob and Emanuele Secco. A low cost EEG based BCI prosthetic using motor imagery. International Journal of Information Technology Convergence and Services, 6:23–36, 02 2016. ",
        "bbox": [
            173,
            190,
            823,
            220
        ],
        "page_idx": 10
    },
    {
        "type": "text",
        "text": "Anna Fertonani, Clarissa Ferrari, and Carlo Miniussi. What do you feel if I apply transcranial electric stimulation? Safety, sensations and secondary induced effects. Clinical Neurophysiology, 126(11): 2181–2188, 2015. ",
        "bbox": [
            173,
            227,
            823,
            270
        ],
        "page_idx": 10
    },
    {
        "type": "text",
        "text": "Samuel G. Finlayson, John D. Bowers, Joichi Ito, Jonathan L. Zittrain, Andrew L. Beam, and Isaac S. Kohane. Adversarial attacks on medical machine learning. Science, 363(6433):1287–1289, 2019. ",
        "bbox": [
            173,
            277,
            825,
            308
        ],
        "page_idx": 10
    },
    {
        "type": "text",
        "text": "Flowneuroscience. Flow tDCS device. https://flowneuroscience.com/, 2021. Accessed: 2021-05-27. ",
        "bbox": [
            173,
            315,
            825,
            344
        ],
        "page_idx": 10
    },
    {
        "type": "text",
        "text": "Daniel Freer and Guang-Zhong Yang. Data augmentation for self-paced motor imagery classification with C-LSTM. Journal of Neural Engineering, 17, 01 2020. ",
        "bbox": [
            169,
            352,
            825,
            381
        ],
        "page_idx": 10
    },
    {
        "type": "text",
        "text": "Ary L Goldberger, Luis A N Amaral, Leon Glass, Jeffrey M Hausdorff, Plamen Ch Ivanov, Roger G Mark, Joseph E Mietus, George B Moody, Chung-Kang Peng, and H Eugene Stanley. PhysioBank, PhysioToolkit, and PhysioNet: components of a new research resource for complex physiologic signals. circulation, 101(23):e215–e220, 2000. ",
        "bbox": [
            174,
            387,
            825,
            445
        ],
        "page_idx": 10
    },
    {
        "type": "text",
        "text": "Ian J. Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In Proc. International Conference on Learning Representations, ICLR, 2015. ",
        "bbox": [
            169,
            453,
            823,
            483
        ],
        "page_idx": 10
    },
    {
        "type": "text",
        "text": "Xintian Han, Yuxuan Hu, Luca Foschini, Larry Chinitz, Lior Jankelson, and Rajesh Ranganath. Deep learning models for electrocardiograms are susceptible to adversarial attack. Nature medicine, 26 (3):360–363, 2020. ",
        "bbox": [
            173,
            489,
            825,
            532
        ],
        "page_idx": 10
    },
    {
        "type": "text",
        "text": "Xue Jiang, Xiao Zhang, and Dongrui Wu. Active learning for black-box adversarial attacks in EEGbased brain-computer interfaces. In 2019 IEEE Symposium Series on Computational Intelligence (SSCI), pp. 361–368, 2019. ",
        "bbox": [
            173,
            540,
            823,
            583
        ],
        "page_idx": 10
    },
    {
        "type": "text",
        "text": "Mandar Karlekar and Anubha Gupta. Stochastic modeling of EEG rhythms with fractional gaussian noise. In 2014 22nd European Signal Processing Conference (EUSIPCO), pp. 2520–2524, 2014. ",
        "bbox": [
            169,
            590,
            825,
            621
        ],
        "page_idx": 10
    },
    {
        "type": "text",
        "text": "Victor Kartsch, Giuseppe Tagliavini, Marco Guermandi, Simone Benatti, Davide Rossi, and Luca Benini. Biowolf: A sub-10-mW 8-channel advanced brain–computer interface platform with a nine-core processor and BLE connectivity. IEEE Transactions on Biomedical Circuits and Systems, 13(5):893–906, 2019. ",
        "bbox": [
            173,
            627,
            825,
            684
        ],
        "page_idx": 10
    },
    {
        "type": "text",
        "text": "Min Kim, Youngchang Cho, Suk-Tae Seo, Chang-Sik Son, Hee-Joon Park, and Yoon-Nyun Kim. A new method for non-invasive measurement of skin in the low frequency range. Healthcare informatics research, 16:143–8, 09 2010. ",
        "bbox": [
            173,
            691,
            825,
            736
        ],
        "page_idx": 10
    },
    {
        "type": "text",
        "text": "Alexey Kurakin, Ian J. Goodfellow, and Samy Bengio. Adversarial examples in the physical world. CoRR, abs/1607.02533. ",
        "bbox": [
            171,
            742,
            825,
            772
        ],
        "page_idx": 10
    },
    {
        "type": "text",
        "text": "Vernon J Lawhern, Amelia J Solon, Nicholas R Waytowich, Stephen M Gordon, Chou P Hung, and Brent J Lance. EEGNet: a compact convolutional neural network for EEG-based brain–computer interfaces. Journal of Neural Engineering, 15(5):056013, 7 2018. ",
        "bbox": [
            174,
            780,
            825,
            824
        ],
        "page_idx": 10
    },
    {
        "type": "text",
        "text": "Jinfeng Li, Shouling Ji, Tianyu Du, Bo Li, and Ting Wang. Textbugger: Generating adversarial text against real-world applications. In Proc. Network and Distributed System Security Symposium, NDSS. The Internet Society, 2019a. ",
        "bbox": [
            173,
            830,
            823,
            873
        ],
        "page_idx": 10
    },
    {
        "type": "text",
        "text": "Juncheng Li, Shuhui Qu, Xinjian Li, Joseph Szurley, J. Zico Kolter, and Florian Metze. Adversarial music: Real world audio adversary against wake-word detection system. In Proc. Neural Information Processing Systems (NeurIPS), pp. 11908–11918, 2019b. ",
        "bbox": [
            174,
            881,
            825,
            924
        ],
        "page_idx": 10
    },
    {
        "type": "text",
        "text": "Zihan Liu, Lubin Meng, Xiao Zhang, Weili Fang, and Dongrui Wu. Universal adversarial perturbations for CNN classifiers in EEG-based BCIs, 2021. ",
        "bbox": [
            171,
            103,
            823,
            132
        ],
        "page_idx": 11
    },
    {
        "type": "text",
        "text": "Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In Proc. International Conference on Learning Representations (ICLR), 2018. ",
        "bbox": [
            176,
            142,
            823,
            185
        ],
        "page_idx": 11
    },
    {
        "type": "text",
        "text": "Alireza Malekmohammadi, Hoda Mohammadzade, Alireza Chamanzar, Mahdi Shabany, and Benyamin Ghojogh. An efficient hardware implementation for a motor imagery brain computer interface system. Scientia Iranica, 26:72–94, 2019. ",
        "bbox": [
            174,
            195,
            826,
            238
        ],
        "page_idx": 11
    },
    {
        "type": "text",
        "text": "Iuliana Marin, Myssar Jabbar Hammood Al-Battbootti, and Nicolae Goga. Drone control based on mental commands and facial expressions. In 2020 12th International Conference on Electronics, Computers and Artificial Intelligence (ECAI), pp. 1–4, 2020. ",
        "bbox": [
            173,
            247,
            826,
            291
        ],
        "page_idx": 11
    },
    {
        "type": "text",
        "text": "Lubin Meng, Jian Huang, Zhigang Zeng, Xue Jiang, Shan Yu, Tzyy-Ping Jung, Chin-Teng Lin, Ricardo Chavarriaga, and Dongrui Wu. EEG-based brain-computer interfaces are vulnerable to backdoor attacks, 2021. ",
        "bbox": [
            174,
            300,
            825,
            343
        ],
        "page_idx": 11
    },
    {
        "type": "text",
        "text": "Isabelle Merlet, Gwénaël Birot, Ricardo Salvador, Behnam Molaee-Ardekani, Abeye Mekonnen, Aureli Soria-Frish, Giulio Ruffini, Pedro C. Miranda, and Fabrice Wendling. From oscillatory transcranial current stimulation to scalp EEG changes: A biophysical and physiological modeling study. PLOS ONE, 8:1–12, 02 2013. ",
        "bbox": [
            174,
            353,
            826,
            410
        ],
        "page_idx": 11
    },
    {
        "type": "text",
        "text": "Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, Omar Fawzi, and Pascal Frossard. Universal adversarial perturbations. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017. ",
        "bbox": [
            174,
            420,
            825,
            463
        ],
        "page_idx": 11
    },
    {
        "type": "text",
        "text": "G. Pfurtscheller and F.H. Lopes da Silva. Event-related EEG/MEG synchronization and desynchronization: basic principles. Clinical Neurophysiology, 110(11):1842–1857, 11 1999. ",
        "bbox": [
            174,
            472,
            823,
            502
        ],
        "page_idx": 11
    },
    {
        "type": "text",
        "text": "Robert Plutchik and Henry R Hirsch. Skin impedance and phase angle as a function of frequency and current. Science, 141(3584):927–928, 1963. ",
        "bbox": [
            173,
            512,
            825,
            540
        ],
        "page_idx": 11
    },
    {
        "type": "text",
        "text": "ZG Qiao, L Mørkrid, and NK Vøllestad. Characteristics of phase angle, extrapolated conductance and ion relaxation time in the low-frequency admittance locus plot of human palmar skin. Medical and Biological Engineering and Computing, 32(2):161–167, 1994. ",
        "bbox": [
            173,
            550,
            825,
            594
        ],
        "page_idx": 11
    },
    {
        "type": "text",
        "text": "Yao Qin, Nicholas Carlini, Ian J. Goodfellow, Garrison W. Cottrell, and Colin Raffel. Imperceptible, robust, and targeted adversarial examples for automatic speech recognition. CoRR, abs/1903.10346, 2019. ",
        "bbox": [
            174,
            603,
            825,
            646
        ],
        "page_idx": 11
    },
    {
        "type": "text",
        "text": "Mona Sazgar and Michael G. Young. EEG Artifacts, pp. 149–162. Springer International Publishing, Cham, 2019. ",
        "bbox": [
            174,
            656,
            825,
            685
        ],
        "page_idx": 11
    },
    {
        "type": "text",
        "text": "Tibor Schneider, Xiaying Wang, Michael Hersche, Lukas Cavigelli, and Luca Benini. Q-EEGNet: an energy-efficient 8-bit quantized parallel EEGNet implementation for edge motor-imagery brainmachine interfaces. In 2020 IEEE International Conference on Smart Computing (SMARTCOMP), pp. 284–289, 2020. ",
        "bbox": [
            174,
            694,
            826,
            752
        ],
        "page_idx": 11
    },
    {
        "type": "text",
        "text": "Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian J. Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In Proc. International Conference on Learning Representations, ICLR, 2014. ",
        "bbox": [
            173,
            762,
            826,
            805
        ],
        "page_idx": 11
    },
    {
        "type": "text",
        "text": "Johannes Vorwerk, Ümit Aydin, Carsten H Wolters, and Christopher R Butson. Influence of head tissue conductivity uncertainties on EEG dipole reconstruction. Frontiers in neuroscience, 13:531, 2019. ",
        "bbox": [
            173,
            814,
            825,
            857
        ],
        "page_idx": 11
    },
    {
        "type": "text",
        "text": "Xiaying Wang, Michael Hersche, Batuhan Tömekce, Burak Kaya, Michele Magno, and Luca Benini. An accurate EEGNet-based motor-imagery brain–computer interface for low-power edge computing. In 2020 IEEE International Symposium on Medical Measurements and Applications (MeMeA), pp. 1–6, 2020. ",
        "bbox": [
            174,
            867,
            825,
            924
        ],
        "page_idx": 11
    },
    {
        "type": "text",
        "text": "Yang Yu, Yadong Liu, Jun Jiang, Erwei Yin, Zongtan Zhou, and Dewen Hu. An asynchronous control paradigm based on sequential motor imagery and its application in wheelchair navigation. IEEE Transactions on Neural Systems and Rehabilitation Engineering, 26(12):2367–2375, 2018. ",
        "bbox": [
            176,
            103,
            823,
            146
        ],
        "page_idx": 12
    },
    {
        "type": "text",
        "text": "Wei Emma Zhang, Quan Z. Sheng, Ahoud Abdulrahmn F. Alhazmi, and Chenliang Li. Adversarial attacks on deep-learning models in natural language processing: A survey. ACM Trans. Intell. Syst. Technol., 11(3):24:1–24:41, 2020. ",
        "bbox": [
            178,
            155,
            823,
            196
        ],
        "page_idx": 12
    },
    {
        "type": "text",
        "text": "Xiao Zhang and Dongrui Wu. On the vulnerability of CNN classifiers in EEG-based BCIs. IEEE Transactions on Neural Systems and Rehabilitation Engineering, 27(5):814–825, 2019. ",
        "bbox": [
            171,
            205,
            825,
            234
        ],
        "page_idx": 12
    },
    {
        "type": "text",
        "text": "Jiayu Zhuang, Keke Geng, and Guodong Yin. Ensemble learning based brain–computer interface system for ground vehicle control. IEEE Transactions on Systems, Man, and Cybernetics: Systems, 51(9):5392–5404, 2021. ",
        "bbox": [
            173,
            244,
            826,
            286
        ],
        "page_idx": 12
    },
    {
        "type": "image",
        "img_path": "images/673d5d9efd092b4cc8e800ff6a5738b2621fff65b3be06e0ef50d295cf6a25a4.jpg",
        "image_caption": [],
        "image_footnote": [],
        "bbox": [
            179,
            112,
            815,
            186
        ],
        "page_idx": 13
    },
    {
        "type": "text",
        "text": "Figure 6: Practical adversarial attack scenario in BCIs: a smart device close to the ear emits a perturbation signal which propagates over the head surface to the EEG electrodes. ",
        "bbox": [
            169,
            208,
            823,
            234
        ],
        "page_idx": 13
    },
    {
        "type": "image",
        "img_path": "images/38b8a7e8b4be2758df986c7eb0277e6018207129bd99c18ee2f96bd9341afb7e.jpg",
        "image_caption": [
            "Figure 7: Magnitude of the spatial propagation for different $\\lambda _ { m }$ . The perturbation is emitted from the left side of the head and propagates over the head surface. The leftmost electrode senses the highest magnitude (red), which linearly decreases towards zero (white) with growing propagation distance and $\\lambda _ { m }$ . The electrodes which sense the perturbations, i.e., magnitude ${ > } 0$ , are marked with dots. The electrodes T9, C3, C4, and T10 are labeled for reference. "
        ],
        "image_footnote": [],
        "bbox": [
            173,
            251,
            823,
            349
        ],
        "page_idx": 13
    },
    {
        "type": "text",
        "text": "A ATTACK AT THE SOURCE OF SIGNAL ACQUISITION ",
        "text_level": 1,
        "bbox": [
            176,
            453,
            625,
            468
        ],
        "page_idx": 13
    },
    {
        "type": "text",
        "text": "Fig. 6 illustrates the new attack scenario where the perturbation is delivered to the human scalp and propagates to the sensing electrodes at the source of the signal acquisition. ",
        "bbox": [
            173,
            483,
            823,
            512
        ],
        "page_idx": 13
    },
    {
        "type": "text",
        "text": "B SPATIAL PROPAGATION MODELS ",
        "text_level": 1,
        "bbox": [
            174,
            531,
            475,
            547
        ],
        "page_idx": 13
    },
    {
        "type": "text",
        "text": "Fig. 7 illustrates the magnitude of signal propagation using different propagation parameters $\\lambda _ { m } =$ $\\{ 1 , 5 , 1 5 \\}$ . A large $\\lambda _ { m }$ represents cases with large attenuation and limited propagation (e.g., attack over the air) and a small $\\lambda _ { m }$ covers cases with lower attenuation where the perturbation can propagate farther (e.g., a smart glass). ",
        "bbox": [
            174,
            563,
            825,
            618
        ],
        "page_idx": 13
    },
    {
        "type": "text",
        "text": "C EXPERIMENTS ON BCI COMPETITION IV-2A ",
        "text_level": 1,
        "bbox": [
            174,
            638,
            580,
            655
        ],
        "page_idx": 13
    },
    {
        "type": "text",
        "text": "Dataset. The IV-2a dataset of the BCI Competition contains recordings from nine different subjects and distinguishes between four classes of imagined movements: left and right hand, both feet, and the tongue. 22 different EEG channels were recorded, sampled at $2 5 0 \\mathrm { H z }$ . The data was pre-processed with a bandpass filter between 0.1 and $4 0 \\mathrm { H z }$ . Each subject completed two recording session on two different days, where the first session is used for training and the second for testing as per the rules of the competition. Each session contains 288 trials. ",
        "bbox": [
            174,
            670,
            825,
            753
        ],
        "page_idx": 13
    },
    {
        "type": "text",
        "text": "Training and validation. We train a separate baseline model per subject using Adam optimizer with $\\beta _ { 1 } { = } 0 . 9$ and $\\beta _ { 2 } { = } 0 . 9 9 9$ , a batch size of 32, and 500 epochs. The learning rate is 0.001 achieving an average accuracy of $7 1 . 7 9 \\%$ . This dataset does not contain the rest class. We choose to design an attack that aims to fool the classifier to always predict “tongue.” Moreover, we apply a maximum perturbation amplitude of $\\epsilon \\in [ 0 . 0 1 , 1 0 ] \\mathrm { m V }$ due to the lower signal amplitude encountered in this dataset. ",
        "bbox": [
            174,
            768,
            825,
            852
        ],
        "page_idx": 13
    },
    {
        "type": "text",
        "text": "Results. Fig. 8 compares the ASR of different attacks without considering the propagation model (Case 1). Generally, a minimal perturbation amplitude of $1 \\mathrm { m V }$ and $2 \\mathrm { m V }$ suffices to achieve $100 \\%$ ASR with PGD and UAP, respectively. The addition of the derivative loss term does not give any performance degradation in terms of the ASR. The average post-attack classification accuracy drops from $7 1 . 7 9 \\%$ to $50 \\%$ for a perturbation amplitude of $0 . 1 5 \\mathrm { m V }$ and $2 4 . 7 \\%$ for $0 . 6 \\mathrm { m V }$ and higher amplitudes, when PGD with derivative is used. ",
        "bbox": [
            174,
            867,
            823,
            924
        ],
        "page_idx": 13
    },
    {
        "type": "image",
        "img_path": "images/2754d89a4671045e54c9d9a042e28c5bfceebb00058d60cea27bd8868f79baae.jpg",
        "image_caption": [
            "Figure 8: ASR on BCI Competition IV-2a with random noise, FGSM, PGD, and UAP with and without derivative loss term. "
        ],
        "image_footnote": [],
        "bbox": [
            181,
            101,
            808,
            330
        ],
        "page_idx": 14
    },
    {
        "type": "text",
        "text": "",
        "bbox": [
            174,
            420,
            820,
            449
        ],
        "page_idx": 14
    },
    {
        "type": "text",
        "text": "Fig. 9 shows the ASR for different propagation parameters $\\lambda _ { m }$ and $\\lambda _ { d , }$ ) and maximum perturbation amplitudes $\\epsilon$ . When considering the head model during the design of the attack (Case 2, w/HM), both PGD and UAP reach significantly higher ASR compared to attacks designed without the consideration of the head model (Case 3, w/oHM). ",
        "bbox": [
            174,
            455,
            825,
            511
        ],
        "page_idx": 14
    },
    {
        "type": "text",
        "text": "D PLAUSIBILITY OF ATTACKS ",
        "text_level": 1,
        "bbox": [
            176,
            558,
            434,
            573
        ],
        "page_idx": 14
    },
    {
        "type": "text",
        "text": "This section provides power spectral density plots of original signals and attacked signals with and without the derivative loss term, shown in Figure 10. The power spectral density is determined by computing the magnitude squared Fast Fourier Transform of the signals that were illustrated in Figure 2. The attack designed with the derivative loss term has a similar distribution as the original signal, where as the attack without derivative shows large contributions in the low frequency domain $( < 5 \\mathrm { H z } )$ , which were not present in the original signal. These low-frequency components stem from the square-wave shaped attack and can be used as a way to detect the attack; hence, this attack cannot be considered imperceptible. ",
        "bbox": [
            173,
            603,
            825,
            715
        ],
        "page_idx": 14
    },
    {
        "type": "text",
        "text": "Moreover, Figure 13 shows the attacks with and without derivative loss term with increasing maximum amplitude \u000f. We can see that for low amplitudes ( $\\mathrm { 1 m V }$ and $5 \\mathrm { m V }$ ) the generated attacks with and without derivative still look like EEGs. At $1 0 \\mathrm { m V } ,$ the attack generated without derivative presents minor square-wave artifacts, which could be still imperceptible to a non-expert. With $2 5 \\mathrm { m V }$ and $5 0 \\mathrm { m V } ,$ , the ones generated without derivative have strong and perceptible square-wave displacements, while the ones generated with our proposed method can still be mistaken as real EEG signals. While with the instance-based attacks, it is not necessary to have more than $1 0 \\mathrm { m V }$ to get a very high ASR (see Figure 1), with the universal attacks and physical constraints, the ASR increases with increasing perturbation amplitude (see Figure 4). ",
        "bbox": [
            173,
            722,
            825,
            847
        ],
        "page_idx": 14
    },
    {
        "type": "text",
        "text": "The same observations can be drawn from the plausibility metrics, which have been proposed for the first time in this paper to assess quantitatively the EEG attacks. For example, looking at the cosine similarity $( \\gamma )$ in Table 1, without the derivative loss term, $\\gamma$ drops to $9 7 . 9 9 \\%$ with $\\epsilon = 5 \\mathrm { m V } ,$ , whereas, with the derivative, $\\gamma$ drops to about the same value of $9 7 . 4 7 \\%$ with $\\epsilon = 1 0 \\mathrm { m V } ,$ yielding an increase in ASR from $85 \\%$ $\\mathrm { 5 m V ) }$ to $9 9 \\%$ $\\mathrm { 1 0 m V ) }$ shown in Figure 1 with PGD. ",
        "bbox": [
            174,
            854,
            825,
            924
        ],
        "page_idx": 14
    },
    {
        "type": "image",
        "img_path": "images/ce3b790a23a18be77d8726d791255034fbb41f1cf3028b470ccdc8576c9d615a.jpg",
        "image_caption": [
            "Figure 9: Results on BCI Competition IV-2a. ASR of PGD and UAP in Case 2), i.e., computed with head model (w/HM); and in Case 3), i.e., computed without head model (w/oHM). "
        ],
        "image_footnote": [],
        "bbox": [
            276,
            103,
            722,
            415
        ],
        "page_idx": 15
    },
    {
        "type": "image",
        "img_path": "images/24bbf9586d061f5fa7fa0a1b21aa8350f5c5b44b459c9cb84b74008f7c705ba6.jpg",
        "image_caption": [
            "Figure 10: Power spectral density comparison of the attack with and without derivative loss term, as well as the original signal shown in Figure 2. "
        ],
        "image_footnote": [],
        "bbox": [
            305,
            472,
            692,
            642
        ],
        "page_idx": 15
    },
    {
        "type": "text",
        "text": "E CLASSIFICATION CONFUSION MATRICES ",
        "text_level": 1,
        "bbox": [
            174,
            705,
            547,
            723
        ],
        "page_idx": 15
    },
    {
        "type": "text",
        "text": "We analyze the confusion matrices before and after the proposed attack. Fig. 11 shows the confusion matrix of EEGNet on the Physionet dataset before the attack, where all classes can be classified with similar accuracy $( 7 2 . 8 \\% - 7 3 . 5 \\% )$ . Fig. 12 shows the confusion matrices for three different propagation parameters $( \\lambda _ { m } \\in \\{ 1 , 5 , 1 5 \\} )$ and two attack positions (T9 and T10) which correspond to the left and right side of the head. When considering the attacks from the left side, shown in Fig. 12a–12c, more samples with ground-truth label “right” can be fooled to “rest”. This is particularly articulated in largely attenuated propagation model $\\lambda _ { m } { = } 1 5 )$ . In a similar vein, attacks coming from the right side of the head (T10) are more effective on data with ground-truth label “left” (Fig. 12d–12f). ",
        "bbox": [
            173,
            738,
            825,
            849
        ],
        "page_idx": 15
    },
    {
        "type": "image",
        "img_path": "images/1ea1613670bc55b7d890555d5cc7a5add225bf73d62460f527b51eaf42cf5122.jpg",
        "image_caption": [
            "Figure 11: Confusion matrix original EEG predictions on Physionet dataset. "
        ],
        "image_footnote": [],
        "bbox": [
            390,
            160,
            606,
            314
        ],
        "page_idx": 16
    },
    {
        "type": "image",
        "img_path": "images/f736298343192e93d83223443cacb3b79a8f52cbc4fc153ebd24626308f0133e.jpg",
        "image_caption": [
            "Figure 12: Confusion matrices for the Physionet dataset after attacking EEGNet with the proposed PGD attack with derivative and considering the spatial propagation. The attack is either performed from the left electrode (T9) or from the right electrode (T10). We consider different magnitude propagation parameters $\\lambda _ { m }$ and a constant delay parameter $\\lambda _ { d } { = } 0 . 3$ . "
        ],
        "image_footnote": [],
        "bbox": [
            186,
            464,
            802,
            801
        ],
        "page_idx": 16
    },
    {
        "type": "image",
        "img_path": "images/6345909357cc6d546532e1d948e55cd4d914328dd323e1190fe1921adc19c884.jpg",
        "image_caption": [
            "Figure 13: A successful PGD attack on Physionet dataset (i) without and (ii) with derivative with different values of maximum amplitude $\\epsilon$ . "
        ],
        "image_footnote": [],
        "bbox": [
            178,
            179,
            823,
            797
        ],
        "page_idx": 17
    }
]