SearcharxivSearch

arXiv subjects

Wenyuan Chen

Publications and source records attributed to Wenyuan Chen.

9 recordsLinked to original sources

A second-order diffusive-interface immersed boundary method for incompressible flow with phase change and moving interfaces

Accurately resolving interfacial gradients is critical for simulating two-phase flows, particularly those involving phase transitions or active matter. The traditional diffuse-interface immersed boundary methods (IBMs) are highly efficient for such problems, but they typically suffer from a reduction to first-order accuracy near the phase-changing boundaries. We clarify that the main reason is the local derivative discontinuities. Here, we propose a smooth extension strategy to restore formal second-order spatial accuracy. By extrapolating the scalar field across the interface, the method structurally ensures derivative continuity. To preserve the divergence-free condition in incompressible fluid solvers, this smooth extension is applied exclusively to the scalar transport equations. The velocity field retains the standard diffuse-interface treatment. The proposed framework is systematically validated against classical phase-change benchmarks, specifically one-dimensional evaporation and boiling problems. Additionally, the method is applied to the spontaneous autophoretic motion of isotropic particles. The numerical results confirm the capability of our method in resolving the complex multi-physics boundary couplings.

physics.flu-dyn

H-WM: Robotic Task and Motion Planning Guided by Hierarchical World Model

World models are becoming central to robotic planning and control as they enable prediction of future state transitions. Existing approaches often emphasize video generation or natural-language prediction, which are difficult to ground in robot actions and suffer from compounding errors over long horizons. Classic task and motion planning models world transitions in logical space, enabling robot-executable and robust long-horizon reasoning. However, they typically operate independently of visual perception, preventing synchronized symbolic and visual state prediction. We propose a Hierarchical World Model (H-WM) that jointly predicts logical and visual state transitions within a unified framework. H-WM combines a high-level logical world model with a low-level visual world model, integrating the long-horizon robustness of symbolic reasoning with visual grounding. The hierarchical outputs provide stable intermediate guidance for long-horizon tasks, mitigating error accumulation and enabling robust execution across extended task sequences. Experiments across multiple vision-language-action (VLA) control policies demonstrate the effectiveness and generality of H-WM's guidance.

cs.RO

Automated Penetration Testing with LLM Agents and Classical Planning

While penetration testing plays a vital role in cybersecurity, achieving fully automated, hands-off-the-keyboard execution remains a significant research challenge. In this paper, we introduce the "Planner-Executor-Perceptor (PEP)" design paradigm and use it to systematically review existing work and identify the key challenges in this area. We also evaluate existing penetration testing systems, with a particular focus on the use of Large Language Model (LLM) agents for this task. The results show that the out-of-the-box Claude Code and Sonnet 4.5 exhibit superior penetration capabilities observed to date, substantially outperforming all prior systems. However, a detailed analysis of their testing processes reveals specific strengths and limitations; notably, LLM agents struggle with maintaining coherent long-horizon plans, performing complex reasoning, and effectively utilizing specialized tools. These limitations significantly constrain its overall capability, efficiency, and stability. To address these limitations, we propose CHECKMATE, a framework that integrates enhanced classical planning with LLM agents, providing an external, structured "brain" that mitigates the inherent weaknesses of LLM agents. Our evaluation shows that CHECKMATE outperforms the state-of-the-art system (Claude Code) in penetration capability, improving benchmark success rates by over 20%. In addition, it delivers substantially greater stability, cutting both time and monetary costs by more than 50%.

cs.CR

Retrieval-Augmented Guardrails for AI-Drafted Patient-Portal Messages: Error Taxonomy Construction and Large-Scale Evaluation

Asynchronous patient-clinician messaging via EHR portals is a growing source of clinician workload, prompting interest in large language models (LLMs) to assist with draft responses. However, LLM outputs may contain clinical inaccuracies, omissions, or tone mismatches, making robust evaluation essential. Our contributions are threefold: (1) we introduce a clinically grounded error ontology comprising 5 domains and 59 granular error codes, developed through inductive coding and expert adjudication; (2) we develop a retrieval-augmented evaluation pipeline (RAEC) that leverages semantically similar historical message-response pairs to improve judgment quality; and (3) we provide a two-stage prompting architecture using DSPy to enable scalable, interpretable, and hierarchical error detection. Our approach assesses the quality of drafts both in isolation and with reference to similar past message-response pairs retrieved from institutional archives. Using a two-stage DSPy pipeline, we compared baseline and reference-enhanced evaluations on over 1,500 patient messages. Retrieval context improved error identification in domains such as clinical completeness and workflow appropriateness. Human validation on 100 messages demonstrated superior agreement (concordance = 50% vs. 33%) and performance (F1 = 0.500 vs. 0.256) of context-enhanced labels vs. baseline, supporting the use of our RAEC pipeline as AI guardrails for patient messaging.

cs.CL

Automated Sperm Morphology Analysis Based on Instance-Aware Part Segmentation

