OSCR

VarCoNet: A Variability-Aware Self-Supervised Framework for Functional Connectome Extraction From Resting-State fMRI.

Code ↔ Paper

4 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 4 matches
  1. [1] § Methods › Implementation Details ↔ ASD_classification_ABIDEI.py, lines 197–258 · score 0.68 · linear warmup cosine, annealing learning rate, warmup epochs, Adam, scheduler, VarCoNet
  2. [2] § Methods › Implementation Details ↔ subject_fingerprinting.py, lines 90–227 · score 0.68 · linear warmup cosine, annealing learning rate, warmup epochs, Adam, scheduler, VarCoNet
  3. [3] § Results › ASD Classification Performance ↔ result_scripts/display_results_ABIDE.py, lines 1132–1211 · score 0.64 · BAnD, CVFormer, DeepFMRI, GCDA, GCL, UCGL
  4. [4] § Methods › VarCoNet › rs‐fMRI Encoder ↔ model_scripts/VarCoNet.py, lines 26–60 · score 0.55 · positional encodings, Transformer encoder, trainable, kernels, CNN, layer

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 · 386 lines · 18 KB · MIT · 1 match

  1. from torch.utils.data import DataLoader
  2. import numpy as np
  3. import torch
  4. from utils import InfoNCE
  5. from tqdm import tqdm
  6. from torch.optim import Adam
  7. from utils import DualBranchContrast
  8. from pl_bolts.optimizers import LinearWarmupCosineAnnealingLR
  9. from model_scripts.VarCoNet import VarCoNet
  10. from utils import ABIDEDataset
  11. import os
  12. from model_scripts.classifier import LREvaluator
  13. import pickle
  14. from sklearn.model_selection import train_test_split, StratifiedKFold
  15. from utils import augment, removeDuplicates, test_augment_overlap
  16. import copy
  17. import argparse
  18. def train(x, encoder_model, contrast_model, optimizer):
  19. encoder_model.train()
  20. optimizer.zero_grad()
  21. z1 = encoder_model(x[0])
  22. z2 = encoder_model(x[1])
  23. loss = contrast_model(z1, z2)
  24. loss.backward()
  25. optimizer.step()
  26. return loss.item(), z1.shape[1]
  27. def test(encoder_model, train_loader, val_loader, test_loader,
  28. min_length, max_length, num_classes, device, num_epochs, lr):
  29. encoder_model.eval()
  30. with torch.no_grad():
  31. outputs_train = []
  32. y_train = []
  33. for (x,y) in train_loader:
  34. x = x.to(device)
  35. y_train.append(y)
  36. outputs_train.append(encoder_model(x))
  37. outputs_train = torch.cat(outputs_train, dim=0).clone().detach()
  38. y_train = torch.cat(y_train,dim=0).to(device)
  39. outputs_val = []
  40. y_val = []
  41. for (x,y) in val_loader:
  42. x = x.to(device)
  43. y_val.append(y)
  44. outputs_val.append(encoder_model(x))
  45. outputs_val = torch.cat(outputs_val, dim=0).clone().detach()
  46. y_val = torch.cat(y_val,dim=0).to(device)
  47. outputs_test= []
  48. y_test = []
  49. for (x,y) in test_loader:
  50. x = x.to(device)
  51. y_test.append(y)
  52. outputs_test.append(encoder_model(x))
  53. outputs_test = torch.cat(outputs_test, dim=0).clone().detach()
  54. y_test = torch.cat(y_test,dim=0).to(device)
  55. result,linear_state_dict = LREvaluator(num_epochs=num_epochs,learning_rate=lr).evaluate(encoder_model, outputs_train, y_train, outputs_val, y_val, outputs_test, y_test, num_classes, device)
  56. return result,linear_state_dict
  57. def main(config):
  58. path = config['path_data']
  59. names = []
  60. with open(os.path.join(path,'ABIDEI_nilearn_names.txt'), 'r') as f:
  61. for line in f:
  62. names.append(line.strip())
  63. data_list = np.load(os.path.join(path,'ABIDEI_nilearn_' + config['atlas'] + '.npz'))
  64. data = []
  65. for key in data_list:
  66. data.append(data_list[key])
  67. names_unique, counts = np.unique(names, return_counts=True)
  68. names_dupl = names_unique[counts > 1]
  69. pos_duplicates = []
  70. names_duplicate = []
  71. for name in names_dupl:
  72. temp = np.where(np.array(names) == name)[0]
  73. for t in temp:
  74. pos_duplicates.append(t)
  75. names_duplicate.append(name)
  76. names_unique = names_unique[counts == 1]
  77. pos_unique = []
  78. for name in names_unique:
  79. pos_unique.append(np.where(np.array(names) == name)[0][0])
  80. train_DATA = [data[i] for i in pos_duplicates]
  81. data = [data[i] for i in pos_unique]
  82. y = np.load(os.path.join(path,'ABIDEI_nilearn_classes.npy'))
  83. Y_train = y[pos_duplicates]
  84. y = y[pos_unique]
  85. ext_test = list(range(51456,51494))
  86. names_ext_test = []
  87. for name in ext_test:
  88. if 'sub-00'+str(name) in names_unique:
  89. names_ext_test.append('sub-00'+str(name))
  90. names = []
  91. for name in names_unique:
  92. if name not in names_ext_test:
  93. names.append(name)
  94. pos_ext_test = []
  95. for name in names_ext_test:
  96. pos_ext_test.append(np.where(np.array(names_unique) == name)[0][0])
  97. ext_test_data = [data[i] for i in pos_ext_test]
  98. y_ext_test = y[pos_ext_test]
  99. pos = []
  100. for name in names:
  101. pos.append(np.where(np.array(names_unique) == name)[0][0])
  102. data = [data[i] for i in pos]
  103. y = y[pos]
  104. device = torch.device(config['device']) if torch.cuda.is_available() else torch.device("cpu")
  105. max_length = data[0].shape[0]
  106. train_length_limits = [config['min_length'], max_length]
  107. eval_epochs = list(range(1, config['epochs']+1))
  108. model_config = config['model_config']
  109. model_config['max_length'] = max_length
  110. '''------------------------------------KFold CV------------------------------------'''
  111. losses_all = []
  112. test_result_all = []
  113. min_val_loss_epochs = []
  114. min_loss_epochs = []
  115. names_train_all = []
  116. names_val_all = []
  117. names_test_all = []
  118. for i in range(10):
  119. skf = StratifiedKFold(n_splits=10, shuffle = True, random_state=42+i)
  120. for j, (train_index, test_index) in enumerate(skf.split(data, y)):
  121. train_data = [data[n] for n in train_index]
  122. test_data = [data[n] for n in test_index]
  123. y_train = y[train_index]
  124. y_test = y[test_index]
  125. names_train = [names[n] for n in train_index]
  126. names_test = [names[n] for n in test_index]
  127. train_data, val_data, y_train, y_val, train_idx, val_idx = train_test_split(train_data,
  128. y_train,
  129. np.arange(len(train_data)),
  130. test_size=0.15,
  131. random_state=42,
  132. stratify=y_train)
  133. names_val = [names_train[n] for n in val_idx]
  134. names_train = [names_train[n] for n in train_idx]
  135. train_data = train_DATA + train_data
  136. y_train = np.concatenate((Y_train, y_train))
  137. names_train = names_duplicate + names_train
  138. train_dataset = ABIDEDataset(train_data, y_train)
  139. train_loader = DataLoader(train_dataset, batch_size=config['batch_size'],
  140. shuffle = config['shuffle'])
  141. val_dataset = ABIDEDataset(val_data, y_val)
  142. val_loader = DataLoader(val_dataset, batch_size=config['batch_size'])
  143. test_dataset = ABIDEDataset(test_data, y_test)
  144. test_loader = DataLoader(test_dataset, batch_size=config['batch_size'])
  145. names_train_all.append(names_train)
  146. names_val_all.append(names_val)
  147. names_test_all.append(names_test)
  148. roi_num = test_data[0].shape[1]
  149. encoder_model = VarCoNet(model_config, roi_num).to(device)
  150. contrast_model = DualBranchContrast(loss=InfoNCE(tau=config['tau']),mode='L2L').to(config['device'])
  151. optimizer = Adam(encoder_model.parameters(), lr=config['lr'])
  152. scheduler = LinearWarmupCosineAnnealingLR(
  153. optimizer=optimizer,
  154. warmup_start_lr = 1e-5,
  155. warmup_epochs=config['warm_up_epochs'],
  156. max_epochs=config['epochs'])
  157. min_val_loss = 1000
  158. test_result = []
  159. losses = []
  160. with tqdm(total=config['epochs'], desc='(T)') as pbar:
  161. for epoch in range(1,config['epochs']+1):
  162. total_loss = 0.0
  163. batch_count = 0
  164. for batch_idx, sample_inds in enumerate(train_loader.batch_sampler):
  165. sample_inds = removeDuplicates(names_train,sample_inds)
  166. batch_list = [train_data[i] for i in sample_inds]
  167. batch_loader = DataLoader(batch_list, batch_size=len(batch_list), num_workers=4)
  168. batch_data = next(iter(batch_loader))
  169. batch_data = augment(batch_data,train_length_limits,device)
  170. loss,input_dim = train(batch_data,encoder_model,contrast_model,
  171. optimizer)
  172. total_loss += loss
  173. batch_count += 1
  174. scheduler.step()
  175. average_loss = total_loss / batch_count if batch_count > 0 else float('nan')
  176. losses.append(average_loss)
  177. pbar.set_postfix({'loss': average_loss})
  178. pbar.update()
  179. if epoch in eval_epochs:
  180. res,linear_state_dict = test(encoder_model,train_loader,val_loader,test_loader,
  181. config['min_length'],max_length,config['num_classes'],
  182. config['device'],config['epochs_cls'],config['lr_cls'])
  183. test_result.append(res)
  184. if res['best_val_loss'] < min_val_loss:
  185. min_val_loss = res['best_val_loss']
  186. min_val_loss_model = copy.deepcopy(encoder_model.state_dict())
  187. min_val_loss_classifier = copy.deepcopy(linear_state_dict)
  188. min_val_loss_epoch = epoch
  189. losses_all.append(losses)
  190. test_result_all.append(test_result)
  191. min_val_loss_epochs.append(min_val_loss_epoch)
  192. if config['save_models']:
  193. if not os.path.exists(os.path.join(config['path_save'],'models_ABIDEI',config['atlas'],'VarCoNet')):
  194. os.makedirs(os.path.join(config['path_save'],'models_ABIDEI',config['atlas'],'VarCoNet'),exist_ok=True)
  195. torch.save(min_val_loss_model, os.path.join(config['path_save'],'models_ABIDEI',config['atlas'],'VarCoNet','min_val_loss_model_rs' + str(i) + '_fold' + str(j) + '.pth'))
  196. torch.save(min_val_loss_classifier, os.path.join(config['path_save'],'models_ABIDEI',config['atlas'],'VarCoNet','min_val_loss_classifier_rs' + str(i) + '_fold' + str(j) + '.pth'))
  197. '''------------------------------------Ext. test------------------------------------'''
  198. losses_all_ext = []
  199. ext_test_result_all = []
  200. min_val_loss_epochs_ext = []
  201. min_loss_epochs_ext = []
  202. names_train_ext_all = []
  203. names_val_ext_all = []
  204. for i in range(10):
  205. train_data, val_data, y_train, y_val, train_idx, val_idx = train_test_split(data,
  206. y,
  207. np.arange(len(data)),
  208. test_size=0.1,
  209. random_state=42+i,
  210. stratify=y)
  211. names_val = [names[n] for n in val_idx]
  212. names_train = [names[n] for n in train_idx]
  213. train_data = train_DATA + train_data
  214. y_train = np.concatenate((Y_train, y_train))
  215. names_train = names_duplicate + names_train
  216. train_dataset = ABIDEDataset(train_data, y_train)
  217. train_loader = DataLoader(train_dataset, batch_size=config['batch_size'], shuffle = config['shuffle'])
  218. val_dataset = ABIDEDataset(val_data, y_val)
  219. val_loader = DataLoader(val_dataset, batch_size=config['batch_size'])
  220. test_dataset = ABIDEDataset(ext_test_data, y_ext_test)
  221. test_loader = DataLoader(test_dataset, batch_size=config['batch_size'])
  222. names_train_ext_all.append(names_train)
  223. names_val_ext_all.append(names_val)
  224. roi_num = ext_test_data[0].shape[1]
  225. encoder_model = VarCoNet(model_config, roi_num).to(device)
  226. contrast_model = DualBranchContrast(loss=InfoNCE(tau=config['tau']),mode='L2L').to(config['device'])
  227. optimizer = Adam(encoder_model.parameters(), lr=config['lr'])
  228. scheduler = LinearWarmupCosineAnnealingLR(
  229. optimizer=optimizer,
  230. warmup_start_lr = 1e-5,
  231. warmup_epochs=config['warm_up_epochs'],
  232. max_epochs=config['epochs'])
  233. min_val_loss = 1000
  234. test_result = []
  235. losses = []
  236. with tqdm(total=config['epochs'], desc='(T)') as pbar:
  237. for epoch in range(1,config['epochs']+1):
  238. total_loss = 0.0
  239. batch_count = 0
  240. for batch_idx, sample_inds in enumerate(train_loader.batch_sampler):
  241. sample_inds = removeDuplicates(names_train,sample_inds)
  242. batch_list = [train_data[i] for i in sample_inds]
  243. batch_loader = DataLoader(batch_list, batch_size=len(batch_list))
  244. batch_data = next(iter(batch_loader))
  245. batch_data = augment(batch_data,train_length_limits,device)
  246. loss,input_dim = train(batch_data,encoder_model,contrast_model,
  247. optimizer)
  248. total_loss += loss
  249. batch_count += 1
  250. scheduler.step()
  251. average_loss = total_loss / batch_count if batch_count > 0 else float('nan')
  252. losses.append(average_loss)
  253. pbar.set_postfix({'loss': average_loss})
  254. pbar.update()
  255. if epoch in eval_epochs:
  256. res,linear_state_dict = test(encoder_model,train_loader,val_loader,test_loader,
  257. config['min_length'],max_length,config['num_classes'],
  258. config['device'],config['epochs_cls'],config['lr_cls'])
  259. test_result.append(res)
  260. if res['best_val_loss'] < min_val_loss:
  261. min_val_loss = res['best_val_loss']
  262. min_val_loss_model = copy.deepcopy(encoder_model.state_dict())
  263. min_val_loss_classifier = copy.deepcopy(linear_state_dict)
  264. min_val_loss_epoch = epoch
  265. losses_all_ext.append(losses)
  266. ext_test_result_all.append(test_result)
  267. min_val_loss_epochs_ext.append(min_val_loss_epoch)
  268. if config['save_models']:
  269. if not os.path.exists(os.path.join(config['path_save'],'models_ABIDEI',config['atlas'],'VarCoNet')):
  270. os.makedirs(os.path.join(config['path_save'],'models_ABIDEI',config['atlas'],'VarCoNet'),exist_ok=True)
  271. torch.save(min_val_loss_model, os.path.join(config['path_save'],'models_ABIDEI',config['atlas'],'VarCoNet','min_val_loss_model_rs' + str(i) + '.pth'))
  272. torch.save(min_val_loss_classifier, os.path.join(config['path_save'],'models_ABIDEI',config['atlas'],'VarCoNet','min_val_loss_classifier_rs' + str(i) + '.pth'))
  273. results = {}
  274. results['losses'] = losses_all
  275. results['epoch_results'] = test_result_all
  276. results['min_val_loss_epoch'] = min_val_loss_epochs
  277. results['min_loss_epoch'] = min_loss_epochs
  278. results['losses_ext'] = losses_all_ext
  279. results['epoch_results_ext'] = ext_test_result_all
  280. results['min_val_loss_epoch_ext'] = min_val_loss_epochs_ext
  281. results['min_loss_epoch_ext'] = min_loss_epochs_ext
  282. results['names_train'] = names_train_all
  283. results['names_val'] = names_val_all
  284. results['names_test'] = names_test_all
  285. results['names_train_ext'] = names_train_ext_all
  286. results['names_val_ext'] = names_val_ext_all
  287. results['names_ext_test'] = names_ext_test
  288. if config['save_results']:
  289. if not os.path.exists(os.path.join(config['path_save'],'results_ABIDEI',config['atlas'])):
  290. os.makedirs(os.path.join(config['path_save'],'results_ABIDEI',config['atlas']),exist_ok=True)
  291. with open(os.path.join(config['path_save'],'results_ABIDEI',config['atlas'],'ABIDEI_VarCoNet_results.pkl'), 'wb') as f:
  292. pickle.dump(results,f)
  293. return results
  294. if __name__ == '__main__':
  295. parser = argparse.ArgumentParser(description='Run VarCoNet on ABIDE I for ASD classification')
  296. parser.add_argument('--path_data', type=str,
  297. help='Path to the dataset')
  298. parser.add_argument('--path_save', type=str,
  299. help='Path to save results')
  300. parser.add_argument('--atlas', type=str, choices=['AICHA', 'AAL'], default='AICHA',
  301. help='Atlas type to use')
  302. parser.add_argument('--device', type=str, default='cuda:0',
  303. help='Device to use for training')
  304. parser.add_argument('--min_length', type=int, default=80,
  305. help='Minimum length for augmentation')
  306. parser.add_argument('--epochs', type=int, default=50,
  307. help='Number of epochs')
  308. parser.add_argument('--warm_up_epochs', type=int, default=10,
  309. help='Number of warm up epochs for the lr scheduler')
  310. parser.add_argument('--epochs_cls', type=int, default=150,
  311. help='Number of epochs for the linear classification layer')
  312. parser.add_argument('--lr_cls', type=float, default=5e-5,
  313. help='Learning rate for the linear classification layer')
  314. parser.add_argument('--num_classes', type=int, default=2,
  315. help='Number of classes for the classification')
  316. parser.add_argument('--save_models', action='store_true',
  317. help='Flag to save trained models')
  318. parser.add_argument('--save_results', action='store_true',
  319. help='Flag to save results')
  320. args = parser.parse_args()
  321. config = {
  322. 'path_data': args.path_data,
  323. 'path_save': args.path_save,
  324. 'atlas': args.atlas,
  325. 'min_length': args.min_length,
  326. 'shuffle': True,
  327. 'epochs': args.epochs,
  328. 'warm_up_epochs': args.warm_up_epochs,
  329. 'epochs_cls': args.epochs_cls,
  330. 'lr_cls': args.lr_cls,
  331. 'num_classes': args.num_classes,
  332. 'save_models': args.save_models,
  333. 'save_results': args.save_results,
  334. 'device': args.device,
  335. 'model_config': {}
  336. }
  337. with open(f'best_params_VarCoNet_{config["atlas"]}.pkl', 'rb') as f:
  338. best_params = pickle.load(f)
  339. config['batch_size'] = best_params['batch_size']
  340. config['tau'] = best_params['tau']
  341. config['lr'] = best_params['lr']
  342. config['model_config']['layers'] = best_params['layers']
  343. config['model_config']['n_heads'] = best_params['n_heads']
  344. config['model_config']['dim_feedforward'] = best_params['dim_feedforward']
  345. results = main(config)

