OSCR

Skin-attached bioadhesive patch enabling ultrasound deep brain stimulation and real-time electrophysiological monitoring for REM sleep enhancement.

Code ↔ Paper

16 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 16 matches · 2 of them tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
  1. [1] § Results › Design and characterization of CRUTA with adjustable focal depth ↔ NEUSLeeP/Simulations/BeamProfileSkull.m, lines 490–535 · score 0.78 · beam profile, radial FWHM, acoustic field, focal depth, free field, skull
  2. [2] § Methods › Design and characterization of CRUTA › Acoustic field mapping ↔ NEUSLeeP/Simulations/BeamProfileSkullParameters.m, lines 501–586 · score 0.75 · 0–100 mm, acoustic field, radial profiles, thick, skull, axial
  3. [3] § Methods › Stress adaptation and REM enhancement evaluation post-FUS with NEUSLeeP › Heart rate variability (RMSSDHRV) ↔ NEUSLeeP/EEG /SleepAnalysis2.m, lines 310–372 · score 0.74 · 5–15 Hz, RR interval, bandpass filter, root, square, peak
  4. [4] § Methods › Stress adaptation and REM enhancement evaluation post-FUS with NEUSLeeP › Heart rate variability (RMSSDHRV) ↔ NEUSLeeP/EEG /process_HRV.m, lines 39–101 · score 0.74 · 5–15 Hz, RR interval, bandpass filter, root, square, peak
  5. [5] § Results › Design and characterization of CRUTA with adjustable focal depth ↔ NEUSLeeP/Simulations/BeamProfileSkullParameters.m, lines 501–586 · score 0.67 · beam profile, radial FWHM, acoustic field, skull, thickness, depth
  6. [6] § Results › Stress response of NEUSLeeP-enabled STN-FUS ↔ MRI-Study/scripts/batch_extract_images_hariri.sh, lines 1–51 · score 0.65 · amygdala ROI, right amygdala, Left Amygdala, bilaterally, Neutral, Anger
  7. [7] § Results › Stress response of NEUSLeeP-enabled STN-FUS ↔ MRI-Study/scripts/extract_image.sh, lines 1–62 · score 0.65 · amygdala ROI, right amygdala, Left Amygdala, bilaterally, Neutral, Anger
  8. [8] § Methods › Design and characterization of CRUTA › Acoustic field mapping ↔ NEUSLeeP/Verasonics Vantage Script/DARPA_NEUSLEEP_Study.m, lines 16–104 · score 0.62 · HIFU, LEMO, commercially, Verasonics, dimensional, Vantage
  9. [9] § Results › Design and characterization of CRUTA with adjustable focal depth ↔ NEUSLeeP/Simulations/BeamProfileSkull.m, lines 490–535 · score 0.57 · peak pressure, Acoustic field, focal depth, skulls, profiles, radial
  10. [10] § Methods › Material characterization (Eco-PEIE-Gel and ASG) › Stress/strain test ↔ NEUSLeeP/Mechanical Tests/Stress_strainTest_step1.m, lines 55–106 · score 0.55 · stress strain, gauge, Force
  11. [11] § Methods › Stress adaptation and REM enhancement evaluation post-FUS with NEUSLeeP › Sleep study with NEUSLeeP ↔ NEUSLeeP/EEG /SleepAnalysis2.m, lines 50–131 · score 0.52 · heart rate, EEG, ECG, HRV, monitoring, signal
  12. [12] § Methods › Material characterization (Eco-PEIE-Gel and ASG) › Adhesion strength/cycle ↔ NEUSLeeP/Simulations/EnergyReleaseRate.m, the whole file · a weak match · score 0.52 · adhesion strength, angle, peel, width
  13. [13] § Methods › Subthalamic nucleus target engagement using CRUTA › Experimental setup ↔ MRI-Study/scripts/MakeRestingRun1AFNIProcRunScript_Censor0.4.sh, the whole file · a weak match · score 0.52 · pre FUS, post FUS, Fast, EPI, STN, MRI
  14. [14] § Methods › Stress adaptation and REM enhancement evaluation post-FUS with NEUSLeeP › Sleep study with NEUSLeeP ↔ NEUSLeeP/Verasonics Vantage Script/DARPA_NEUSLEEP_Study.m, lines 16–104 · score 0.52 · computer, LEMO, Verasonics, external, Vantage, transducer
  15. [15] § Results › Design and characterization of CRUTA with adjustable focal depth ↔ NEUSLeeP/Simulations/BeamProfileSkull.m, lines 46–106 · score 0.51 · concentric ring, CRUTA, skull, delay, axial, mm
  16. [16] § Results › STN-FUS results in ipsilateral changes of the basal ganglia network ↔ NEUSLeeP/EEG /alpha_band_channels.m, lines 181–231 · score 0.50 · power spectral density, EEG, band, 0.1 Hz

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

