OSCR

An in-sensor communication electronic textile for imperceptible and ultrarobust silent speech.

Code ↔ Paper

3 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 3 matches
  1. [1] § Results › Interactive feedback and assistant during silent speech decoding ↔ Ablation.py, lines 202–264 · score 0.74 · cross entropy loss, Weight decay, training accuracy, training loss, Ablation, epoch
  2. [2] § Results › Interactive feedback and assistant during silent speech decoding ↔ Different-loss-function.py, lines 247–294 · score 0.67 · cross entropy loss, Weight decay, loss function, configuration, Batch, smoothing
  3. [3] § Results › Interactive feedback and assistant during silent speech decoding ↔ Visualize.py, lines 17–25 · score 0.51 · help dress, Shake hand, grab, model

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 · 573 lines · 19 KB · GPL-3.0 · 1 match

  1. import os
  2. import time
  3. import numpy as np
  4. import torch
  5. import torch.nn as nn
  6. import torch.optim as optim
  7. from torch.utils.data import Dataset, DataLoader, random_split
  8. from sklearn.preprocessing import StandardScaler
  9. from sklearn.model_selection import train_test_split
  10. from sklearn.metrics import confusion_matrix, classification_report
  11. import pandas as pd
  12. import matplotlib.pyplot as plt
  13. import seaborn as sns
  14. import csv
  15. from torch.optim.lr_scheduler import CosineAnnealingLR
  16. import json
  17. from datetime import datetime
  18. import warnings
  19. warnings.filterwarnings('ignore')
  20. # ===== 1. 可配置的模型架构 =====
  21. class ConfigurableCNN(nn.Module):
  22. """可配置的一维卷积分类器,支持消融实验"""
  23. def __init__(self, input_size=3, num_classes=5,
  24. conv_layers=3,
  25. feature_sizes=None,
  26. use_batchnorm=True,
  27. dropout_rate=0.5):
  28. """
  29. input_size: 输入特征数
  30. num_classes: 分类数
  31. conv_layers: 卷积层数量
  32. feature_sizes: 各层特征数列表
  33. use_batchnorm: 是否使用BatchNorm
  34. dropout_rate: Dropout率
  35. """
  36. super().__init__()
  37. if feature_sizes is None:
  38. # 默认特征数配置
  39. feature_sizes = [64, 128, 256, 512][:conv_layers]
  40. # 确保特征数列表长度与卷积层数匹配
  41. if len(feature_sizes) < conv_layers:
  42. # 扩展特征数列表
  43. last_size = feature_sizes[-1] if feature_sizes else 64
  44. feature_sizes.extend([last_size * 2] * (conv_layers - len(feature_sizes)))
  45. self.conv_layers = conv_layers
  46. self.use_batchnorm = use_batchnorm
  47. self.feature_sizes = feature_sizes
  48. # 构建卷积层
  49. conv_blocks = []
  50. in_channels = input_size
  51. for i in range(conv_layers):
  52. out_channels = feature_sizes[i]
  53. # 卷积层
  54. conv_layer = nn.Conv1d(in_channels, out_channels,
  55. kernel_size=5 if i < 2 else 3,
  56. padding=2 if i < 2 else 1)
  57. conv_blocks.append(conv_layer)
  58. # BatchNorm层
  59. if use_batchnorm:
  60. conv_blocks.append(nn.BatchNorm1d(out_channels))
  61. # ReLU激活函数
  62. conv_blocks.append(nn.ReLU())
  63. # 池化层(最后一层使用自适应池化)
  64. if i < conv_layers - 1:
  65. conv_blocks.append(nn.MaxPool1d(kernel_size=2))
  66. else:
  67. conv_blocks.append(nn.AdaptiveMaxPool1d(1))
  68. in_channels = out_channels
  69. self.conv_sequential = nn.Sequential(*conv_blocks)
  70. # 全连接层
  71. self.dropout = nn.Dropout(dropout_rate)
  72. self.fc = nn.Linear(in_channels, num_classes)
  73. def forward(self, x):
  74. # 输入 shape: (batch, seq_len, input_size)
  75. x = x.permute(0, 2, 1) # -> (batch, input_size, seq_len)
  76. x = self.conv_sequential(x)
  77. x = x.squeeze(-1) # (batch, features)
  78. x = self.dropout(x)
  79. out = self.fc(x)
  80. return out
  81. # ===== 2. 数据集类(保持不变) =====
  82. def enhance_features(arr):
  83. """增加差分和移动平均特征"""
  84. diff = np.diff(arr, prepend=arr[0])
  85. moving_avg = np.convolve(arr, np.ones(5) / 5, mode='same')
  86. return np.stack([arr, diff, moving_avg], axis=-1)
  87. class GestureDataset(Dataset):
  88. def __init__(self, data_dir):
  89. self.data = []
  90. self.labels = []
  91. self.label_map = {'byebye': 0, 'grab on something': 1, 'shake hand': 2, 'help dress': 3, 'pass something': 4}
  92. self.label_names = list(self.label_map.keys())
  93. for label_name, label_idx in self.label_map.items():
  94. label_dir = os.path.join(data_dir, label_name)
  95. for file in os.listdir(label_dir):
  96. if file.endswith('.npy'):
  97. file_path = os.path.join(label_dir, file)
  98. arr = np.load(file_path)
  99. if arr.ndim > 1 and arr.shape[1] > 1:
  100. arr = arr[:, 1]
  101. arr = enhance_features(arr)
  102. self.data.append(arr)
  103. self.labels.append(label_idx)
  104. max_len = max(len(x) for x in self.data)
  105. self.data = [
  106. np.pad(x, ((0, int(max_len - len(x))), (0, 0)), mode='constant')
  107. if len(x) < max_len
  108. else x[:int(max_len)]
  109. for x in self.data
  110. ]
  111. self.data = np.stack(self.data)
  112. self.scaler = StandardScaler()
  113. orig_shape = self.data.shape
  114. self.data = self.scaler.fit_transform(
  115. self.data.reshape(-1, self.data.shape[-1])
  116. ).reshape(orig_shape)
  117. print(f"数据形状: {self.data.shape}")
  118. def __len__(self):
  119. return len(self.data)
  120. def __getitem__(self, idx):
  121. sample = self.data[idx].copy()
  122. noise = np.random.normal(0, 0.01, sample.shape)
  123. sample += noise
  124. mask = np.random.choice([0, 1], size=sample.shape[0], p=[0.05, 0.95])
  125. sample[mask == 0] = 0
  126. return torch.tensor(sample, dtype=torch.float32), self.labels[idx]
  127. # ===== 3. 消融实验训练函数 =====
  128. def ablation_train_model(data_dir, experiment_config, experiment_name):
  129. """
  130. 执行消融实验的训练函数
  131. Parameters:
  132. - data_dir: 数据目录
  133. - experiment_config: 实验配置字典
  134. - experiment_name: 实验名称(用于保存结果)
  135. """
  136. # 创建实验专属目录
  137. exp_dir = f"experiments/{experiment_name}"
  138. os.makedirs(exp_dir, exist_ok=True)
  139. # 保存实验配置
  140. with open(f"{exp_dir}/config.json", 'w') as f:
  141. json.dump(experiment_config, f, indent=2)
  142. # 记录训练开始时间
  143. start_time = time.perf_counter()
  144. # 准备数据集
  145. dataset = GestureDataset(data_dir)
  146. train_data, test_data = train_test_split(dataset, test_size=0.2, random_state=50)
  147. # 使用配置中的批次大小
  148. batch_size = experiment_config.get('batch_size', 32)
  149. train_loader = DataLoader(train_data, batch_size=batch_size, shuffle=True)
  150. test_loader = DataLoader(test_data, batch_size=batch_size)
  151. # 初始化模型和设备
  152. device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
  153. # 创建可配置模型
  154. model = ConfigurableCNN(
  155. input_size=3,
  156. num_classes=5,
  157. conv_layers=experiment_config.get('conv_layers', 3),
  158. feature_sizes=experiment_config.get('feature_sizes', [64, 128, 256]),
  159. use_batchnorm=experiment_config.get('use_batchnorm', True),
  160. dropout_rate=experiment_config.get('dropout_rate', 0.5)
  161. ).to(device)
  162. # 损失函数
  163. criterion = nn.CrossEntropyLoss(label_smoothing=0.1)
  164. # 优化器(使用配置中的权重衰减)
  165. weight_decay = experiment_config.get('weight_decay', 0.001)
  166. no_decay = ["bias", "LayerNorm.weight"]
  167. optimizer_grouped_parameters = [
  168. {"params": [p for n, p in model.named_parameters()
  169. if not any(nd in n for nd in no_decay)], "weight_decay": weight_decay},
  170. {"params": [p for n, p in model.named_parameters()
  171. if any(nd in n for nd in no_decay)], "weight_decay": 0.0}
  172. ]
  173. optimizer = optim.AdamW(optimizer_grouped_parameters, lr=0.001)
  174. # 学习率调度
  175. scheduler = CosineAnnealingLR(optimizer, T_max=50, eta_min=1e-5)
  176. # 训练参数
  177. epochs = experiment_config.get('epochs', 100)
  178. train_losses, train_accs, val_accs = [], [], []
  179. best_val_acc = 0.0
  180. # 创建实验专属日志文件
  181. log_file = f"{exp_dir}/training_log.csv"
  182. with open(log_file, 'w', newline='') as f:
  183. writer = csv.writer(f)
  184. writer.writerow(['epoch', 'train_loss', 'train_acc', 'val_acc', 'epoch_time', 'lr'])
  185. print(f"\n=== 开始实验: {experiment_name} ===")
  186. print(f"配置: {experiment_config}")
  187. # 训练循环
  188. for epoch in range(epochs):
  189. epoch_start = time.perf_counter()
  190. model.train()
  191. running_loss = 0.0
  192. correct = 0
  193. total = 0
  194. for inputs, labels in train_loader:
  195. inputs, labels = inputs.to(device), labels.to(device)
  196. optimizer.zero_grad()
  197. outputs = model(inputs)
  198. loss = criterion(outputs, labels)
  199. loss.backward()
  200. torch.nn.utils.clip_grad_norm_(model.parameters(), 1.0)
  201. optimizer.step()
  202. running_loss += loss.item()
  203. _, predicted = torch.max(outputs.data, 1)
  204. total += labels.size(0)
  205. correct += (predicted == labels).sum().item()
  206. scheduler.step()
  207. current_lr = scheduler.get_last_lr()[0]
  208. epoch_loss = running_loss / len(train_loader)
  209. train_acc = 100 * correct / total
  210. train_losses.append(epoch_loss)
  211. train_accs.append(train_acc)
  212. # 验证阶段
  213. model.eval()
  214. val_correct = 0
  215. val_total = 0
  216. all_preds = []
  217. all_labels = []
  218. with torch.no_grad():
  219. for inputs, labels in test_loader:
  220. inputs, labels = inputs.to(device), labels.to(device)
  221. outputs = model(inputs)
  222. _, predicted = torch.max(outputs.data, 1)
  223. val_total += labels.size(0)
  224. val_correct += (predicted == labels).sum().item()
  225. all_preds.extend(predicted.cpu().numpy())
  226. all_labels.extend(labels.cpu().numpy())
  227. val_acc = 100 * val_correct / val_total
  228. val_accs.append(val_acc)
  229. # 保存最佳模型
  230. if val_acc > best_val_acc:
  231. best_val_acc = val_acc
  232. torch.save(model.state_dict(), f"{exp_dir}/best_model.pth")
  233. epoch_time = time.perf_counter() - epoch_start
  234. # 记录日志
  235. with open(log_file, 'a', newline='') as f:
  236. writer = csv.writer(f)
  237. writer.writerow([epoch + 1, epoch_loss, train_acc, val_acc, epoch_time, current_lr])
  238. if (epoch + 1) % 20 == 0:
  239. print(f'Epoch {epoch + 1}/{epochs}, Loss: {epoch_loss:.4f}, '
  240. f'Train Acc: {train_acc:.2f}%, Val Acc: {val_acc:.2f}%')
  241. # 计算总训练时间
  242. total_time = time.perf_counter() - start_time
  243. print(f'实验完成: {experiment_name}')
  244. print(f'总训练时间: {total_time:.2f}秒')
  245. print(f'最佳验证准确率: {best_val_acc:.2f}%')
  246. # 保存训练时间
  247. with open(f'{exp_dir}/training_time.txt', 'w') as f:
  248. f.write(f"实验名称: {experiment_name}\n")
  249. f.write(f"总训练时间: {total_time:.2f}秒\n")
  250. f.write(f"最佳验证准确率: {best_val_acc:.2f}%\n")
  251. f.write(f"配置参数: {experiment_config}\n")
  252. # 保存最终模型
  253. torch.save(model.state_dict(), f"{exp_dir}/final_model.pth")
  254. # 生成混淆矩阵和分类报告
  255. cm = confusion_matrix(all_labels, all_preds)
  256. plt.figure(figsize=(10, 8))
  257. sns.heatmap(cm, annot=True, fmt='d', cmap='Blues',
  258. xticklabels=dataset.label_names,
  259. yticklabels=dataset.label_names)
  260. plt.title(f'混淆矩阵 - {experiment_name}')
  261. plt.xlabel('预测标签')
  262. plt.ylabel('真实标签')
  263. plt.savefig(f'{exp_dir}/confusion_matrix.png')
  264. plt.close()
  265. cm_df = pd.DataFrame(cm, index=dataset.label_names, columns=dataset.label_names)
  266. cm_df.to_csv(f'{exp_dir}/confusion_matrix.csv')
  267. report = classification_report(all_labels, all_preds, target_names=dataset.label_names)
  268. with open(f'{exp_dir}/classification_report.txt', 'w') as f:
  269. f.write(report)
  270. # 训练曲线可视化
  271. plt.figure(figsize=(12, 4))
  272. plt.subplot(1, 2, 1)
  273. plt.plot(train_losses)
  274. plt.title('训练损失')
  275. plt.xlabel('训练轮次')
  276. plt.subplot(1, 2, 2)
  277. plt.plot(train_accs, label='训练准确率')
  278. plt.plot(val_accs, label='验证准确率')
  279. plt.title('准确率曲线')
  280. plt.xlabel('训练轮次')
  281. plt.legend()
  282. plt.tight_layout()
  283. plt.savefig(f'{exp_dir}/training_curve.png')
  284. plt.close()
  285. # 保存训练曲线数据
  286. curve_df = pd.DataFrame({
  287. 'epoch': range(1, epochs + 1),
  288. 'train_loss': train_losses,
  289. 'train_acc': train_accs,
  290. 'val_acc': val_accs
  291. })
  292. curve_df.to_csv(f'{exp_dir}/training_curve_data.csv', index=False)
  293. return {
  294. 'experiment_name': experiment_name,
  295. 'config': experiment_config,
  296. 'best_val_acc': best_val_acc,
  297. 'total_time': total_time,
  298. 'final_val_acc': val_accs[-1] if val_accs else 0
  299. }
  300. # ===== 4. 消融实验主函数 =====
  301. def run_ablation_experiments(data_dir):
  302. """运行完整的消融实验系列"""
  303. # 定义消融实验配置
  304. ablation_configs = [
  305. # 基线配置
  306. {
  307. 'name': 'baseline',
  308. 'conv_layers': 3,
  309. 'feature_sizes': [64, 128, 256],
  310. 'use_batchnorm': True,
  311. 'weight_decay': 0.001,
  312. 'batch_size': 64,
  313. 'epochs': 140
  314. },
  315. # 卷积层数量消融
  316. {
  317. 'name': 'conv_layers_2',
  318. 'conv_layers': 2,
  319. 'feature_sizes': [64, 128],
  320. 'use_batchnorm': True,
  321. 'weight_decay': 0.001,
  322. 'batch_size': 64,
  323. 'epochs': 120
  324. },
  325. {
  326. 'name': 'conv_layers_4',
  327. 'conv_layers': 4,
  328. 'feature_sizes': [64, 128, 256, 512],
  329. 'use_batchnorm': True,
  330. 'weight_decay': 0.001,
  331. 'batch_size': 64,
  332. 'epochs': 140
  333. },
  334. # 特征数消融
  335. {
  336. 'name': 'features_small',
  337. 'conv_layers': 3,
  338. 'feature_sizes': [32, 64, 128],
  339. 'use_batchnorm': True,
  340. 'weight_decay': 0.001,
  341. 'batch_size': 64,
  342. 'epochs': 140
  343. },
  344. {
  345. 'name': 'features_large',
  346. 'conv_layers': 3,
  347. 'feature_sizes': [128, 256, 512],
  348. 'use_batchnorm': True,
  349. 'weight_decay': 0.001,
  350. 'batch_size': 64,
  351. 'epochs': 140
  352. },
  353. # BatchNorm消融
  354. {
  355. 'name': 'no_batchnorm',
  356. 'conv_layers': 3,
  357. 'feature_sizes': [64, 128, 256],
  358. 'use_batchnorm': False,
  359. 'weight_decay': 0.001,
  360. 'batch_size': 64,
  361. 'epochs': 140
  362. },
  363. # 正则化率消融
  364. {
  365. 'name': 'weight_decay_high',
  366. 'conv_layers': 3,
  367. 'feature_sizes': [64, 128, 256],
  368. 'use_batchnorm': True,
  369. 'weight_decay': 0.01,
  370. 'batch_size': 64,
  371. 'epochs': 140
  372. },
  373. {
  374. 'name': 'weight_decay_low',
  375. 'conv_layers': 3,
  376. 'feature_sizes': [64, 128, 256],
  377. 'use_batchnorm': True,
  378. 'weight_decay': 0.0001,
  379. 'batch_size': 64,
  380. 'epochs': 140
  381. },
  382. # 批次大小消融
  383. {
  384. 'name': 'batch_size_16',
  385. 'conv_layers': 3,
  386. 'feature_sizes': [64, 128, 256],
  387. 'use_batchnorm': True,
  388. 'weight_decay': 0.001,
  389. 'batch_size': 16,
  390. 'epochs': 140
  391. },
  392. {
  393. 'name': 'batch_size_64',
  394. 'conv_layers': 3,
  395. 'feature_sizes': [64, 128, 256],
  396. 'use_batchnorm': True,
  397. 'weight_decay': 0.001,
  398. 'batch_size': 64,
  399. 'epochs': 140
  400. }
  401. ]
  402. # 运行所有实验
  403. results = []
  404. timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
  405. for config in ablation_configs:
  406. experiment_name = f"{timestamp}_{config['name']}"
  407. result = ablation_train_model(data_dir, config, experiment_name)
  408. results.append(result)
  409. # 短暂暂停,避免文件写入冲突
  410. time.sleep(1)
  411. # 生成消融实验总结报告
  412. generate_ablation_summary(results, timestamp)
  413. return results
  414. def generate_ablation_summary(results, timestamp):
  415. """生成消融实验总结报告"""
  416. summary_dir = f"experiments/summary_{timestamp}"
  417. os.makedirs(summary_dir, exist_ok=True)
  418. # 创建结果汇总表格
  419. summary_data = []
  420. for result in results:
  421. summary_data.append({
  422. '实验名称': result['experiment_name'],
  423. '卷积层数': result['config'].get('conv_layers', 3),
  424. '特征数': str(result['config'].get('feature_sizes', [64, 128, 256])),
  425. '使用BatchNorm': result['config'].get('use_batchnorm', True),
  426. '权重衰减': result['config'].get('weight_decay', 0.001),
  427. '批次大小': result['config'].get('batch_size', 32),
  428. '最佳验证准确率': f"{result['best_val_acc']:.2f}%",
  429. '最终验证准确率': f"{result['final_val_acc']:.2f}%",
  430. '总训练时间': f"{result['total_time']:.2f}秒"
  431. })
  432. summary_df = pd.DataFrame(summary_data)
  433. summary_df.to_csv(f"{summary_dir}/ablation_summary.csv", index=False, encoding='utf-8-sig')
  434. # 创建可视化比较图
  435. plt.figure(figsize=(15, 10))
  436. # 准确率比较
  437. plt.subplot(2, 2, 1)
  438. names = [r['experiment_name'].split('_')[-1] for r in results]
  439. accuracies = [r['best_val_acc'] for r in results]
  440. plt.bar(names, accuracies)
  441. plt.title('各实验最佳验证准确率比较')
  442. plt.xticks(rotation=45)
  443. plt.ylabel('准确率 (%)')
  444. # 训练时间比较
  445. plt.subplot(2, 2, 2)
  446. times = [r['total_time'] for r in results]
  447. plt.bar(names, times)
  448. plt.title('各实验总训练时间比较')
  449. plt.xticks(rotation=45)
  450. plt.ylabel('时间 (秒)')
  451. # 准确率-时间散点图
  452. plt.subplot(2, 2, 3)
  453. plt.scatter(times, accuracies)
  454. for i, name in enumerate(names):
  455. plt.annotate(name, (times[i], accuracies[i]))
  456. plt.xlabel('训练时间 (秒)')
  457. plt.ylabel('准确率 (%)')
  458. plt.title('准确率 vs 训练时间')
  459. plt.tight_layout()
  460. plt.savefig(f"{summary_dir}/ablation_comparison.png", dpi=300, bbox_inches='tight')
  461. plt.close()
  462. print(f"\n=== 消融实验总结已保存至: {summary_dir} ===")
  463. print(summary_df.to_string(index=False))
  464. # ===== 5. 主程序 =====
  465. if __name__ == '__main__':
  466. data_dir = '.' # 当前目录下的子文件夹
  467. print("开始运行消融实验...")
  468. print("实验配置: 卷积层数量, 特征数, BatchNorm, 正则化率, 批次大小")
  469. # 运行消融实验
  470. results = run_ablation_experiments(data_dir)
  471. print("\n=== 所有实验完成 ===")
  472. print("各实验结果已分别保存到 experiments/ 目录下")
  473. print("总结报告已生成,包含准确率和训练时间的比较")