Traditional sperm morphology analysis is based on tedious manual annotation. Automated morphology analysis of a high number of sperm requires accurate segmentation of each sperm part and quantitative morphology evaluation. State-of-the-art instance-aware part segmentation networks follow a "detect-then-segment" paradigm. However, due to sperm's slim shape, their segmentation suffers from large context loss and feature distortion due to bounding box cropping and resizing during ROI Align. Moreover, morphology measurement of sperm tail is demanding because of the long and curved shape and its uneven width. This paper presents automated techniques to measure sperm morphology parameters automatically and quantitatively. A novel attention-based instance-aware part segmentation network is designed to reconstruct lost contexts outside bounding boxes and to fix distorted features, by refining preliminary segmented masks through merging features extracted by feature pyramid network. An automated centerline-based tail morphology measurement method is also proposed, in which an outlier filtering method and endpoint detection algorithm are designed to accurately reconstruct tail endpoints. Experimental results demonstrate that the proposed network outperformed the state-of-the-art top-down RP-R-CNN by 9.2% [AP]_vol^p, and the proposed automated tail morphology measurement method achieved high measurement accuracies of 95.34%,96.39%,91.2% for length, width and curvature, respectively.

cs.CV

Data-Driven Simulator for Mechanical Circulatory Support with Domain Adversarial Neural Process

Mechanical Circulatory Support (MCS) devices, implemented as a probabilistic deep sequence model. Existing mechanical simulators for MCS rely on oversimplifying assumptions and are insensitive to patient-specific behavior, limiting their applicability to real-world treatment scenarios. To address these shortcomings, our model Domain Adversarial Neural Process (DANP) employs a neural process architecture, allowing it to capture the probabilistic relationship between MCS pump levels and aortic pressure measurements with uncertainty. We use domain adversarial training to combine simulation data with real-world observations, resulting in a more realistic and diverse representation of potential outcomes. Empirical results with an improvement of 19% in non-stationary trend prediction establish DANP as an effective tool for clinicians to understand and make informed decisions regarding MCS patient treatment.

cs.LG

Strong kinetic-inductance Kerr nonlinearity with titanium nitride nanowires

Thin films of disordered superconductors such as titanium nitride (TiN) exhibit large kinetic inductance (KI), high critical temperature, and large quality factors at the single-photon level. KI nonlinearity can be exploited as an alternative to Josephson junctions for creating novel nonlinear quantum devices with the potential to operate at higher frequencies and at elevated temperatures. We study a means of magnifying KI nonlinearity by confining the current density of resonant electromagnetic modes in nanowires with a small volume $V \simeq 10^{-4}\text{um}^3$. Using this concept, we realize microwave-frequency Kerr cavities with a maximum Kerr-shift per photon of $K/2π= 123.5 \pm 3$ kHz and report a nonlinearity-to-linewidth ratio $K/γ= 21\%$. With improved design, our devices are expected to approach the regime of strong quantum nonlinearity in the millimeter-wave spectrum.

quant-ph

An explicit and non-iterative moving-least-squares immersed-boundary method with low boundary velocity error

In this work, based on the moving-least-squares immersed boundary method, we proposed a new technique to improve the calculation of the volume force representing the body boundary. For boundary with simple geometry, we theoretically analyse the error between the desired volume force at boundary and the actual force given by the original method. The ratio between the two forces is very close to a constant. Numerical experiments reveal that for complex geometry, this ratio exhibits very narrow distribution around certain value. A spatially uniform coefficient is then introduced to correct the force and fixed by the least-square method over all boundary markers. Such method is explicit and non-iterative, and can be easily implemented into the existing scheme. Several test cases have been simulated with stationary and moving boundaries. Our new method can reduce the residual boundary velocity to the level comparable to that given by the iterative method, but requires much less computing time. Moreover, the new method can be readily combined with the iterative method and further reduces the residual boundary velocity.

math.NA

Design optimization of mode-matched bulk-mode piezoelectric micro-gyroscopes through modal analysis

Bulk piezoelectric micro-gyroscope is a miniaturized inertial sensor that uses a differential thickness-shear bulk mode of a PZT block as the drive mode of the gyroscope. In the paper, a second differential thickness-extensional mode is identified for the sense mode and mode-matching is proposed for the first time by proper design of the device geomtries. Through finite element modal analysis, the frequencies of drive mode and sense mode are obtained when the length of the PZT block varies from 4.8mm to 5.6mm and the width of the PZT block varies from 3.0mm to 4.0mm. Using a fitting method, the empirical formulae with an excellent fit are induced to predict the influence of the length and the width of the PZT block on the drive and sense mode frequencies. Based on these empirical formulae, the mode-matching equations are introduced. The analysis results show that for a given thickness of the PZT block, the effect of the width on the drive mode frequency is prominant. Conversly, the effect of length on the sense mode frequency is dominant. The resonance frequencies, kinetic energy ratios, scale factors of gyroscope are compared to evaluate the mode quality. The results show that the kinetic energy in y-axis direction of the drive mode and the kinetic energy in z-axis direction of the sense mode increase with the thickness of the PZT block, and consequently the scale factor of the gyroscope increases. For a constant thickness of the PZT block the scale factor will decrease as the length increases. Through design optimization we present a 20 times improvement in the scale factor of the mode-matched gyroscope. Given the thickness of PZT block, the length and the width will be determined by the mode-matching equations mentioned. Generally, the analysis suggests that the resolution of the gyroscope improves by increasing the thickness PZT block.

physics.ins-det