Ship piping design requires arranging many interconnected pipes within confined spaces while satisfying connectivity and collision constraints. This study proposed a data-driven method for transferring 3D pipe routes from past ship projects to a new t...
Ship piping design requires arranging many interconnected pipes within confined spaces while satisfying connectivity and collision constraints. This study proposed a data-driven method for transferring 3D pipe routes from past ship projects to a new target ship via a two-stage workflow: similar-system retrieval and route transfer with geometric adjustment. First, P&IDs (Piping and Instrumentation Diagrams) were converted into system graphs consisting of equipment nodes and connection edges. System similarity was computed by embedding graphs with graph2vec and ranking candidates by cosine similarity to retrieve past systems structurally closest to the target system. Second, the retrieved system's historical 3D routes were normalized by principal ship dimensions and used to construct a routing space. To reflect both proximity and segment orientation, DBSCAN (Density-Based Spatial Clustering of Applications with Noise) was extended with an angular-distance term between segment direction vectors, and the resulting clusters were merged and scaled to the target ship geometry.
A past pipe centerline was then transferred into the routing space and adjusted by solving a constrained optimization with GA (Genetic Algorithm), where bend nodes are treated as design variables and their motion is restricted to preserve the original route shape. Feasibility was evaluated using a SphereCast-based collision penalty against hull and obstacle colliders. By enabling retrieval-conditioned reuse of proven route patterns and automated collision-aware adjustment within a learned routing space, the proposed method supports rapid generation of feasible initial piping layouts for new ship projects while reducing manual trial-and-error in earlystage routing.