Ablation.py, under GPL-3.0 · at the source

Overview

Authors: Yuchen Lin1, Shifan Yu1, Lei Liu1, Huasen Wang1, Yuhui Wang1, Mengting Jiang1, Gantang Su1, Yue Yu1, Hongyu Chen1, Yanhao Luo1, Zijian Huang1, Chenwei Li1, Junzhi Yu1, Ziquan Guo1, Yuhan Su1, Zhong Chen1, Lichao Yang2, Zhenyu Zhao3, Qingliang Liao4,5, Yuanjin Zheng6, Xinqin Liao1
  1. Department of Electronic Science, Xiamen University,Xiamen, China
  2. School of Medicine, Xiamen University,Xiamen, China
  3. Department of Electrical and Computer Engineering, National University of Singapore,Singapore, Singapore
  4. Academy for Advanced Interdisciplinary Science and Technology, Key Laboratory of Advanced Materials and Devices for Post-Moore Chips Ministry of Education, University of Science and Technology Beijing,Beijing, China
  5. Beijing Key Laboratory for Advanced Energy Materials and Technologies, School of Materials Science and Engineering, University of Science and Technology Beijing,Beijing, China
  6. School of Electrical and Electronic Engineering, Nanyang Technological University,Singapore, Singapore
Journal: Nature communications, volume 17, issue 1, article 7182
Dates: received 27 January 2026; accepted 22 May 2026; published online 4 June 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1038/s41467-026-74035-7 · PMID 42243139 · PMCID PMC13396449 · OpenAlex W7163538680
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: human (organism), cognitive (subfield)
Methods: Spectral & time-frequency, Machine learning, Smoothing, state filtering, decompositions, Physiology & signal measures
Keywords: Electrical and electronic engineering, Sensors and biosensors, Electronics, photonics and device physics
MeSH: Speech*, Textiles*, Humans (* major topic)
Topic: Advanced Sensor and Energy Harvesting Materials (Biomedical Engineering, Engineering), according to OpenAlex
Citations: cited by 1 paper (Europe PMC); 52 references in the paper

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, with 3 matches between paragraphs and lines of code.

