DDSurfer: A Weakly-Supervised Dual-Stream Deep Learning Framework for Cortical Surface Reconstruction From Diffusion MRI.
The 13 matches · 1 of them tie a paragraph to a whole file, not to given lines: a weak match, whose lines are not tinted
- [1] § Methods › DDSurfer Network › Subnetwork: DualStream–FuseNet ↔ net/ddsurfer_tanet_dualstream_cascaded.py, lines 45–126 · score 0.73 · Cross Stream, Fusion module, bottleneck, encoders, gating, LKA
- [2] § Methods › DDSurfer Network › Subnetwork: DualStream–FuseNet ↔ net/ddsurfer_tanet_dualstream_cascaded.py, lines 45–126 · score 0.71 · cross stream fusion, fusion module, upsampled, encoder, decoder, stem
- [3] § Methods › Implementation Details and SlicerDDSurfer ↔ ddsurfer_predict_lh_dualstream.py, lines 86–184 · score 0.70 · template mesh, pial surface model, WM surface, PyTorch, predict, volume
- [4] § Methods › Implementation Details and SlicerDDSurfer ↔ ddsurfer_predict_rh_dualstream.py, lines 80–182 · score 0.70 · template mesh, pial surface model, WM surface, PyTorch, predict, volume
- [5] § Methods › DDSurfer Network › Subnetwork: DualStream–FuseNet ↔ model/CMUNeXt_3D.py, lines 1–31 · score 0.65 · CMUNeXt, dual stream, lightweight, convolution, block, fusion
- [6] § Methods › Implementation Details and SlicerDDSurfer ↔ utils/space_MNI2orig.sh, lines 1–25 · score 0.60 · native space, post processing, cortical surface, workflow, MNI, DDSurfer
- [7] § Experimental Section › Datasets and Preprocessing › DMRI Preprocessing and DTI Parameter Computation ↔ pnlpipe_pipelines/epi.py, the whole file · a weak match · score 0.59 · EPI distortion correction, eddy, rigid, masking, pipeline, brain
- [8] § Experimental Section › Ablation Studies ↔ net/ddsurfer_tanet_dualstream_cascaded.py, lines 14–38 · score 0.59 · Fusion Module, dual stream, block, Kernel, Cross, channel
- [9] § Methods ↔ utils/space_MNI2orig.sh, lines 1–25 · score 0.56 · automated pipeline, post processing, cortical surface, workflow, deformations, DDSurfer
- [10] § Methods › Implementation Details and SlicerDDSurfer ↔ run_ddsurfer_pipeline.py, lines 1–18 · score 0.55 · native space, post processing, interface, DDSurfer, preprocessing, predicted
- [11] § Methods › DDSurfer Network › Loss Function Design ↔ ddsurfer_predict_lh_dualstream.py, lines 86–184 · score 0.55 · predicted WM surface, pial surface model, location, vertices, error
- [12] § Methods › DDSurfer Network › Loss Function Design ↔ ddsurfer_predict_rh_dualstream.py, lines 80–182 · score 0.55 · predicted WM surface, pial surface model, location, vertices, error
- [13] § Methods › DDSurfer Network › Subnetwork: DiffeoSurf–FlowNet ↔ net/ddsurfer_tanet_dualstream_cascaded.py, lines 201–218 · score 0.50 · stationary velocity fields, weighted, predicted
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 · 311 lines · 15 KB · no license · 4 matches
- """TANet dual-stream architecture using CMUNeXt backbones and large-kernel attention."""
- from __future__ import annotations
- from typing import Sequence
- import torch
- import torch.nn as nn
- import torch.nn.functional as F
- from model.CMUNeXt_3D import AttentionGate3D, CMUNeXtBlock3D_SE, conv_block_3d, fusion_conv_3d, up_conv_3d
- from model.D_LKA_Attention import LKA_Attention3d
- # ------------------------- Building Blocks -------------------------
- class CrossAttentionFusionModule(nn.Module):
- """Bidirectional channel attention to fuse dual streams."""
- def __init__(self, channels_a: int, channels_b: int, reduction: int = 4) -> None:
- super().__init__()
- inter_channels_a = max(1, channels_a // reduction)
- inter_channels_b = max(1, channels_b // reduction)
- self.gate_generator_A = nn.Sequential(
- nn.Conv3d(channels_b, inter_channels_a, kernel_size=1),
- nn.ReLU(inplace=True),
- nn.Conv3d(inter_channels_a, channels_a, kernel_size=1),
- nn.Sigmoid(),
- )
- self.gate_generator_B = nn.Sequential(
- nn.Conv3d(channels_a, inter_channels_b, kernel_size=1),
- nn.ReLU(inplace=True),
- nn.Conv3d(inter_channels_b, channels_b, kernel_size=1),
- nn.Sigmoid(),
- )
- def forward(self, features_a: torch.Tensor, features_b: torch.Tensor) -> torch.Tensor:
- refined_a = features_a * self.gate_generator_A(features_b)
- refined_b = features_b * self.gate_generator_B(features_a)
- return torch.cat((refined_a, refined_b), dim=1)
- # ------------------------- Velocity Field Backbone -------------------------
- class CMUNeXt_VFNet_Final(nn.Module):
- """Dual-stream CMUNeXt encoder-decoder that predicts cascaded velocity fields."""
- def __init__(
- self,
- input_channel: int = 5,
- dims: list[int] | tuple[int, ...] = (16, 32, 64, 128, 256),
- depths: list[int] | tuple[int, ...] = (1, 1, 1, 6, 3),
- kernels: list[int] | tuple[int, ...] = (3, 3, 7, 7, 7),
- M: int = 2,
- R: int = 3,
- kernel_size: int = 3,
- ) -> None:
- super().__init__()
- self.M, self.R = int(M), int(R)
- self.dims_A = [int(d * 0.4) for d in dims]
- self.dims_B = [d - a for d, a in zip(dims, self.dims_A)]
- # Encoder streams
- self.stem_A = conv_block_3d(1, self.dims_A[0])
- self.encoder1_A = CMUNeXtBlock3D_SE(self.dims_A[0], self.dims_A[0], depth=depths[0], kernel_size=kernels[0])
- self.encoder2_A = CMUNeXtBlock3D_SE(self.dims_A[0], self.dims_A[1], depth=depths[1], kernel_size=kernels[1])
- self.encoder3_A = CMUNeXtBlock3D_SE(self.dims_A[1], self.dims_A[2], depth=depths[2], kernel_size=kernels[2])
- self.encoder4_A = CMUNeXtBlock3D_SE(self.dims_A[2], self.dims_A[3], depth=depths[3], kernel_size=kernels[3])
- self.encoder5_A = CMUNeXtBlock3D_SE(self.dims_A[3], self.dims_A[4], depth=depths[4], kernel_size=kernels[4])
- self.stem_B = conv_block_3d(input_channel - 1, self.dims_B[0])
- self.encoder1_B = CMUNeXtBlock3D_SE(self.dims_B[0], self.dims_B[0], depth=depths[0], kernel_size=kernels[0])
- self.encoder2_B = CMUNeXtBlock3D_SE(self.dims_B[0], self.dims_B[1], depth=depths[1], kernel_size=kernels[1])
- self.encoder3_B = CMUNeXtBlock3D_SE(self.dims_B[1], self.dims_B[2], depth=depths[2], kernel_size=kernels[2])
- self.encoder4_B = CMUNeXtBlock3D_SE(self.dims_B[2], self.dims_B[3], depth=depths[3], kernel_size=kernels[3])
- self.encoder5_B = CMUNeXtBlock3D_SE(self.dims_B[3], self.dims_B[4], depth=depths[4], kernel_size=kernels[4])
- # Cross-stream fusion and bottleneck
- self.fusion1 = CrossAttentionFusionModule(self.dims_A[0], self.dims_B[0])
- self.fusion2 = CrossAttentionFusionModule(self.dims_A[1], self.dims_B[1])
- self.fusion3 = CrossAttentionFusionModule(self.dims_A[2], self.dims_B[2])
- self.fusion4 = CrossAttentionFusionModule(self.dims_A[3], self.dims_B[3])
- self.fusion5 = CrossAttentionFusionModule(self.dims_A[4], self.dims_B[4])
- self.Maxpool = nn.MaxPool3d(kernel_size=2, stride=2)
- self.lka_attention = LKA_Attention3d(d_model=dims[4])
- # Decoder with attention gates
- self.Up5_A = up_conv_3d(self.dims_A[4], self.dims_A[3])
- self.Up5_B = up_conv_3d(self.dims_B[4], self.dims_B[3])
- self.Att5_A = AttentionGate3D(self.dims_A[3], self.dims_A[3], self.dims_A[2])
- self.Att5_B = AttentionGate3D(self.dims_B[3], self.dims_B[3], self.dims_B[2])
- self.Up_conv5_A = fusion_conv_3d(self.dims_A[3] * 2, self.dims_A[3])
- self.Up_conv5_B = fusion_conv_3d(self.dims_B[3] * 2, self.dims_B[3])
- self.decoder_fusion4 = CrossAttentionFusionModule(self.dims_A[3], self.dims_B[3])
- self.Up4_A = up_conv_3d(self.dims_A[3], self.dims_A[2])
- self.Up4_B = up_conv_3d(self.dims_B[3], self.dims_B[2])
- self.Att4_A = AttentionGate3D(self.dims_A[2], self.dims_A[2], self.dims_A[1])
- self.Att4_B = AttentionGate3D(self.dims_B[2], self.dims_B[2], self.dims_B[1])
- self.Up_conv4_A = fusion_conv_3d(self.dims_A[2] * 2, self.dims_A[2])
- self.Up_conv4_B = fusion_conv_3d(self.dims_B[2] * 2, self.dims_B[2])
- self.decoder_fusion3 = CrossAttentionFusionModule(self.dims_A[2], self.dims_B[2])
- self.Up3_A = up_conv_3d(self.dims_A[2], self.dims_A[1])
- self.Up3_B = up_conv_3d(self.dims_B[2], self.dims_B[1])
- self.Att3_A = AttentionGate3D(self.dims_A[1], self.dims_A[1], self.dims_A[0])
- self.Att3_B = AttentionGate3D(self.dims_B[1], self.dims_B[1], self.dims_B[0])
- self.Up_conv3_A = fusion_conv_3d(self.dims_A[1] * 2, self.dims_A[1])
- self.Up_conv3_B = fusion_conv_3d(self.dims_B[1] * 2, self.dims_B[1])
- self.decoder_fusion2 = CrossAttentionFusionModule(self.dims_A[1], self.dims_B[1])
- self.Up2_A = up_conv_3d(self.dims_A[1], self.dims_A[0])
- self.Up2_B = up_conv_3d(self.dims_B[1], self.dims_B[0])
- self.Att2_A = AttentionGate3D(self.dims_A[0], self.dims_A[0], self.dims_A[0] // 2)
- self.Att2_B = AttentionGate3D(self.dims_B[0], self.dims_B[0], self.dims_B[0] // 2)
- self.Up_conv2_A = fusion_conv_3d(self.dims_A[0] * 2, self.dims_A[0])
- self.Up_conv2_B = fusion_conv_3d(self.dims_B[0] * 2, self.dims_B[0])
- # Cascaded velocity heads
- self.flow1 = nn.Conv3d(dims[2], 3 * M, kernel_size=kernel_size, padding=kernel_size // 2)
- self.flow2 = nn.Conv3d(dims[1] + 3 * M, 3 * M, kernel_size=kernel_size, padding=kernel_size // 2)
- self.flow3 = nn.Conv3d(dims[0] + 3 * M, 3 * M, kernel_size=kernel_size, padding=kernel_size // 2)
- for conv in (self.flow1, self.flow2, self.flow3):
- nn.init.normal_(conv.weight, 0.0, 1e-5)
- nn.init.constant_(conv.bias, 0.0)
- self.up = nn.Upsample(scale_factor=2, mode="trilinear", align_corners=True)
- def forward(self, x: torch.Tensor) -> torch.Tensor:
- stream_a = x[:, 0:1]
- stream_b = x[:, 1:]
- x1_a = self.encoder1_A(self.stem_A(stream_a))
- x1_b = self.encoder1_B(self.stem_B(stream_b))
- x2_a = self.encoder2_A(self.Maxpool(x1_a))
- x2_b = self.encoder2_B(self.Maxpool(x1_b))
- x3_a = self.encoder3_A(self.Maxpool(x2_a))
- x3_b = self.encoder3_B(self.Maxpool(x2_b))
- x4_a = self.encoder4_A(self.Maxpool(x3_a))
- x4_b = self.encoder4_B(self.Maxpool(x3_b))
- x5_a = self.encoder5_A(self.Maxpool(x4_a))
- x5_b = self.encoder5_B(self.Maxpool(x4_b))
- bottleneck = self.lka_attention(self.fusion5(x5_a, x5_b))
- d5_a_in, d5_b_in = torch.split(bottleneck, [self.dims_A[4], self.dims_B[4]], dim=1)
- d5_a = self.Up5_A(d5_a_in)
- d5_b = self.Up5_B(d5_b_in)
- x4_a_att = self.Att5_A(d5_a, x4_a)
- x4_b_att = self.Att5_B(d5_b, x4_b)
- d4_a = self.Up_conv5_A(torch.cat([x4_a_att, d5_a], dim=1))
- d4_b = self.Up_conv5_B(torch.cat([x4_b_att, d5_b], dim=1))
- d4_fused = self.decoder_fusion4(d4_a, d4_b)
- d4_a_out, d4_b_out = torch.split(d4_fused, [self.dims_A[3], self.dims_B[3]], dim=1)
- d4_a_up = self.Up4_A(d4_a_out)
- d4_b_up = self.Up4_B(d4_b_out)
- x3_a_att = self.Att4_A(d4_a_up, x3_a)
- x3_b_att = self.Att4_B(d4_b_up, x3_b)
- d3_a = self.Up_conv4_A(torch.cat([x3_a_att, d4_a_up], dim=1))
- d3_b = self.Up_conv4_B(torch.cat([x3_b_att, d4_b_up], dim=1))
- d3_fused = self.decoder_fusion3(d3_a, d3_b)
- vf1_small = self.flow1(d3_fused)
- d3_a_out, d3_b_out = torch.split(d3_fused, [self.dims_A[2], self.dims_B[2]], dim=1)
- d3_a_up = self.Up3_A(d3_a_out)
- d3_b_up = self.Up3_B(d3_b_out)
- x2_a_att = self.Att3_A(d3_a_up, x2_a)
- x2_b_att = self.Att3_B(d3_b_up, x2_b)
- d2_a = self.Up_conv3_A(torch.cat([x2_a_att, d3_a_up], dim=1))
- d2_b = self.Up_conv3_B(torch.cat([x2_b_att, d3_b_up], dim=1))
- d2_fused = self.decoder_fusion2(d2_a, d2_b)
- vf1_medium = self.up(vf1_small)
- vf2_medium = vf1_medium + self.flow2(torch.cat([d2_fused, vf1_medium], dim=1))
- d2_a_out, d2_b_out = torch.split(d2_fused, [self.dims_A[1], self.dims_B[1]], dim=1)
- d2_a_up = self.Up2_A(d2_a_out)
- d2_b_up = self.Up2_B(d2_b_out)
- x1_a_att = self.Att2_A(d2_a_up, x1_a)
- x1_b_att = self.Att2_B(d2_b_up, x1_b)
- d1_a = self.Up_conv2_A(torch.cat([x1_a_att, d2_a_up], dim=1))
- d1_b = self.Up_conv2_B(torch.cat([x1_b_att, d2_b_up], dim=1))
- d1_fused = torch.cat([d1_a, d1_b], dim=1)
- vf2_full = self.up(vf2_medium)
- vf3_full = vf2_full + self.flow3(torch.cat([d1_fused, vf2_full], dim=1))
- vf1_full = self.up(vf1_medium)
- vf1 = vf1_full.reshape(self.M, 3, *vf1_full.shape[2:])
- vf2 = vf2_full.reshape(self.M, 3, *vf2_full.shape[2:])
- vf3 = vf3_full.reshape(self.M, 3, *vf3_full.shape[2:])
- if self.R == 3:
- return torch.cat([vf1, vf2, vf3], dim=0)
- if self.R == 2:
- return torch.cat([vf2, vf3], dim=0)
- if self.R == 1:
- return vf3
- return torch.cat([vf1, vf2, vf3], dim=0)
- # ------------------------- Temporal Attention -------------------------
- class AttentionNet(nn.Module):
- """Temporal attention predictor for weighting stationary velocity fields."""
- def __init__(self, hidden_channels: int = 16, M: int = 2, R: int = 3) -> None:
- super().__init__()
- self.fc1 = nn.Linear(1, hidden_channels * 4)
- self.fc2 = nn.Linear(hidden_channels * 4, hidden_channels * 8)
- self.fc3 = nn.Linear(hidden_channels * 8, hidden_channels * 8)
- self.fc4 = nn.Linear(hidden_channels * 8, hidden_channels * 4)
- self.fc5 = nn.Linear(hidden_channels * 4, M * R)
- def forward(self, t: torch.Tensor) -> torch.Tensor:
- out = F.leaky_relu(self.fc1(t), 0.2)
- out = F.leaky_relu(self.fc2(out), 0.2)
- out = F.leaky_relu(self.fc3(out), 0.2)
- out = F.leaky_relu(self.fc4(out), 0.2)
- return F.softmax(self.fc5(out), dim=-1)
- # ------------------------- TANet -------------------------
- class TANet(nn.Module):
- """Temporal attention network with RK4 integration over stationary fields."""
- def __init__(
- self,
- C_in: int = 5,
- C_hid: Sequence[int] = (16, 32, 64, 128, 256),
- inshape: Sequence[int] = (112, 224, 176),
- depths: Sequence[int] = (1, 1, 1, 6, 3),
- kernels: Sequence[int] = (3, 3, 7, 7, 7),
- step_size: float = 0.02,
- M: int = 2,
- R: int = 3,
- device: str = "cuda:0",
- ) -> None:
- super().__init__()
- self.M = int(M)
- self.R = int(R)
- self.vf_net = CMUNeXt_VFNet_Final(C_in, C_hid, depths, kernels, M=self.M, R=self.R).to(device)
- self.att_net = AttentionNet(hidden_channels=16, M=self.M, R=self.R).to(device)
- self.h = float(step_size)
- self.num_steps = max(1, int(round(1.0 / self.h)))
- self.timesteps = torch.arange(self.num_steps, device=device)[:, None] * self.h
- self.scale = torch.as_tensor(inshape, device=device, dtype=torch.float32)[None, None, :] - 1.0
- def forward(self, vertices: torch.Tensor, volumes: torch.Tensor, return_extras: bool = False):
- svfs_all = self.vf_net(volumes)
- expected = self.M * self.R
- if svfs_all.dim() != 5:
- msg = f"vf_net output expects 5D, got {svfs_all.shape}"
- raise RuntimeError(msg)
- if svfs_all.shape[0] == 3 and svfs_all.shape[-1] == expected:
- svfs_all = svfs_all.permute(4, 0, 1, 2, 3).contiguous()
- elif svfs_all.shape[0] != expected or svfs_all.shape[1] != 3:
- msg = f"Unexpected SVF shape {svfs_all.shape}, expect [MR,3,X,Y,Z] with MR={expected}"
- raise RuntimeError(msg)
- attention = self.att_net(self.timesteps)[..., None, None]
- current_vertices = vertices
- trajectory_stats = [] if return_extras else None
- for step in range(self.num_steps):
- weights = attention[step]
- def sample_field(sample_vertices: torch.Tensor) -> torch.Tensor:
- raw = self.interpolate(sample_vertices, svfs_all)
- return (weights.view(-1, 1, 1) * raw).sum(0, keepdim=True)
- k1 = sample_field(current_vertices)
- k2 = sample_field(current_vertices + self.h * 0.5 * k1)
- k3 = sample_field(current_vertices + self.h * 0.5 * k2)
- k4 = sample_field(current_vertices + self.h * k3)
- velocity = (k1 + 2 * k2 + 2 * k3 + k4) / 6.0
- current_vertices = current_vertices + self.h * velocity
- if return_extras:
- speed = torch.linalg.vector_norm(velocity[0], dim=-1)
- trajectory_stats.append(
- {
- "t": float((step + 1) * self.h),
- "speed_mean": float(speed.mean()),
- "speed_p95": float(torch.quantile(speed, 0.95)),
- "speed_max": float(speed.max()),
- }
- )
- if not return_extras:
- return current_vertices
- per_level = {}
- offset = 0
- for level in range(self.R):
- per_level[f"vf{level + 1}"] = svfs_all[offset : offset + self.M].detach()
- offset += self.M
- extras = {
- "svfs_all": svfs_all.detach(),
- "per_level": per_level,
- "att_weights": attention.squeeze(-1).squeeze(-1).detach(),
- "traj_stats": trajectory_stats,
- }
- return current_vertices, extras
- def interpolate(self, vertices: torch.Tensor, fields: torch.Tensor) -> torch.Tensor:
- coords = 2.0 * vertices / self.scale - 1.0
- coords = coords.repeat(fields.shape[0], 1, 1)
- coords = coords[:, :, None, None].flip(-1)
- sampled = F.grid_sample(fields, coords, mode="bilinear", padding_mode="border", align_corners=True)
- return sampled[..., 0, 0].permute(0, 2, 1)
ddsurfer_tanet_dualstream_cascaded.py at commit 6ea71a4, no license · at the source
Overview
- University of Electronic Science and Technology of China, Chengdu, China
- Brigham and Women's Hospital, Harvard Medical School, Boston, Massachusetts, USA
- School of Mathematical Sciences, University of Tel Aviv, Tel Aviv, Israel
- Department of Anatomy and Neurobiology, Boston University School of Medicine, Boston, Massachusetts, USA
Abstract
Cortical surface reconstruction of white matter and pial surfaces from diffusion MRI (dMRI) is critical for neuroimaging analyses, including tractography, connectomics, and multimodal data integration. However, obtaining these surfaces from dMRI data is inherently challenged by its low spatial resolution and poor tissue contrast. Currently, this relies on T1‐weighted images, from which the surfaces are reconstructed and then registered to the dMRI space—a process affected by inaccurate inter‐modality registration. This study introduces DDSurfer, an end‐to‐end deep learning framework that directly generates high‐fidelity cortical surfaces from dMRI data. DDSurfer leverages a novel dual‐stream architecture that processes and synergistically fuses complementary microstructural features from dMRI, learning a diffeomorphic transformation for subject‐specific surface reconstruction. The model is trained using a robust weakly‐supervised strategy with automatically generated pseudo‐ground‐truth surfaces. Extensive evaluations on diverse datasets demonstrate that DDSurfer surpasses traditional methods in geometric accuracy, morphological consistency, and generalization. By providing a computationally efficient and robust T1‐weighted‐independent solution, DDSurfer overcomes a major bottleneck in dMRI, delivering a practical tool to advance accurate dMRI‐centric connectomics and surface‐based investigations. Source code and implementation as an interactive 3D Slicer module are publicly available at: https://
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 13 matches between paragraphs and lines of code.
ChengjinLii/DDSurfer
6ea71a4994c97d777a637beadd349c3e1a89b087, 28 July 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
28 files
- Data-Preprocessing.sh, Shell, 454 lines
- ddsurfer_predict_lh_dual
stream.py , Python, 301 lines, 2 matches - ddsurfer_predict_rh_dual
stream.py , Python, 299 lines, 2 matches - dti_processing/
conversion/ , Python, 9 lines__init__.py - dti_processing/
conversion/ , Python, 152 linesbval_bvec_io.py - dti_processing/
conversion/ , Python, 162 linesnhdr_write.py - dti_processing/
conversion/ , Python, 169 linesnifti_write.py - dti_processing/
normalize.py , Python, 75 lines - dti_processing/
run_dti_processing.sh , Shell, 306 lines - model/
CMUNeXt_3D.py , Python, 326 lines, 1 match - model/
DSCVolumeReg.py , Python, 260 lines - model/
D_LKA_Attention.py , Python, 234 lines - net/
ddsurfer_tanet_dualstrea , Python, 311 lines, 4 matchesm_cascaded.py - net/
loss.py , Python, 159 lines - run_ddsurfer_pipeline.py
, Python, 167 lines, 1 match - run_ddsurfer_pipeline.sh
, Shell, 130 lines - utils/
create_fs_label.py , Python, 181 lines - utils/
io.py , Python, 38 lines - utils/
mesh.py , Python, 418 lines - utils/
nifti_resample.py , Python, 141 lines - utils/
nifti_zscore.py , Python, 174 lines - utils/
obj2stl.py , Python, 33 lines - utils/
skull_stripping.py , Python, 66 lines - utils/
space_MNI2orig.py , Python, 159 lines - utils/
space_MNI2orig.sh , Shell, 153 lines, 2 matches - utils/
stl2obj.py , Python, 34 lines - utils/
translate_mesh.py , Python, 72 lines - README.md, Text, 93 lines
pnlbwh/pnlpipe
13545b03effe3cbcca828688bbf808e1958b25d8, 12 March 2025Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
68 files
- env.sh, Shell, 3 lines
- pnlpipe_cli/
__init__.py , Python, 3 lines - pnlpipe_cli/
caseidnode.py , Python, 103 lines - pnlpipe_cli/
display.py , Python, 29 lines - pnlpipe_cli/
pipecmd/ , Python, 27 lines__init__.py - pnlpipe_cli/
pipecmd/ , Python, 55 linesenv.py - pnlpipe_cli/
pipecmd/ , Python, 71 linesinit.py - pnlpipe_cli/
pipecmd/ , Python, 94 linesls.py - pnlpipe_cli/
pipecmd/ , Python, 133 linesrun.py - pnlpipe_cli/
pipecmd/ , Python, 80 linessetup.py - pnlpipe_cli/
pipecmd/ , Python, 64 linesstatus.py - pnlpipe_cli/
pipecmd/ , Python, 25 linessummarize.py - pnlpipe_cli/
pipecmd/ , Python, 115 linessymlink.py - pnlpipe_cli/
readparams.py , Python, 197 lines - pnlpipe_config.py, Python, 22 lines
- pnlpipe_lib/
__init__.py , Python, 7 lines - pnlpipe_lib/
basenode.py , Python, 189 lines - pnlpipe_lib/
config.py , Python, 8 lines - pnlpipe_lib/
dag.py , Python, 119 lines - pnlpipe_lib/
hashing.py , Python, 79 lines - pnlpipe_lib/
nodes.py , Python, 6 lines - pnlpipe_lib/
update.py , Python, 194 lines - pnlpipe_lib/
util.py , Python, 125 lines - pnlpipe_pipelines/
DWIConvertTest.Rmd , R, 23 lines - pnlpipe_pipelines/
DWIConvertTest.py , Python, 111 lines - pnlpipe_pipelines/
__init__.py , Python, 39 lines - pnlpipe_pipelines/
_pnl.py , Python, 382 lines - pnlpipe_pipelines/
epi.py , Python, 103 lines, 1 match - pnlpipe_pipelines/
hcp.py , Python, 62 lines - pnlpipe_pipelines/
std.py , Python, 79 lines - pnlpipe_pipelines/
stdnoed.py , Python, 74 lines - pnlpipe_pipelines/
torefactor/ , Python, 81 linespipeline_slicermask.py - pnlpipe_pipelines/
torefactor/ , Python, 46 linespipeline_stded.py - pnlpipe_pipelines/
torefactor/ , Python, 56 linespipeline_stdedt2.py - pnlpipe_pipelines/
torefactor/ , Python, 46 linespipeline_stdt.py - pnlpipe_pipelines/
torefactor/ , Python, 433 linespnlnodes.py - pnlscripts/
__init__.py , Python, 4 lines - pnlscripts/
activateTensors.py , Python, 39 lines - pnlscripts/
alignAndCenter.py , Python, 26 lines - pnlscripts/
antsApplyTransformsDWI.p , Python, 123 linesy - pnlscripts/
antsRegistrationSyNMI.sh , Shell, 552 lines - pnlscripts/
atlas.py , Python, 402 lines - pnlscripts/
axisAlign.py , Python, 153 lines - pnlscripts/
bet.py , Python, 54 lines - pnlscripts/
bse.py , Python, 90 lines - pnlscripts/
center.py , Python, 75 lines - pnlscripts/
dwi_motion_estimate_flir , Python, 189 linest.py - pnlscripts/
dwiconvert.py , Python, 101 lines - pnlscripts/
eddy.py , Python, 173 lines - pnlscripts/
epi.py , Python, 102 lines - pnlscripts/
fs.py , Python, 85 lines - pnlscripts/
fs2dwi.py , Python, 324 lines - pnlscripts/
makeAtlasCSVfile.py , Python, 60 lines - pnlscripts/
makeRigidMask.py , Python, 34 lines - pnlscripts/
measuretracts/ , Python, 70 linesgetTensorData.py - pnlscripts/
measuretracts/ , Python, 34 linesmeasureTracts.py - pnlscripts/
measuretracts/ , Python, 194 linesmeasureTractsFunctions.p y - pnlscripts/
measuretracts/ , Python, 53 linesmeasureTractsModule.py - pnlscripts/
summarizeTractMeasures.p , Python, 68 linesy - pnlscripts/
test/ , Shell, 14 linessourcemefirst.sh - pnlscripts/
test/ , Python, 21 linestest_DWIConvert.py - pnlscripts/
util.sh , Shell, 402 lines - pnlscripts/
util/ , Python, 192 lines__init__.py - pnlscripts/
util/ , Python, 63 linesants.py - pnlscripts/
wmql.py , Python, 87 lines - pnlscripts/
wmqlqc.py , Python, 53 lines - LICENSE, License, 195 lines
- README.md, Text, 792 lines
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;
- 93 scripts, each with its path and the digest of its content;
- 13 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 available on request from the corresponding author. The data are not publicly available due to privacy or ethical restrictions.
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, 27 September 2026: the first record
Recorded: type, language, journal, pages, dates, 11 authors, 5 keywords, 3 funders, 51 references.
Cite
This paper
Li, C., Zhang, W., Zhu, X., Chen, Y., Sochen, N. A., Rushmore, J., Westin, C., Rathi, Y., O'Donnell, L. J., Pasternak, O., & Zhang, F. (2026). DDSurfer: A Weakly-Supervised Dual-Stream Deep Learning Framework for Cortical Surface Reconstruction From Diffusion MRI. Advanced science (Weinheim, Baden-Wurttemberg, Germany), e76596. https://
BibTeX
@article{li2026ddsurfer,
author = {Li, Chengjin and Zhang, Wei and Zhu, Xi and Chen, Yuqian and Sochen, Nir A and Rushmore, Jarrett and Westin, Carl‐Fredrik and Rathi, Yogesh and O'Donnell, Lauren J and Pasternak, Ofer and Zhang, Fan},
title = {{DDSurfer: A Weakly-Supervised Dual-Stream Deep Learning Framework for Cortical Surface Reconstruction From Diffusion MRI}},
journal = {Advanced science (Weinheim, Baden-Wurttemberg, Germany)},
year = {2026},
month = jul,
pages = {e76596},
publisher = {Wiley},
issn = {2198-3844},
doi = {10.1002/
url = {https://
pmid = {42489305},
pmcid = {PMC13393330}
}
RIS
TY - JOUR
AU - Li, Chengjin
AU - Zhang, Wei
AU - Zhu, Xi
AU - Chen, Yuqian
AU - Sochen, Nir A
AU - Rushmore, Jarrett
AU - Westin, Carl‐Fredrik
AU - Rathi, Yogesh
AU - O'Donnell, Lauren J
AU - Pasternak, Ofer
AU - Zhang, Fan
TI - DDSurfer: A Weakly-Supervised Dual-Stream Deep Learning Framework for Cortical Surface Reconstruction From Diffusion MRI
T2 - Advanced science (Weinheim, Baden-Wurttemberg, Germany)
J2 - Adv Sci (Weinh)
PY - 2026
DA - 2026/
SP - e76596
SN - 2198-3844
PB - Wiley
DO - 10.1002/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1002/
"type": "article-journal",
"title": "DDSurfer: A Weakly-Supervised Dual-Stream Deep Learning Framework for Cortical Surface Reconstruction From Diffusion MRI",
"container-title": "Advanced science (Weinheim, Baden-Wurttemberg, Germany)",
"author": [
{
"family": "Li",
"given": "Chengjin"
},
{
"family": "Zhang",
"given": "Wei"
},
{
"family": "Zhu",
"given": "Xi"
},
{
"family": "Chen",
"given": "Yuqian"
},
{
"family": "Sochen",
"given": "Nir A"
},
{
"family": "Rushmore",
"given": "Jarrett"
},
{
"family": "Westin",
"given": "Carl‐Fredrik"
},
{
"family": "Rathi",
"given": "Yogesh"
},
{
"family": "O'Donnell",
"given": "Lauren J"
},
{
"family": "Pasternak",
"given": "Ofer"
},
{
"family": "Zhang",
"given": "Fan"
}
],
"container-title-short":
"page": "e76596",
"DOI": "10.1002/
"PMID": "42489305",
"PMCID": "PMC13393330",
"ISSN": "2198-3844",
"publisher": "Wiley",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
23
]
]
}
}
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/s41598-026-54446-8 [code]
- Deep learning-based Desikan-Killiany parcellation of the brain using diffusion MRI.Journal: Scientific reportsIn common: FreeSurfer, NiBabel, PyTorch, 2 other tools, methods / tools, structural MRI / diffusion, 16 references
- [2] doi:10.1162/imag.a.1183 [code]
- Learning-based segmentation of diffusion-weighted MR images with arbitrary &
lt;i& gt;q& lt;/ i& gt;-space samplings. Journal: Imaging neuroscience (Cambridge, Mass.)In common: NiBabel, PyTorch, pandas, 2 other tools, methods / tools, structural MRI / diffusion, 10 references - [3] doi:10.1038/s41598-026-55397-w [code]
- Fast surface reconstruction of human brain MRI: benchmarking deep-learning based morphometry tools.Journal: Scientific reportsIn common: SimpleITK, ANTs, FreeSurfer, 5 other tools, methods / tools, structural MRI / diffusion, 5 references
- [4] doi:10.1016/j.isci.2026.116671 [code]
- A high-resolution functional network-organized atlas of human superficial white matter from ultra-high-field diffusion MRI.Journal: iScienceIn common: ANTs, NiBabel, PyTorch, 3 other tools, methods / tools, structural MRI / diffusion, 6 references
- [5] doi:10.1002/alz.71649 [code]
- Postmortem brain MRI reveals differential associations of subcortical and limbic volumes with cortical thinning and neurodegenerative pathologies.Journal: Alzheimer's & dementia : the journal of the Alzheimer's AssociationIn common: SimpleITK, ANTs, FreeSurfer, 5 other tools, structural MRI / diffusion, 4 references
- [6] doi:10.1038/s41398-026-04143-x [code]
- Neighborhood opportunity, white matter, and cognition in a large pediatric neuroimaging study.Journal: Translational psychiatryIn common: ANTs, NiBabel, pandas, 2 other tools, structural MRI / diffusion, 2 references, author Fan Zhang
- [7] doi:10.1002/nbm.70353 [code]
- Automated Surface-Based Segmentation of Deep Gray Matter Regions Based on Diffusion Tensor Images Reveals Unique Age Trajectories Over the Healthy Lifespan.Journal: NMR in biomedicineIn common: ANTs, FreeSurfer, NiBabel, 2 other tools, structural MRI / diffusion, 5 references
- [8] doi:10.1162/imag.a.1352 [code]
- Brain-age in ultra-low-field MRI: How well does it work?Journal: Imaging neuroscience (Cambridge, Mass.)In common: ANTs, FreeSurfer, NiBabel, 4 other tools, methods / tools, structural MRI / diffusion, 3 references
- [9] doi:10.3390/jimaging12070276 [code]
- Hyperelastic Regularization for Near-Diffeomorphic Transformer-Based Brain MRI Registration.Journal: Journal of imagingIn common: SimpleITK, ANTs, NiBabel, 4 other tools, methods / tools, structural MRI / diffusion, 2 references
- [10] doi:10.1038/s41467-026-71555-0 [code]
- A deep representation learning model to predict response to vagus nerve stimulation.Journal: Nature communicationsIn common: ANTs, FreeSurfer, NiBabel, 4 other tools, structural MRI / diffusion, 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.
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, 93 scripts, and 13 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:340bc3b5e2cbb708…
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.
