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.

5 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 7 matches · 2 of them tie a paragraph to a whole file without 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 · block oscr:b:TF3649NMZHV6X-M · Report a mismatch
  2. [2] § Results ↔ +benchmark/processSnippet.m, the whole file · a weak match · score 0.69 · cross correlation, zero lag, spike trains, FN, FP, RMSE · block oscr:b:TF3649NMZHV6X-M · Report a mismatch
  3. [3] § Methods › Synthetic dataset generation › Snippets synthesis ↔ +builder/buildSnippets.m, lines 102 to 211 · score 0.62 · iteratively removed, desired MAR, shifted, IAI, median, Snippets · block oscr:b:691P83Z6G6047-Q · Report a mismatch
  4. [4] § Methods › Synthetic dataset generation › Dictionaries of artifact templates ↔ +builder/extractTemplates.m, lines 115 to 144 · score 0.61 · accepted cluster, artifact template, lowpass, smoothing, stimulus artifacts, median · block oscr:b:78ENXA6593857-J · Report a mismatch
  5. [5] § Results ↔ +utils/+SD/SD_SWTTEO.m, lines 1 to 142 · score 0.54 · stationary wavelet, Teager, SWTTEO, operator, width, transform · block oscr:b:XSN7C1Q08BT71-8 · Report a mismatch
  6. [6] § Methods › Synthetic dataset generation › Segments of basal activity ↔ +config/extractBasalChunksParams.m, lines 1 to 42 · score 0.52 · basal signal, movement, scraping, chunks, raw, MFR · block oscr:b:BZ8BF3AMZDSYY-2 · Report a mismatch
  7. [7] § Methods › Benchmark analysis ↔ +config/extractBasalChunksParams.m, lines 1 to 42 · score 0.50 · basal signal, spike detection, SWTTEO, filtered, Benchmark · block oscr:b:BZ8BF3AMZDSYY-2 · 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 · 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 (how the code is found and 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.1088/1741-2552/ad1385 [code]
Single-pulse electrical stimulation artifact removal using the novel matching pursuit-based artifact reconstruction and removal method (MPARRM).
Journal: Journal of neural engineering
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, methods / tools, EEG, 8 references
[2] doi:10.1088/1741-2552/ad228f [code]
Spike sorting in the presence of stimulation artifacts: a dynamical control systems approach.
Journal: Journal of neural engineering
In common: extracellular electrophysiology (units, LFP), methods / tools, 8 references
[3] doi:10.1186/s42234-022-00086-y [code]
The impact of closed-loop intracortical stimulation on neural activity in brain-injured, anesthetized animals.
Journal: Bioelectronic medicine
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, extracellular electrophysiology (units, LFP), 4 references
[4] doi:10.3389/fnins.2025.1661458 [code]
Impact of ischemic lesion on sleep related connectivity in the sensorimotor cortex.
Journal: Frontiers in neuroscience
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, extracellular electrophysiology (units, LFP), 4 references
[5] doi:10.1038/s41597-022-01242-4 [code]
Comparative microelectrode array data of the functional development of hPSC-derived and rat neuronal networks.
Journal: Scientific data
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, extracellular electrophysiology (units, LFP), methods / tools, 3 references
[6] doi:10.1002/hbm.25749
Imaging the effective networks associated with cortical function through intracranial high-frequency stimulation.
Journal: Human brain mapping
In common: 4 references
[7] doi:10.1073/pnas.2521769123 [code]
Integration of learned artificial sensation with vision during freely moving navigation.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: 4 references
[8] doi:10.1038/s41467-024-45190-6 [code]
Biomimetic computer-to-brain communication enhancing naturalistic touch sensations via peripheral nerve stimulation.
Journal: Nature communications
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, 3 references
[9] doi:10.1016/j.xcrm.2023.101008 [code]
Autonomous optimization of neuroprosthetic stimulation parameters that drive the motor cortex and spinal cord outputs in rats and monkeys.
Journal: Cell reports. Medicine
In common: 4 references
[10] doi:10.1109/ojemb.2025.3537768 [code]
Enabling Model-Based Design for Real-Time Spike Detection.
Journal: IEEE open journal of engineering in medicine and biology
In common: 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.1088/1741-2552/ae5f4b.svg)](https://openscicode.org/badge/doi/10.1088/1741-2552/ae5f4b)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1088/1741-2552/ae5f4b.svg
   :target: https://openscicode.org/badge/doi/10.1088/1741-2552/ae5f4b
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1088/1741-2552/ae5f4b"><img src="https://openscicode.org/badge/doi/10.1088/1741-2552/ae5f4b.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.