OSCR

Correcting model error bias in estimations of neuronal dynamics from time series observations.

Code ↔ Paper

5 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 5 matches
  1. [1] § Methods › Neuron models ↔ data_HodgkinHuxley.h, lines 25–140 · score 0.85 · gate kinetics, membrane capacitance, reversal potentials, steady state, Hodgkin Huxley, gate variables
  2. [2] § Methods › Neuron models ↔ data_HodgkinHuxley.h, lines 25–140 · score 0.74 · Runge Kutta Cash, gate kinetics, gate variables, Karp, neuron, HH
  3. [3] § Methods › Neuron models ↔ config_types.h, lines 11–55 · score 0.68 · membrane capacitance, reversal potentials, gate variables, model parameters, Leak, channels
  4. [4] § Methods › Reservoir architecture for a driven neuronal oscillator ↔ machine_learning.cpp, lines 22–63 · score 0.63 · adjacency matrix, spectral radius, reservoir state, nodes, connected, force
  5. [5] § Methods › Neuron models ↔ data_LorenzOscillator.h, lines 25–91 · score 0.60 · Runge Kutta Cash, Karp, oscillations

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

C/C++ header · 142 lines · 4.1 KB · no license · 2 matches

  1. #ifndef HODGKIN_HUXLEY_H
  2. #define HODGKIN_HUXLEY_H
  3. #include "config_types.h"
  4. #include "utils.h"
  5. #define _USE_MATH_DEFINES
  6. #include <cmath>
  7. #include <math.h>
  8. #include <vector>
  9. #include <iostream>
  10. #include <fstream>
  11. #include <sstream>
  12. #include <iomanip>
  13. #include <Eigen/Sparse>
  14. #include <Eigen/Dense>
  15. #include <Eigen/Eigenvalues>
  16. #include <Eigen/Core>
  17. #include <boost/numeric/odeint.hpp>
  18. using namespace boost::numeric::odeint;
  19. using namespace std;
  20. class HodgkinHuxley {
  21. private:
  22. public:
  23. // ----------------------------------------------------------------------------------------------------
  24. // Parameters
  25. // Runge-Kutta Cash-Karp 5(4) for integration
  26. runge_kutta_cash_karp54<vector<double>> rkck;
  27. // Export filepath.
  28. string export_filepath;
  29. // Stim Current parameters
  30. vector<string> stimFilePaths;
  31. double stimScale;
  32. int samplingInterval;
  33. vector<double> stim; // Resultant external stimulation array
  34. // Constants
  35. double TEMP_C; // Temperature
  36. double FARADAY = 96480;
  37. double PI = M_PI;
  38. // Model parameters
  39. double T; // Model duration in ms
  40. double dt; // Time step in ms
  41. int num_steps;
  42. // Neuron parameters
  43. double soma_len; // Soma length in cm
  44. double soma_diam; // Soma diameter in cm
  45. double Cm; // Membrane capacitance
  46. // Channel parameters
  47. double gNaT; // Sodium channel conductance
  48. double ENa; // Sodium reversal potential
  49. double gK; // Potassium channel conductance
  50. double EK; // Potassium reversal potential
  51. double gLeak; // Leak conductance
  52. double EL; // Leak reversal potential
  53. // Gating variable parameters
  54. double amV1, amV2, amV3; // parameters for m-gate
  55. double tm0, epsm;
  56. double ahV1, ahV2, ahV3; // parameters for h-gate
  57. double th0, epsh;
  58. double anV1, anV2, anV3; // parameters for n-gate
  59. double tn0, epsn;
  60. // Initial conditions
  61. double V_init; // Initial membrane potential
  62. double m_init; // Initial m-gate value
  63. double h_init; // Initial h-gate value
  64. double n_init; // Initial n-gate value
  65. double init_conditions[4]; // Array to store initial conditions
  66. // ----------------------------------------------------------------------------------------------------
  67. // Results
  68. vector<double> X;
  69. vector<vector<double>> time_series;
  70. Eigen::MatrixXd t;
  71. Eigen::MatrixXd I_stim;
  72. Eigen::MatrixXd V_mem;
  73. Eigen::MatrixXd m_gate;
  74. Eigen::MatrixXd h_gate;
  75. Eigen::MatrixXd n_gate;
  76. // ----------------------------------------------------------------------------------------------------
  77. // Constructor & Destructor
  78. HodgkinHuxley(const HH_ParamStruct& configSelected);
  79. ~HodgkinHuxley() = default;
  80. // ----------------------------------------------------------------------------------------------------
  81. // Load external stimulation files
  82. void loadStimulationCurrent();
  83. // ----------------------------------------------------------------------------------------------------
  84. // Gating Kinetics Functions
  85. double infSteadyState(double VV, double a1, double a2);
  86. double tauTimeConstant(double VV, double t0, double eps, double a1, double a3);
  87. double mm_inf(double VV);
  88. double mm_tau(double VV);
  89. double hh_inf(double VV);
  90. double hh_tau(double VV);
  91. double nn_inf(double VV);
  92. double nn_tau(double VV);
  93. // ----------------------------------------------------------------------------------------------------
  94. // Ionic Current Functions
  95. double I_Leak(double VV) const;
  96. double I_K(double VV, double nn) const;
  97. double I_NaT(double VV, double mm, double hh) const;
  98. // ----------------------------------------------------------------------------------------------------
  99. // Equations of Motion
  100. void dXdt(const vector<double>& X, vector<double>& dX, const int idx);
  101. // ----------------------------------------------------------------------------------------------------
  102. // Running the model
  103. void rkStepper(int i);
  104. void runModel();
  105. // ----------------------------------------------------------------------------------------------------
  106. // Export results the model
  107. void unpackTimeSeries();
  108. void exportResults();
  109. };
  110. #endif // HODGKIN_HUXLEY_H

