Abstract
Undercutting significantly affects the mechanical stability of earthen archaeological sites and represents a critical parameter for heritage conservation decision-making. To quantify undercutting volume, this study developed a methodology coupling close-range photogrammetry with semantic segmentation. We selected seven earthen sites spanning diverse climatic and historical contexts, acquired 3D models, and generated RGB-DSM fused images. A dataset of 576 samples was established with manual annotations of undercutting and co-occurring deterioration (holes, fissures, and gullies). For deterioration identification, we employed an enhanced U-Net architecture featuring reduced down-sampling, a dilated convolution context module in the bottleneck, an FPN-style decoder, and an optimized loss function. The model achieved per-class IoU values of 0.485–0.510 for co-occurring deterioration and 0.668 IoU (0.801 F1-score) for undercutting. Volume was computed by fitting a reference surface above the undercutting zone and integrating pixel-wise elevation differences. Analysis showed that DOM/DSM should be acquired as perpendicular to the wall as possible, because angular deviations introduce geometric underestimation of the area and reduce recognition performance. The observed volume CV of 8–25% far exceeds the theoretical 4.2% from geometry alone, confirming recognition variability as the dominant uncertainty source. By simplifying 3D point cloud recognition to a 2D image task, this approach avoids prohibitive annotation and computational costs, offering a practical solution for linearly distributed earthen sites and providing essential data for structural safety assessment and deterioration mechanism studies.
1. Introduction
Earthen sites constitute a significant category of cultural heritage, with approximately 10% of all World Heritage properties containing earthen architectural components [1]. Nevertheless, these sites are particularly susceptible to degradation due to their material characteristics. Undercutting damage, frequently referred to as “bottom hollowing” of earthen heritage sites, describes a specific morphological deterioration where the base of structures experiences significant material loss [2,3]. As a primary stage of earthen wall deterioration, this phenomenon compromises the mechanical stability of the wall structure, often resulting in destabilization and eventual collapse [4]. Therefore, precise quantification of undercutting damage is essential for assessing the preservation status and structural safety of earthen sites, and provides fundamental data for advancing research into underlying deterioration mechanisms [5,6].
Traditional manual visual inspection and contact-based measurement methods are time-consuming, labor-intensive, and highly subjective, rendering efficient and reliable acquisition of damage volume data difficult. Over the past decade, non-contact surface morphology acquisition techniques, such as photogrammetry and 3D laser scanning [7]—have increasingly been integrated with deep learning methods. This integration provides new opportunities for surveying and documenting deterioration in architectural heritage [8,9]. Hatır et al. [10], Valero et al. [11], and Randazzo et al. [12] applied machine learning methods to investigate automatic detection, classification, and damage-index construction for defects in masonry walls. Zhang et al. employed an FPN-VGG16 network to achieve pixel-level segmentation of surface cracks on earthen sites [13]. Nevertheless, research on image-based recognition specifically targeting earthen sites remains relatively scarce, and most existing approaches are predominantly confined to the identification of surface deterioration and deriving two-dimensional statistical information.
Current research has demonstrated that semantic segmentation and object detection methods based on convolutional neural networks (CNNs) can effectively identify various deterioration types, such as cracks and spalling, in two-dimensional imagery. However, relying solely on RGB image information makes it difficult to accurately distinguish true surface depressions from visual artefacts caused by color variations and shadows, thereby limiting the precision with which deterioration features characterized by significant three-dimensional geometry—such as undercutting—can be identified. Deep learning networks that directly process 3D point clouds have shown promise for segmenting historic buildings [14,15]; however, their application to earthen heritage is constrained by high annotation costs and substantial computational demands for training and inference. These limitations reduce their scalability for large and geometrically complex earthen sites.
To address the critical challenge of automatic volumetric quantification of undercutting, we propose a technical framework that integrates photogrammetry with semantic segmentation. High-resolution elevation data of earthen site walls (Digital Surface Model, DSM) are acquired via photogrammetry and fused with RGB orthophotos (Digital Orthophoto Map, DOM) to form four-channel images, which are then fed into a 2D semantic segmentation network. This strategy embeds three-dimensional geometric information into the image segmentation process while circumventing the prohibitive annotation and computational costs associated with direct 3D point cloud deep learning approaches. We improved a U-Net architecture and trained it on a self-constructed dataset to achieve pixel-wise automatic recognition of undercutting. Subsequently, a reference surface is hypothesized and fitted, based on which a DSM-derived method for volumetric calculation of undercutting is formulated.
2. Data Acquisition and Processing
2.1. Data Acquisition
To ensure data representativeness, we collected surface morphology data from seven earthen sites distributed across different geographical regions. These sites differ in soil texture, environmental conditions, and deterioration characteristics (Figure 1). The dataset includes rectangular, semi-arched, and arched undercutting profiles [16], with varying depths and co-occurring deterioration types.
Figure 1.
Morphology of undercutting at earthen sites. (a) semi-arched, (b) arched, (c) rectangular; and undercutting co-occurring with (d) capillary water rise, (e) gullies, (f) holes.
2.2. Data Processing
We used an EOS R5 full-frame camera (Canon Inc., Tokyo, Japan) with a 24–105 mm lens to conduct photogrammetric surveys on selected locations across different earthen sites exhibiting diverse deterioration features. 3D models were reconstructed using ContextCapture software (2023), from which DOM and DSM were exported via OSGBLab. DOM provides color, texture, shadow, and edge information, while DSM supplies elevation, depression, and local relief data. The exported DOM and DSM are defined in a local metric coordinate system with units in meters. The pixel resolutions (m/pixel) are derived from the photogrammetric reconstruction scale, enabling the conversion of pixel-based measurements to physical dimensions.
The DOM and DSM were then co-registered to the same spatial extent to form an image pair for each 3D model, which were subsequently cropped synchronously. Upper portions far from undercutting areas were discarded, and the remaining parts were divided crosswise into near-square patch pairs. This process yielded 576 patch pairs, which were randomly divided into training, validation, and test sets at a ratio of 7:2:1 using a fixed random seed (Table 1).
Table 1.
Background information of the data source sites.
2.3. Data Annotation
In field conditions, undercutting often co-occurs with other deterioration types (Figure 1), which must be distinguished for accurate volume calculation. Therefore, in addition to undercutting, we annotated four valid classes: background, holes, fissures/gullies, and undercutting. An additional “ignore” class was used for invalid regions.
Using Labelme, we annotated four valid classes—background, holes, fissures/gullies, and undercutting—along with an “ignore” class. The “ignore” class comprises invalid regions in the DSM and black void areas in the RGB imagery, which are excluded from both training and evaluation. This strategy prevents the model from erroneously learning from data-deficient zones or image borders.
3. Research Methods
3.1. Model Structure
We adopted the classical U-Net architecture [17], augmented with residual connections [18] and channel attention mechanisms [19], as the baseline model (Figure 2). U-Net follows a standard encoder–decoder structure: the encoder gradually reduces spatial resolution to extract semantic features, while the decoder restores the feature map to the original resolution. Skip connections transmit shallow-level texture and boundary information from the encoder to the decoder, enabling precise localization. This network has proven effective for pixel-level segmentation tasks even with small-sample datasets.
Figure 2.
Network architecture of U-Net Baseline.
To enhance segmentation performance specifically for earthen site deterioration, we designed ESD-UNet (Earthen Site Defect U-Net, Figure 3). Compared with the baseline, this network incorporates three key modifications: (1) reducing the number of down-sampling operations to three, (2) introducing a dilated convolution context module in the bottleneck, and (3) adding a top-down-fusion path in the decoder, analogous to the Feature Pyramid Network (FPN) [20].
Figure 3.
Network architecture of ESD-UNet.
The bottleneck improvement targets undercutting damage, which exhibits distinct characteristics: steep elevation gradients at the edges but relatively flat interiors, making its internal regions less distinguishable from the intact wall surface. When undercutting areas are large, this similarity can easily lead to confusion in segmentation. The dilated convolution context module inserted in the bottleneck enlarges the receptive field without excessively reducing spatial resolution, thus capturing broader contextual information that benefits the recognition of undercutting regions.
The encoder–decoder modifications are primarily aimed at small-target deterioration types, such as holes and fissures. In the baseline model, small features may disappear when the image is downsampled to 64 × 64 or 32 × 32 pixels because they may occupy less than one pixel. Subsequent upsampling and skip concatenation therefore introduce substantial reconstruction errors. By limiting the maximum down-sampling factor to three, ESD-UNet maintains a minimum spatial resolution of 128 × 128, thereby preserving small targets throughout the feature extraction process. In the decoder, we adopt an FPN-style fusion strategy: features from different levels are first reduced to 48 channels via 1 × 1 convolutions, then fused in a top-down manner. This multi-scale aggregation recovers finer details more effectively than the standard decoder that only refines details at the final up-sampling step.
3.2. Network Input Formulation and Training Settings
All target defects in this study induce surface undulations on the walls, making the DSM a critical source of elevation information for their identification. Meanwhile, the RGB imagery provides complementary cues in terms of texture, color, and edges, which are equally important. To enable the model to leverage both sources simultaneously, we modified the input channel of the first network layer from 3 to 4, allowing concurrent reception of RGB textures and DSM elevation data. The DSM is normalized on a per-image basis using only valid regions. Invalid entries, including values of −9999, non-finite values, and black void regions in the RGB images, are masked out and excluded from training.
Experiments were conducted on a Windows platform with an NVIDIA GeForce RTX 4060 Laptop GPU. The software environment was Python 3.9.13 and PyTorch 2.5.1 with CUDA 12.1. All experiments were implemented using PyTorch. The input data were organized as four-channel tensors (DOM RGB + DSM Elevation) with a spatial resolution of 1024 × 1024 pixels.
For the baseline U-Net experiment, the model was trained for up to 60 epochs with a batch size of 1. The initial learning rate was 1 × 10−4, and the weight decay was 1 × 10−4. The optimizer was AdamW, and the learning rate was adjusted using ReduceLROnPlateau with a reduction factor of 0.5, a patience of 8 epochs, and a minimum learning rate of 1 × 10−6. Early stopping was applied with a patience of 20 epochs.
For the ESD-UNet experiments, the maximum number of epochs was set to 80 with a batch size of 4. The initial learning rate was 5 × 10−4, and the weight decay was 5 × 10−4. AdamW was again used as the optimizer. Mixed-precision training was enabled to accelerate computation. Early stopping was adopted with a patience of 10 epochs and a minimum improvement threshold of 1 × 10−4. The loss function was based on Focal Loss and Dice Loss, and class weights were automatically calculated from the training set.
3.3. Loss Function
A notable characteristic of our dataset is the disproportionately large background area, which contains a considerable number of invalid pixels, while holes and fissures/gullies constitute small targets with low pixel occupancy. In the baseline model, we employed a combined CE Loss and Dice Loss. The Dice Loss evaluates the overlap between predicted regions and ground-truth regions and effectively alleviates the problem of weak gradients caused by limited pixel counts of small targets.
In ESD-UNet, we further introduced Focal Loss to enhance the recognition of small targets. Focal Loss down-weights easily classified background pixels while emphasizing misclassified small-target pixels, particularly holes and fissures/gullies. The class weights were set as follows: background: 0.3, holes: 3.0, fissures/gullies: 3.0, and undercutting: 1.0.
3.4. Early Stopping and Performance Evaluation
Pixel Accuracy tends to be inflated when the background occupies a large proportion of the image, making it unsuitable for tasks involving small-target recognition such as holes and fissures. To address the class imbalance problem caused by an excessive number of background pixels and to mitigate overfitting, we propose a Weighted Early-Stopping Score (WESScore) as a substitute for the Pixel Accuracy metric. The design of WESScore follows the philosophy of the loss function improvement: assigning lower weights to the background class and higher weights to small-target classes, while also taking into account commonly used evaluation metrics such as mIoU. The computation procedure is as follows.
Assume there are K semantic categories in total, and the confusion matrix on the validation set is denoted as , where represents the number of pixels whose ground-truth label is class i and predicted label is class j. All pixels marked as ignore regions are excluded from the metric calculation. For the k-th deterioration class, the number of true positive pixels, the total number of ground-truth pixels, and the total number of predicted pixels are defined as:
where denotes the number of pixels of class that are correctly predicted, denotes the total number of pixels belonging to class in the ground truth, and denotes the total number of pixels predicted as class by the model. The Intersection over Union (IoU), precision, recall, and F1-score for the class are then computed as:
where measures the overlap between the predicted region and the ground-truth region for class , indicates the proportion of pixels predicted as class that actually belong to that class, indicates the proportion of pixels truly belonging to class that are successfully identified by the model, and is the harmonic mean of precision and recall, providing a comprehensive evaluation of both recognition accuracy and completeness. Acc is defined as the proportion of correctly predicted pixels among all valid evaluation pixels.
Let holes be defined as class 1, fissures/gullies as class 2, and undercutting as class 3. The WESScore is then computed as:
where MeanF1 denotes the average F1-score over all four classes, including the background. The class-specific weights in WESScore are empirically determined.
During training, after the warmup epochs, at the completion of each epoch, the model computes the WESScore on the validation set. If the score fails to increase beyond the minimum improvement threshold after patience epochs, the model rolls back to the best-performing checkpoint, thereby achieving early stopping.
3.5. Volume Calculation Based on DSM
The computation of undercutting damage volume necessitates an initial assumption of an intact wall surface, against which the current wall surface is subtracted. It is evident that the determination of the undercutting reference surface has a direct and substantial influence on the volumetric estimation. The original wall surface, while being the most theoretically sound reference, is generally inaccessible in practice due to its irreversible deterioration (Figure 4). Alternatively, manually specifying an inclination angle or batter with respect to the ground or horizontal plane introduces considerable arbitrariness and lacks empirical justification. Earthen archaeological walls typically experience more severe weathering at their upper and lower regions, whereas the mid-height surface is relatively well preserved. We therefore use the mid-height wall segment above the undercutting zone to reconstruct the reference surface. Gullies, holes, and other surface anomalies are excluded before fitting. This fitted surface is subsequently extrapolated downward to the undercutting region, serving as the reference baseline for volume estimation.
Figure 4.
Schematic diagram of volume estimation strategy.
The reference surface fitting algorithm adopts a strategy of smooth curves in the horizontal (x) direction combined with linearity in the vertical (y) direction. The inputs to the algorithm are the deterioration masks identified by ESD-UNet and the DSM of the corresponding image. The algorithm first locates the upper boundary of the undercutting region, which is then smoothed and shifted upward by 1.5% of the image height to create a buffer zone between the boundary and the undercutting area. The region above this shifted boundary is designated as the fitting zone. Within this zone, after excluding areas affected by co-occurring defects, a stratified uniform sampling strategy with a 10 × 10 grid is applied to select up to 120,000 pixels for fitting. A robust iterative outlier elimination method based on residual median and Median Absolute Deviation (MAD) is then employed to further exclude anomalous points. In addition, prior to fitting, the algorithm performs virtual stitching of designated consecutive images to obtain more stable fitting results.
Once the fitting points are determined, the algorithm extracts the coordinates (x, y) of each participating pixel. In the x-direction, 29 control nodes are uniformly placed, and linear fitting is performed to obtain the linear parameters in the -direction at each position, with the fitting equation given as:
where denotes the elevation value on the fitted reference surface at coordinates (x, y), while and represent the intercept and slope, respectively, that vary with . After determining the linear fitting parameters and at each control node, second-order smoothing spline fitting is applied to determine and for every coordinate position. Under this algorithmic design, the fitted reference surface is continuous and smooth—exhibiting a smooth curve in the x-direction and a straight line in the y-direction. This configuration not only accommodates the undulating variations in the wall surface but also aligns with the assumption of wall surface integrity, making it well-suited for extrapolation to the undercutting region.
For each point (x, y) within the undercutting mask, the measured depth and the corresponding reference elevation on the reference surface are retrieved, and the undercutting depth is computed as:
Let the spatial resolutions in the x- and y-directions be and , respectively. The undercutting volume is then computed as the cumulative sum of the base area multiplied by the depth at each pixel:
4. Results and Discussion
4.1. Contribution of DSM Data and Loss Function to Disease Identification
The RGB-only U-Net is almost incapable of effectively identifying holes or fissures/gullies, achieving an IoU of 0 for holes and only 0.002 for fissures/gullies (Table 2). After incorporating the DSM, the IoU for holes improves to 0.160, and that for fissures/gullies to 0.049, indicating that elevation information provides a clear complementary benefit for detecting small-scale depressions and linear gullies. With the further adoption of the improved loss function, the model achieves a mean IoU (mIoU) of 0.370, with per-class IoU values of 0.202, 0.083, and 0.377 for holes, fissures/gullies, and undercutting, respectively.
Table 2.
Influence of different improvements on identification performance.
This demonstrates that RGB-DSM multimodal fusion and the class-imbalance-oriented Focal-Dice loss function are complementary: the former enhances the model’s perceptual capability regarding the geometric morphology of deteriorations, while the latter increases the optimization weights for small targets and hard samples, jointly improving deterioration segmentation performance.
Although the metrics are not remarkably high, visual inspection of the results in Figure 5 reveals that the improved U-Net model is generally capable of localizing holes and fissures/gullies. However, its recognition of undercutting tends to be fragmented and suboptimal. When undercutting is shallow or covers large areas, the elevation variation in the central region is gentle, making its gradient indistinguishable from that of the background and thus prone to misclassification as background. This issue is further exacerbated by the labeling strategy adopted during dataset construction: given that the native U-Net lacks the functionality to encode mutually non-exclusive or stacked labels, we employed a prioritization scheme in which holes and fissures/gullies were given precedence over undercutting. As a result, undercutting annotations were manually forced to circumvent other labels, leading to discontinuous label regions. Consequently, the network may inadvertently learn this annotation artifact.
Figure 5.
Examples of Multi-modal FD UNet recognition results: (a) ground truth and (b) prediction. Blue, orange, and green overlays denote holes, fissures/gullies, and undercutting damage, respectively. Black regions indicate invalid or missing image areas and are excluded from model training and evaluation.
4.2. ESD-UNet for Hole and Fissure/Gully Recognition
To exclude the interference of co-occurring defects, we isolate the recognition task for holes and fissures/gullies and adopt ESD-UNet for this purpose. As previously described, the improvements of this model include shallower down-sampling, an FPN-style decoder, and an enhanced loss function, which collectively are expected to yield better performance in small-target recognition.
As shown in Table 2, ESD-UNet achieves an mIoU of 0.597, with an average IoU of 0.498 for holes and fissures/gullies combined. Specifically, the IoU for holes reaches 0.510, and that for fissures/gullies reaches 0.485, both representing substantial improvements over the original U-Net. Qualitative inspection (Figure 6) further reveals that the optimized network can accurately localize co-occurring defects, with predicted boundaries closely matching the ground truth, demonstrating its suitability for subsequent deterioration volume calculation.
Figure 6.
Qualitative comparison of hole and fissure/gully recognition results. Blue and orange overlays denote holes and fissures/gullies, respectively. The segmentation masks are displayed semi-transparently to retain the surface texture of the original images.
4.3. ESD-UNet for Undercutting Recognition
The undercutting recognition task is likewise isolated and formulated as a binary segmentation problem (undercutting versus non-undercutting) to mitigate the fragmentation issue caused by co-occurring defect labels. In addition to incorporating a bottleneck module into the model architecture to enhance undercutting detection, two training strategies were adopted: (1) a dataset containing both undercutting and background labels, and (2) an implicit-background dataset containing only foreground undercutting labels without explicit background annotations.
As shown in Table 3, compared with the original four-class annotated dataset, the removal of co-occurring defect labels leads to significant improvements across all undercutting-related evaluation metrics. Notably, the IoU increases by more than 0.26, corresponding to an improvement of over 70%. Furthermore, the implicit-background dataset, which excludes background labels entirely, achieves even better performance, with all metrics except Recall showing further gains.
Table 3.
Identification performance of undercutting by ESD-UNet with different training sets.
From a qualitative perspective (Figure 7), the ESD-UNet model trained exclusively on undercutting labels consistently outperforms the counterpart trained with both undercutting and background labels, producing predictions that are largely consistent with the ground truth. Therefore, we adopt its results for subsequent volume estimation.
Figure 7.
Identification results of undercutting by ESD-UNet. Blue, orange, and green overlays denote holes, fissures/gullies, and undercutting damage, respec-tively. Black regions indicate invalid or missing image areas and are excluded from model training and evaluation.
4.4. Effect of Viewing Angle Variation on Volume Estimation
After adopting ESD-UNet for deterioration recognition, the undercutting area is calculated based on the number of pixels occupied by the undercutting region and the actual spatial resolution of the image, while the undercutting volume is computed following the procedure described in Section 3.5. Example results are presented in Figure 8 and Figure 9. It is evident that when the DOM/DSM is exported from the same model, varying viewing angles yield different area and volume estimates.
Figure 8.
Slice 3 from the Shuangying Site, Yanqing Section of the Great Wall: RGB, DSM, recognition, and fitting result under varying viewing angles.
Figure 9.
DSM of undercutting area + fitted reference surface results for three slices from the Suoyang City Site under different heading and pitch combinations.
Variations in viewing angle lead to discrepancies in the recognition results. One contributing factor is that when the viewing direction deviates from the wall-normal orientation, lines parallel to the line of sight undergo foreshortening, and the projected length can be calculated using a cosine function. In Figure 10, the semi-transparent surface represents the theoretical area values accounting only for the geometric projection effect caused by the line-of-sight off-angle, plotted using the following function:
where denotes the estimated value, which is slightly larger than the maximum area within the group, represents the heading angle, and represents the pitch angle. It can be observed that the computed area results are systematically smaller than the ideal values, accounting for the cosine of the off-angle, and the discrepancy is considerable. Therefore, the contribution of viewing-angle variation to the changes in area results should be of secondary importance. In fact, deviations within 18.2° do not cause substantial effects (the area remains above 95% of the ideal value); the area decreases rapidly only when the off-angle further increases.
Figure 10.
Area calculation results from DOM/DSM at different viewing angles for the same region. The semi-transparent surface represents the theoretical area values considering only the line-of-sight off-angle (geometric projection effect). (a) Shuangying Site Slice 1; (b) Shuangying Site Slice 2; (c) Shuangying Site Slice 3; (d) Shuangying Site Slice 4; (e) Suoyang City Site Slice 1; (f) Suoyang City Site Slice 2; (g) Suoyang City Site Slice 3.
The primary source of variation in area measurements stems from the variability in the undercutting recognition outputs. Under pure viewing-angle variation, the theoretical coefficient of variation (CV) for the area of an identical shape at the angles listed in Table 4, calculated via trigonometric functions, would be 4.2%. In contrast, the empirically observed CV lies between 10% and 18%. As evidenced by Figure 8 and Figure 9, the DOM/DSM derived from the same object at different orientations results in divergent undercutting detection outcomes. At smaller off-angles, the detected undercutting region tends to be more extensive, whereas at elevated pitch angles, the predictions become more fragmented and cover a smaller area. This inherent variability is exacerbated in the presence of co-occurring defects, causing the volume measurements to exhibit a CV ranging from 8% to 25%. Among the seven slices analyzed, Suoyang City Site Slice 1 constitutes the sole outlier, with a CV of 45.8%.
Table 4.
Volume estimation results from DOM/DSM at different angles for the same region.
4.5. Limitations, Uncertainties, and Future Work
The uncertainty in undercutting volume quantification arises from four primary sources. First, the reference-surface definition and fitting strategy lack universally accepted standards, precluding validation against a ground-truth value—a fundamental boundary inherent to earthen site deterioration research. Second, DOM/DSM export precedes reference-surface fitting; consequently, the projection angle can only be set approximately perpendicular to the macroscopic wall orientation rather than precisely aligned with the local normal vector of the subsequently fitted surface. Third, spatial partitioning (slicing) of linear earthen heritage inevitably introduces boundary effects in both deterioration recognition and volume calculation. Fourth, photogrammetric reconstruction and mesh-texturing errors constitute additional systematic uncertainties independent of our framework and are excluded from this discussion. Beyond these uncertainty sources, several other limitations should be acknowledged: the fitting procedure involves empirically determined parameters (e.g., buffer shift, control nodes) without formal sensitivity analysis; the 576-sample dataset, while comparatively substantial in this domain, remains limited for training deep networks, and generalization to geographically distinct sites requires further validation; the individual contributions of the dilated convolution module and FPN-style decoder were not isolated; and quantitative comparisons with recent architectures such as DeepLabV3+ have not been conducted.
While the current network has demonstrated its practical utility by providing sufficiently accurate masks for volumetric quantification, future work will address the above limitations through the following directions: (1) complete component-wise ablation to elucidate each module’s contribution; (2) systematic sensitivity analysis of fitting parameters to establish adaptive selection strategies; (3) dataset expansion and site-wise cross-validation for generalization assessment; (4) benchmarking against state-of-the-art architectures; and (5) comparative analysis using laser scanning data.
5. Conclusions
Undercutting is a common deterioration phenomenon occurring at the base of earthen architectural sites and poses a significant threat to structural stability. Its volume is a critical metric for assessing the degree of deterioration, monitoring the progression of decay, and investigating the underlying deterioration mechanisms. In this study, the proposed method simplified the 3D point cloud recognition problem to an image recognition task. We collected 3D models of wall bases from seven earthen sites across different climatic zones in China, from which DOM and DSM were derived to establish a dedicated dataset. Based on the U-Net architecture, we developed ESD-UNet, which incorporates shallower down-sampling and an FPN-style decoder tailored to the characteristics of holes and fissures/gullies, along with an improved loss function. For undercutting detection, a dilated convolution-based context module was introduced into the bottleneck, and an implicit-background training strategy was adopted. Experimental results demonstrate that the inclusion of elevation data substantially enhances the performance of the baseline network in detecting both undercutting and co-occurring defects. ESD-UNet, when applied separately to undercutting and to holes/fissures/gullies, achieves effective segmentation.
The computation of undercutting volume involves reference-surface fitting followed by integration of elevation differences. In this study, the reference surface is constructed as a longitudinally linear and transversely smooth spline-fitted surface, with interfering factors excluded. For each pixel within the undercutting mask, the corresponding elevation on the reference surface is determined; the elevation difference (undercutting depth) is then multiplied by the pixel’s real-world area, and the summation over all pixels yields the total undercutting volume. When DOM/DSM were exported from the same 3D model at different viewing angles, the resulting volume estimates exhibited a CV of 8–25%—much larger than the theoretical value of 4.2% attributable solely to geometric projection. This discrepancy confirms that variability in the recognition masks, rather than viewing-angle changes, is the primary source of uncertainty. For practical application of the proposed methodology, it is recommended that the imaging perspective be maintained as perpendicular to the wall surface as possible.
Compared with 3D point-cloud-based recognition networks, the proposed method offers substantial savings in training and inference costs, particularly for deterioration types where depth information is critical and occlusion is not severe. This study represents the first attempt to achieve rapid and accurate quantification of undercutting volume, providing an essential data foundation for deterioration monitoring and mechanistic studies. Nevertheless, the reference surface definition cannot be validated against a ground-truth value—a fundamental limitation inherent to deteriorated earthen sites—and remains open to debate. Future work should enrich the dataset, refine the network architecture, and optimize hyperparameters to further improve recognition performance and generalization capability.
Author Contributions
Conceptualization, X.H.; methodology, Q.W., K.W., F.Y. and X.H.; software, K.W.; validation, K.W. and M.F.; formal analysis, Q.W., F.Y., M.F. and Z.Z.; investigation, Q.W., F.Y. and Z.Z.; resources, X.H. and M.F.; data curation, F.Y.; writing—original draft preparation, Q.W. and K.W.; writing—review and editing, Q.W., X.H. and M.F.; visualization, Q.W.; supervision, X.H. and M.F.; project administration, X.H.; funding acquisition, X.H. and M.F. All authors have read and agreed to the published version of the manuscript.
Funding
This work was financially funded by the National Key R&D Program of China (grant number 2023YFF0905903), the Fundamental Research Program of Shanxi Province in 2025 (grant number 202503011272009), the Archeological Talent Promotion Program of China (grant number 2025-207), and the Fundamental Research Funds for the Central Universities (grant number FRF-BD-26-024).
Data Availability Statement
Data are contained within the article.
Acknowledgments
During the preparation of this manuscript/study, the author(s) used Deepseek V3 for the purposes of language polishing, grammar correction, and writing improvement. The authors have reviewed and edited the output and take full responsibility for the content of this publication.
Conflicts of Interest
The authors declare no conflicts of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.
References
- Richards, J.; Zhao, G.; Zhang, H.; Viles, H. A Controlled Field Experiment to Investigate the Deterioration of Earthen Heritage by Wind and Rain. Herit. Sci. 2019, 7, 51. [Google Scholar] [CrossRef] [Scilit]
- Richards, J.; Bailey, R.; Mayaud, J.; Viles, H.; Guo, Q.; Wang, X. Deterioration Risk of Dryland Earthen Heritage Sites Facing Future Climatic Uncertainty. Sci. Rep. 2020, 10, 16419. [Google Scholar] [CrossRef] [Scilit]
- Chen, W.; Jia, B.; Shan, X.; Qin, Y.; Yang, L. Preventing the Secondary Salt Deterioration in the Repaired Area of Basal Erosion of Earthen Sites Based on Capillary Barrier Effect. Constr. Build. Mater. 2023, 366, 130168. [Google Scholar] [CrossRef] [Scilit]
- Wang, T.; Zhang, M.; Kong, X.; Li, Z. Survey of the Erosion Degree of the Rammed Earth Ming Great Wall in Gansu, China. Int. J. Archit. Herit. 2025, 19, 3164–3188. [Google Scholar] [CrossRef] [Scilit]
- Du, Y.; Dong, W.; Guo, Y.; Lu, Z.; Zhao, Z.; Wu, M.; Zhang, Y. Quantitative Assessment and Prediction of the Scaling Off on Earthen Sites under the Temporal Dimension. J. Northwest Univ. 2026, 56, 286–300. [Google Scholar] [CrossRef]
- Guo, Z.; Qi, Q.; Zhang, S.; Chen, W.; Wu, C.; Wu, H. Study on the Characterization of Differential Weathering Feature Based on Surface Roughness Theory and 3d Laser Scanning: A Case Study of the Suoyang Ancient City. J. Cult. Herit. 2023, 62, 449–459. [Google Scholar] [CrossRef] [Scilit]
- Guo, Z.; Wu, C.; Shuai, Z.; Chen, W.; Qi, Q.; Wu, H. Characterization on Flaking of Rammed Earthen Sites Using Smo Algorithm and Surface Topography Analysis: A Case Study of Jiaohe Ruins. J. Comput. Cult. Herit. 2024, 17, 49. [Google Scholar] [CrossRef] [Scilit]
- Yang, S.; Xu, S.; Huang, W. 3d Point Cloud for Cultural Heritage: A Scientometric Survey. Remote Sens. 2022, 14, 5542. [Google Scholar] [CrossRef] [Scilit]
- Wang, T.; Li, Z. Identification and Risk Assessment of Erosion Characteristics of the Rammed-Earth Great Wall from the Perspective of Preventive Conservation. ISPRS Ann. Photogramm. Remote Sens. Spat. Inf. Sci. 2025, 10M2, 335–339. [Google Scholar] [CrossRef] [Scilit]
- Hatır, E.; Korkanç, M.; Schachner, A.; İnce, İ. The Deep Learning Method Applied to the Detection and Mapping of Stone Deterioration in Open-Air Sanctuaries of the Hittite Period in Anatolia. J. Cult. Herit. 2021, 51, 37–49. [Google Scholar] [CrossRef] [Scilit]
- Valero, E.; Forster, A.; Bosché, F.; Hyslop, E.; Wilson, L.; Turmel, A. Automated Defect Detection and Classification in Ashlar Masonry Walls Using Machine Learning. Autom. Constr. 2019, 106, 102846. [Google Scholar] [CrossRef] [Scilit]
- Randazzo, L.; Collina, M.; Ricca, M.; Barbieri, L.; Bruno, F.; Arcudi, A.; La Russa, M.F. Damage Indices and Photogrammetry for Decay Assessment of Stone-Built Cultural Heritage: The Case Study of the San Domenico Church Main Entrance Portal (South Calabria, Italy). Sustainability 2020, 12, 5198. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Y.; Zhang, Z.; Zhao, W.; Li, Q. Crack Segmentation on Earthen Heritage Site Surfaces. Appl. Sci. 2022, 12, 12830. [Google Scholar] [CrossRef] [Scilit]
- Haznedar, B.; Bayraktar, R.; Ozturk, A.E.; Arayici, Y. Implementing Pointnet for Point Cloud Segmentation in the Heritage Context. Herit. Sci. 2023, 11, 2. [Google Scholar] [CrossRef] [Scilit]
- Pellis, E.; Masiero, A.; Betti, M.; Tucci, G.; Grussenmeyer, P. A Deep Learning Multiview Approach for the Semantic Segmentation of Heritage Building Point Clouds. Int. J. Archit. Herit. 2025, 19, 3117–3139. [Google Scholar] [CrossRef] [Scilit]
- Cui, K.; Chong, X.; Chen, W.; Guan, X.; Chen, M. Different Effects of Shady and Sunny Slopes in Undercutting Area of Linear Earthen Ruin in the Hexi Corridor. J. Eng. Geol. 2017, 25, 547–555. [Google Scholar] [CrossRef]
- Ronneberger, O.; Fischer, P.; Brox, T. U-Net: Convolutional Networks for Biomedical Image Segmentation. In 18th International Conference on Medical Image Computing and Computer-Assisted Intervention (MICCAI), Munich, Germany, 5–9 October 2015; Springer: Cham, Switzerland, 2015; Volume 9351, pp. 234–241. [Google Scholar] [CrossRef] [Scilit]
- He, K.; Zhang, X.; Ren, S.; Sun, J. Deep Residual Learning for Image Recognition. In Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition, IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA, 27–30 June 2016; pp. 770–778. [Google Scholar] [CrossRef] [Scilit]
- Hu, J.; Shen, L.; Sun, G. Squeeze-and-Excitation Networks. In Proceedings of the 31st IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Salt Lake City, UT, USA, 18–23 June 2018; pp. 7132–7141. [Google Scholar] [CrossRef] [Scilit]
- Lin, T.-Y.; Dollar, P.; Girshick, R.; He, K.; Hariharan, B.; Belongie, S. Feature Pyramid Networks for Object Detection. In Proceedings of the 30th IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA, 21–26 July 2017; pp. 936–944. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.









