Predict neuromuscular performance in human epidural electrical stimulation: phase 1 trial interim results.
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
Python · 49 lines · 1.8 KB · no license
- import torch
- def relaxed_distortion_measure(func, z, eta=0.2, metric='identity', create_graph=True):
- if metric == 'identity':
- bs = len(z)
- z_perm = z[torch.randperm(bs)]
- if eta is not None:
- alpha = (torch.rand(bs) * (1 + 2*eta) - eta).unsqueeze(1).to(z)
- z_augmented = alpha*z + (1-alpha)*z_perm
- else:
- z_augmented = z
- v = torch.randn(z.size()).to(z)
- Jv = torch.autograd.functional.jvp(func, z_augmented, v=v, create_graph=create_graph)[1]
- TrG = torch.sum(Jv.view(bs, -1)**2, dim=1).mean()
- JTJv = (torch.autograd.functional.vjp(func, z_augmented, v=Jv, create_graph=create_graph)[1]).view(bs, -1)
- TrG2 = torch.sum(JTJv**2, dim=1).mean()
- return TrG2/TrG**2
- else:
- raise NotImplementedError
- def get_flattening_scores(G, mode='condition_number'):
- if mode == 'condition_number':
- S = torch.svd(G).S
- scores = S.max(1).values/S.min(1).values
- elif mode == 'variance':
- G_mean = torch.mean(G, dim=0, keepdim=True)
- A = torch.inverse(G_mean)@G
- scores = torch.sum(torch.log(torch.svd(A).S)**2, dim=1)
- else:
- pass
- return scores
- def jacobian_decoder_jvp_parallel(func, inputs, v=None, create_graph=True):
- batch_size, z_dim = inputs.size()
- if v is None:
- v = torch.eye(z_dim).unsqueeze(0).repeat(batch_size, 1, 1).view(-1, z_dim).to(inputs)
- inputs = inputs.repeat(1, z_dim).view(-1, z_dim)
- jac = (
- torch.autograd.functional.jvp(
- func, inputs, v=v, create_graph=create_graph
- )[1].view(batch_size, z_dim, -1).permute(0, 2, 1)
- )
- return jac
- def get_pullbacked_Riemannian_metric(func, z):
- J = jacobian_decoder_jvp_parallel(func, z, v=None)
- G = torch.einsum('nij,nik->njk', J, J)
- return G
geometry.py at commit 3c4eaf1, no license · at the source
Overview
- National Engineering Research Center of Neuromodulation, School of Aerospace Engineering, Tsinghua University,Beijing, China
- School of Aerospace Engineering, Tsinghua University,Beijing, China
Abstract
The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.
Repository
Its files are read in the Code ↔ Paper reader above.
yunyuewei/HdSafeBO
3c4eaf167c0a410f1a0f937119120b8b6f0a004d, 7 November 2024Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
35 files
- ae_model/
geometry.py , Python, 49 lines - ae_model/
models/ , Python, 133 lines__init__.py - ae_model/
models/ , Python, 385 linesae.py - ae_model/
models/ , Python, 239 linesmodules.py - ae_model/
utils/ , Python, 58 linesutils.py - algorithm/
CMAES.py , Python, 169 lines - algorithm/
CONFIG.py , Python, 107 lines - algorithm/
QEI.py , Python, 227 lines - algorithm/
QEI_prob.py , Python, 297 lines - algorithm/
SCBO.py , Python, 232 lines - algorithm/
base_optimizer.py , Python, 138 lines - algorithm/
hdsafebo.py , Python, 214 lines - algorithm/
linebo.py , Python, 177 lines - algorithm/
safeopt.py , Python, 191 lines - algorithm/
turbo.py , Python, 171 lines - convert_utils.py, Python, 71 lines
- leg_init_process.py, Python, 173 lines
- optimization_digital.py, Python, 82 lines
- optimization_gpfun.py, Python, 73 lines
- optimization_muscle.py, Python, 91 lines
- optimization_scs.py, Python, 86 lines
- task/
base_task.py , Python, 351 lines - task/
digit/ , Python, 107 linescnn_model.py - task/
digit_task.py , Python, 181 lines - task/
gpfun/ , Python, 93 linesgp_fun.py - task/
gpfun_task.py , Python, 116 lines - task/
muscle/ , Python, 1 line__init__.py - task/
muscle/ , Python, 57 linesmuscle_utils.py - task/
muscle/ , Python, 27 linespca/ fit_pca.py - task/
muscle/ , Python, 404 linestask_env_mjhand.py - task/
muscle_task.py , Python, 168 lines - task/
scs/ , Python, 1 line__init__.py - task/
scs_task.py , Python, 290 lines - task/
utils.py , Python, 16 lines - README.md, Text, 31 lines
Code availability statement
The paper has a code availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it points to the authors' code: yunyuewei/
HdSafeBO - it says that the code is available on request
Read it in the paper: doi.org/10.1038/s43856-026-01695-3.
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;
- 34 scripts, each with its path and the digest of its content;
- no match between paragraphs and code yet;
- 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
- github.com/
lhd-lhd/ , at github.com; found in “Data availability”predict-ees
Code and data availability statement
The paper has a code and data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it points to a dataset: github.com/
lhd-lhd/ predict-ees - it points to the authors' code: yunyuewei/
HdSafeBO - it says that the data are available on request
- it says that the code is available on request
Read it in the paper: doi.org/10.1038/s43856-026-01695-3.
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
- Funding: added National Natural Science Foundation of China: 52207254, 03-02
Version 1, 28 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 7 authors, 2 keywords, 80 references.
Cite
This paper
Li, H., Wei, Y., Sui, Y., Zhang, X., Luo, X., Zhang, B., & Ma, B. (2026). Predict neuromuscular performance in human epidural electrical stimulation: phase 1 trial interim results. Communications medicine, 6(1), 457. https://
BibTeX
@article{li2026predict,
author = {Li, Hongda and Wei, Yunyue and Sui, Yanan and Zhang, Xi and Luo, Xuesong and Zhang, Boyang and Ma, Bozhi},
title = {{Predict neuromuscular performance in human epidural electrical stimulation: phase 1 trial interim results}},
journal = {Communications medicine},
year = {2026},
month = may,
volume = {6},
number = {1},
pages = {457},
publisher = {Nature Publishing Group},
issn = {2730-664X},
doi = {10.1038/
url = {https://
pmid = {42209714},
pmcid = {PMC13503752}
}
RIS
TY - JOUR
AU - Li, Hongda
AU - Wei, Yunyue
AU - Sui, Yanan
AU - Zhang, Xi
AU - Luo, Xuesong
AU - Zhang, Boyang
AU - Ma, Bozhi
TI - Predict neuromuscular performance in human epidural electrical stimulation: phase 1 trial interim results
T2 - Communications medicine
J2 - Commun Med (Lond)
PY - 2026
DA - 2026/
VL - 6
IS - 1
SP - 457
SN - 2730-664X
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Predict neuromuscular performance in human epidural electrical stimulation: phase 1 trial interim results",
"container-title": "Communications medicine",
"author": [
{
"family": "Li",
"given": "Hongda"
},
{
"family": "Wei",
"given": "Yunyue"
},
{
"family": "Sui",
"given": "Yanan"
},
{
"family": "Zhang",
"given": "Xi"
},
{
"family": "Luo",
"given": "Xuesong"
},
{
"family": "Zhang",
"given": "Boyang"
},
{
"family": "Ma",
"given": "Bozhi"
}
],
"container-title-short":
"volume": "6",
"issue": "1",
"page": "457",
"DOI": "10.1038/
"PMID": "42209714",
"PMCID": "PMC13503752",
"ISSN": "2730-664X",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
29
]
]
}
}
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.1013866 [code]
- Biologically-constrained
spiking neural network for neuromodulation in locomotor recovery after spinal cord injury. Journal: PLoS computational biologyIn common: scikit-learn, pandas, SciPy, 2 other tools, computational modeling (no new data), other condition, 11 references - [2] doi:10.1016/j.isci.2025.113580
- Combining cortical and spinal stimulation maximizes the improvement of gait after spinal cord injury.Journal: iScienceIn common: clinical / translational, other condition, 12 references
- [3] doi:10.1038/s41586-023-06094-5 [code]
- Walking naturally after spinal cord injury using a brain-spine interface.Journal: NatureIn common: clinical / translational, other condition, 10 references
- [4] doi:10.1162/imag_a_00455
- Towards personalized mapping through lumbosacral spinal cord task fMRI.Journal: Imaging neuroscience (Cambridge, Mass.)In common: 9 references
- [5] doi:10.1016/j.crmeth.2025.101202 [code]
- SpIC3D imaging for spinal in situ contrast 3D visualization.Journal: Cell reports methodsIn common: 8 references
- [6] doi:10.1088/1741-2552/adba8b [code]
- An active electronic, high-density epidural paddle array for chronic spinal cord neuromodulation.Journal: Journal of neural engineeringIn common: PyTorch, scikit-learn, pandas, 3 other tools, clinical / translational, 5 references
- [7] doi:10.1016/j.celrep.2024.113695
- Neural population dynamics reveals disruption of spinal circuits' responses to proprioceptive input during electrical stimulation of sensory afferents.Journal: Cell reportsIn common: 8 references
- [8] 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: SciPy, Matplotlib, NumPy, other condition, 6 references
- [9] doi:10.1038/s41467-024-44898-9 [code]
- Dual electrical stimulation at spinal-muscular interface reconstructs spinal sensorimotor circuits after spinal cord injury.Journal: Nature communicationsIn common: other condition, 7 references
- [10] doi:10.1038/s41586-022-05385-7 [code]
- The neurons that restore walking after paralysis.Journal: NatureIn common: other condition, 7 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: 1 repository of the authors' code, each at its verified commit and with its license, 34 scripts, and 0 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:936e2b6c5fb455e4…
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.1038/s43856-026-01695-3)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1038/s43856-026-01695-3.svg
:target: https://openscicode.org/badge/doi/10.1038/s43856-026-01695-3
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s43856-026-01695-3"><img src="https://openscicode.org/badge/doi/10.1038/s43856-026-01695-3.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.
