logLIRA: a method for reliable suppression of electrical stimulation artifacts enabling short-latency neural response recovery.
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] § 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] § Results ↔ +benchmark/processSnippet.m, the whole file · a weak match · score 0.69 · cross correlation, zero lag, spike trains, FN, FP, RMSE
- [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] § 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] § Results ↔ +utils/+SD/SD_SWTTEO.m, lines 1–142 · score 0.54 · stationary wavelet, Teager, SWTTEO, operator, width, transform
- [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] § 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
- 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, not shown here
- 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.1016/j.celrep.2026.117420 [code]
- Neural population dynamics of direct electrical stimulation of neocortex.Journal: Cell reportsIn 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 neuroscienceIn common: Signal Processing Toolbox, extracellular electrophysiology (units, LFP), 2 references
- [3] doi:10.1126/sciadv.aef0343 [code]
- Learning induces activation-mechanism-dep
endent neural plasticity in an intracortical microstimulation task. Journal: Science advancesIn 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 reportsIn 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 communicationsIn 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: NatureIn 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 methodsIn 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 dataIn 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 biologyIn 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.
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:3a988a4ed10052dc…
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.
