Trainable movement control using spikes and muscle-twitch dynamics.
The 1 match
- [1] § Methods › Environment: Pong ↔ NeuromorphicPongControl/Visualization/visualize_gaussian_encoding.py, lines 1–11 · score 0.55 · Gaussian encoding, spiking signals, height, sensor, Weight
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
Python · 49 lines · 1.5 KB · MIT · 1 match
- '''Visualizes encoding from sensor values to spiking signal probability through Gaussian encoding'''
- import numpy as np
- import matplotlib.pyplot as plt
- import math
- import matplotlib.patches as patch
- plt.rcParams.update({'font.size': 15})
- plt.rcParams['font.weight'] = 'bold'
- plt.rcParams['axes.labelweight'] = 'bold'
- width = 2000
- height = 1601
- # Set your initial values here, nsensorneurons is the number of sensor neurons,
- # exponent is the width of the gaussian,
- # Sensorcenters is the location of the means.
- nsensorneurons = 10
- exponent = -25
- sensorcenters = np.linspace(-500, height+500, nsensorneurons)/height
- # Relative hit height of the ball (between 0 and 1)
- hitheight = 0.2
- fig, ax = plt.subplots(1)
- # Resolution
- points = np.arange(-1000, height + 500 + 500)/height
- for i, s in enumerate(sensorcenters):
- # Encoding avlues
- c1 = plt.Circle((hitheight, math.exp(exponent * (s - hitheight) ** 2)), radius=0.02, color="orange")
- ax.add_patch(c1)
- # Plot Gaussians
- sensoroutputs = []
- for p in points:
- sensoroutputs.append(math.exp(exponent * (s - p) ** 2))
- if i % 2 == 0:
- plt.plot(points, sensoroutputs, color="royalblue")
- else:
- plt.plot(points, sensoroutputs, color="green")
- # Plot environment width and ball height indicator
- plt.vlines([0, 1], 0, 1, color="black", linewidth=3, ls=":")
- plt.vlines([hitheight], 0, 1 , color="red", linewidth=2)
- plt.xlabel("Relative environment height")
- plt.ylabel("Sensor value")
- plt.tight_layout()
- plt.show()
visualize_gaussian_encoding.py at commit 2fd61c8, under MIT · at the source
Overview
- Department of Artificial Intelligence, Bernoulli Institute for Mathematics, Computer Science and Artificial Intelligence, University of Groningen, Groningen, Netherlands
- Groningen Cognitive Systems and Materials Center (CogniGron), University of Groningen, Groningen, Netherlands
Abstract
The biological sensorimotor system is a source of inspiration for the design of neuromorphic ballistic control systems. A large portion of sensorimotor-inspired research focuses on the sensory encoding and information processing stages of the system. However, research on broader task-performance systems, involving actuator control on the output side remains scarce. In this work, we develop and train a neuromuscular-inspired model to perform ballistic control. In the model, a spiking neural network's output spikes are used to generate twitch-like signals. These twitches are the basis for generating a continuous fluctuating output signal that is used to operate an actuator. We refer to the the used model as the Twitch Neural Network (TwNN). As a test case, the model is trained to control the paddle of an adapted version of the game of Pong. An adapted version of the Direct Feedback Alignment learning rule, specifically for integrate-and-fire neurons, is introduced. The new rule avoids the update-locking problem of backpropagation, allowing network weight updates in parallel. The model output consists of one group of agonist-innervating motor neurons, and one group of antagonist-innervating motor neurons. We find that it is possible to teach a neuromuscular-inspired system to control the paddle in the game of Pong with the adapted Direct Feedback Alignment learning rule. The best-performing baseline model achieved a hit rate of 96%. By applying logarithmic scaling to the output activity, a hit rate of 98% could be achieved. Finally, by replacing the neuromorphically unrealistic exact summation steps with leaky integrators in training, the range of good learning parameters became more narrow and clear. The best-performing model reaches a hit rate of 99%. Threshold analysis during training has shown that learning is robust to a variety of neuron thresholds. Noise analysis has shown that the system is robust to membrane potential noise during inference for uniform noise up to values in the order of around 0.1-1% of the neuron threshold value per time step.
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 1 match between paragraphs and lines of code.
JordiTi/NeuromorphicPongControl
2fd61c8bc5286adf6d5fff491be3bc605652d835, 13 March 2026Availability: 1 check, the latest on 29 September 2026: the link answers
- 29 September 2026: the link answers
21 files
- NeuromorphicPongControl/
Visualization/ — Python, 274 linesvisualize_actuator.py - NeuromorphicPongControl/
Visualization/ — Python, 277 linesvisualize_game.py - NeuromorphicPongControl/
Visualization/ — Python, 49 lines, 1 matchvisualize_gaussian_encod ing.py - NeuromorphicPongControl/
plotting/ — Python, 245 linesPositionalcodingUncertai ntyTool.py - NeuromorphicPongControl/
plotting/ — Python, 67 linesboxplot.py - NeuromorphicPongControl/
plotting/ — Python, 31 linesplotPerformanceHistogram .py - NeuromorphicPongControl/
plotting/ — Python, 118 linesplotanglesweep.py - NeuromorphicPongControl/
plotting/ — Python, 123 linesplotcombinationmatrix_ci rcle.py - NeuromorphicPongControl/
plotting/ — Python, 134 linesplothitrate.py - NeuromorphicPongControl/
plotting/ — Python, 110 linesplothitrate_SIF-DFA.py - NeuromorphicPongControl/
plotting/ — Python, 132 linesplothitrate_SIF-EFA.py - NeuromorphicPongControl/
plotting/ — Python, 110 linesplothitrate_SIF-LFA.py - NeuromorphicPongControl/
plotting/ — Python, 21 linesplotnoiseanalysis.py - NeuromorphicPongControl/
plotting/ — Python, 73 linessurfaceplot.py - NeuromorphicPongControl/
train/ — Python, 246 linestrain.py - NeuromorphicPongControl/
train/ — Python, 225 linestrain_thresholdsweep.py - NeuromorphicPongControl/
utils/ — Python, 71 linesContinuousEnvironment.py - NeuromorphicPongControl/
utils/ — Python, 205 linesContinuousObjects.py - NeuromorphicPongControl/
utils/ — Python, 34 linestools.py - LICENSE — License, 21 lines
- README.md — Text, 68 lines
Zenodo 17832222
Availability: 1 check, the latest on 29 September 2026: the link answers (HTTP 200)
- 29 September 2026: the link answers (HTTP 200)
24 files
- NeuromorphicPongControl/
Visualization/ — Python, 74 linesactuator_fromraw.py - NeuromorphicPongControl/
Visualization/ — Python, 284 linesvisualize_actuator.py - NeuromorphicPongControl/
Visualization/ — Python, 277 linesvisualize_game.py - NeuromorphicPongControl/
Visualization/ — Python, 49 linesvisualize_gaussian_encod ing.py - NeuromorphicPongControl/
plotting/ — Python, 245 linesPositionalcodingUncertai ntyTool.py - NeuromorphicPongControl/
plotting/ — Python, 67 linesboxplot.py - NeuromorphicPongControl/
plotting/ — Python, 31 linesplotPerformanceHistogram .py - NeuromorphicPongControl/
plotting/ — Python, 118 linesplotanglesweep.py - NeuromorphicPongControl/
plotting/ — Python, 123 linesplotcombinationmatrix_ci rcle.py - NeuromorphicPongControl/
plotting/ — Python, 134 linesplothitrate.py - NeuromorphicPongControl/
plotting/ — Python, 110 linesplothitrate_SIF-DFA.py - NeuromorphicPongControl/
plotting/ — Python, 132 linesplothitrate_SIF-EFA.py - NeuromorphicPongControl/
plotting/ — Python, 110 linesplothitrate_SIF-LFA.py - NeuromorphicPongControl/
plotting/ — Python, 21 linesplotnoiseanalysis.py - NeuromorphicPongControl/
plotting/ — Python, 73 linessurfaceplot.py - NeuromorphicPongControl/
test/ — Python, 220 linesContinuousObjects.py - NeuromorphicPongControl/
test/ — Python, 208 linesnoisetest.py - NeuromorphicPongControl/
train/ — Python, 246 linestrain.py - NeuromorphicPongControl/
train/ — Python, 225 linestrain_thresholdsweep.py - NeuromorphicPongControl/
utils/ — Python, 71 linesContinuousEnvironment.py - NeuromorphicPongControl/
utils/ — Python, 205 linesContinuousObjects.py - NeuromorphicPongControl/
utils/ — Python, 34 linestools.py - LICENSE — License, 21 lines
- README.md — Text, 68 lines
The paper's code and data availability statement is in the Data section.
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;
- 41 scripts, each with its path and the digest of its content;
- 1 match 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:17832288 — at Zenodo; found in “Data availability statement”
Data availability statement
The data generated to create the plots can be found in the Zenodo repository https://
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, 29 September 2026: the first record
Recorded: type, language, journal, volume, pages, dates, 2 authors, 8 keywords, 46 references.
Cite
This paper
Timmermans, J., & Schomaker, L. (2026). Trainable movement control using spikes and muscle-twitch dynamics. Frontiers in neurorobotics, 20, 1761767. https://
BibTeX
@article{timmermans2026t
author = {Timmermans, Jordi and Schomaker, Lambert},
title = {{Trainable movement control using spikes and muscle-twitch dynamics}},
journal = {Frontiers in neurorobotics},
year = {2026},
month = apr,
volume = {20},
pages = {1761767},
publisher = {Frontiers Media SA},
issn = {1662-5218},
doi = {10.3389/
url = {https://
pmid = {42051242},
pmcid = {PMC13111196}
}
RIS
TY - JOUR
AU - Timmermans, Jordi
AU - Schomaker, Lambert
TI - Trainable movement control using spikes and muscle-twitch dynamics
T2 - Frontiers in neurorobotics
J2 - Front Neurorobot
PY - 2026
DA - 2026/
VL - 20
SP - 1761767
SN - 1662-5218
PB - Frontiers Media SA
DO - 10.3389/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.3389/
"type": "article-journal",
"title": "Trainable movement control using spikes and muscle-twitch dynamics",
"container-title": "Frontiers in neurorobotics",
"author": [
{
"family": "Timmermans",
"given": "Jordi"
},
{
"family": "Schomaker",
"given": "Lambert"
}
],
"container-title-short":
"volume": "20",
"page": "1761767",
"DOI": "10.3389/
"PMID": "42051242",
"PMCID": "PMC13111196",
"ISSN": "1662-5218",
"publisher": "Frontiers Media SA",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
13
]
]
}
}
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.1038/s41467-026-74460-8 [code]
- Spike-based alignment learning solves the weight transport problem.Journal: Nature communicationsIn common: seaborn, pandas, SciPy, 2 other tools, 3 references
- [2] doi:10.1371/journal.pcbi.1014325 [code]
- Assessing the importance of sex and disease-specific anatomy in electrophysiology and mechanical simulations with a newly developed public virtual cohort of four-chamber heart models.Journal: PLoS computational biologyIn common: imageio, seaborn, pandas, 3 other tools, computational
- [3] doi:10.1038/s41467-026-74243-1 [code]
- Spiking neural network decoders of finger forces from high-density intramuscular microelectrode arrays.Journal: Nature communicationsIn common: seaborn, pandas, SciPy, 2 other tools, computational, 1 reference
- [4] doi: [code]
- Self-Rectifying Integrate-and-Fire Neuron and Collaborative Trim Training Framework for SNN-Based EEG Motor Imagery ClassificationJournal: Brain sciencesIn common: SciPy, Matplotlib, NumPy, computational, 2 references
- [5] doi: [code]
- Going deeper with morphologically detailed neural networks by simulation-based gradient propagationJournal: Frontiers in computational neuroscienceIn common: SciPy, Matplotlib, NumPy, computational, 2 references
- [6] doi: [code]
- Real-time closed-loop feedback system for mouse mesoscale cortical signal and movement controlJournal: eLifeIn common: imageio, seaborn, pandas, 3 other tools
- [7] doi:10.1002/cns.71147 [code]
- Unveiling the Distinctive Brain Functional Dynamics Between Parkinson's Disease and Progressive Supranuclear Palsy.Journal: CNS neuroscience & therapeuticsIn common: imageio, seaborn, pandas, 3 other tools
- [8] doi:10.1038/s41467-026-76267-z [code]
- Modulation of habenula axon terminals supports action-outcome associations in larval zebrafish.Journal: Nature communicationsIn common: imageio, seaborn, pandas, 3 other tools
- [9] doi:10.1038/s41593-026-02388-9 [code]
- Hippocampal CA3 connectomics reveals a gradient of mossy fiber inputs and selective feedforward inhibition onto pyramidal cells.Journal: Nature neuroscienceIn common: imageio, seaborn, pandas, 3 other tools
- [10] doi:10.1093/bioinformatics/btag540 [code]
- Deciphering spatial heterogeneity by multimodal spatial transcriptomics modelling with SpatialModal.Journal: Bioinformatics (Oxford, England)In common: imageio, seaborn, pandas, 3 other tools
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, 41 scripts, and 1 match 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:516580a043943fd0…
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.
