OSCR

Epilepsy-IEDs: An automated machine learning model for detecting interictal epileptiform discharges from scalp electroencephalograms.

Code ↔ Paper

2 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 2 matches · all tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
  1. [1] § STAR★Methods › Method details › Machine learning ↔ linear-regression/demo.m, the whole file · a weak match · score 0.67 · linear regression, gradient descent, model parameters, predicts
  2. [2] § STAR★Methods › Method details › Machine learning ↔ linear-regression/linear_regression_train.m, the whole file · a weak match · score 0.65 · linear regression, gradient descent, model parameters

Paper

Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

MATLAB · 103 lines · 3.2 KB · MIT · 1 match

  1. % Clear variables and a screen.
  2. clear; close all; clc;
  3. % Loading training data from file ----------------------------------------------
  4. fprintf('Loading the training data from file...\n\n');
  5. % Loading training data from file.
  6. data = load('house_prices.csv');
  7. % Split data into features and results.
  8. X = data(:, 1:2);
  9. y = data(:, 3);
  10. % Plotting training data -------------------------------------------------------
  11. fprintf('Plotting the training data...\n\n');
  12. % Split the figure on 2x2 sectors.
  13. % Start drawing in first sector.
  14. subplot(2, 2, 1);
  15. scatter3(X(:, 1), X(:, 2), y, [], y(:), 'o');
  16. title('Training Set');
  17. xlabel('Size');
  18. ylabel('Rooms');
  19. zlabel('Price');
  20. % Running linear regression ----------------------------------------------------
  21. fprintf('Running linear regression...\n');
  22. % Setup regularization parameter.
  23. lambda = 0;
  24. alpha = 0.1;
  25. num_iterations = 50;
  26. [theta mu sigma X_normalized J_history] = linear_regression_train(X, y, alpha, lambda, num_iterations);
  27. fprintf('- Initial cost: %f\n', J_history(1));
  28. fprintf('- Optimized cost: %f\n', J_history(end));
  29. fprintf('- Theta (with normalization):\n');
  30. fprintf('-- %f\n', theta);
  31. fprintf('\n');
  32. % Calculate model parameters using normal equation -----------------------------
  33. fprintf('Calculate model parameters using normal equation...\n');
  34. X_normal = [ones(size(X, 1), 1) X];
  35. theta_normal = normal_equation(X_normal, y);
  36. normal_cost = cost_function(X_normal, y, theta_normal, lambda);
  37. fprintf('- Normal function cost: %f\n', normal_cost);
  38. fprintf('- Theta (without normalization):\n');
  39. fprintf('-- %f\n', theta_normal);
  40. fprintf('\n');
  41. % Plotting normalized training data --------------------------------------------
  42. fprintf('Plotting normalized training data...\n\n');
  43. % Start drawing in second sector.
  44. subplot(2, 2, 2);
  45. scatter3(X_normalized(:, 2), X_normalized(:, 3), y, [], y(:), 'o');
  46. title('Normalized Training Set');
  47. xlabel('Normalized Size');
  48. ylabel('Normalized Rooms');
  49. zlabel('Price');
  50. % Draw gradient descent progress ------------------------------------------------
  51. fprintf('Plot gradient descent progress...\n\n');
  52. % Continue plotting to the right area.
  53. subplot(2, 2, 3);
  54. plot(1:num_iterations, J_history);
  55. xlabel('Iteration');
  56. ylabel('J(\theta)');
  57. title('Gradient Descent Progress');
  58. % Plotting hypothesis plane on top of training set -----------------------------
  59. fprintf('Plotting hypothesis plane on top of training set...\n\n');
  60. % Get apartment size and rooms boundaries.
  61. apt_sizes = X_normalized(:, 2);
  62. apt_rooms = X_normalized(:, 3);
  63. apt_size_range = linspace(min(apt_sizes), max(apt_sizes), 10);
  64. apt_rooms_range = linspace(min(apt_rooms), max(apt_rooms), 10);
  65. % Calculate predictions for each possible combination of rooms number and appartment size.
  66. apt_prices = zeros(length(apt_size_range), length(apt_rooms_range));
  67. for apt_size_index = 1:length(apt_size_range)
  68. for apt_room_index = 1:length(apt_rooms_range)
  69. X = [1, apt_size_range(apt_size_index), apt_rooms_range(apt_room_index)];
  70. apt_prices(apt_size_index, apt_room_index) = hypothesis(X, theta);
  71. end
  72. end
  73. % Plot the plane on top of training data to see how it feets them.
  74. subplot(2, 2, 2);
  75. hold on;
  76. mesh(apt_size_range, apt_rooms_range, apt_prices);
  77. legend('Training Examples', 'Hypothesis Plane')
  78. hold off;

