Epilepsy-IEDs: An automated machine learning model for detecting interictal epileptiform discharges from scalp electroencephalograms.
The 2 matches · all tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
- [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] § 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
- % Clear variables and a screen.
- clear; close all; clc;
- % Loading training data from file ----------------------------------------------
- fprintf('Loading the training data from file...\n\n');
- % Loading training data from file.
- data = load('house_prices.csv');
- % Split data into features and results.
- X = data(:, 1:2);
- y = data(:, 3);
- % Plotting training data -------------------------------------------------------
- fprintf('Plotting the training data...\n\n');
- % Split the figure on 2x2 sectors.
- % Start drawing in first sector.
- subplot(2, 2, 1);
- scatter3(X(:, 1), X(:, 2), y, [], y(:), 'o');
- title('Training Set');
- xlabel('Size');
- ylabel('Rooms');
- zlabel('Price');
- % Running linear regression ----------------------------------------------------
- fprintf('Running linear regression...\n');
- % Setup regularization parameter.
- lambda = 0;
- alpha = 0.1;
- num_iterations = 50;
- [theta mu sigma X_normalized J_history] = linear_regression_train(X, y, alpha, lambda, num_iterations);
- fprintf('- Initial cost: %f\n', J_history(1));
- fprintf('- Optimized cost: %f\n', J_history(end));
- fprintf('- Theta (with normalization):\n');
- fprintf('-- %f\n', theta);
- fprintf('\n');
- % Calculate model parameters using normal equation -----------------------------
- fprintf('Calculate model parameters using normal equation...\n');
- X_normal = [ones(size(X, 1), 1) X];
- theta_normal = normal_equation(X_normal, y);
- normal_cost = cost_function(X_normal, y, theta_normal, lambda);
- fprintf('- Normal function cost: %f\n', normal_cost);
- fprintf('- Theta (without normalization):\n');
- fprintf('-- %f\n', theta_normal);
- fprintf('\n');
- % Plotting normalized training data --------------------------------------------
- fprintf('Plotting normalized training data...\n\n');
- % Start drawing in second sector.
- subplot(2, 2, 2);
- scatter3(X_normalized(:, 2), X_normalized(:, 3), y, [], y(:), 'o');
- title('Normalized Training Set');
- xlabel('Normalized Size');
- ylabel('Normalized Rooms');
- zlabel('Price');
- % Draw gradient descent progress ------------------------------------------------
- fprintf('Plot gradient descent progress...\n\n');
- % Continue plotting to the right area.
- subplot(2, 2, 3);
- plot(1:num_iterations, J_history);
- xlabel('Iteration');
- ylabel('J(\theta)');
- title('Gradient Descent Progress');
- % Plotting hypothesis plane on top of training set -----------------------------
- fprintf('Plotting hypothesis plane on top of training set...\n\n');
- % Get apartment size and rooms boundaries.
- apt_sizes = X_normalized(:, 2);
- apt_rooms = X_normalized(:, 3);
- apt_size_range = linspace(min(apt_sizes), max(apt_sizes), 10);
- apt_rooms_range = linspace(min(apt_rooms), max(apt_rooms), 10);
- % Calculate predictions for each possible combination of rooms number and appartment size.
- apt_prices = zeros(length(apt_size_range), length(apt_rooms_range));
- for apt_size_index = 1:length(apt_size_range)
- for apt_room_index = 1:length(apt_rooms_range)
- X = [1, apt_size_range(apt_size_index), apt_rooms_range(apt_room_index)];
- apt_prices(apt_size_index, apt_room_index) = hypothesis(X, theta);
- end
- end
- % Plot the plane on top of training data to see how it feets them.
- subplot(2, 2, 2);
- hold on;
- mesh(apt_size_range, apt_rooms_range, apt_prices);
- legend('Training Examples', 'Hypothesis Plane')
- hold off;
demo.m at commit 34a3893, under MIT · at the source
Overview
- Medical Innovation Research Division, Chinese PLA General Hospital, Beijing 100853, China
- Key Laboratory of Biomedical Engineering and Translational Medicine, Ministry of Industry and Information Technology, Beijing 100853, China
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
2ae2350ecbd3e2706e012a297e06c6c5024ef321, 23 April 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
1 file
- README.md, Text, 14 lines
Zenodo 20404907
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
1 file
- README.md, Text, 14 lines
trekhleb/machine-learning-octave
34a3893d67e7c1deeeb34ac21e7cff391aa9f35d, 22 November 2025Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
50 files
- anomaly-detection/
demo.m , MATLAB, 39 lines - anomaly-detection/
estimate_gaussian.m , MATLAB, 7 lines - anomaly-detection/
multivariate_gaussian.m , MATLAB, 16 lines - anomaly-detection/
select_threshold.m , MATLAB, 38 lines - anomaly-detection/
visualize_fit.m , MATLAB, 16 lines - k-means/
compute_centroids.m , MATLAB, 16 lines - k-means/
demo.m , MATLAB, 72 lines - k-means/
find_closest_centroids.m , MATLAB, 26 lines - k-means/
init_centroids.m , MATLAB, 8 lines - k-means/
k_means_train.m , MATLAB, 17 lines - linear-regression/
cost_function.m , MATLAB, 30 lines - linear-regression/
demo.m , MATLAB, 103 lines, 1 match - linear-regression/
feature_normalize.m , MATLAB, 22 lines - linear-regression/
gradient_descent.m , MATLAB, 34 lines - linear-regression/
gradient_step.m , MATLAB, 36 lines - linear-regression/
hypothesis.m , MATLAB, 16 lines - linear-regression/
linear_regression_train. , MATLAB, 26 lines, 1 matchm - linear-regression/
normal_equation.m , MATLAB, 5 lines - logistic-regression/
add_polynomial_features. , MATLAB, 13 linesm - logistic-regression/
cost_function.m , MATLAB, 22 lines - logistic-regression/
demo.m , MATLAB, 121 lines - logistic-regression/
display_data.m , MATLAB, 54 lines - logistic-regression/
fmincg.m , MATLAB, 175 lines - logistic-regression/
gradient_callback.m , MATLAB, 15 lines - logistic-regression/
gradient_descent.m , MATLAB, 14 lines - logistic-regression/
gradient_step.m , MATLAB, 26 lines - logistic-regression/
hypothesis.m , MATLAB, 16 lines - logistic-regression/
logistic_regression_trai , MATLAB, 27 linesn.m - logistic-regression/
one_vs_all.m , MATLAB, 34 lines - logistic-regression/
one_vs_all_predict.m , MATLAB, 20 lines - logistic-regression/
sigmoid.m , MATLAB, 4 lines - neural-network/
debug_initialize_weights , MATLAB, 14 lines.m - neural-network/
debug_nn_gradients.m , MATLAB, 49 lines - neural-network/
debug_numerical_gradient , MATLAB, 24 lines.m - neural-network/
demo.m , MATLAB, 65 lines - neural-network/
display_data.m , MATLAB, 54 lines - neural-network/
fmincg.m , MATLAB, 175 lines - neural-network/
neural_network_predict.m , MATLAB, 12 lines - neural-network/
neural_network_train.m , MATLAB, 20 lines - neural-network/
nn_backpropagation.m , MATLAB, 88 lines - neural-network/
nn_cost_function.m , MATLAB, 39 lines - neural-network/
nn_feedforward_propagati , MATLAB, 24 lineson.m - neural-network/
nn_gradient_step.m , MATLAB, 12 lines - neural-network/
nn_params_init.m , MATLAB, 18 lines - neural-network/
nn_params_roll.m , MATLAB, 23 lines - neural-network/
sigmoid.m , MATLAB, 4 lines - neural-network/
sigmoid_gradient.m , MATLAB, 6 lines - neural-network/
unroll.m , MATLAB, 10 lines - LICENSE, License, 21 lines
- README.md, Text, 104 lines
ajaiantilal/randomforest-matlab
11344de678dd9595d7bcff2a6ab6055c01e1fbd6, 19 April 2016Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
35 files
- RF_Class_C/
classRF_predict.m , MATLAB, 92 lines - RF_Class_C/
classRF_predict_matlab.m , MATLAB, 105 lines - RF_Class_C/
classRF_train.m , MATLAB, 467 lines - RF_Class_C/
compile_linux.m , MATLAB, 23 lines - RF_Class_C/
compile_windows.m , MATLAB, 24 lines - RF_Class_C/
rfImpute.m , MATLAB, 83 lines - RF_Class_C/
src/ , C++, 903 linesclassRF.cpp - RF_Class_C/
src/ , C++, 255 linesclassTree.cpp - RF_Class_C/
src/ , C++, 196 linescokus.cpp - RF_Class_C/
src/ , C++, 42 linescokus_test.cpp - RF_Class_C/
src/ , C++, 188 linesmex_ClassificationRF_pre dict.cpp - RF_Class_C/
src/ , C++, 296 linesmex_ClassificationRF_tra in.cpp - RF_Class_C/
src/ , C, 155 linesqsort.c - RF_Class_C/
src/ , C/C++, 117 linesrf.h - RF_Class_C/
src/ , C++, 308 linesrfutils.cpp - RF_Class_C/
src/ , C++, 316 linestwonorm_C_wrapper.cpp - RF_Class_C/
test_ClassRF_extensively , MATLAB, 29 lines.m - RF_Class_C/
tutorial_ClassRF.m , MATLAB, 313 lines - RF_Class_C/
tutorial_ClusterRF.m , MATLAB, 42 lines - RF_Class_C/
tutorial_Proximity_train , MATLAB, 79 linesing_test.m - RF_Reg_C/
compile_linux.m , MATLAB, 24 lines - RF_Reg_C/
compile_windows.m , MATLAB, 24 lines - RF_Reg_C/
regRF_predict.m , MATLAB, 59 lines - RF_Reg_C/
regRF_train.m , MATLAB, 345 lines - RF_Reg_C/
rfImpute.m , MATLAB, 93 lines - RF_Reg_C/
src/ , C++, 196 linescokus.cpp - RF_Reg_C/
src/ , C++, 42 linescokus_test.cpp - RF_Reg_C/
src/ , C++, 382 linesdiabetes_C_wrapper.cpp - RF_Reg_C/
src/ , C++, 151 linesmex_regressionRF_predict .cpp - RF_Reg_C/
src/ , C++, 356 linesmex_regressionRF_train.c pp - RF_Reg_C/
src/ , C, 155 linesqsort.c - RF_Reg_C/
src/ , C++, 1,092 linesreg_RF.cpp - RF_Reg_C/
src/ , C/C++, 19 linesreg_RF.h - RF_Reg_C/
test_RegRF_extensively.m , MATLAB, 48 lines - RF_Reg_C/
tutorial_RegRF.m , MATLAB, 300 lines
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://
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://
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/
url = {https://
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/
VL - 29
IS - 7
SP - 116408
SN - 2589-0042
PB - Elsevier
DO - 10.1016/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1016/
"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":
"volume": "29",
"issue": "7",
"page": "116408",
"DOI": "10.1016/
"PMID": "42382995",
"PMCID": "PMC13316274",
"ISSN": "2589-0042",
"publisher": "Elsevier",
"URL": "https://
"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 communicationsIn 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: BiosensorsIn 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 mappingIn 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 sciencesIn 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 neuroscienceIn 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 reportsIn 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 informaticsIn 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.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 4 repositories of the authors' code, each at its verified commit and with its license, 83 scripts, and 2 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:f2a4b9f331e1ff9b…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
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.