MATLAB · 653 lines · 22 KB · no license · 3 matches

  1. clear; clc; close all;
  2. % =========================================================
  3. % DOMAIN SETUP
  4. % =========================================================
  5. Nx = 320; % axial samples
  6. Ny = 400; % radial samples
  7. Lx = 100e-3; % axial extent = 100 mm
  8. Ly = 60e-3; % radial extent = 60 mm -> display as -30 to 30 mm
  9. dx = Lx / Nx;
  10. dy = Ly / Ny;
  11. % Internal k-Wave coordinates
  12. x = (0:Nx-1) * dx; % m
  13. y = (0:Ny-1) * dy; % m
  14. x_mm = x * 1e3;
  15. y_mm = y * 1e3;
  16. [Xmm, Ymm] = ndgrid(x_mm, y_mm);
  17. kgrid = kWaveGrid(Nx, dx, Ny, dy);
  18. % =========================================================
  19. % DISPLAY COORDINATES
  20. % =========================================================
  21. % Axial display: 0 mm at bottom, 100 mm at top
  22. axial_disp_mm = x_mm(end) - x_mm;
  23. % Radial display: -30 mm to 30 mm
  24. radial_disp_mm = y_mm - mean(y_mm);
  25. % =========================================================
  26. % BASE MEDIUM PROPERTIES
  27. % =========================================================
  28. c_bg = 1500; % m/s
  29. rho_bg = 1000; % kg/m^3
  30. medium_ff.sound_speed = c_bg * ones(Nx, Ny);
  31. medium_ff.density = rho_bg * ones(Nx, Ny);
  32. medium_ff.alpha_coeff = 0.75 * ones(Nx, Ny);
  33. medium_ff.alpha_power = 1.5;
  34. % =========================================================
  35. % SOURCE LOCATION
  36. % =========================================================
  37. src_row = Nx - 3;
  38. src_depth_mm_internal = x_mm(src_row);
  39. src_depth_mm_display = axial_disp_mm(src_row);
  40. % =========================================================
  41. % 8-CHANNEL CONCENTRIC RING ARRAY SPECIFICATION
  42. % =========================================================
  43. ring_ID_mm = [ 5.35, 10.72, 16.07, 21.43, 26.79, 32.15, 37.51, 42.86 ];
  44. ring_OD_mm = [10.07, 15.42, 20.78, 26.14, 31.49, 36.86, 42.21, 47.57 ];
  45. ring_IR_mm = ring_ID_mm / 2;
  46. ring_OR_mm = ring_OD_mm / 2;
  47. ring_mid_mm = (ring_IR_mm + ring_OR_mm) / 2;
  48. nChannels = numel(ring_ID_mm);
  49. % =========================================================
  50. % SOURCE MASK: 2D APPROXIMATION OF 8-CHANNEL CRUTA
  51. % =========================================================
  52. source.p_mask = zeros(Nx, Ny);
  53. array_center_mm = 0;
  54. r_mm = abs(radial_disp_mm - array_center_mm);
  55. channel_map = zeros(1, Ny); % 0 = inactive, 1..8 = channel
  56. for ch = 1:nChannels
  57. idx = (r_mm >= ring_IR_mm(ch)) & (r_mm <= ring_OR_mm(ch));
  58. channel_map(idx) = ch;
  59. end
  60. active_cols = find(channel_map > 0);
  61. source.p_mask(src_row, active_cols) = 1;
  62. % =========================================================
  63. % FOCUSING DELAYS
  64. % =========================================================
  65. f0 = 650e3; % Hz
  66. source_amp = 1e6; % Pa
  67. target_focus_depth_mm = 72.2;
  68. focus_dist_mm = target_focus_depth_mm - src_depth_mm_display;
  69. focus_dist_m = focus_dist_mm * 1e-3;
  70. if focus_dist_mm <= 0
  71. error('Target focal depth must be above the source when measured from bottom to top.');
  72. end
  73. channel_delay_s = zeros(1, nChannels);
  74. for ch = 1:nChannels
  75. r_mid_m = ring_mid_mm(ch) * 1e-3;
  76. path_excess = sqrt(focus_dist_m^2 + r_mid_m^2) - focus_dist_m;
  77. channel_delay_s(ch) = path_excess / c_bg;
  78. end
  79. channel_delay_s = channel_delay_s - max(channel_delay_s);
  80. channel_apod = ones(1, nChannels);
  81. % =========================================================
  82. % TIME ARRAY
  83. % =========================================================
  84. cfl = 0.1;
  85. t_end = 1.3 * (Lx / c_bg);
  86. kgrid.makeTime(c_bg, cfl, t_end);
  87. % =========================================================
  88. % BUILD SOURCE SIGNALS
  89. % =========================================================
  90. active_pts = find(source.p_mask);
  91. nSrc = numel(active_pts);
  92. source.p = zeros(nSrc, numel(kgrid.t_array));
  93. for i = 1:nSrc
  94. [~, col_idx] = ind2sub([Nx, Ny], active_pts(i));
  95. ch = channel_map(col_idx);
  96. if ch > 0
  97. tau = channel_delay_s(ch);
  98. source.p(i, :) = channel_apod(ch) * source_amp * ...
  99. sin(2*pi*f0*(kgrid.t_array + tau));
  100. end
  101. end
  102. % =========================================================
  103. % SENSOR
  104. % =========================================================
  105. sensor.mask = ones(Nx, Ny);
  106. sensor.record = {'p_max', 'p_rms'};
  107. % =========================================================
  108. % SOURCE DISPLAY MAP
  109. % =========================================================
  110. source_display = zeros(Nx, Ny);
  111. for col = 1:Ny
  112. if channel_map(col) > 0
  113. source_display(src_row, col) = channel_map(col);
  114. end
  115. end
  116. % =========================================================
  117. % RUN FREE-FIELD
  118. % =========================================================
  119. disp('Running free-field simulation...');
  120. input_args = {'PMLInside', false, 'PlotPML', false, 'DisplayMask', 'off'};
  121. sensor_data_ff = kspaceFirstOrder2D(kgrid, medium_ff, source, sensor, input_args{:});
  122. p_max_ff = reshape(sensor_data_ff.p_max, Nx, Ny);
  123. p_rms_ff = reshape(sensor_data_ff.p_rms, Nx, Ny);
  124. % =========================================================
  125. % FIND FREE-FIELD FOCUS LOCATION
  126. % =========================================================
  127. [~, idx_ff] = max(p_max_ff(:));
  128. [focus_row_ff, focus_col_ff] = ind2sub(size(p_max_ff), idx_ff);
  129. focus_axial_ff_mm = axial_disp_mm(focus_row_ff);
  130. focus_radial_ff_mm = radial_disp_mm(focus_col_ff);
  131. % =========================================================
  132. % FREE-FIELD FWHM
  133. % =========================================================
  134. axial_profile_ff_peak = p_max_ff(:, focus_col_ff);
  135. radial_profile_ff_peak = p_max_ff(focus_row_ff, :);
  136. [axial_fwhm_ff_peak_mm, axL_ff_peak, axR_ff_peak] = ...
  137. local_fwhm(axial_disp_mm, axial_profile_ff_peak);
  138. [radial_fwhm_ff_peak_mm, rdL_ff_peak, rdR_ff_peak] = ...
  139. local_fwhm(radial_disp_mm, radial_profile_ff_peak);
  140. % =========================================================
  141. % SWEEP CURVATURES FOR SKULL CASES
  142. % =========================================================
  143. skull_thickness_mm = 6;
  144. skull_center_lat_mm = 0;
  145. % Columns 2-5 in the figure
  146. curvature_list = [0.003, 0.006, 0.009, 0.012];
  147. nCurv = numel(curvature_list);
  148. % Storage
  149. p_max_sk_all = cell(1, nCurv);
  150. skull_mask_all = cell(1, nCurv);
  151. post_skull_mask_all = cell(1, nCurv);
  152. focus_row_sk_all = nan(1, nCurv);
  153. focus_col_sk_all = nan(1, nCurv);
  154. focus_axial_sk_mm_all = nan(1, nCurv);
  155. focus_radial_sk_mm_all = nan(1, nCurv);
  156. axial_profile_sk_all = cell(1, nCurv);
  157. radial_profile_sk_all = cell(1, nCurv);
  158. axial_valid_sk_all = cell(1, nCurv);
  159. radial_valid_sk_all = cell(1, nCurv);
  160. axial_fwhm_sk_mm_all = nan(1, nCurv);
  161. radial_fwhm_sk_mm_all = nan(1, nCurv);
  162. axL_sk_all = nan(1, nCurv);
  163. axR_sk_all = nan(1, nCurv);
  164. rdL_sk_all = nan(1, nCurv);
  165. rdR_sk_all = nan(1, nCurv);
  166. peak_sk_all = nan(1, nCurv);
  167. for k = 1:nCurv
  168. curvature_strength = curvature_list(k);
  169. fprintf('Running skull simulation for curvature = %.4f ...\n', curvature_strength);
  170. % -----------------------------------------------------
  171. % SKULL GEOMETRY
  172. % -----------------------------------------------------
  173. skull_bottom_disp_mm = (src_depth_mm_display + 1.0) + ...
  174. curvature_strength * (radial_disp_mm - skull_center_lat_mm).^2;
  175. skull_top_disp_mm = skull_bottom_disp_mm + skull_thickness_mm;
  176. % Convert skull surfaces to internal x_mm
  177. skull_bottom_internal_mm = x_mm(end) - skull_bottom_disp_mm;
  178. skull_top_internal_mm = x_mm(end) - skull_top_disp_mm;
  179. skull_bottom_2d = repmat(skull_bottom_internal_mm, Nx, 1);
  180. skull_top_2d = repmat(skull_top_internal_mm, Nx, 1);
  181. skull_mask = (Xmm >= skull_top_2d) & (Xmm <= skull_bottom_2d);
  182. medium_skull = medium_ff;
  183. medium_skull.sound_speed(skull_mask) = 2800;
  184. medium_skull.density(skull_mask) = 1900;
  185. medium_skull.alpha_coeff(skull_mask) = 20;
  186. % -----------------------------------------------------
  187. % POST-SKULL VALID FOCUS REGION
  188. % -----------------------------------------------------
  189. post_skull_mask = false(Nx, Ny);
  190. for j = 1:Ny
  191. skull_rows = find(skull_mask(:, j));
  192. if isempty(skull_rows)
  193. post_skull_mask(:, j) = true;
  194. else
  195. skull_axial_vals = axial_disp_mm(skull_rows);
  196. top_of_skull_axial = max(skull_axial_vals);
  197. post_skull_mask(:, j) = axial_disp_mm(:) > top_of_skull_axial;
  198. end
  199. end
  200. % -----------------------------------------------------
  201. % RUN WITH SKULL
  202. % -----------------------------------------------------
  203. sensor_data_sk = kspaceFirstOrder2D(kgrid, medium_skull, source, sensor, input_args{:});
  204. p_max_sk = reshape(sensor_data_sk.p_max, Nx, Ny);
  205. % -----------------------------------------------------
  206. % FIND FOCUS LOCATION (POST-SKULL ONLY)
  207. % -----------------------------------------------------
  208. p_max_sk_post = p_max_sk;
  209. p_max_sk_post(~post_skull_mask) = -Inf;
  210. [~, idx_sk] = max(p_max_sk_post(:));
  211. [focus_row_sk, focus_col_sk] = ind2sub(size(p_max_sk_post), idx_sk);
  212. focus_axial_sk_mm = axial_disp_mm(focus_row_sk);
  213. focus_radial_sk_mm = radial_disp_mm(focus_col_sk);
  214. % -----------------------------------------------------
  215. % FWHM PROFILES
  216. % -----------------------------------------------------
  217. axial_profile_sk_peak = p_max_sk(:, focus_col_sk);
  218. radial_profile_sk_peak = p_max_sk(focus_row_sk, :);
  219. axial_valid_sk_peak = (~skull_mask(:, focus_col_sk)) & post_skull_mask(:, focus_col_sk);
  220. radial_valid_sk_peak = (~skull_mask(focus_row_sk, :).') & post_skull_mask(focus_row_sk, :).';
  221. [axial_fwhm_sk_peak_mm, axL_sk_peak, axR_sk_peak] = ...
  222. local_fwhm_masked(axial_disp_mm, axial_profile_sk_peak, axial_valid_sk_peak);
  223. [radial_fwhm_sk_peak_mm, rdL_sk_peak, rdR_sk_peak] = ...
  224. local_fwhm_masked(radial_disp_mm, radial_profile_sk_peak, radial_valid_sk_peak);
  225. % -----------------------------------------------------
  226. % STORE
  227. % -----------------------------------------------------
  228. p_max_sk_all{k} = p_max_sk;
  229. skull_mask_all{k} = skull_mask;
  230. post_skull_mask_all{k} = post_skull_mask;
  231. focus_row_sk_all(k) = focus_row_sk;
  232. focus_col_sk_all(k) = focus_col_sk;
  233. focus_axial_sk_mm_all(k) = focus_axial_sk_mm;
  234. focus_radial_sk_mm_all(k) = focus_radial_sk_mm;
  235. axial_profile_sk_all{k} = axial_profile_sk_peak;
  236. radial_profile_sk_all{k} = radial_profile_sk_peak;
  237. axial_valid_sk_all{k} = axial_valid_sk_peak;
  238. radial_valid_sk_all{k} = radial_valid_sk_peak;
  239. axial_fwhm_sk_mm_all(k) = axial_fwhm_sk_peak_mm;
  240. radial_fwhm_sk_mm_all(k) = radial_fwhm_sk_peak_mm;
  241. axL_sk_all(k) = axL_sk_peak;
  242. axR_sk_all(k) = axR_sk_peak;
  243. rdL_sk_all(k) = rdL_sk_peak;
  244. rdR_sk_all(k) = rdR_sk_peak;
  245. peak_sk_all(k) = max(p_max_sk_post(:));
  246. end
  247. % =========================================================
  248. % COMMON COLOR LIMITS
  249. % =========================================================
  250. clim_pmax = [0 1.5e6]; % Pa
  251. clim_prof = [0 2.5]; % MPa
  252. % =========================================================
  253. % PLOT 3x5 FIGURE
  254. % Row 1 = Acoustic field
  255. % Row 2 = Axial FWHM
  256. % Row 3 = Radial FWHM
  257. % Col 1 = Free-field
  258. % Col 2-5 = Skull with curvature sweep
  259. % =========================================================
  260. figure('Color', 'w', 'Name', 'Curvature Sweep: Free-field and Skull Cases', ...
  261. 'Position', [50 40 1800 950]);
  262. ax_field = gobjects(1, 5);
  263. % =========================================================
  264. % COLUMN 1: FREE-FIELD
  265. % =========================================================
  266. ax_field(1) = subplot(3,5,1);
  267. imagesc(radial_disp_mm, axial_disp_mm, p_max_ff);
  268. axis image;
  269. set(gca, 'YDir', 'normal');
  270. colormap(gca, turbo);
  271. caxis(clim_pmax);
  272. hold on;
  273. plot(focus_radial_ff_mm, focus_axial_ff_mm, 'wo', 'MarkerSize', 8, 'LineWidth', 1.8);
  274. yline(target_focus_depth_mm, 'w--', '72.2 mm target', 'LineWidth', 1.0);
  275. title('No Skull');
  276. xlabel('Radial position (mm)');
  277. ylabel('Axial depth (mm)');
  278. xlim([-30 30]);
  279. ylim([0 100]);
  280. hold off;
  281. subplot(3,5,6);
  282. axial_profile_ff_peak_mpa = axial_profile_ff_peak / 1e6;
  283. plot(axial_disp_mm, axial_profile_ff_peak_mpa, 'b-', 'LineWidth', 1.5); hold on;
  284. halfmax_ff_ax = max(axial_profile_ff_peak_mpa) / 2;
  285. yline(halfmax_ff_ax, 'k--', 'LineWidth', 1);
  286. if ~isnan(axL_ff_peak), xline(axL_ff_peak, 'r--', 'LineWidth', 1); end
  287. if ~isnan(axR_ff_peak), xline(axR_ff_peak, 'r--', 'LineWidth', 1); end
  288. plot([axL_ff_peak axR_ff_peak], [halfmax_ff_ax halfmax_ff_ax], ...
  289. 'ro', 'MarkerFaceColor', 'r');
  290. title(sprintf('Axial FWHM = %.2f mm', axial_fwhm_ff_peak_mm));
  291. xlabel('Axial depth (mm)');
  292. ylabel('Pressure (MPa)');
  293. xlim([0 100]);
  294. ylim(clim_prof);
  295. grid on;
  296. hold off;
  297. subplot(3,5,11);
  298. radial_profile_ff_peak_mpa = radial_profile_ff_peak / 1e6;
  299. plot(radial_disp_mm, radial_profile_ff_peak_mpa, 'b-', 'LineWidth', 1.5); hold on;
  300. halfmax_ff_rd = max(radial_profile_ff_peak_mpa) / 2;
  301. yline(halfmax_ff_rd, 'k--', 'LineWidth', 1);
  302. if ~isnan(rdL_ff_peak), xline(rdL_ff_peak, 'r--', 'LineWidth', 1); end
  303. if ~isnan(rdR_ff_peak), xline(rdR_ff_peak, 'r--', 'LineWidth', 1); end
  304. plot([rdL_ff_peak rdR_ff_peak], [halfmax_ff_rd halfmax_ff_rd], ...
  305. 'ro', 'MarkerFaceColor', 'r');
  306. title(sprintf('Radial FWHM = %.2f mm', radial_fwhm_ff_peak_mm));
  307. xlabel('Radial position (mm)');
  308. ylabel('Pressure (MPa)');
  309. xlim([-30 30]);
  310. ylim(clim_prof);
  311. grid on;
  312. hold off;
  313. % =========================================================
  314. % COLUMNS 2-5: SKULL CURVATURE SWEEP
  315. % =========================================================
  316. for k = 1:nCurv
  317. col_idx = k + 1;
  318. p_max_sk = p_max_sk_all{k};
  319. skull_mask = skull_mask_all{k};
  320. focus_axial_sk_mm = focus_axial_sk_mm_all(k);
  321. focus_radial_sk_mm = focus_radial_sk_mm_all(k);
  322. axial_profile_sk_peak = axial_profile_sk_all{k};
  323. radial_profile_sk_peak = radial_profile_sk_all{k};
  324. axial_valid_sk_peak = axial_valid_sk_all{k};
  325. radial_valid_sk_peak = radial_valid_sk_all{k};
  326. axial_fwhm_sk_peak_mm = axial_fwhm_sk_mm_all(k);
  327. radial_fwhm_sk_peak_mm = radial_fwhm_sk_mm_all(k);
  328. axL_sk_peak = axL_sk_all(k);
  329. axR_sk_peak = axR_sk_all(k);
  330. rdL_sk_peak = rdL_sk_all(k);
  331. rdR_sk_peak = rdR_sk_all(k);
  332. curvature_strength = curvature_list(k);
  333. % ---------------- Row 1: Acoustic field ----------------
  334. ax_field(col_idx) = subplot(3,5,col_idx);
  335. imagesc(radial_disp_mm, axial_disp_mm, p_max_sk);
  336. axis image;
  337. set(gca, 'YDir', 'normal');
  338. colormap(gca, turbo);
  339. caxis(clim_pmax);
  340. hold on;
  341. h1 = imagesc(radial_disp_mm, axial_disp_mm, double(skull_mask));
  342. set(h1, 'AlphaData', 0.16 * double(skull_mask));
  343. contour(radial_disp_mm, axial_disp_mm, skull_mask, [1 1], 'w', 'LineWidth', 1.5);
  344. plot(focus_radial_sk_mm, focus_axial_sk_mm, 'wo', 'MarkerSize', 8, 'LineWidth', 1.8);
  345. yline(target_focus_depth_mm, 'w--', '72.2 mm target', 'LineWidth', 1.0);
  346. caxis(clim_pmax);
  347. title(sprintf('Skull, curv = %.4f', curvature_strength));
  348. xlabel('Radial position (mm)');
  349. if col_idx == 2
  350. ylabel('Axial depth (mm)');
  351. end
  352. xlim([-30 30]);
  353. ylim([0 100]);
  354. hold off;
  355. % ---------------- Row 2: Axial FWHM ----------------
  356. subplot(3,5,5 + col_idx);
  357. axial_profile_sk_peak_mpa = axial_profile_sk_peak / 1e6;
  358. axial_profile_sk_plot = axial_profile_sk_peak_mpa;
  359. axial_profile_sk_plot(~axial_valid_sk_peak) = NaN;
  360. plot(axial_disp_mm, axial_profile_sk_plot, 'b-', 'LineWidth', 1.5); hold on;
  361. halfmax_sk_ax = max(axial_profile_sk_plot, [], 'omitnan') / 2;
  362. yline(halfmax_sk_ax, 'k--', 'LineWidth', 1);
  363. if ~isnan(axL_sk_peak), xline(axL_sk_peak, 'r--', 'LineWidth', 1); end
  364. if ~isnan(axR_sk_peak), xline(axR_sk_peak, 'r--', 'LineWidth', 1); end
  365. plot([axL_sk_peak axR_sk_peak], [halfmax_sk_ax halfmax_sk_ax], ...
  366. 'ro', 'MarkerFaceColor', 'r');
  367. title(sprintf('Axial FWHM = %.2f mm', -axial_fwhm_sk_peak_mm));
  368. xlabel('Axial depth (mm)');
  369. if col_idx == 2
  370. ylabel('Pressure (MPa)');
  371. end
  372. xlim([0 100]);
  373. ylim(clim_prof);
  374. grid on;
  375. hold off;
  376. % ---------------- Row 3: Radial FWHM ----------------
  377. subplot(3,5,10 + col_idx);
  378. radial_profile_sk_peak_mpa = radial_profile_sk_peak / 1e6;
  379. radial_profile_sk_plot = radial_profile_sk_peak_mpa;
  380. radial_profile_sk_plot(~radial_valid_sk_peak) = NaN;
  381. plot(radial_disp_mm, radial_profile_sk_plot, 'b-', 'LineWidth', 1.5); hold on;
  382. halfmax_sk_rd = max(radial_profile_sk_plot, [], 'omitnan') / 2;
  383. yline(halfmax_sk_rd, 'k--', 'LineWidth', 1);
  384. if ~isnan(rdL_sk_peak), xline(rdL_sk_peak, 'r--', 'LineWidth', 1); end
  385. if ~isnan(rdR_sk_peak), xline(rdR_sk_peak, 'r--', 'LineWidth', 1); end
  386. plot([rdL_sk_peak rdR_sk_peak], [halfmax_sk_rd halfmax_sk_rd], ...
  387. 'ro', 'MarkerFaceColor', 'r');
  388. title(sprintf('Radial FWHM = %.2f mm', radial_fwhm_sk_peak_mm));
  389. xlabel('Radial position (mm)');
  390. if col_idx == 2
  391. ylabel('Pressure (MPa)');
  392. end
  393. xlim([-30 30]);
  394. ylim(clim_prof);
  395. grid on;
  396. hold off;
  397. end
  398. % =========================================================
  399. % SINGLE COLORBAR FOR ACOUSTIC FIELD ROW
  400. % =========================================================
  401. cb = colorbar(ax_field(end), 'Position', [0.92 0.71 0.012 0.20]);
  402. ylabel(cb, 'Peak pressure (Pa)');
  403. % =========================================================
  404. % SUMMARY METRICS
  405. % =========================================================
  406. output_peak_ff = max(p_max_ff(:));
  407. fprintf('\n===== CURVATURE SWEEP SUMMARY =====\n');
  408. fprintf('Axial axis : 0 mm bottom -> 100 mm top\n');
  409. fprintf('Radial axis : -30 mm -> 30 mm\n');
  410. fprintf('Source axial position : %.2f mm\n', src_depth_mm_display);
  411. fprintf('Target focal depth : %.2f mm\n', target_focus_depth_mm);
  412. fprintf('Focus distance from source : %.2f mm\n', focus_dist_mm);
  413. fprintf('Skull thickness : %.2f mm\n', skull_thickness_mm);
  414. fprintf('Free-field peak : %.4g Pa\n', output_peak_ff);
  415. fprintf('Free-field focus : axial = %.2f mm, radial = %.2f mm\n', ...
  416. focus_axial_ff_mm, focus_radial_ff_mm);
  417. fprintf('Free-field axial FWHM : %.2f mm\n', axial_fwhm_ff_peak_mm);
  418. fprintf('Free-field radial FWHM : %.2f mm\n', radial_fwhm_ff_peak_mm);
  419. fprintf('\n');
  420. for k = 1:nCurv
  421. peak_loss_pct = 100 * (1 - peak_sk_all(k) / output_peak_ff);
  422. focus_shift_axial_mm = focus_axial_sk_mm_all(k) - focus_axial_ff_mm;
  423. focus_shift_radial_mm = focus_radial_sk_mm_all(k) - focus_radial_ff_mm;
  424. fprintf('Curvature = %.4f\n', curvature_list(k));
  425. fprintf(' Skull peak (post-skull) : %.4g Pa\n', peak_sk_all(k));
  426. fprintf(' Peak loss : %.2f %%\n', peak_loss_pct);
  427. fprintf(' Focus : axial = %.2f mm, radial = %.2f mm\n', ...
  428. focus_axial_sk_mm_all(k), focus_radial_sk_mm_all(k));
  429. fprintf(' Focus shift : axial = %.2f mm, radial = %.2f mm\n', ...
  430. focus_shift_axial_mm, focus_shift_radial_mm);
  431. fprintf(' Axial FWHM : %.2f mm\n', axial_fwhm_sk_mm_all(k));
  432. fprintf(' Radial FWHM : %.2f mm\n', radial_fwhm_sk_mm_all(k));
  433. fprintf('\n');
  434. end
  435. fprintf('===================================\n\n');
  436. % =========================================================
  437. % LOCAL FUNCTIONS
  438. % =========================================================
  439. function [fwhm, x_left, x_right] = local_fwhm(coord, profile)
  440. profile = double(profile(:));
  441. coord = double(coord(:));
  442. x_left = NaN;
  443. x_right = NaN;
  444. fwhm = NaN;
  445. if all(profile == 0) || max(profile) <= 0
  446. return;
  447. end
  448. [~, imax] = max(profile);
  449. halfmax = max(profile) / 2;
  450. above = profile >= halfmax;
  451. left_idx = find(above(1:imax), 1, 'first');
  452. right_idx = imax - 1 + find(above(imax:end), 1, 'last');
  453. if isempty(left_idx) || isempty(right_idx)
  454. return;
  455. end
  456. if left_idx == 1
  457. x_left = coord(left_idx);
  458. else
  459. x1 = coord(left_idx - 1);
  460. x2 = coord(left_idx);
  461. y1 = profile(left_idx - 1);
  462. y2 = profile(left_idx);
  463. x_left = x1 + (halfmax - y1) * (x2 - x1) / (y2 - y1);
  464. end
  465. if right_idx == numel(profile)
  466. x_right = coord(right_idx);
  467. else
  468. x1 = coord(right_idx);
  469. x2 = coord(right_idx + 1);
  470. y1 = profile(right_idx);
  471. y2 = profile(right_idx + 1);
  472. x_right = x1 + (halfmax - y1) * (x2 - x1) / (y2 - y1);
  473. end
  474. fwhm = x_right - x_left;
  475. end
  476. function [fwhm, x_left, x_right] = local_fwhm_masked(coord, profile, valid_mask)
  477. profile = double(profile(:));
  478. coord = double(coord(:));
  479. valid_mask = logical(valid_mask(:));
  480. x_left = NaN;
  481. x_right = NaN;
  482. fwhm = NaN;
  483. if numel(coord) ~= numel(profile) || numel(profile) ~= numel(valid_mask)
  484. error('coord, profile, and valid_mask must have the same length.');
  485. end
  486. profile(~valid_mask) = NaN;
  487. if all(isnan(profile))
  488. return;
  489. end
  490. peak_val = max(profile, [], 'omitnan');
  491. if isempty(peak_val) || isnan(peak_val) || peak_val <= 0
  492. return;
  493. end
  494. halfmax = peak_val / 2;
  495. tmp = profile;
  496. tmp(isnan(tmp)) = -Inf;
  497. [~, imax] = max(tmp);
  498. if ~isfinite(tmp(imax))
  499. return;
  500. end
  501. above = (profile >= halfmax);
  502. if ~above(imax)
  503. return;
  504. end
  505. left_idx = imax;
  506. while left_idx > 1 && above(left_idx - 1)
  507. left_idx = left_idx - 1;
  508. end
  509. right_idx = imax;
  510. while right_idx < numel(profile) && above(right_idx + 1)
  511. right_idx = right_idx + 1;
  512. end
  513. if left_idx == 1 || isnan(profile(left_idx - 1))
  514. x_left = coord(left_idx);
  515. else
  516. x1 = coord(left_idx - 1);
  517. x2 = coord(left_idx);
  518. y1 = profile(left_idx - 1);
  519. y2 = profile(left_idx);
  520. x_left = x1 + (halfmax - y1) * (x2 - x1) / (y2 - y1);
  521. end
  522. if right_idx == numel(profile) || isnan(profile(right_idx + 1))
  523. x_right = coord(right_idx);
  524. else
  525. x1 = coord(right_idx);
  526. x2 = coord(right_idx + 1);
  527. y1 = profile(right_idx);
  528. y2 = profile(right_idx + 1);
  529. x_right = x1 + (halfmax - y1) * (x2 - x1) / (y2 - y1);
  530. end
  531. fwhm = x_right - x_left;
  532. end

BeamProfileSkull.m at commit baa5d8b, no license · at the source

Overview

Authors: Kai Wing Kevin Tang1, Benjamin Baird2, William D Moscoso-Barrera1, Mengxia Yu1, Mengmeng Yao1, Jinmo Jeong1, Ilya Pyatnitskiy1, Anakaren Romero Lozano1, Jiachen Wang1, Ju-Chun Hsieh1, Tony Sungjin Chae1, Daniel Song1, Julieta Garcia1, Rithvik Mittapalli1, Adam Bush1, Wynn Legon3, Vincent Mysliwiec4, Gregory A Fonzo5, Huiliang Wang1
  1. Department of Biomedical Engineering, Cockrell School of Engineering, The University of Texas at Austin, Austin, TX USA
  2. Department of Psychology, The University of Texas at Austin, Austin, TX USA
  3. Fralin Biomedical Research Institute, Virginia Polytechnic Institute, Blacksburg, VA USA
  4. Department of Psychiatry and Behavioral Sciences, The University of Texas Health Science at San Antonio, San Antonio, TX USA
  5. Department of Psychiatry and Behavioral Sciences, Dell Medical School, The University of Texas at Austin, Austin, TX USA
Journal: Nature communications, volume 17, issue 1, article 5570
Dates: received 5 March 2026; accepted 18 May 2026; published online 4 June 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1038/s41467-026-73787-6 · PMID 42243115 · PMCID PMC13294382 · OpenAlex W7163528177
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: other (modality), human (organism), clinical / translational (subfield)
Methods: Spectral & time-frequency, Statistics, Preprocessing, Physiology & signal measures
Keywords: Biomedical engineering, Electrical and electronic engineering, Translational research
MeSH: Deep Brain Stimulation*, Sleep, REM*, Electrophysiological Phenomena, Humans, Skin, Wearable Electronic Devices (* major topic)
Topic: Advanced Sensor and Energy Harvesting Materials (Biomedical Engineering, Engineering), according to OpenAlex
Funding: United States Department of Defense | Defense Advanced Research Projects Agency
Citations: not cited yet (Europe PMC); 130 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.

Repositories

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

kevintang725/DARPA-NEUSLEEP

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: baa5d8bbfba157ea4996a239b4ee2b66294bfc0e, 2 April 2026
Languages: Python (133), Shell (129), MATLAB (45)
Size: 4,604 files, 307 scripts
Software Heritage: not archived
Found in: “Code availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: NumPy (66 files), Matplotlib (55 files), AFNI (40 files), Signal Processing Toolbox (11 files), FSL (10 files), EEGLAB (5 files), Image Processing Toolbox (2 files), Statistics and Machine Learning Toolbox (2 files), PsychoPy (2 files), dcm2niix (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
308 files

Zenodo 19391527

License: CC-BY-4.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
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
  • 27 September 2026: the link answers (HTTP 200)
At the source:

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-73787-6.

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;
  • 307 scripts, each with its path and the digest of its content;
  • 16 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-73787-6.

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, 19 authors, 3 keywords, 6 MeSH terms, 1 funder, 125 references.

Cite

This paper

Tang, K. W. K., Baird, B., Moscoso-Barrera, W. D., Yu, M., Yao, M., Jeong, J., Pyatnitskiy, I., Romero Lozano, A., Wang, J., Hsieh, J.-C., Chae, T. S., Song, D., Garcia, J., Mittapalli, R., Bush, A., Legon, W., Mysliwiec, V., Fonzo, G. A., & Wang, H. (2026). Skin-attached bioadhesive patch enabling ultrasound deep brain stimulation and real-time electrophysiological monitoring for REM sleep enhancement. Nature communications, 17(1), 5570. https://doi.org/10.1038/s41467-026-73787-6

BibTeX

@article{tang2026skin,
author = {Tang, Kai Wing Kevin and Baird, Benjamin and Moscoso-Barrera, William D and Yu, Mengxia and Yao, Mengmeng and Jeong, Jinmo and Pyatnitskiy, Ilya and Romero Lozano, Anakaren and Wang, Jiachen and Hsieh, Ju-Chun and Chae, Tony Sungjin and Song, Daniel and Garcia, Julieta and Mittapalli, Rithvik and Bush, Adam and Legon, Wynn and Mysliwiec, Vincent and Fonzo, Gregory A and Wang, Huiliang},
title = {{Skin-attached bioadhesive patch enabling ultrasound deep brain stimulation and real-time electrophysiological monitoring for REM sleep enhancement}},
journal = {Nature communications},
year = {2026},
month = jun,
volume = {17},
number = {1},
pages = {5570},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/s41467-026-73787-6},
url = {https://doi.org/10.1038/s41467-026-73787-6},
pmid = {42243115},
pmcid = {PMC13294382}
}

RIS

TY - JOUR
AU - Tang, Kai Wing Kevin
AU - Baird, Benjamin
AU - Moscoso-Barrera, William D
AU - Yu, Mengxia
AU - Yao, Mengmeng
AU - Jeong, Jinmo
AU - Pyatnitskiy, Ilya
AU - Romero Lozano, Anakaren
AU - Wang, Jiachen
AU - Hsieh, Ju-Chun
AU - Chae, Tony Sungjin
AU - Song, Daniel
AU - Garcia, Julieta
AU - Mittapalli, Rithvik
AU - Bush, Adam
AU - Legon, Wynn
AU - Mysliwiec, Vincent
AU - Fonzo, Gregory A
AU - Wang, Huiliang
TI - Skin-attached bioadhesive patch enabling ultrasound deep brain stimulation and real-time electrophysiological monitoring for REM sleep enhancement
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/06/04
VL - 17
IS - 1
SP - 5570
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/s41467-026-73787-6
UR - https://doi.org/10.1038/s41467-026-73787-6
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41467-026-73787-6",
"type": "article-journal",
"title": "Skin-attached bioadhesive patch enabling ultrasound deep brain stimulation and real-time electrophysiological monitoring for REM sleep enhancement",
"container-title": "Nature communications",
"author": [
{
"family": "Tang",
"given": "Kai Wing Kevin"
},
{
"family": "Baird",
"given": "Benjamin"
},
{
"family": "Moscoso-Barrera",
"given": "William D"
},
{
"family": "Yu",
"given": "Mengxia"
},
{
"family": "Yao",
"given": "Mengmeng"
},
{
"family": "Jeong",
"given": "Jinmo"
},
{
"family": "Pyatnitskiy",
"given": "Ilya"
},
{
"family": "Romero Lozano",
"given": "Anakaren"
},
{
"family": "Wang",
"given": "Jiachen"
},
{
"family": "Hsieh",
"given": "Ju-Chun"
},
{
"family": "Chae",
"given": "Tony Sungjin"
},
{
"family": "Song",
"given": "Daniel"
},
{
"family": "Garcia",
"given": "Julieta"
},
{
"family": "Mittapalli",
"given": "Rithvik"
},
{
"family": "Bush",
"given": "Adam"
},
{
"family": "Legon",
"given": "Wynn"
},
{
"family": "Mysliwiec",
"given": "Vincent"
},
{
"family": "Fonzo",
"given": "Gregory A"
},
{
"family": "Wang",
"given": "Huiliang"
}
],
"container-title-short": "Nat Commun",
"volume": "17",
"issue": "1",
"page": "5570",
"DOI": "10.1038/s41467-026-73787-6",
"PMID": "42243115",
"PMCID": "PMC13294382",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41467-026-73787-6",
"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.1038/s41467-026-74099-5 [code]
Right amygdala ablation reduces maladaptive negative interpretation bias and symptoms in a patient with post-traumatic stress disorder.
Journal: Nature communications
In common: dcm2niix, Image Processing Toolbox, Statistics and Machine Learning Toolbox, clinical / translational, 4 references
[2] doi:10.1038/s41467-026-76011-7 [code]
Human cortex organizes dynamic co-fluctuations along the sensorimotor-association axis.
Journal: Nature communications
In common: AFNI, EEGLAB, FSL, 5 other tools
[3] doi:10.1016/j.crmeth.2026.101473 [code]
AmygdalaGo-BOLT for boundary-aware segmentation of the human amygdala.
Journal: Cell reports methods
In common: AFNI, EEGLAB, FSL, 5 other tools
[4] doi:10.64898/2026.03.12.710517 [code]
Cortical excitability inversely modulates fMRI connectivity via low-frequency neuronal coupling
Journal: bioRxiv (preprint)
In common: AFNI, EEGLAB, FSL, 5 other tools
[5] doi:10.1002/hbm.70512 [code]
Precision Imaging for Intraindividual Investigation of the Reward Response.
Journal: Human brain mapping
In common: dcm2niix, PsychoPy, AFNI, 3 other tools
[6] doi:10.1162/imag.a.1222 [code]
Network-based near-scalp personalized brain stimulation targets.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: AFNI, FSL, Image Processing Toolbox, 3 other tools, other, 1 reference
[7] doi:10.1016/j.isci.2026.116586 [code]
Condition-specific neural signatures of reactivation during post-retrieval rest: An EEG study.
Journal: iScience
In common: PsychoPy, EEGLAB, Image Processing Toolbox, 4 other tools
[8] doi:10.1371/journal.pbio.3003818 [code]
Human neuronal firing varies with the frequency of local field potential oscillations.
Journal: PLoS biology
In common: EEGLAB, FSL, Image Processing Toolbox, 2 other tools, 1 reference
[9] doi:10.1038/s41467-026-74565-0 [code]
The functional neurobiology of dispositions towards negative emotions.
Journal: Nature communications
In common: AFNI, FSL, Image Processing Toolbox, 4 other tools
[10] doi:10.1016/j.cub.2026.05.068 [code]
An abstract relational map emerges in the human medial prefrontal cortex with consolidation.
Journal: Current biology : CB
In common: AFNI, FSL, Image Processing Toolbox, 4 other tools

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.