Abstract:A DeepSets-TD3 method is proposed for intelligent wellbore trajectory control under multiple obstacle-well constraints in dense well-pattern conditions. The wellbore trajectory is recursively propagated using the minimum-curvature method, while inclination and azimuth increments are used as continuous control actions. The base state consists of target-relative displacement and trigonometric encodings of inclination and azimuth, while each obstacle well is represented by surface clearance and relative-bearing features. A shared encoder and symmetric mean-max pooling are then used to obtain a permutation-invariant obstacle representation. In fixed four-obstacle layouts, DeepSets-TD3 achieves a mean target error of 7.52 m, and zero physical collisions. In randomized four-obstacle tests, it achieves a mean target error of 11.2 m, a physical collision rate of 1.2%, a near-miss buffer-zone rate of 1.9%, and a dogleg-severity compliance rate of 99.6%, outperforming plain TD3 on all four metrics. The results indicate that set-based obstacle encoding can alleviate policy degradation caused by obstacle-order variation and improve control accuracy, collision-avoidance reliability, and generalization under complex neighboring-well constraints.