OSCR

An EEG-Based Edge-AI Framework for Alzheimer's and Creutzfeldt-Jakob Disease Classification.

Code ↔ Paper

3 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 3 matches
  1. [1] § 2. Materials and Methods › 2.3. Experimental Setup ↔ EEG/sourcecodes/EEG_fair_nael.py, lines 16 to 67 · score 0.84 · d_model, encoder layers, CNN feature extractor, Transformer encoder, ELU, max · Report a mismatch
  2. [2] § 2. Materials and Methods › 2.2. Proposed Hybrid EEG Decoder System › 2.2.1. Custom 1D-CNN Feature Extractor ↔ EEG/sourcecodes/EEG_fair_nael.py, lines 16 to 67 · score 0.72 · CNN feature extractor, Transformer encoder, Linear, ELU, max, permuted · Report a mismatch
  3. [3] § 2. Materials and Methods › 2.1. EEG Signal Preprocessing and Dataset Construction ↔ EEG/sourcecodes/EEG_fair_nael.py, lines 472 to 511 · score 0.53 · random seed, CV, CNTRL, epoch, CJD, LOSO · Report a mismatch

Paper

Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

Python · 512 lines · 17 KB · no license · 3 matches

  1. import os
  2. import json
  3. import csv
  4. import numpy as np
  5. from tqdm import tqdm
  6. from sklearn.metrics import confusion_matrix, accuracy_score, classification_report
  7. from sklearn.model_selection import StratifiedKFold
  8. import torch
  9. import torch.nn as nn
  10. from torch.utils.data import DataLoader, Dataset
  11. import datetime
  12. # Hybrid Model for NAEL Project to decode the ALzheimer's disease from CJD and CNTRL.
  13. class CNNTransformerEEG(nn.Module):
  14. def __init__(self, n_channels=19, n_times=1280, n_classes=3,
  15. cnn_out_channels=64, n_heads=2, n_layers=2):
  16. super().__init__()
  17. # ---- Simple CNN feature extractor (NO padding) ----
  18. self.cnn = nn.Sequential(
  19. nn.Conv1d(
  20. in_channels=n_channels,
  21. out_channels=cnn_out_channels,
  22. kernel_size=25,
  23. padding=0
  24. ),
  25. nn.BatchNorm1d(cnn_out_channels),
  26. nn.ELU(),
  27. nn.MaxPool1d(kernel_size=4),
  28. nn.Conv1d(
  29. in_channels=cnn_out_channels,
  30. out_channels=cnn_out_channels,
  31. kernel_size=15,
  32. padding=0
  33. ),
  34. nn.BatchNorm1d(cnn_out_channels),
  35. nn.ELU(),
  36. nn.MaxPool1d(kernel_size=4),
  37. )
  38. # ---- Transformer encoder ----
  39. encoder_layer = nn.TransformerEncoderLayer(
  40. d_model=cnn_out_channels,
  41. nhead=n_heads,
  42. batch_first=True
  43. )
  44. self.transformer = nn.TransformerEncoder(
  45. encoder_layer, num_layers=n_layers
  46. )
  47. # ---- Classifier ----
  48. self.classifier = nn.Linear(cnn_out_channels, n_classes)
  49. def forward(self, x):
  50. # x: (B, 19, 1280)
  51. feats = self.cnn(x) # (B, C, T')
  52. feats = feats.permute(0, 2, 1) # (B, T', C)
  53. feats = self.transformer(feats) # (B, T', C)
  54. pooled = feats.mean(dim=1) # (B, C)
  55. out = self.classifier(pooled) # (B, 3)
  56. return out
  57. ### LOAD AND CLEAN DATA AND SAVE IT TO FOLLOWING FORMAT.
  58. #
  59. # Load cleaned .npz EEG files, split into 5-second epochs.
  60. # CLEANED AND PROCESSED DATA SHOULD BE:
  61. # data_list: list of np.arrays (n_epochs, n_channels, epoch_samples)
  62. # labels_list: list of np.arrays (n_epochs,)
  63. # subject_ids: list of subject identifiers
  64. ### LOSO split
  65. def loso_split(data_list, labels_list, subject_ids):
  66. """
  67. Generator for Leave-One-Subject-Out (LOSO) splits.
  68. Yields (X_train, y_train, X_test, y_test, subject_id)
  69. """
  70. n_subjects = len(subject_ids)
  71. for i in range(n_subjects):
  72. X_test = data_list[i]
  73. y_test = labels_list[i]
  74. X_train = np.concatenate([data_list[j] for j in range(n_subjects) if j != i], axis=0)
  75. y_train = np.concatenate([labels_list[j] for j in range(n_subjects) if j != i], axis=0)
  76. print("subject in the training and testing", )
  77. yield X_train, y_train, X_test, y_test, subject_ids[i]
  78. def save_onnx_model(model, n_channels, n_times, filename):
  79. model.eval()
  80. dummy_input = torch.randn(1, n_channels, n_times)
  81. torch.onnx.export(
  82. model,
  83. dummy_input,
  84. filename,
  85. input_names=["input"],
  86. output_names=["output"],
  87. dynamic_axes={"input":{0:"batch"}, "output":{0:"batch"}},
  88. )
  89. print(f"Saved ONNX model: {filename}")
  90. # ------- Small dataset wrapper for DataLoader ----------
  91. class ADDatasetTorch(Dataset):
  92. """
  93. Torch Dataset wrapper for (n_epochs, n_channels, n_times) arrays.
  94. Returns (x, y) where x: float32 (n_channels, n_times)
  95. """
  96. def __init__(self, X, y):
  97. self.X = X.astype(np.float32)
  98. self.y = y.astype(np.int64)
  99. def __len__(self):
  100. return self.X.shape[0]
  101. def __getitem__(self, idx):
  102. x = self.X[idx]
  103. y = int(self.y[idx])
  104. # models can accept (B, C, T) or (B, 1, C, T) - handled by model forward
  105. return torch.from_numpy(x), torch.tensor(y, dtype=torch.long)
  106. def loso_train_and_eval(
  107. data_list, labels_list, subject_ids,
  108. make_model_fn,
  109. out_dir,
  110. batch_size,
  111. n_epochs,
  112. lr,
  113. weight_decay,
  114. device,
  115. k_folds_train
  116. ):
  117. import os, json, csv, time, datetime
  118. import numpy as np
  119. import torch
  120. import torch.nn as nn
  121. from torch.utils.data import DataLoader
  122. from sklearn.model_selection import StratifiedKFold
  123. from sklearn.metrics import (
  124. accuracy_score,
  125. confusion_matrix,
  126. classification_report,
  127. balanced_accuracy_score,
  128. precision_recall_fscore_support,
  129. roc_auc_score
  130. )
  131. from sklearn.preprocessing import label_binarize
  132. per_subject_metrics = []
  133. # ---------- Global aggregators ----------
  134. all_confusion_matrices = []
  135. all_subject_accs = []
  136. all_subject_bal_accs = []
  137. all_subject_f1s = []
  138. all_subject_prec = []
  139. all_subject_recall = []
  140. all_subject_auc = []
  141. all_inference_times = []
  142. # Create global label list for confusion matrix ordering
  143. label_set = sorted(list({lab for labs in labels_list for lab in labs.tolist()})) \
  144. if isinstance(labels_list[0], np.ndarray) else [0, 1, 2]
  145. labels_for_cm = label_set
  146. for X_train_all, y_train_all, X_test, y_test, subject_id in loso_split(
  147. data_list, labels_list, subject_ids):
  148. print("\n==========================")
  149. print("Held-out test subject:", subject_id)
  150. print("==========================")
  151. # ensure numpy arrays
  152. X_train_all = np.asarray(X_train_all)
  153. y_train_all = np.asarray(y_train_all)
  154. X_test = np.asarray(X_test)
  155. y_test = np.asarray(y_test)
  156. n_channels = X_train_all.shape[1]
  157. n_times = X_train_all.shape[2]
  158. print(f"Total training samples {len(X_train_all)} and test samples {len(X_test)}")
  159. # ---------- K-Fold on training set ----------
  160. skf = StratifiedKFold(
  161. n_splits=k_folds_train,
  162. shuffle=True,
  163. random_state=RANDOM_SEED
  164. )
  165. best_val_acc_overall = -np.inf
  166. best_model_state_overall = None
  167. early_stop_patience = 5
  168. early_stop_min_delta = 1e-4
  169. for fold_idx, (tr_idx, val_idx) in enumerate(
  170. skf.split(X_train_all, y_train_all), start=1):
  171. print(f"\n--- Train CV fold {fold_idx}/{k_folds_train} ---")
  172. X_tr, y_tr = X_train_all[tr_idx], y_train_all[tr_idx]
  173. X_val, y_val = X_train_all[val_idx], y_train_all[val_idx]
  174. train_loader = DataLoader(
  175. ADDatasetTorch(X_tr, y_tr),
  176. batch_size=batch_size,
  177. shuffle=True
  178. )
  179. val_loader = DataLoader(
  180. ADDatasetTorch(X_val, y_val),
  181. batch_size=batch_size,
  182. shuffle=False
  183. )
  184. # instantiate model fresh
  185. model = make_model_fn.to(device)
  186. opt = torch.optim.Adam(
  187. model.parameters(),
  188. lr=lr,
  189. weight_decay=weight_decay
  190. )
  191. criterion = nn.CrossEntropyLoss()
  192. best_val_acc_fold = -np.inf
  193. best_state_fold = None
  194. epochs_no_improve = 0
  195. for epoch in range(1, n_epochs + 1):
  196. # ---- Training ----
  197. model.train()
  198. for xb, yb in train_loader:
  199. xb, yb = xb.to(device), yb.to(device)
  200. opt.zero_grad()
  201. loss = criterion(model(xb), yb)
  202. loss.backward()
  203. opt.step()
  204. # ---- Validation ----
  205. model.eval()
  206. preds, gts = [], []
  207. with torch.no_grad():
  208. for xb, yb in val_loader:
  209. xb = xb.to(device)
  210. out = model(xb)
  211. preds.append(out.argmax(1).cpu().numpy())
  212. gts.append(yb.numpy())
  213. preds = np.concatenate(preds)
  214. gts = np.concatenate(gts)
  215. val_acc = accuracy_score(gts, preds)
  216. print(f"[Fold {fold_idx} | Epoch {epoch}] Val Acc: {val_acc:.4f}")
  217. if val_acc > best_val_acc_fold + early_stop_min_delta:
  218. best_val_acc_fold = val_acc
  219. best_state_fold = {
  220. k: v.cpu().clone()
  221. for k, v in model.state_dict().items()
  222. }
  223. epochs_no_improve = 0
  224. else:
  225. epochs_no_improve += 1
  226. if epochs_no_improve >= early_stop_patience:
  227. print(f"[Fold {fold_idx}] Early stopping triggered")
  228. break
  229. if best_val_acc_fold > best_val_acc_overall:
  230. best_val_acc_overall = best_val_acc_fold
  231. best_model_state_overall = best_state_fold
  232. del model, opt
  233. torch.cuda.empty_cache()
  234. # ---------- Final model for held-out subject ----------
  235. model_final = CNNTransformerEEG(
  236. n_channels=n_channels,
  237. n_times=n_times,
  238. n_classes=N_CLASSES
  239. ).to(device)
  240. if best_model_state_overall is not None:
  241. model_final.load_state_dict(best_model_state_overall)
  242. model_final.eval()
  243. # ---------- Save per-subject directory ----------
  244. subj_dir = os.path.join(out_dir, f"subject_{subject_id}")
  245. os.makedirs(subj_dir, exist_ok=True)
  246. # ---- TorchScript (for Edge-AI) ----
  247. script_path = os.path.join(subj_dir, f"scripted_best_model_{subject_id}.pt")
  248. scripted_model = torch.jit.script(model_final)
  249. scripted_model.save(script_path)
  250. print("Saved scripted model:", script_path)
  251. # ---- ONNX export (optional Edge runtime) ----
  252. try:
  253. dummy = torch.randn(1, n_channels, n_times).to(device)
  254. onnx_path = os.path.join(subj_dir, f"best_model_subject_{subject_id}.onnx")
  255. torch.onnx.export(
  256. model_final,
  257. dummy,
  258. onnx_path,
  259. input_names=["input"],
  260. output_names=["output"],
  261. dynamic_axes={"input": {0: "batch"}, "output": {0: "batch"}},
  262. opset_version=11
  263. )
  264. print("Saved ONNX model:", onnx_path)
  265. except Exception as e:
  266. print("ONNX export failed:", e)
  267. # ---------- Evaluate on held-out subject ----------
  268. test_loader = DataLoader(
  269. ADDatasetTorch(X_test, y_test),
  270. batch_size=batch_size,
  271. shuffle=False
  272. )
  273. preds, gts, probs_list = [], [], []
  274. start_time = time.time()
  275. with torch.no_grad():
  276. for xb, yb in test_loader:
  277. xb = xb.to(device)
  278. out = model_final(xb)
  279. prob = torch.softmax(out, dim=1).cpu().numpy() # probabilities
  280. pred = out.argmax(1).cpu().numpy()
  281. preds.append(pred)
  282. gts.append(yb.numpy())
  283. probs_list.append(prob)
  284. inference_time = time.time() - start_time
  285. preds = np.concatenate(preds)
  286. gts = np.concatenate(gts)
  287. probs = np.concatenate(probs_list)
  288. acc = accuracy_score(gts, preds)
  289. bal_acc = balanced_accuracy_score(gts, preds)
  290. precision, recall, f1, _ = precision_recall_fscore_support(
  291. gts, preds, average="macro", zero_division=0
  292. )
  293. cm = confusion_matrix(gts, preds, labels=labels_for_cm)
  294. avg_inf_time = inference_time / len(gts)
  295. # ---------- Compute per-subject ROC-AUC ----------
  296. y_true_bin = label_binarize(gts, classes=labels_for_cm)
  297. try:
  298. subject_auc = roc_auc_score(y_true_bin, probs, average="macro", multi_class="ovr")
  299. except ValueError:
  300. subject_auc = float("nan")
  301. print(f"Subject {subject_id} macro ROC-AUC: {subject_auc:.4f}")
  302. # ---- Save test input & labels for Edge-AI testing ----
  303. np.save(os.path.join(subj_dir, f"test_input_subject_{subject_id}.npy"),
  304. X_test.astype(np.float32))
  305. np.save(os.path.join(subj_dir, f"test_labels_subject_{subject_id}.npy"),
  306. y_test.astype(np.int64))
  307. # ---------- Collect metrics ----------
  308. per_subject_metrics.append({
  309. "subject_id": subject_id,
  310. "n_test_epochs": int(len(gts)),
  311. "test_acc": acc,
  312. "balanced_acc": bal_acc,
  313. "macro_f1": f1,
  314. "precision": precision,
  315. "recall": recall,
  316. "roc_auc": subject_auc,
  317. "confusion_matrix": cm.tolist(),
  318. "inference_time_sec": inference_time,
  319. "avg_time_per_epoch_sec": avg_inf_time
  320. })
  321. all_confusion_matrices.append(cm)
  322. all_subject_accs.append(acc)
  323. all_subject_bal_accs.append(bal_acc)
  324. all_subject_f1s.append(f1)
  325. all_subject_prec.append(precision)
  326. all_subject_recall.append(recall)
  327. all_subject_auc.append(subject_auc)
  328. all_inference_times.append(avg_inf_time)
  329. del model_final
  330. torch.cuda.empty_cache()
  331. # ---------- Aggregated results ----------
  332. agg_cm = np.sum(np.stack(all_confusion_matrices), axis=0)
  333. mean_acc = float(np.mean(all_subject_accs))
  334. std_acc = float(np.std(all_subject_accs))
  335. mean_prec = float(np.mean(all_subject_prec))
  336. std_prec = float(np.std(all_subject_prec))
  337. mean_recall = float(np.mean(all_subject_recall))
  338. std_recall = float(np.std(all_subject_recall))
  339. ci95 = float(1.96 * std_acc / np.sqrt(len(all_subject_accs)))
  340. results = {
  341. "per_subject": per_subject_metrics,
  342. "aggregate": {
  343. "mean_accuracy": mean_acc,
  344. "std_accuracy": std_acc,
  345. "mean_prec": mean_prec,
  346. "std_prec": std_prec,
  347. "mean_recall": mean_recall,
  348. "std_recall": std_recall,
  349. "ci95_accuracy": ci95,
  350. "mean_balanced_accuracy": float(np.mean(all_subject_bal_accs)),
  351. "mean_macro_f1": float(np.mean(all_subject_f1s)),
  352. "mean_macro_roc_auc": float(np.nanmean(all_subject_auc)),
  353. "aggregated_confusion_matrix": agg_cm.tolist(),
  354. "mean_inference_time_sec": float(np.mean(all_inference_times))
  355. }
  356. }
  357. os.makedirs(out_dir, exist_ok=True)
  358. timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
  359. # ---- Save JSON ----
  360. json_path = os.path.join(out_dir, f"loso_results_{timestamp}.json")
  361. with open(json_path, "w") as f:
  362. json.dump(results, f, indent=2)
  363. print("Saved JSON results:", json_path)
  364. # ---- Save CSV summary ----
  365. csv_path = os.path.join(out_dir, f"loso_summary_{timestamp}.csv")
  366. with open(csv_path, "w", newline="") as f:
  367. writer = csv.writer(f)
  368. writer.writerow([
  369. "subject_id",
  370. "n_test_epochs",
  371. "test_acc",
  372. "balanced_acc",
  373. "macro_f1",
  374. "precision",
  375. "recall",
  376. "roc_auc",
  377. "avg_time_per_epoch_sec"
  378. ])
  379. for r in per_subject_metrics:
  380. writer.writerow([
  381. r["subject_id"],
  382. r["n_test_epochs"],
  383. r["test_acc"],
  384. r["balanced_acc"],
  385. r["macro_f1"],
  386. r["precision"],
  387. r["recall"],
  388. r["roc_auc"],
  389. r["avg_time_per_epoch_sec"]
  390. ])
  391. print("Saved CSV summary:", csv_path)
  392. return per_subject_metrics
  393. # ---------- To Run the models ----------
  394. if __name__ == "__main__":
  395. ROOT_DIR = "/home/.../EEG_AD_CUT/working/cleaned_filtered/" # folder with AD/, CJD/, CNTRL/ subfolders containing .npz
  396. MODEL_NAME = "hybrid"
  397. OUT_DIR = "hybrid_loso_results"
  398. BATCH_SIZE = 64
  399. LR = 1e-3
  400. WEIGHT_DECAY = 1e-4
  401. N_EPOCHS = 30
  402. K_FOLDS_TRAIN = 5 # k-fold CV on training set to choose best fold model
  403. DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
  404. SFREQ = 256
  405. EPOCH_LEN_S = 5
  406. N_CLASSES = 3 # AD, CJD, CNTRL
  407. RANDOM_SEED = 2025
  408. # -----------------------------------
  409. np.random.seed(RANDOM_SEED)
  410. torch.manual_seed(RANDOM_SEED)
  411. os.makedirs(OUT_DIR, exist_ok=True)
  412. # load data using your provided loader
  413. #data_list, labels_list, subject_ids = YOUR DATA CLEANING FUNCTION TO CALL
  414. # Sanity check
  415. print("Loaded subjects:", subject_ids)
  416. print([d.shape for d in data_list])
  417. # CNN + DNN WITH TRANSFORMEER
  418. model = CNNTransformerEEG(n_channels=19, n_times=1280, n_classes=3) # CALL PROPOSED HYBRID MODEL
  419. # tHIS WILL CREATE AND SAVE THE LOSO RESULTS AT YOUR CREATED DIRECTORY
  420. results = loso_train_and_eval(data_list, labels_list, subject_ids, model,
  421. out_dir=OUT_DIR, batch_size=BATCH_SIZE, n_epochs=N_EPOCHS,
  422. lr=LR, weight_decay=WEIGHT_DECAY, device=DEVICE, k_folds_train=K_FOLDS_TRAIN)
  423. print("LOSO finished. Summary per-subject saved to disk.")

