The precise mapping of rock joint traces is fundamental to the design and safety assessment of foundations, retaining structures, and underground cavities in building and civil engineering. Existing deep learning approaches either impose prohibitive computational demands for on-site deployment or disrupt the topological continuity of subpixel lineaments that govern rock mass behavior. This study presents BATNet-Lite, a lightweight encoder–decoder architecture optimized for joint segmentation on resource-constrained devices. The encoder introduces a Boundary-Aware Token-Mixing (BATM) block that separates feature maps into patch tokens and directionally pooled stripe tokens, and a bidirectional attention mechanism subsequently transfers global context to local descriptors while refining stripe features, thereby capturing long-range connectivity with negligible overhead. A complementary Multi-Scale Line Enhancement (MLE) module combines depth-wise dilated and deformable convolutions to yield scale-invariant responses to joints of varying apertures. In the decoder, a Skeletal-Contrastive Decoder (SCD) employs dual heads to predict segmentation and skeleton maps simultaneously, while an InfoNCE-based contrastive loss enforces their topological consistency without requiring explicit skeleton labels. Training leverages a composite focal Tversky and edge IoU loss under a curriculum-thinning schedule, improving edge adherence and continuity. Ablation experiments confirm that BATM, MLE, and SCD each contribute substantial gains in boundary accuracy and connectivity preservation. By delivering topology-preserving joint maps with small parameters, BATNet-Lite facilitates rapid geological data acquisition for tunnel face mapping, slope inspection, and subsurface digital twin development, thereby supporting safer and more efficient building and underground engineering practice.
Steep slope failures adjacent to residential areas are becoming an increasingly serious hazard. However, satellite-based monitoring is often limited by revisit time and spatial resolution, which can impede the timely identification of small, precursory deformations. To support dense in situ surveillance, embedded glass fiber-reinforced polymer (GFRP) sensor rods were installed in a susceptible slope, and ground-displacement data were recorded at 5 min intervals for five months. Based on these multivariate time series, we propose PRISM-TAD, a masked Transformer-based anomaly detection approach that integrates kinematic priors computed from displacement and velocity to model normal slope dynamics and detect departures from typical behavior. The proposed method was benchmarked against six baselines: robust velocity threshold screening, PCA-based reconstruction, Isolation Forest, one-class SVM, a 1D convolutional autoencoder, and a standard Transformer reconstructor. In a field test using a documented slope failure case in Seocheon, PRISM-TAD generated an alert approximately 22 h before collapse while yielding the lowest false alarm rate. Although some baseline methods showed longer nominal lead times, they produced substantially more false positives. Overall, the results suggest that coupling high-frequency IoT displacement sensing with domain-informed deep learning can enhance the operational reliability of early warning for slope failures.