logLIRA: a method for reliable suppression of electrical stimulation artifacts enabling short-latency neural response recovery.
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] § 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] § 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] § 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] § 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] § 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] § 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] § 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
- function [metrics, blankedIntervals] = processSnippet(metrics, params)
- file = metrics.Properties.RowNames{:};
- file = fullfile(params.datasetPath, params.datasetSnippetsFolder, file);
- load(file, 'snippet');
- metrics = table2struct(metrics);
- metrics.timeScore = tic();
- [output, blankedIntervals] = params.algorithm(snippet);
- metrics.timeScore = toc(metrics.timeScore);
- [b, a] = butter( ...
- snippet.BPF.order / 2, ...
- [snippet.BPF.lowerCutoff, snippet.BPF.upperCutoff] / (snippet.sampleRate / 2), ...
- 'bandpass' ...
- );
- output = filtfilt(b, a, output);
- [spikeIdxs, ~, ~, ~] = snippet.SD.algorithm(output, snippet.SD.params);
- spikes = false(size(output));
- spikes(spikeIdxs) = true;
- %% Number of stimuli
- metrics.nStimuli = numel(snippet.stimuli.onset);
- %% Number of spikes
- basalSpikes = full(snippet.SD.spikeTrain);
- metrics.nSpikes = sum(basalSpikes);
- %% Root-Mean-Square Error (RMSE)
- blankingSamples = repmat(1:ceil(params.blanking * snippet.sampleRate), numel(snippet.stimuli.onset), 1);
- blankingSamples = blankingSamples + repmat(snippet.stimuli.onset', 1, size(blankingSamples, 2)) - 1;
- blankingSamples = reshape(blankingSamples', 1, []);
- error = output - snippet.basal;
- error(blankingSamples) = 0;
- metrics.RMSE = sqrt(sum(error .^ 2) / length(snippet.basal));
- %% Time score
- metrics.timeScore = metrics.timeScore / numel(snippet.stimuli.onset);
- %% False negatives (FN) and false positives (FP)
- unmatchedSpikes = int8(basalSpikes) - int8(spikes);
- jitter = round(params.jitter * snippet.sampleRate);
- unmatchedIdxs = find(unmatchedSpikes ~= 0);
- if ~isempty(unmatchedIdxs)
- idxsPre = find(diff(unmatchedIdxs) <= jitter);
- idxsPost = idxsPre + 1;
- idxsPre = idxsPre(unmatchedSpikes(unmatchedIdxs(idxsPre)) .* unmatchedSpikes(unmatchedIdxs(idxsPost)) == -1);
- idxsPost = idxsPre + 1;
- unmatchedSpikes(unmatchedIdxs(idxsPre)) = 0;
- unmatchedSpikes(unmatchedIdxs(idxsPost)) = 0;
- end
- metrics.FN = sum(unmatchedSpikes == 1);
- metrics.FP = sum(unmatchedSpikes == -1);
- %% Cross-correlation at zero-lag (C0)
- metrics.C0 = sum(unmatchedSpikes(basalSpikes == 1) == 0);
- metrics.C0 = metrics.C0 / sqrt(sum(basalSpikes) * sum(spikes));
- %%
- metrics = struct2table(metrics);
- end
processSnippet.m at commit 3e65906, no license · at the source
Overview
- Department of Informatics, Bioengineering, Robotics, and Systems Engineering (DIBRIS), Università degli Studi di Genova, Genova, Italy
- Department of Physical Medicine and Rehabilitation, University of Kansas Medical Center, Kansas City, KS, United States of America
- IRCCS Azienda Ospedaliera Metropolitana, Genova, Italy
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
a73400d2e01989536dba143e7bec109a6845d589, 22 September 2024Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
5 files
- install.m, MATLAB, 34 lines
- logLIRA.m, MATLAB, 236 lines
- private/
findArtifactPeak.m , MATLAB, 103 lines - private/
fitArtifact.m , MATLAB, 154 lines - README.md, Text, 45 lines
barbaLab/logLIRA-benchmark
3e65906d32b8c59680bda209520332e8d19f9946, 16 April 2024Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
40 files
- +algorithms/
DynAvg.m , MATLAB, 27 lines - +algorithms/
PolyFit.m , MATLAB, 20 lines - +algorithms/
SALPA.m , MATLAB, 14 lines - +algorithms/
logLIRA.m , MATLAB, 15 lines - +algorithms/
private/ , MATLAB, 38 linesArtCombine.m - +algorithms/
private/ , MATLAB, 50 linesArtRemMoveMeanVar.m - +algorithms/
private/ , MATLAB, 37 linesBuildRawSegVar.m - +algorithms/
private/ , MATLAB, 150 linesSEEC.m - +algorithms/
private/ , MATLAB, 123 linesfindArtifactPeak.m - +benchmark/
getId.m , MATLAB, 12 lines - +benchmark/
processSnippet.m , MATLAB, 65 lines, 2 matches - +benchmark/
runBenchmark.m , MATLAB, 88 lines - +benchmark/
saveResults.m , MATLAB, 46 lines - +builder/
buildSnippets.m , MATLAB, 318 lines, 1 match - +builder/
extractBasalChunks.m , MATLAB, 251 lines - +builder/
extractTemplates.m , MATLAB, 193 lines, 1 match - +builder/
private/ , MATLAB, 37 linesconfirmTemplates.m - +builder/
private/ , MATLAB, 68 linesfilterEpochs.m - +builder/
private/ , MATLAB, 10 linesparseStimuli.m - +builder/
private/ , MATLAB, 23 linesplotClusters.m - +builder/
private/ , MATLAB, 34 linesplotTemplates.m - +builder/
private/ , MATLAB, 36 linesupdateLookupTable.m - +config/
benchmarkParams.m , MATLAB, 17 lines - +config/
buildSnippetsParams.m , MATLAB, 21 lines - +config/
extractBasalChunksParams , MATLAB, 47 lines, 2 matches.m - +config/
extractTemplatesParams.m , MATLAB, 44 lines - +utils/
+SD/ , MATLAB, 74 linesSD_AdaptThresh.m - +utils/
+SD/ , MATLAB, 10 linesSD_AdaptThresh_Params.m - +utils/
+SD/ , MATLAB, 180 lines, 1 matchSD_SWTTEO.m - +utils/
+SD/ , MATLAB, 16 linesSD_SWTTEO_Params.m - +utils/
+SD/ , MATLAB, 50 linesprivate/ peakseek.m - +utils/
+colors/ , MATLAB, 7 linesloadNColors.m - +utils/
DataHash.m , MATLAB, 534 lines - +utils/
checkFileOpen.m , MATLAB, 15 lines - +utils/
deleteExcelRow.m , MATLAB, 10 lines - +utils/
getIEI.m , MATLAB, 42 lines - +utils/
getNIntegerDigits.m , MATLAB, 4 lines - +utils/
getRandomFilename.m , MATLAB, 9 lines - main.mlx, MATLAB, to read at its source
- README.md, Text, 2 lines
Code availability statement
The source code for logLIRA is publicly available at https://
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
- zenodo:16642111, at Zenodo; found in “Data availability statement”
Data availability statement
The data that support the findings of this study will be openly available following an embargo at the following URL/
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://
BibTeX
@article{negri2026loglir
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/
url = {https://
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/
VL - 23
IS - 3
SP - 036008
SN - 1741-2560
PB - IOP Publishing
DO - 10.1088/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1088/
"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":
"volume": "23",
"issue": "3",
"page": "036008",
"DOI": "10.1088/
"PMID": "41979289",
"PMCID": "PMC13166083",
"ISSN": "1741-2560",
"publisher": "IOP Publishing",
"URL": "https://
"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 engineeringIn 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 engineeringIn 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 medicineIn 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 neuroscienceIn 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 dataIn 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 mappingIn 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 AmericaIn 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 communicationsIn 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. MedicineIn 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 biologyIn 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.
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: 2 repositories of the authors' code, each at its verified commit and with its license, 43 scripts, and 7 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:9aa68813c0ede9ef…
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.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:endHTML
<!-- 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.