EEG_fair_nael.py at commit 4d0647a, no license · at the source

Overview

Authors: Muhammad Suffian1, Cosimo Ieracitano2, Nadia Mammone1, Angelo Pascarella3,4, Edoardo Ferlazzo3,4, Francesco Carlo Morabito1
  1. DICEAM, Mediterranea University of Reggio Calabria, 89125 Reggio Calabria, Italy; (N.M.); (F.C.M.)
  2. DICMaPI, University of Naples “Federico II”, 80125 Naples, Italy
  3. Department of Medical and Surgical Sciences, Magna Græcia University of Catanzaro, 88100 Catanazaro, Italy; (A.P.); (E.F.)
  4. Regional Epilepsy Centre, Great Metropolitan “Bianchi-Melacrino-Morelli” Hospital, 89124 Reggio Calabria, Italy
Journal: Sensors (Basel, Switzerland), volume 26, issue 10, article 3274
Dates: received 16 April 2026; accepted 19 May 2026; published online 21 May 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.3390/s26103274 · PMID 42198082 · PMCID PMC13211057 · OpenAlex W7161953903
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: EEG (modality), human (organism), other condition (population), Alzheimer's / dementia (population)
Methods: Spectral & time-frequency, Preprocessing, Connectivity, Smoothing, state filtering, decompositions, Machine learning
Keywords: Alzheimer’s disease (AD), Creutzfeldt–Jakob disease (CJD), electroencephalography (EEG), brain-computer interface, convolutional neural networks, transformers, edge-AI, green AI
MeSH: Alzheimer Disease*, Artificial Intelligence*, Creutzfeldt-Jakob Syndrome*, Electroencephalography*, Algorithms, Convolutional Neural Networks, Deep Learning, Female, Humans, Neural Networks, Computer, Signal Processing, Computer-Assisted (* major topic)
Topic: EEG and Brain-Computer Interfaces (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: Future Artificial Intelligence Research—FAIR-PE0000013 project CUP (C33C23001040005); European Union under “NextGenerationEU”; Italian Ministry of University and Research (MUR); ”Italia Domani National Recovery and Resilience Plan (PNRR)”; Italian Ministry of Health (T3-AN-15, CUP C33C22000390006, CUP MASTER H53C22000640006); #NEXTGENERATIONEU (NGEU) and funded by the Ministry of University and Research (MUR), National Recovery and Resilience Plan (NRRP) (PE0000006, DN. 1553 11.10.2022)
Citations: not cited yet (Europe PMC); 26 references in the paper

Abstract

Electroencephalography (EEG) has emerged as a promising non-invasive tool for the diagnosis of neurodegenerative disorders, and artificial intelligence (AI) has shown significant potential in this domain, as demonstrated by recent studies. However, strong inter-subject variability remains a major challenge, limiting the ability of AI-based models to learn disease-specific features that generalize across individuals, thereby hindering the development of clinically deployable subject-independent systems. In this work, we propose a cross-subject, AI-based EEG classification framework to distinguish between Alzheimer’s disease (AD), Creutzfeldt–Jakob disease (CJD), and healthy control subjects using clinical EEG data collected from a local hospital. A lightweight hybrid deep learning model is developed, combining a two-layer one-dimensional convolutional neural network with a two-layer Transformer encoder to capture both local temporal patterns and long-range dependencies in EEG signals. The proposed model achieves an average classification accuracy of 97%, representing a 3% improvement over a baseline model evaluated on a cohort of 36 subjects. To assess deployment feasibility in real-time clinical settings, the trained model is implemented and evaluated on an edge-AI platform (NVIDIA Jetson AGX Orin), demonstrating energy efficiency for the inference with a compact model footprint. These results indicate that the proposed approach provides an accurate, efficient, and practically deployable solution for subject-independent EEG-based classification of neurological disorders.

Reproduced under the paper's license (CC BY), from the paper cited above.

Repository

Its files are read in the Code ↔ Paper reader above, with 3 matches between paragraphs and lines of code.

ai-lab-unirc/fair-nael-database

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 4d0647a7ab6317d58c318a932924bfdeeada9fec, 31 March 2026
Languages: Python (3)
Size: 6 files, 3 scripts
Software Heritage: not archived
Found in: the text, “1. Introduction”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: NumPy (3 files), NiBabel (1 file), pydicom (1 file), PyTorch (1 file), scikit-learn (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
4 files

The paper's code and data availability statement is in the Data section.

Tracing map

Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.

What the map holds:

  • 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 3 scripts, each with its path and the digest of its content;
  • 3 matches between paragraphs of the paper and lines of the code (method lexical-v1);
  • neither the text of the paper nor the code itself.

Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.

Data

No dataset and no data link were found in the paper.

Data Availability Statement

The analyzed dataset is available at the following link: https://github.com/AI-Lab-UniRC/FAIR-NAEL-Database (accessed on 7 April 2026).

Reproduced under the paper's license (CC BY), from the paper cited above.

Versions

The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.

Version 1, 28 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 6 authors, 8 keywords, 11 MeSH terms, 6 funders, 19 references.

Cite

This paper

Suffian, M., Ieracitano, C., Mammone, N., Pascarella, A., Ferlazzo, E., & Morabito, F. C. (2026). An EEG-Based Edge-AI Framework for Alzheimer's and Creutzfeldt-Jakob Disease Classification. Sensors (Basel, Switzerland), 26(10), 3274. https://doi.org/10.3390/s26103274

BibTeX

@article{suffian2026eeg,
author = {Suffian, Muhammad and Ieracitano, Cosimo and Mammone, Nadia and Pascarella, Angelo and Ferlazzo, Edoardo and Morabito, Francesco Carlo},
title = {{An EEG-Based Edge-AI Framework for Alzheimer's and Creutzfeldt-Jakob Disease Classification}},
journal = {Sensors (Basel, Switzerland)},
year = {2026},
month = may,
volume = {26},
number = {10},
pages = {3274},
publisher = {Multidisciplinary Digital Publishing Institute (MDPI)},
issn = {1424-8220},
doi = {10.3390/s26103274},
url = {https://doi.org/10.3390/s26103274},
pmid = {42198082},
pmcid = {PMC13211057}
}

RIS

TY - JOUR
AU - Suffian, Muhammad
AU - Ieracitano, Cosimo
AU - Mammone, Nadia
AU - Pascarella, Angelo
AU - Ferlazzo, Edoardo
AU - Morabito, Francesco Carlo
TI - An EEG-Based Edge-AI Framework for Alzheimer's and Creutzfeldt-Jakob Disease Classification
T2 - Sensors (Basel, Switzerland)
J2 - Sensors (Basel)
PY - 2026
DA - 2026/05/21
VL - 26
IS - 10
SP - 3274
SN - 1424-8220
PB - Multidisciplinary Digital Publishing Institute (MDPI)
DO - 10.3390/s26103274
UR - https://doi.org/10.3390/s26103274
LA - en
ER -

CSL-JSON

{
"id": "10.3390/s26103274",
"type": "article-journal",
"title": "An EEG-Based Edge-AI Framework for Alzheimer's and Creutzfeldt-Jakob Disease Classification",
"container-title": "Sensors (Basel, Switzerland)",
"author": [
{
"family": "Suffian",
"given": "Muhammad"
},
{
"family": "Ieracitano",
"given": "Cosimo"
},
{
"family": "Mammone",
"given": "Nadia"
},
{
"family": "Pascarella",
"given": "Angelo"
},
{
"family": "Ferlazzo",
"given": "Edoardo"
},
{
"family": "Morabito",
"given": "Francesco Carlo"
}
],
"container-title-short": "Sensors (Basel)",
"volume": "26",
"issue": "10",
"page": "3274",
"DOI": "10.3390/s26103274",
"PMID": "42198082",
"PMCID": "PMC13211057",
"ISSN": "1424-8220",
"publisher": "Multidisciplinary Digital Publishing Institute (MDPI)",
"URL": "https://doi.org/10.3390/s26103274",
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
21
]
]
}
}

The tracing map gets a citation of its own once an author has validated it and it has a DOI.

Similar papers

The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.

[1] doi:10.1016/j.ebiom.2025.105700
HMGA1 deficiency: a pathogenic link between tau pathology and insulin resistance.
Journal: EBioMedicine
In common: Alzheimer's / dementia, other condition, 1 reference, author Angelo Pascarella
[2] doi:10.1038/s41598-025-98389-y [code]
Retraining and evaluation of machine learning and deep learning models for seizure classification from EEG data.
Journal: Scientific reports
In common: pydicom, NiBabel, scikit-learn, 1 other tool, EEG, 1 reference
[3] doi:10.1038/s41746-026-02778-0 [code]
Trust-gated synthetic EEG augmentation reduces performance drops when generalizing to new patients.
Journal: NPJ digital medicine
In common: PyTorch, scikit-learn, NumPy, EEG, 3 references
[4] doi:10.1038/s41598-025-30848-y [code]
Critical role of EEG signals in assessment of sex-specific insights in neurological diagnostics via machine learning approach.
Journal: Scientific reports
In common: PyTorch, scikit-learn, NumPy, EEG, 3 references
[5] doi:10.1016/j.nicl.2023.103482 [code]
An extended clinical EEG dataset with 15,300 automatically labelled recordings for pathology decoding.
Journal: NeuroImage. Clinical
In common: PyTorch, scikit-learn, NumPy, EEG, 3 references
[6] doi:10.3389/fnins.2026.1874302 [code]
Architecture-data matching for EEG-EMG decoding: compact deep models match classical spectral decoders on the WAY-EEG-GAL grasp-and-lift dataset.
Journal: Frontiers in neuroscience
In common: PyTorch, scikit-learn, NumPy, EEG, 3 references
[7] doi:10.34133/cbsystems.0379 [code]
Augmenting Electroencephalogram Transformer for Steady-State Visually Evoked Potential-Based Brain-Computer Interfaces.
Journal: Cyborg and bionic systems (Washington, D.C.)
In common: PyTorch, scikit-learn, NumPy, EEG, 3 references
[8] doi:10.3390/bioengineering12070775 [code]
MCTGNet: A Multi-Scale Convolution and Hybrid Attention Network for Robust Motor Imagery EEG Decoding.
Journal: Bioengineering (Basel, Switzerland)
In common: PyTorch, scikit-learn, NumPy, EEG, 3 references
[9] doi:10.1016/j.patter.2025.101182 [code]
GREEN: A lightweight architecture using learnable wavelets and Riemannian geometry for biomarker exploration with EEG signals.
Journal: Patterns (New York, N.Y.)
In common: PyTorch, scikit-learn, NumPy, EEG, 3 references
[10] doi:10.1038/s41598-025-28070-x
NeuroFusionNet: a hybrid EEG feature fusion framework for accurate and explainable Alzheimer's Disease detection.
Journal: Scientific reports
In common: Alzheimer's / dementia, EEG, 4 references

Contribute

The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.

Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.

Add the badge to the code's README

OSCR: the badge of this paper

If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.

Markdown
<!-- oscr-badge:start -->
[![OSCR](https://openscicode.org/badge/doi/10.3390/s26103274.svg)](https://openscicode.org/badge/doi/10.3390/s26103274)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.3390/s26103274.svg
   :target: https://openscicode.org/badge/doi/10.3390/s26103274
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.3390/s26103274"><img src="https://openscicode.org/badge/doi/10.3390/s26103274.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->

On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".

If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.

Request its removal

To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).

Discussion, reproductions, activity

Discussion: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.

Report a mismatch between the code and the paper · Report a code error (signed in)

Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.

Report a reproduction failure (signed in)

Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.