Predict neuromuscular performance in human epidural electrical stimulation: phase 1 trial interim results.
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.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.1063/5.0308450 [code]
- Computational modeling of human vagus nerve stimulation with three-dimensional fascicular morphology.Journal: APL bioengineeringIn common: pandas, SciPy, Matplotlib, 1 other tool, computational modeling (no new data), 4 references
- [2] doi:10.1038/s41467-026-75128-z
- Surface circumferential spinal cord recording in freely moving rodents.Journal: Nature communicationsIn common: other condition, 5 references
- [3] doi:10.1016/j.xcrm.2026.102925
- Spinal cord stimulation modulates post-synaptic inhibition to improve arm neuromotor control after chronic stroke.Journal: Cell reports. MedicineIn common: clinical / translational, 5 references
- [4] doi:10.1016/j.celrep.2026.117420 [code]
- Neural population dynamics of direct electrical stimulation of neocortex.Journal: Cell reportsIn common: scikit-learn, pandas, SciPy, 2 other tools, 2 references
- [5] doi:10.1038/s41598-026-57519-w [code]
- Automated segmentation of neurons and spinal cord structures in immunofluorescence images using SpineDL.Journal: Scientific reportsIn common: PyTorch, scikit-learn, pandas, 3 other tools, other condition, 1 reference
- [6] doi:10.1002/hbm.70593 [code]
- Test-Retest Reliability of Sensorimotor Activity Measured With Spinal Cord fMRI.Journal: Human brain mappingIn common: pandas, SciPy, Matplotlib, 1 other tool, 2 references
- [7] doi:10.1038/s41598-026-53415-5 [code]
- Computational design and immunoinformatics validation of a T cell multi-epitope vaccine targeting glioblastoma stem cells.Journal: Scientific reportsIn common: PyTorch, scikit-learn, pandas, 3 other tools, computational modeling (no new data), other condition
- [8] doi:10.1038/s41467-026-71759-4 [code]
- CellNiche represents cellular microenvironments in atlas-scale spatial omics data with contrastive learning.Journal: Nature communicationsIn common: PyTorch, scikit-learn, pandas, 3 other tools, computational modeling (no new data), other condition
- [9] doi:10.1371/journal.pone.0345287
- Directional leads applied to spinal cord stimulation: A computational modelling study.Journal: PloS oneIn common: computational modeling (no new data), 3 references
- [10] doi:10.1038/s41586-026-10653-x [code]
- A mosaic of whole-body representations on the human precentral gyrus.Journal: NatureIn common: PyTorch, scikit-learn, SciPy, 2 other tools, other condition, 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: 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:ea3543d870d3f99c…
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.