ASD_classification_ABIDEI.py at commit 545a462, under MIT · at the source

Overview

Authors: Charalampos Lamprou1, Aamna Alshehhi1,2, Leontios J. Hadjileontiadis1,3, Mohamed L. Seghier1,2
  1. Department of Biomedical Engineering and Biotechnology Khalifa University of Science and Technology Abu Dhabi UAE
  2. Health Engineering Innovation Group (HEIG) Khalifa University of Science and Technology Abu Dhabi UAE
  3. Department of Electrical and Computer Engineering Aristotle University of Thessaloniki Thessaloniki Greece
Journal: Human brain mapping, volume 47, issue 4, article e70469
Dates: received 22 September 2025; accepted 30 January 2026; published online 11 March 2026; in print March 2026
Type: Research article · Language: English
License: CC BY-NC
Identifiers: DOI 10.1002/hbm.70469 · PMID 41810518 · PMCID PMC12976809 · OpenAlex W7134922520
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: fMRI (modality), human (organism), autism (population), methods / tools (subfield)
Methods: Spectral & time-frequency, Connectivity, Smoothing, state filtering, decompositions, Statistics, Machine learning, fMRI & imaging
Keywords: autism spectrum disorder classification, functional connectome, interindividual variability, resting‐state fMRI, self‐supervised learning, subject‐fingerprinting
MeSH: Autism Spectrum Disorder*, Brain*, Connectome*, Image Processing, Computer-Assisted*, Magnetic Resonance Imaging*, Nerve Net*, Supervised Machine Learning*, Convolutional Neural Networks, Humans (* major topic)
Topic: Functional Brain Connectivity Studies (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Citations: not cited yet (Europe PMC); 66 references in the paper

Abstract

Accounting for interindividual variability in brain function is key to precision medicine. Here, by considering functional interindividual variability as meaningful data rather than noise, we introduce VarCoNet, an enhanced self‐supervised framework for robust functional connectome (FC) extraction from resting‐state fMRI (rs‐fMRI) data. VarCoNet employs self‐supervised contrastive learning to exploit inherent functional interindividual variability, serving as a brain function encoder that generates FC embeddings readily applicable to downstream tasks even in the absence of labeled data. Contrastive learning is facilitated by a novel augmentation strategy based on segmenting rs‐fMRI signals. At its core, VarCoNet integrates a 1D‐convolutional neural network (CNN) with a Transformer encoder for advanced time‐series processing, enhanced with robust Bayesian hyperparameter optimization. Our VarCoNet framework is evaluated on two downstream tasks: (i) subject fingerprinting, using rs‐fMRI data from the Human Connectome Project (2117 recordings), and (ii) autism spectrum disorder (ASD) classification, using rs‐fMRI data from the Autism Brain Imaging Data Exchange (ABIDE) I (995 recordings) and II (730 recordings) datasets. Using different brain parcellations, our extensive testing against state‐of‐the‐art methods, including 13 deep learning methods, demonstrates VarCoNet's superiority, robustness, interpretability, and generalizability, achieving up to 98% subject fingerprinting accuracy and an area under the curve (AUC) of 72.6% for ASD classification. Overall, VarCoNet provides a versatile and robust framework for FC analysis in rs‐fMRI.

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

Repositories

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

LLNL/BAnD

License: none: the authors keep all their rights
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Commit: bd9f19e767345cc5e6ed6a323d84e395d115e27c, 22 July 2021
Languages: Python (22), Shell (1)
Size: 25 files, 23 scripts
Software Heritage: not archived
Found in: the text, “ASD Classification Baselines”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: PyTorch (11 files), NumPy (4 files)
Availability: 1 check, the latest on 30 September 2026: the link answers
  • 30 September 2026: the link answers
24 files
At the source: github.com/LLNL/BAnD

Wayfear/FBNETGEN

License: none: the authors keep all their rights
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Commit: 3ed6c813920966a40fca9ffca41f90a6384e333c, 18 May 2022
Languages: Python (19)
Size: 28 files, 19 scripts
Software Heritage: not archived
Found in: the text, “ASD Classification Baselines”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: NumPy (11 files), PyTorch (10 files), scikit-learn (5 files), pandas (4 files), Nilearn (2 files), SciPy (2 files)
Availability: 1 check, the latest on 30 September 2026: the link answers
  • 30 September 2026: the link answers
20 files

athms/learning-from-brains

License: none: the authors keep all their rights
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Commit: 126ab3c738ad81d50858ac90235820fae61b8b2e, 11 July 2023
Languages: Python (56)
Size: 85 files, 56 scripts
Software Heritage: archived
Found in: the text, “ASD Classification Baselines”
Holds: README, environment (Dockerfile, poetry.lock, pyproject.toml, requirements.txt), tests
Not found: license file, CITATION.cff, continuous integration, documentation
Tools: PyTorch (27 files), NumPy (18 files), pandas (11 files), Matplotlib (8 files), seaborn (8 files), Hugging Face Transformers (4 files), NiBabel (3 files), Nilearn (3 files), Pillow (1 file), scikit-learn (1 file), TemplateFlow (1 file)
Availability: 1 check, the latest on 30 September 2026: the link answers
  • 30 September 2026: the link answers
57 files

Wayfear/BrainNetworkTransformer

License: MIT
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Commit: 8a588aadad0166209269fa114e5df4e42209e207, 29 December 2022
Languages: Python (33)
Size: 58 files, 33 scripts
Software Heritage: not archived
Found in: the text, “ASD Classification Baselines”
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Tools: PyTorch (22 files), NumPy (8 files), scikit-learn (4 files), pandas (1 file)
Availability: 1 check, the latest on 30 September 2026: the link answers
  • 30 September 2026: the link answers
35 files

qbmizsj/A-GCL

License: none: the authors keep all their rights
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Commit: 08339b719642a5d886688330a4b562a031961091, 3 November 2023
Languages: Python (27)
Size: 98 files, 27 scripts
Software Heritage: not archived
Found in: the text, “ASD Classification Baselines”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: PyTorch (22 files), PyTorch Geometric (16 files), NumPy (9 files), scikit-learn (6 files), SciPy (5 files), Matplotlib (1 file), pandas (1 file), seaborn (1 file)
Availability: 1 check, the latest on 30 September 2026: the link answers
  • 30 September 2026: the link answers
28 files

icon-lab/BolT

License: GPL-3.0
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Commit: f7c713f9eaf4c37855e84ba125ea2d2f14474fac, 21 June 2023
Languages: Python (47)
Size: 51 files, 47 scripts
Software Heritage: not archived
Found in: the text, “ASD Classification Baselines”
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Tools: NumPy (27 files), PyTorch (17 files), pandas (10 files), scikit-learn (7 files), Matplotlib (3 files), Nilearn (3 files), seaborn (2 files), OpenCV (1 file), Pillow (1 file)
Availability: 1 check, the latest on 30 September 2026: the link answers
  • 30 September 2026: the link answers
49 files

SJYuCNEL/brain-and-Information-Bottleneck

License: none: the authors keep all their rights
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Commit: 35aa63da5464e1641eff2d2ea052a446a55e84ba, 6 November 2024
Languages: Python (11)
Size: 19 files, 11 scripts
Software Heritage: not archived
Found in: the text, “ASD Classification Baselines”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: PyTorch (11 files), PyTorch Geometric (8 files), NumPy (7 files), scikit-learn (3 files), SciPy (3 files), NetworkX (1 file)
Availability: 1 check, the latest on 30 September 2026: the link answers
  • 30 September 2026: the link answers
12 files

SJYuCNEL/brain-and-Information-Bottleneck.Graph

License: none: the authors keep all their rights
State: the link is dead, verified on 30 September 2026
Evidence: found in the paper
Software Heritage: not archived
Found in: the text, “ASD Classification Baselines”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 30 September 2026: the link is dead
  • 30 September 2026: the link is dead

CharLamp10/VarCoNet-V2

License: MIT
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Commit: 545a4624468e97b3771fc27c729cdc93761845d4, 7 November 2025
Languages: Python (45), R (3)
Size: 131 files, 48 scripts
Software Heritage: not archived
Found in: the text, “Implementation Details”
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Tools: NumPy (40 files), PyTorch (26 files), scikit-learn (17 files), pandas (11 files), SciPy (6 files), Nilearn (4 files), data.table (3 files), Matplotlib (3 files), PyTorch Geometric (3 files), seaborn (3 files), ggplot2 (2 files), NiBabel (2 files), Plotly (1 file), statannotations (1 file)
Availability: 1 check, the latest on 30 September 2026: the link answers
  • 30 September 2026: the link answers
50 files

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:

  • 9 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 264 scripts, each with its path and the digest of its content;
  • 4 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 data that support the findings of this study are openly available in VarCoNet‐V2 at https://github.com/CharLamp10/VarCoNet‐V2.

Reproduced under the paper's license (CC BY-NC), 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, 4 authors, 6 keywords, 9 MeSH terms, 1 funder, 51 references.

Cite

This paper

Lamprou, C., Alshehhi, A., Hadjileontiadis, L. J., & Seghier, M. L. (2026). VarCoNet: A Variability-Aware Self-Supervised Framework for Functional Connectome Extraction From Resting-State fMRI. Human brain mapping, 47(4), e70469. https://doi.org/10.1002/hbm.70469

BibTeX

@article{lamprou2026varconet,
author = {Lamprou, Charalampos and Alshehhi, Aamna and Hadjileontiadis, Leontios J. and Seghier, Mohamed L.},
title = {{VarCoNet: A Variability-Aware Self-Supervised Framework for Functional Connectome Extraction From Resting-State fMRI}},
journal = {Human brain mapping},
year = {2026},
month = mar,
volume = {47},
number = {4},
pages = {e70469},
publisher = {Wiley},
issn = {1065-9471},
doi = {10.1002/hbm.70469},
url = {https://doi.org/10.1002/hbm.70469},
pmid = {41810518},
pmcid = {PMC12976809}
}

RIS

TY - JOUR
AU - Lamprou, Charalampos
AU - Alshehhi, Aamna
AU - Hadjileontiadis, Leontios J.
AU - Seghier, Mohamed L.
TI - VarCoNet: A Variability-Aware Self-Supervised Framework for Functional Connectome Extraction From Resting-State fMRI
T2 - Human brain mapping
J2 - Hum Brain Mapp
PY - 2026
DA - 2026/03/01
VL - 47
IS - 4
SP - e70469
SN - 1065-9471
PB - Wiley
DO - 10.1002/hbm.70469
UR - https://doi.org/10.1002/hbm.70469
LA - en
ER -

CSL-JSON

{
"id": "10.1002/hbm.70469",
"type": "article-journal",
"title": "VarCoNet: A Variability-Aware Self-Supervised Framework for Functional Connectome Extraction From Resting-State fMRI",
"container-title": "Human brain mapping",
"author": [
{
"family": "Lamprou",
"given": "Charalampos"
},
{
"family": "Alshehhi",
"given": "Aamna"
},
{
"family": "Hadjileontiadis",
"given": "Leontios J."
},
{
"family": "Seghier",
"given": "Mohamed L."
}
],
"container-title-short": "Hum Brain Mapp",
"volume": "47",
"issue": "4",
"page": "e70469",
"DOI": "10.1002/hbm.70469",
"PMID": "41810518",
"PMCID": "PMC12976809",
"ISSN": "1065-9471",
"publisher": "Wiley",
"URL": "https://doi.org/10.1002/hbm.70469",
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
1
]
]
}
}

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.21203/rs.3.rs-9326213/v1 [code]
Multi-task fMRI outperforms resting-state fMRI for revealing task-invariant organization of the human brain
Journal: Research Square (preprint)
In common: statannotations, Nilearn, Plotly, 9 other tools, fMRI, 7 references
[2] doi:10.64898/2026.03.09.710558 [code]
Multi-task fMRI outperforms resting-state fMRI for revealing task-invariant organization of the human brain
Journal: bioRxiv (preprint)
In common: statannotations, Nilearn, Plotly, 9 other tools, fMRI, 7 references
[3] doi:10.1038/s41398-026-03965-z [code]
Disentangling individual heterogeneity reveals robust network and molecular signatures of major depressive disorder with suicidal ideation.
Journal: Translational psychiatry
In common: PyTorch Geometric, NetworkX, OpenCV, 9 other tools, 3 references
[4] doi:10.1038/s42003-026-10957-8 [code]
Brain defence by the extracellular matrix protein Cochlin.
Journal: Communications biology
In common: Hugging Face Transformers, NetworkX, Plotly, 11 other tools
[5] doi:10.1038/s42003-026-10011-7 [code]
Learning brain dynamics across distinct scaling regimes reveals psychiatric signatures.
Journal: Communications biology
In common: Hugging Face Transformers, Nilearn, NetworkX, 8 other tools, autism, 2 references
[6] doi:10.1016/j.patter.2026.101560 [code]
Automating region selection with genetic algorithms for energy landscape analyses of brain dynamics.
Journal: Patterns (New York, N.Y.)
In common: statannotations, Nilearn, NetworkX, 6 other tools, autism, fMRI, methods / tools, 3 references
[7] doi:10.64898/2026.08.18.26360725 [code]
Temporal pole blurring in hippocampal sclerosis reflects seizure-disrupted myelination
Journal: medRxiv (preprint)
In common: statannotations, PyTorch Geometric, Nilearn, 9 other tools, 1 reference
[8] doi:10.1162/imag.a.1198 [code]
MEPrep: A robust pipeline for multi-echo fMRI denoising and preprocessing.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: TemplateFlow, Nilearn, NiBabel, 5 other tools, fMRI, methods / tools, 4 references
[9] doi:10.1038/s41467-026-75959-w [code]
Charting higher-order models of brain function beyond pairwise interactions.
Journal: Nature communications
In common: Nilearn, NetworkX, NiBabel, 6 other tools, 5 references
[10] doi:10.1002/hbm.70557 [code]
Efficient Deep Learning Models for Predicting Individualized Task Activation From Resting-State Functional Connectivity.
Journal: Human brain mapping
In common: PyTorch Geometric, Nilearn, NiBabel, 7 other tools, fMRI, 3 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.

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.