Epilepsy-IEDs: An automated machine learning model for detecting interictal epileptiform discharges from scalp electroencephalograms.
2 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.
The 2 matches · all tie a paragraph to a whole file without 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 · block
oscr:b:ATQNV9TYV3EK2-C· Report a mismatch - [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 · block
oscr:b:FDGY9CVHFE81W-L· 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
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.1186/s12916-025-04316-3 [code]
- Development and validation of a multimodal automatic interictal epileptiform discharge detection model: a prospective multi-center study.Journal: BMC medicineIn common: epilepsy, EEG, 5 references
- [2] doi:10.1523/eneuro.0111-23.2023 [code]
- A Two-Stage Automatic System for Detection of Interictal Epileptiform Discharges from Scalp Electroencephalograms.Journal: eNeuroIn common: epilepsy, methods / tools, EEG, 4 references
- [3] doi:10.1038/s41597-025-04572-1 [code]
- An EEG dataset for interictal epileptiform discharge with spatial distribution information.Journal: Scientific dataIn common: epilepsy, methods / tools, EEG, 4 references
- [4] 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
- [5] doi:10.1038/s41598-024-64870-3 [code]
- Neuronal avalanches in temporal lobe epilepsy as a noninvasive diagnostic tool investigating large scale brain dynamics.Journal: Scientific reportsIn common: epilepsy, EEG, 3 references
- [6] doi:10.1002/epi.70101 [code]
- Development and validation of a deep survival model to predict time to seizure from routine electroencephalography.Journal: EpilepsiaIn common: epilepsy, EEG, 3 references
- [7] doi:10.1038/s41598-023-39799-8 [code]
- Machine-learning for the prediction of one-year seizure recurrence based on routine electroencephalography.Journal: Scientific reportsIn common: epilepsy, EEG, 3 references
- [8] doi:10.3390/jpm11101028
- Automated Epileptic Seizure Detection in Pediatric Subjects of CHB-MIT EEG Database-A Survey.Journal: Journal of personalized medicineIn common: epilepsy, methods / tools, EEG, 2 references
- [9] doi:10.3389/fphys.2023.1227952
- Automatic epileptic seizure detection based on persistent homology.Journal: Frontiers in physiologyIn common: epilepsy, methods / tools, EEG, 2 references
- [10] doi:10.1111/epi.18431 [code]
- Automated detection of interictal epileptiform discharges with few electroencephalographic channels.Journal: EpilepsiaIn common: epilepsy, EEG, 2 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.
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:5b9320d4b6dca38e…
Add the badge to the code's README
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 -->
[](https://openscicode.org/badge/doi/10.1016/j.isci.2026.116408)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1016/j.isci.2026.116408.svg
:target: https://openscicode.org/badge/doi/10.1016/j.isci.2026.116408
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1016/j.isci.2026.116408"><img src="https://openscicode.org/badge/doi/10.1016/j.isci.2026.116408.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".
- ylooliu/Epilepsy-IEDs: README.md on GitHub
- trekhleb/machine-learning-octave: README.md on GitHub
- ajaiantilal/randomforest-matlab on GitHub (add a README there)
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.
