bioRxiv Science⌕ Search

bioRxiv · 10.64898/2026.07.20.738933

Using large language models for enhancing accessibility for Monte Carlo photon transport simulations and beyond

Abstract

SignificanceComputational modeling and the use of simulation software tools are essential for biomedical optics research. Designing effective simulations often requires in-depth understanding of the underlying physical problems and proper configuration of the software settings, which often constitute key barriers for novice users including students. The rapid emergence of large language models (LLMs) offers new opportunities for natural-language-based interaction, but integrating them with technical software remains challenging because of their limited output reproducibility. Overcoming these limitations would allow more intuitive, efficient, and reproducible interaction between scientists and scientific software. AimWe investigate the use of LLMs in quantitative biophotonics simulation tools, with a goal of enabling novice users to build complex photon simulations using intuitive natural-language-based problem descriptions. ApproachWe have explored prompt engineering strategies that enable LLMs to bridge the gap between natural language descriptions and advanced simulation software by constraining LLM outputs using a data schema (i.e., format) and a modular component architecture, followed by deterministic validation to ensure correctness and reproducibility of the outputs. ResultsUsing Monte Carlo eXtreme (MCX) - a widely used photon transport simulator - as an example, we showcase the capability of the proposed framework to convert user descriptions to structured simulation inputs. Benchmarked using 33 diverse natural language simulation descriptions, our LLM interface, MCX-LLM, achieves 98% accuracy and 99% repeatability, with an average processing time of 8.96 seconds per prompt. The framework also successfully handles various linguistic styles and diverse simulation settings, achieving a 100% success rate on 20 unconstrained real-world prompts. With only minor adjustments, our LLM interface also produces valid inputs for a finite-element-based diffusion solver to demonstrate generality towards other optical simulators. ConclusionsBy combining LLMs capability for textual data comprehension with structured constraints, this work provides a pathway to making complex scientific tools accessible while ensuring the reliability and technical correctness required for rigorous scientific research. MCX-LLM has been integrated with MCX Cloud accessible at https://mcx.space/cloud.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Yen, F.-Y., Liu, Y., Fang, Q.. 2026-07-21. Using large language models for enhancing accessibility for Monte Carlo photon transport simulations and beyond. https://doi.org/10.64898/2026.07.20.738933

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

Wall stiffening is a primary contributor to motility loss in Crohn's disease: an electromechanical modeling study

Fibrotic strictures are among the most disabling complications of Crohn's disease, permanently narrowing the bowel and impairing motility, yet no approved therapy reverses them. Chronic inflammation alters pacemaker-network coupling, smooth-muscle excitability, and calcium-dependent contractility, while fibrosis thickens the bowel wall, narrows the lumen, and changes tissue mechanics. The relative contributions of these coupled electrical, contractile, and structural alterations to motility loss remain unclear. To address this gap, we develop an integrated electromechanical finite-element framework for fibrostenosing Crohn's disease that couples a fibrosis-driven growth model with a FitzHugh-Nagumo electromechanical model. A full-factorial 25 design of experiments is used to quantify the relative effects of electrical diffusivity, excitation threshold, peak active stress, wall stiffness, and hypertrophic remodeling on cyclic lumen-volume deformation. Motility is quantified by the standard deviation of lumen volume over one contraction cycle. Within the parameter ranges examined, increased wall stiffness emerged as the dominant contributor to motility loss, followed by impaired smooth-muscle contractility. Changes in excitation threshold, hypertrophic remodeling, and electrical diffusivity produced substantially smaller effects. Pairwise interactions were small relative to the dominant main effects, indicating that the mechanisms contributed largely through their individual effects. Our findings suggest that limiting wall stiffening while preserving smooth-muscle contractile function may provide a therapeutic strategy for maintaining intestinal motility in fibrostenosing Crohn's disease.

bioengineering↗

Lactate Receptor Activation Alleviates Senescence and Preserves Homeostasis of Aged Arteries

Arteries are among the first tissues to exhibit age-related dysfunction, yet the metabolic mechanisms driving vascular senescence remain poorly understood. Here, analysis of human aortic transcriptomic data identified HCAR1, encoding the lactate receptor GPR81, as one of the genes most significantly downregulated with age. We therefore investigated whether age-associated loss of GPR81 contributes to cellular senescence within the vessel wall. Senescent human endothelial cells and vascular smooth muscle cells accumulated neutral and oxidized lipids and exhibited increased labile iron and ferroptosis. Silencing GPR81 in early-passage cells recapitulated this metabolic phenotype together with multiple hallmarks of cellular senescence. Moreover, endothelial-specific deletion of GPR81 in young mice was sufficient to induce senescent cell accumulation, impaired lipid homeostasis, endothelial dysfunction, and elastin disorganization. Conversely, pharmacological activation of GPR81 with the agonist CHBA restored fatty acid metabolism, promoted glycolytic reprogramming, and attenuated ferroptotic stress and senescence-associated phenotypes. In lamin A knock-in (LAKI) progeroid mice, CHBA reduced arterial lipid accumulation and cellular senescence, shifted vascular cell composition toward a youthful state, improved endothelial integrity, and restored extracellular matrix homeostasis. Together, these findings identify age-associated loss of GPR81 as a driver of vascular metabolic dysfunction and cellular senescence and establish pharmacological GPR81 activation as a promising therapeutic strategy for preserving vascular homeostasis and mitigating age-associated cardiovascular disease.

bioengineering↗

Targeted and bilateral blood flow monitoring in middle cerebral artery using diffuse correlation spectroscopy

Objective: To develop and validate a dual-probe Diffuse Correlation Spectroscopy (DCS) system for non-invasive and simultaneous, monitoring of cerebral blood flow (CBF) in the bilateral Middle Cerebral Artery (MCA) territories, and expanding the utility of conventional DCS limited to cortical-volume-based CBF measurements to vessel-specific cerebral perfusion monitoring. Methods: A dual-probe DCS system was designed for non-invasive monitoring of MCA-specific perfusion. Probe placement and protocol optimization study has been performed using anatomical landmarks, motor and speech activation tasks in healthy volunteers. System stability and repeatability were further evaluated in a pilot cohort of 30 healthy (age, 25{+/-}7 years) participants using optimized probe position and protocol. A bilateral MCA ischemic Lacunar Infract stroke case report also validated the feasibility of the system in clinical settings. Results: Measurements demonstrated superior sensitivity towards MCA-territory perfusion at targeted probe locations compared to off-MCA positions. In pilot cohort, significant increase of 30.34 {+/-} 21.56% and 36.48 {+/-} 21.22% in rCBF corresponding to hand squeeze and speech task respectively showed reproducible physiological responsiveness of the system (p<0.001). Measurement done on a patient with bilateral MCA ischemic Lacunar Infract stroke showed a significant change of 30% during speech for both the MCAs but no significant change is observed for hand squeeze tasks. Conclusion: The custom built dual-probe DCS system enables non-invasive, operator-independent, targeted and continuous monitoring of rCBF within bilateral MCA territories. Significance: This approach enables the potential use of DCS system for bilateral and vessel-specific monitoring of cerebral perfusion in the MCA territories.

bioengineering↗