OSCR

logLIRA: a method for reliable suppression of electrical stimulation artifacts enabling short-latency neural response recovery.

Code ↔ Paper

7 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 7 matches · 2 of them tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
  1. [1] § Methods › Benchmark analysis ↔ +benchmark/processSnippet.m, the whole file · a weak match · score 0.70 · cross correlation, zero lag, spike train, metric, basal, snippet
  2. [2] § Results ↔ +benchmark/processSnippet.m, the whole file · a weak match · score 0.69 · cross correlation, zero lag, spike trains, FN, FP, RMSE
  3. [3] § Methods › Synthetic dataset generation › Snippets synthesis ↔ +builder/buildSnippets.m, lines 102–211 · score 0.62 · iteratively removed, desired MAR, shifted, IAI, median, Snippets
  4. [4] § Methods › Synthetic dataset generation › Dictionaries of artifact templates ↔ +builder/extractTemplates.m, lines 115–144 · score 0.61 · accepted cluster, artifact template, lowpass, smoothing, stimulus artifacts, median
  5. [5] § Results ↔ +utils/+SD/SD_SWTTEO.m, lines 1–142 · score 0.54 · stationary wavelet, Teager, SWTTEO, operator, width, transform
  6. [6] § Methods › Synthetic dataset generation › Segments of basal activity ↔ +config/extractBasalChunksParams.m, lines 1–42 · score 0.52 · basal signal, movement, scraping, chunks, raw, MFR
  7. [7] § Methods › Benchmark analysis ↔ +config/extractBasalChunksParams.m, lines 1–42 · score 0.50 · basal signal, spike detection, SWTTEO, filtered, Benchmark

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 · 65 lines · 2.4 KB · no license · 2 matches

  1. function [metrics, blankedIntervals] = processSnippet(metrics, params)
  2. file = metrics.Properties.RowNames{:};
  3. file = fullfile(params.datasetPath, params.datasetSnippetsFolder, file);
  4. load(file, 'snippet');
  5. metrics = table2struct(metrics);
  6. metrics.timeScore = tic();
  7. [output, blankedIntervals] = params.algorithm(snippet);
  8. metrics.timeScore = toc(metrics.timeScore);
  9. [b, a] = butter( ...
  10. snippet.BPF.order / 2, ...
  11. [snippet.BPF.lowerCutoff, snippet.BPF.upperCutoff] / (snippet.sampleRate / 2), ...
  12. 'bandpass' ...
  13. );
  14. output = filtfilt(b, a, output);
  15. [spikeIdxs, ~, ~, ~] = snippet.SD.algorithm(output, snippet.SD.params);
  16. spikes = false(size(output));
  17. spikes(spikeIdxs) = true;
  18. %% Number of stimuli
  19. metrics.nStimuli = numel(snippet.stimuli.onset);
  20. %% Number of spikes
  21. basalSpikes = full(snippet.SD.spikeTrain);
  22. metrics.nSpikes = sum(basalSpikes);
  23. %% Root-Mean-Square Error (RMSE)
  24. blankingSamples = repmat(1:ceil(params.blanking * snippet.sampleRate), numel(snippet.stimuli.onset), 1);
  25. blankingSamples = blankingSamples + repmat(snippet.stimuli.onset', 1, size(blankingSamples, 2)) - 1;
  26. blankingSamples = reshape(blankingSamples', 1, []);
  27. error = output - snippet.basal;
  28. error(blankingSamples) = 0;
  29. metrics.RMSE = sqrt(sum(error .^ 2) / length(snippet.basal));
  30. %% Time score
  31. metrics.timeScore = metrics.timeScore / numel(snippet.stimuli.onset);
  32. %% False negatives (FN) and false positives (FP)
  33. unmatchedSpikes = int8(basalSpikes) - int8(spikes);
  34. jitter = round(params.jitter * snippet.sampleRate);
  35. unmatchedIdxs = find(unmatchedSpikes ~= 0);
  36. if ~isempty(unmatchedIdxs)
  37. idxsPre = find(diff(unmatchedIdxs) <= jitter);
  38. idxsPost = idxsPre + 1;
  39. idxsPre = idxsPre(unmatchedSpikes(unmatchedIdxs(idxsPre)) .* unmatchedSpikes(unmatchedIdxs(idxsPost)) == -1);
  40. idxsPost = idxsPre + 1;
  41. unmatchedSpikes(unmatchedIdxs(idxsPre)) = 0;
  42. unmatchedSpikes(unmatchedIdxs(idxsPost)) = 0;
  43. end
  44. metrics.FN = sum(unmatchedSpikes == 1);
  45. metrics.FP = sum(unmatchedSpikes == -1);
  46. %% Cross-correlation at zero-lag (C0)
  47. metrics.C0 = sum(unmatchedSpikes(basalSpikes == 1) == 0);
  48. metrics.C0 = metrics.C0 / sqrt(sum(basalSpikes) * sum(spikes));
  49. %%
  50. metrics = struct2table(metrics);
  51. end

processSnippet.m at commit 3e65906, no license · at the source

Overview

  1. Department of Informatics, Bioengineering, Robotics, and Systems Engineering (DIBRIS), Università degli Studi di Genova, Genova, Italy
  2. Department of Physical Medicine and Rehabilitation, University of Kansas Medical Center, Kansas City, KS, United States of America
  3. IRCCS Azienda Ospedaliera Metropolitana, Genova, Italy
Journal: Journal of neural engineering, volume 23, issue 3, article 036008
Dates: received 1 August 2025; accepted 14 April 2026; published online 12 May 2026; in print 1 June 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1088/1741-2552/ae5f4b · PMID 41979289 · PMCID PMC13166083 · OpenAlex W7154255851
Open access: hybrid, a free copy (OpenAlex)
Status: code verified
Categories: EEG (modality), extracellular electrophysiology (units, LFP) (modality), human (organism), methods / tools (subfield)
Methods: Spectral & time-frequency, Smoothing, state filtering, decompositions, Machine learning, Statistics, Single-unit activity, calcium imaging
Keywords: ICMS, electrical stimulation, multielectrode array, artifact suppression, neural evoked activity
MeSH: Algorithms*, Artifacts*, Electric Stimulation*, Electroencephalography*, Evoked Potentials*, Neurons*, Reaction Time*, Animals, Humans (* major topic)
Topic: Neuroscience and Neural Engineering (Cellular and Molecular Neuroscience, Neuroscience), according to OpenAlex
Citations: cited by 1 paper (Europe PMC); 61 references in the paper

Abstract

Objective. We propose logLIRA, a novel method for the rejection of intracortical microstimulation artifacts in electrophysiological recordings specialized in the recovery of short-latency evoked activity. Additionally, we introduce a comprehensive comparison framework to evaluate the performance of logLIRA against previously reported algorithms. Approach. Our method estimates the artifact profiles by means of a piece-wise linear interpolation between logarithmically distributed points. It handles signal saturation thanks to a dynamically adjusted blanking interval. Finally, it deals with residual secondary artifacts by clustering and common activity rejection. The artifact rejection proficiency of logLIRA is evaluated against other state-of-the-art algorithms by means of a semisynthetic dataset acting as ground truth and enabling the computation of key performance metrics. Main results. The benchmark analysis highlights that our new method outperforms its competitors, enabling a robust recovery of short-latency evoked activity and, at the same time, minimizing the likelihood of introducing false positives as a consequence of misclassified residual artifacts. The results hold for very heterogeneous artifact profiles (with or without signal saturation) and across different combinations of mean artifacts rate and mean firing rate in the semisynthetic dataset. Additionally, we show the functioning of logLIRA with real-world data, where its capability to handle secondary artifacts and avoid inflated evoked responses is particularly evident. Significance. This work provides the scientific community with a valuable and powerful tool to improve the recovery of evoked responses, potentially contributing to a better understanding of functional connectivity and brain plasticity mechanisms in in vivo neural circuits as well as the advancement of therapeutic electrical neuromodulation techniques.

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 7 matches between paragraphs and lines of code.

barbaLab/logLIRA

License: none: the authors keep all their rights
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: a73400d2e01989536dba143e7bec109a6845d589, 22 September 2024
Languages: MATLAB (4)
Size: 6 files, 4 scripts
Software Heritage: not archived
Found in: “Code availability statement”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
5 files

barbaLab/logLIRA-benchmark

License: none: the authors keep all their rights
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: 3e65906d32b8c59680bda209520332e8d19f9946, 16 April 2024
Languages: MATLAB (39)
Size: 42 files, 39 scripts
Software Heritage: not archived
Found in: “Code availability statement”
Holds: README, 1 notebook
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
40 files

Code availability statement

The source code for logLIRA is publicly available at https://github.com/barbaLab/logLIRA. The Matlab scripts to generate a semisynthetic dataset from raw data and to run the benchmark analysis are available at https://github.com/barbaLab/logLIRA-benchmark.

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

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:

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

Datasets cited

Data availability statement

The data that support the findings of this study will be openly available following an embargo at the following URL/DOI: https://doi.org/10.5281/zenodo.16 642 111 (https://doi.org/10.5281/zenodo.16642111) [61].

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 2, 28 September 2026

  • Publisher: n/a → IOP Publishing
  • Funding: added Ministero dell'Università e della Ricerca: PE0000006; National Institute of Neurological Disorders and Stroke: R01NS131466

Version 1, 28 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 3 authors, 5 keywords, 9 MeSH terms, 55 references.

Cite

This paper

Negri, F., Guggenmos, D. J., & Barban, F. (2026). logLIRA: a method for reliable suppression of electrical stimulation artifacts enabling short-latency neural response recovery. Journal of neural engineering, 23(3), 036008. https://doi.org/10.1088/1741-2552/ae5f4b

BibTeX

@article{negri2026loglira,
author = {Negri, Francesco and Guggenmos, David J and Barban, Federico},
title = {{logLIRA: a method for reliable suppression of electrical stimulation artifacts enabling short-latency neural response recovery}},
journal = {Journal of neural engineering},
year = {2026},
month = may,
volume = {23},
number = {3},
pages = {036008},
publisher = {IOP Publishing},
issn = {1741-2560},
doi = {10.1088/1741-2552/ae5f4b},
url = {https://doi.org/10.1088/1741-2552/ae5f4b},
pmid = {41979289},
pmcid = {PMC13166083}
}

RIS

TY - JOUR
AU - Negri, Francesco
AU - Guggenmos, David J
AU - Barban, Federico
TI - logLIRA: a method for reliable suppression of electrical stimulation artifacts enabling short-latency neural response recovery
T2 - Journal of neural engineering
J2 - J Neural Eng
PY - 2026
DA - 2026/05/12
VL - 23
IS - 3
SP - 036008
SN - 1741-2560
PB - IOP Publishing
DO - 10.1088/1741-2552/ae5f4b
UR - https://doi.org/10.1088/1741-2552/ae5f4b
LA - en
ER -

CSL-JSON

{
"id": "10.1088/1741-2552/ae5f4b",
"type": "article-journal",
"title": "logLIRA: a method for reliable suppression of electrical stimulation artifacts enabling short-latency neural response recovery",
"container-title": "Journal of neural engineering",
"author": [
{
"family": "Negri",
"given": "Francesco"
},
{
"family": "Guggenmos",
"given": "David J"
},
{
"family": "Barban",
"given": "Federico"
}
],
"container-title-short": "J Neural Eng",
"volume": "23",
"issue": "3",
"page": "036008",
"DOI": "10.1088/1741-2552/ae5f4b",
"PMID": "41979289",
"PMCID": "PMC13166083",
"ISSN": "1741-2560",
"publisher": "IOP Publishing",
"URL": "https://doi.org/10.1088/1741-2552/ae5f4b",
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
12
]
]
}
}

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.celrep.2026.117420 [code]
Neural population dynamics of direct electrical stimulation of neocortex.
Journal: Cell reports
In common: extracellular electrophysiology (units, LFP), 3 references
[2] doi:10.3389/fnins.2026.1605209 [code]
Spiking neural networks provide accurate and time-efficient models for whisker stimulus classification of the awake mouse.
Journal: Frontiers in neuroscience
In common: Signal Processing Toolbox, extracellular electrophysiology (units, LFP), 2 references
[3] doi:10.1126/sciadv.aef0343 [code]
Learning induces activation-mechanism-dependent neural plasticity in an intracortical microstimulation task.
Journal: Science advances
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, 2 references
[4] doi:10.1016/j.stemcr.2026.102872 [code]
A semi-automated MEA spike sorting method for high-throughput assessment of cultured neurons.
Journal: Stem cell reports
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, extracellular electrophysiology (units, LFP), 1 reference
[5] doi:10.1093/braincomms/fcag130 [code]
Sleep increases firing rate modulation during interictal epileptiform discharges in mesial temporal structures.
Journal: Brain communications
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, extracellular electrophysiology (units, LFP), EEG, 1 reference
[6] doi:10.1038/s41586-026-10448-0 [code]
Plasticity and language in the anaesthetized human hippocampus.
Journal: Nature
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, extracellular electrophysiology (units, LFP), 1 reference
[7] doi:10.1016/j.crmeth.2026.101481 [code]
A hybrid micro-ECoG for functionally targeted multi-site and multi-scale investigation.
Journal: Cell reports methods
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, extracellular electrophysiology (units, LFP), 1 reference
[8] doi:10.1016/j.patter.2026.101590 [code]
Density-based longitudinal neuron tracking in high-density electrophysiological recordings.
Journal: Patterns (New York, N.Y.)
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, extracellular electrophysiology (units, LFP), 1 reference
[9] doi:10.1038/s41597-026-06616-6 [code]
Sustained Attention Task (gradCPT) Dataset using simultaneous EEG-fMRI and DTI.
Journal: Scientific data
In common: Signal Processing Toolbox, methods / tools, EEG, 1 reference
[10] doi:10.1038/s42003-026-10881-x [code]
On variability in local field potentials.
Journal: Communications biology
In common: Statistics and Machine Learning Toolbox, extracellular electrophysiology (units, LFP), 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.