demo.m at commit 34a3893, under MIT · at the source

Overview

Authors: Ran Ao1,2, Ping Zhan1,2, Guojing Wang1,2, Hongyun Liu1,2, Weidong Wang1,2
  1. Medical Innovation Research Division, Chinese PLA General Hospital, Beijing 100853, China
  2. Key Laboratory of Biomedical Engineering and Translational Medicine, Ministry of Industry and Information Technology, Beijing 100853, China
Journal: iScience, volume 29, issue 7, article 116408
Dates: received 3 January 2026; accepted 29 May 2026; published online 22 June 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1016/j.isci.2026.116408 · PMID 42382995 · PMCID PMC13316274 · OpenAlex W7165574404
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: EEG (modality), human (organism), epilepsy (population), methods / tools (subfield)
Methods: Preprocessing, Connectivity, Statistics, Smoothing, state filtering, decompositions, Machine learning, Complexity, Spectral & time-frequency, Physiology & signal measures
Keywords: Neuroscience, Sensory neuroscience, Techniques in neuroscience, Machine learning
Topic: EEG and Brain-Computer Interfaces (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Citations: not cited yet (Europe PMC); 48 references in the paper

Abstract

Interictal epileptiform discharges (IEDs) are essential for epilepsy diagnosis, yet visual electroencephalogram (EEG) analysis remains subjective and laborious. To address this, we developed Epilepsy-IEDs, an automated machine learning model for IED detection. Trained on 141 scalp EEG recordings (2,597 IEDs and 4,633 non-IEDs), the model was evaluated using four algorithms, with a separate daytime analysis to control for sleep effects. The Extreme Gradient Boosting (XGBoost)-based model achieved the highest performance, with sensitivities of 84.6% (area under the curve [AUC] = 0.966) and 87.1% (AUC = 0.973) on the full and daytime datasets, respectively, and demonstrated robust generalization on held-out epilepsy patients (AUC = 0.878–0.890), with a specificity of 71.54% on a non-epilepsy cohort. A simplified 10-feature variant maintained strong performance (AUC = 0.959). The Epilepsy-IEDs model provides an accurate, interpretable tool for IED detection, with a streamlined version suitable for integration into clinical EEG workflows.

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

Repositories

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

ylooliu/Epilepsy-IEDs

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 2ae2350ecbd3e2706e012a297e06c6c5024ef321, 23 April 2026
Size: 7 files
Software Heritage: not archived
Found in: “Data and code availability”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
1 file

Zenodo 20404907

License: CC-BY-4.0
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Size: 1 file
Software Heritage: not checked
Found in: “Data and code availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
  • 27 September 2026: the link answers (HTTP 200)
1 file

trekhleb/machine-learning-octave

License: MIT
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 34a3893d67e7c1deeeb34ac21e7cff391aa9f35d, 22 November 2025
Languages: MATLAB (48)
Size: 201 files, 48 scripts
Software Heritage: archived
Found in: the text, “Key resources table”
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Tools: Optimization Toolbox (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
50 files

ajaiantilal/randomforest-matlab

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 11344de678dd9595d7bcff2a6ab6055c01e1fbd6, 19 April 2016
Languages: MATLAB (17), C++ (14), C (2), C/C++ (2)
Size: 66 files, 35 scripts
Software Heritage: archived
Found in: the text, “Key resources table”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
35 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:

  • 4 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 83 scripts, each with its path and the digest of its content;
  • 2 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 and code availability

• All data presented within this study are available in key resources table. • All original code has been deposited at GitHub (https://github.com/ylooliu/Epilepsy-IEDs) and Zenodo (https://doi.org/10.5281/zenodo.20404907) and is publicly available as of the date of publication (see key resources table). • Any additional information required to reanalyze the data reported in this work paper is available from the lead contact upon request.

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, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 5 authors, 4 keywords, 1 funder, 47 references.

Cite

This paper

Ao, R., Zhan, P., Wang, G., Liu, H., & Wang, W. (2026). Epilepsy-IEDs: An automated machine learning model for detecting interictal epileptiform discharges from scalp electroencephalograms. iScience, 29(7), 116408. https://doi.org/10.1016/j.isci.2026.116408

BibTeX

@article{ao2026epilepsy,
author = {Ao, Ran and Zhan, Ping and Wang, Guojing and Liu, Hongyun and Wang, Weidong},
title = {{Epilepsy-IEDs: An automated machine learning model for detecting interictal epileptiform discharges from scalp electroencephalograms}},
journal = {iScience},
year = {2026},
month = jun,
volume = {29},
number = {7},
pages = {116408},
publisher = {Elsevier},
issn = {2589-0042},
doi = {10.1016/j.isci.2026.116408},
url = {https://doi.org/10.1016/j.isci.2026.116408},
pmid = {42382995},
pmcid = {PMC13316274}
}

RIS

TY - JOUR
AU - Ao, Ran
AU - Zhan, Ping
AU - Wang, Guojing
AU - Liu, Hongyun
AU - Wang, Weidong
TI - Epilepsy-IEDs: An automated machine learning model for detecting interictal epileptiform discharges from scalp electroencephalograms
T2 - iScience
J2 - iScience
PY - 2026
DA - 2026/06/22
VL - 29
IS - 7
SP - 116408
SN - 2589-0042
PB - Elsevier
DO - 10.1016/j.isci.2026.116408
UR - https://doi.org/10.1016/j.isci.2026.116408
LA - en
ER -

CSL-JSON

{
"id": "10.1016/j.isci.2026.116408",
"type": "article-journal",
"title": "Epilepsy-IEDs: An automated machine learning model for detecting interictal epileptiform discharges from scalp electroencephalograms",
"container-title": "iScience",
"author": [
{
"family": "Ao",
"given": "Ran"
},
{
"family": "Zhan",
"given": "Ping"
},
{
"family": "Wang",
"given": "Guojing"
},
{
"family": "Liu",
"given": "Hongyun"
},
{
"family": "Wang",
"given": "Weidong"
}
],
"container-title-short": "iScience",
"volume": "29",
"issue": "7",
"page": "116408",
"DOI": "10.1016/j.isci.2026.116408",
"PMID": "42382995",
"PMCID": "PMC13316274",
"ISSN": "2589-0042",
"publisher": "Elsevier",
"URL": "https://doi.org/10.1016/j.isci.2026.116408",
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
22
]
]
}
}

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.1093/braincomms/fcag130 [code]
Sleep increases firing rate modulation during interictal epileptiform discharges in mesial temporal structures.
Journal: Brain communications
In common: epilepsy, EEG, 3 references
[2] doi:10.3390/s26134167
M2EEG-VR: Validation of EEG Visualization and Sonification for the Detection of Neonatal Seizures on a Virtual Reality Platform.
Journal: Sensors (Basel, Switzerland)
In common: epilepsy, EEG, 1 reference
[3] doi:10.3390/bios16040203
Multiscale Cosine Convolution Neural Network for Robust and Interpretable Epileptic EEG Detection.
Journal: Biosensors
In common: epilepsy, EEG, 1 reference
[4] doi:10.1002/hbm.70599 [code]
Group Joint ICA (gjICA): A Method for Multimodal Fusion of Concurrent EEG and fMRI Data.
Journal: Human brain mapping
In common: Optimization Toolbox, methods / tools, EEG
[5] doi:10.3390/ijms27125533 [code]
Discovery-Driven Plasma Proteomics Identifies a Multi-Protein Signature for Amyloid PET Positivity: A Machine Learning Analysis of the Bio-Hermes Cohort.
Journal: International journal of molecular sciences
In common: 2 references
[6] doi:10.1162/imag.a.1250 [code]
Dynamics-informed priors (DIP) for neural mass modelling.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: Optimization Toolbox, epilepsy, EEG
[7] doi:10.3389/fnins.2026.1815732
Dataset of chronic intracranial EEG of epilepsy patients via responsive neurostimulation system.
Journal: Frontiers in neuroscience
In common: epilepsy, methods / tools, 1 reference
[8] doi:10.1038/s41598-026-56416-6
EEG blink and gaze control using random forest classification for accessible assistive robotic navigation in real world conditions.
Journal: Scientific reports
In common: methods / tools, EEG, 1 reference
[9] doi:10.3390/s26082431
Missing Data Gap Imputation Methods in Electroencephalogram (EEG) Signals: A Systematic Scoping Review.
Journal: Sensors (Basel, Switzerland)
In common: methods / tools, EEG, 1 reference
[10] doi:10.1186/s40708-026-00320-2
Effiformer: a unified data-efficient vision transformer-CNN framework for interpretable epileptic seizure detection.
Journal: Brain informatics
In common: epilepsy, EEG, 1 reference

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.

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: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.

Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.

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