Zenodo 20222608

License: GPL-3.0
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Size: 1 file
Software Heritage: not checked
Found in: “Code availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: NumPy (6 files), PyTorch (5 files), Matplotlib (4 files), pandas (4 files), scikit-learn (4 files), seaborn (4 files), SciPy (2 files)
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
  • 27 September 2026: the link answers (HTTP 200)
6 files

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:

Read it in the paper: doi.org/10.1038/s41467-026-74035-7.

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;
  • 6 scripts, each with its path and the digest of its content;
  • 3 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 statement

The paper has a data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:

  • no repository, dataset or request procedure was recognized in it

Read it in the paper: doi.org/10.1038/s41467-026-74035-7.

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

Recorded: type, language, journal, volume, issue, pages, dates, 21 authors, 3 keywords, 3 MeSH terms, 48 references.

Cite

This paper

Lin, Y., Yu, S., Liu, L., Wang, H., Wang, Y., Jiang, M., Su, G., Yu, Y., Chen, H., Luo, Y., Huang, Z., Li, C., Yu, J., Guo, Z., Su, Y., Chen, Z., Yang, L., Zhao, Z., Liao, Q., . . . Liao, X. (2026). An in-sensor communication electronic textile for imperceptible and ultrarobust silent speech. Nature communications, 17(1), 7182. https://doi.org/10.1038/s41467-026-74035-7