data_HodgkinHuxley.h at commit ee4d8b9, no license · at the source

Overview

Authors: Ian Williams1, Joseph D. Taylor1, Alain Nogaret1
ORCID iDs: Alain Nogaret
  1. Department of Physics, University of Bath,BA2 7AY Bath, UK
Institutions: University of Bath (United Kingdom)
Journal: Scientific reports, volume 16, issue 1, article 13120
Dates: received 27 August 2025; accepted 3 March 2026; published online 11 March 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1038/s41598-026-43346-6 · PMID 41813839 · PMCID PMC13100080 · OpenAlex W7135102811
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: systems (subfield)
Methods: Statistics, Spectral & time-frequency
Keywords: Biophysics, Computational biology and bioinformatics, Engineering, Neuroscience, Physics
Topic: Neural dynamics and brain function (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Citations: not cited yet (Europe PMC); 36 references in the paper

Abstract

Neuron models built from experimental data have successfully predicted observed voltage oscillations within and beyond training range. A tantalising prospect is the possibility of estimating the unobserved dynamics of ion channels, which is largely inaccessible to experiment, from membrane voltage recordings. The main roadblock here is our lack of knowledge of the equations governing biological neurons which forces us to rely on surrogate models and parameter estimates biassed by model error. Error correction algorithms are therefore needed to infer both observed and unobserved dynamics, and ultimately the actual parameters of a biological neuron. Here we use a recurrent neural network to correct the outputs of a surrogate Hodgkin-Huxley (HH) model. The reservoir-surrogate HH model hybrid was trained on the voltage oscillations of a reference HH model and its driving current waveform. Out of the six reservoir-surrogate model architectures investigated, we identify one that most accurately recovers the reference membrane voltage and ion channel dynamics. The reservoir was thus effective in correcting model error in an externally driven nonlinear oscillator and in reconstructing the dynamics of both observed and unobserved state variables from the reference model mimicking an actual neuron.

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

Repository

Its files are read in the Code ↔ Paper reader above, with 5 matches between paragraphs and lines of code.

IanWilliams01/driven-hybrid-reservoir-computing

License: none: the authors keep all their rights
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Commit: ee4d8b9b807d0cac1854d07847aea1bf8981a38e, 19 November 2025
Languages: C/C++ (6), C++ (6)
Size: 18 files, 12 scripts
Software Heritage: not archived
Found in: “Code availability”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 30 September 2026: the link answers
  • 30 September 2026: the link answers
13 files

Code availability

https://github.com/IanWilliams01/driven-hybrid-reservoir-computing.

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:

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

The data and code that support the findings of this study are available within the article and from the authors.

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, 30 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 3 authors, 5 keywords, 30 references.

Cite

This paper

Williams, I., Taylor, J. D., & Nogaret, A. (2026). Correcting model error bias in estimations of neuronal dynamics from time series observations. Scientific reports, 16(1), 13120. https://doi.org/10.1038/s41598-026-43346-6

BibTeX

@article{williams2026correcting,
author = {Williams, Ian and Taylor, Joseph D. and Nogaret, Alain},
title = {{Correcting model error bias in estimations of neuronal dynamics from time series observations}},
journal = {Scientific reports},
year = {2026},
month = mar,
volume = {16},
number = {1},
pages = {13120},
publisher = {Nature Publishing Group},
issn = {2045-2322},
doi = {10.1038/s41598-026-43346-6},
url = {https://doi.org/10.1038/s41598-026-43346-6},
pmid = {41813839},
pmcid = {PMC13100080}
}

RIS

TY - JOUR
AU - Williams, Ian
AU - Taylor, Joseph D.
AU - Nogaret, Alain
TI - Correcting model error bias in estimations of neuronal dynamics from time series observations
T2 - Scientific reports
J2 - Sci Rep
PY - 2026
DA - 2026/03/11
VL - 16
IS - 1
SP - 13120
SN - 2045-2322
PB - Nature Publishing Group
DO - 10.1038/s41598-026-43346-6
UR - https://doi.org/10.1038/s41598-026-43346-6
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41598-026-43346-6",
"type": "article-journal",
"title": "Correcting model error bias in estimations of neuronal dynamics from time series observations",
"container-title": "Scientific reports",
"author": [
{
"family": "Williams",
"given": "Ian"
},
{
"family": "Taylor",
"given": "Joseph D."
},
{
"family": "Nogaret",
"given": "Alain"
}
],
"container-title-short": "Sci Rep",
"volume": "16",
"issue": "1",
"page": "13120",
"DOI": "10.1038/s41598-026-43346-6",
"PMID": "41813839",
"PMCID": "PMC13100080",
"ISSN": "2045-2322",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41598-026-43346-6",
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
11
]
]
}
}

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.1371/journal.pcbi.1014337 [code]
Fast reconstruction of degenerate populations of conductance-based neuron models from spike times.
Journal: PLoS computational biology
In common: 4 references
[2] doi:10.1371/journal.pone.0354021 [code]
A genetic algorithm for self-supervised models of oscillatory neurodynamics.
Journal: PloS one
In common: systems, 2 references
[3] doi:10.1371/journal.pcbi.1014458 [code]
Neuronal excitability and parameter variability in the Hodgkin-Huxley model.
Journal: PLoS computational biology
In common: 2 references
[4] doi:10.1371/journal.pone.0345922 [code]
In vivo efficacy of current stimuli computed by optimal tracking of neuron membrane voltage.
Journal: PloS one
In common: 2 references
[5] doi:10.1371/journal.pcbi.1013342 [code]
Towards model-based characterization of individual electrically stimulated nerve fibers.
Journal: PLoS computational biology
In common: 2 references
[6] doi:10.1007/s11571-026-10512-5 [code]
Modeling the rhythmic complexity of professional drumming with an oscillation-driven reservoir computer.
Journal: Cognitive neurodynamics
In common: systems, 1 reference
[7] doi:10.1016/j.neuron.2026.07.016 [code]
Inferring brain-wide interactions using data-constrained recurrent neural network models.
Journal: Neuron
In common: systems, 1 reference
[8] doi:10.1038/s41598-026-39944-z [code]
InFoRM: a unified inverse and forward model for sensorimotor control.
Journal: Scientific reports
In common: systems, 1 reference
[9] doi:10.1126/sciadv.aed6417 [code]
Intrinsic timing, not temporal prediction, underlies ramping dynamics in visual and parietal cortex during passive behavior.
Journal: Science advances
In common: systems, 1 reference
[10] doi:10.7554/elife.108352 [code]
Analysis of dendritic input currents during place field dynamics.
Journal: eLife
In common: systems, 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.