BibTeX

@article{lin2026sensor,
author = {Lin, Yuchen and Yu, Shifan and Liu, Lei and Wang, Huasen and Wang, Yuhui and Jiang, Mengting and Su, Gantang and Yu, Yue and Chen, Hongyu and Luo, Yanhao and Huang, Zijian and Li, Chenwei and Yu, Junzhi and Guo, Ziquan and Su, Yuhan and Chen, Zhong and Yang, Lichao and Zhao, Zhenyu and Liao, Qingliang and Zheng, Yuanjin and Liao, Xinqin},
title = {{An in-sensor communication electronic textile for imperceptible and ultrarobust silent speech}},
journal = {Nature communications},
year = {2026},
month = jun,
volume = {17},
number = {1},
pages = {7182},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/s41467-026-74035-7},
url = {https://doi.org/10.1038/s41467-026-74035-7},
pmid = {42243139},
pmcid = {PMC13396449}
}

RIS

TY - JOUR
AU - Lin, Yuchen
AU - Yu, Shifan
AU - Liu, Lei
AU - Wang, Huasen
AU - Wang, Yuhui
AU - Jiang, Mengting
AU - Su, Gantang
AU - Yu, Yue
AU - Chen, Hongyu
AU - Luo, Yanhao
AU - Huang, Zijian
AU - Li, Chenwei
AU - Yu, Junzhi
AU - Guo, Ziquan
AU - Su, Yuhan
AU - Chen, Zhong
AU - Yang, Lichao
AU - Zhao, Zhenyu
AU - Liao, Qingliang
AU - Zheng, Yuanjin
AU - Liao, Xinqin
TI - An in-sensor communication electronic textile for imperceptible and ultrarobust silent speech
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/06/04
VL - 17
IS - 1
SP - 7182
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/s41467-026-74035-7
UR - https://doi.org/10.1038/s41467-026-74035-7
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41467-026-74035-7",
"type": "article-journal",
"title": "An in-sensor communication electronic textile for imperceptible and ultrarobust silent speech",
"container-title": "Nature communications",
"author": [
{
"family": "Lin",
"given": "Yuchen"
},
{
"family": "Yu",
"given": "Shifan"
},
{
"family": "Liu",
"given": "Lei"
},
{
"family": "Wang",
"given": "Huasen"
},
{
"family": "Wang",
"given": "Yuhui"
},
{
"family": "Jiang",
"given": "Mengting"
},
{
"family": "Su",
"given": "Gantang"
},
{
"family": "Yu",
"given": "Yue"
},
{
"family": "Chen",
"given": "Hongyu"
},
{
"family": "Luo",
"given": "Yanhao"
},
{
"family": "Huang",
"given": "Zijian"
},
{
"family": "Li",
"given": "Chenwei"
},
{
"family": "Yu",
"given": "Junzhi"
},
{
"family": "Guo",
"given": "Ziquan"
},
{
"family": "Su",
"given": "Yuhan"
},
{
"family": "Chen",
"given": "Zhong"
},
{
"family": "Yang",
"given": "Lichao"
},
{
"family": "Zhao",
"given": "Zhenyu"
},
{
"family": "Liao",
"given": "Qingliang"
},
{
"family": "Zheng",
"given": "Yuanjin"
},
{
"family": "Liao",
"given": "Xinqin"
}
],
"container-title-short": "Nat Commun",
"volume": "17",
"issue": "1",
"page": "7182",
"DOI": "10.1038/s41467-026-74035-7",
"PMID": "42243139",
"PMCID": "PMC13396449",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41467-026-74035-7",
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
4
]
]
}
}

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.3390/brainsci16030300 [code]
Source-Free Active Domain Adaptation for Brain Tumor Segmentation via Mamba and Region-Level Uncertainty.
Journal: Brain sciences
In common: author Zhong Chen
[2] doi:10.1038/s41467-026-76168-1 [code]
An intelligent electronic-textile system with adaptive sweat-regulation for continuous exercise-induced fatigue monitoring.
Journal: Nature communications
In common: 1 reference
[3] doi:10.1038/s41467-026-70093-z
Conformal and adhesive gel for stable electrophysiology on hairy animals without shaving.
Journal: Nature communications
In common: 1 reference
[4] doi:10.1186/s12974-026-03844-w
SGK1 inhibition supports neuroprotection in spinal cord injury by suppressing oxidative stress and AIM2 activation via FoxO1 mediated mitophagy.
Journal: Journal of neuroinflammation
In common: 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.