Mechanism differentiation from RGB-D methods
Architectural comparison
To clarify the methodological positioning of DMENet, the comparison with three representative RGB-D methods (SPNet, PICRNet, and SAINet) is summarized below. The comparison covers backbone selection, cross-modal fusion mechanism, spatial attention strategy, hierarchical aggregation, and edge handling. The proposed DMENet introduces several distinct design choices that differentiate it from existing approaches.
Specifically, the Depth-Mining Feature Fusion (DMFF) module implements selective mining through pixel-level calibration and channel-level alignment (Eqs. 1-2), in contrast to the simple feature concatenation used in SPNet and PICRNet. The Synergistic Spatial Attention (SSA) module detects regions where RGB and depth modalities agree on defect locations, rather than relying on per-modality attention as in PICRNet. The Edge-prior Module (combining CAED and EGFE) provides dual-granularity edge refinement, a feature absent in all compared methods. The full architectural comparison is provided in Supplementary File 1.
The methodological positioning of DMENet is further clarified by its target domain. SPNet and PICRNet were originally designed for RGB-D salient object detection in natural scenes, while SAINet focuses on rail surface defects. DMENet is specifically designed for industrial surface defect segmentation, providing a coherent framework that integrates selective depth mining, hierarchical feature aggregation, and edge-sensitive context. Figure 7 presents a side-by-side architectural comparison of DMENet with SPNet and PICRNet, highlighting the differences in fusion strategy, spatial attention, and edge handling.

Figure 7: Architectural comparison of DMENet with representative RGB-D methods. (A) SPNet. (B) PICRNet. (C) DMENet (the proposed method). DMENet differs in three aspects: selective depth-mining fusion with joint RGB-D saliency rather than simple concatenation, hierarchical aggregation, and dual-granularity edge guidance (CAED + EGFE), which is absent from both baselines. Abbreviations: SPNet = Specificity-Preserving Network; PICRNet = Point-Aware Interaction and CNN-Induced Refinement Network; DMENet = Depth-Mining Network with Edge-Sensitive Context; DMFF = Depth-Mining Feature Fusion; SSA = Synergistic Spatial Attention; HFA = Hierarchical Feature Aggregation; CAED = Context-Aware Edge Detector; EGFE = Edge-Guided Feature Enhancement. Please click here to view a larger version of this figure.
Comparison with state-of-the-art methods
To validate the effectiveness of DMENet, comparison experiments are conducted on 18 state-of-the-art RGB-D-based methods. These include BTSNet48, TriTranNet49, SPNet24, C2DFNet50, CIRNet25, RFNet51, CLANet30, FHENet11, MENet14, PENet35, PICRNet16, CAVER52, RDNet36, SAINet32, HFMDNet17, SA2F43, ACLNet-T12, and TCINet13. For methods16,24,25,48,49,50,51,52 not using the NEU RSDDS-AUG dataset, parameter settings as described in their original papers, and the same data division strategy are implemented. For methods11,32,36, which use this publicly available dataset, they are reevaluated using the prediction maps provided by the authors. For methods14,17,30,35,53 that use the dataset and are not publicly available, experimental results published in the corresponding papers are referred.
Quantitative evaluation
As shown in Table 1, DMENet outperforms state-of-the-art comparison methods in four evaluation metrics, achieving the best performance. Compared to HFMDNet17, DMENet exceeds it by 7.8%, 0.6%, and 0.2% in MAE, Sα, and Emaxφ, respectively. When compared to CLANet30, a pioneering method specifically designed for the NEU RSDDS-AUG dataset, the improvements are noticeable: 31.9% in MAE, 4.0% in Sα, 2.8% in Emaxφ, and 3.9% in Fmaxβ. Among the methods specifically designed for the NEU RSDDS-AUG defect dataset, RDNet36 performs the best. DMENet outperforms RDNet by 16.1% in MAE, 0.7% in Sα, 0.9% in Emaxφ, and 0.9% in Fmaxβ, making a significant advancement over previous methods.
| Method | Publication | MAE lower is better | S-measure higher is better | Max E-measure higher is better | Max F-measure higher is better |
| BTSNet | ICME 2021 | 0.066 | 0.845 | 0.917 | 0.898 |
| TriTransNet | ACM MM 2021 | 0.07 | 0.833 | 0.915 | 0.889 |
| SPNet | ICCV 2021 | 0.065 | 0.84 | 0.921 | 0.897 |
| C2DFNet | TMM 2022 | 0.096 | 0.801 | 0.877 | 0.86 |
| CIRNet | TIP 2022 | 0.086 | 0.828 | 0.894 | 0.856 |
| RFNet | 3DV 2022 | 0.063 | 0.842 | 0.923 | 0.899 |
| CLANet | TMECH 2022 | 0.069 | 0.834 | 0.921 | 0.877 |
| FHENet | TIM 2023 | 0.063 | 0.838 | 0.926 | 0.882 |
| MENet | TCSVT 2023 | 0.057 | 0.856 | 0.939 | 0.899 |
| PENet | TIM 2023 | 0.054 | 0.859 | 0.94 | 0.905 |
| PICRNet | ACM MM 2023 | 0.053 | 0.857 | 0.936 | 0.908 |
| CAVER | TIP 2023 | 0.055 | 0.859 | 0.935 | 0.91 |
| RDNet | TASAE 2024 | 0.056 | 0.861 | 0.939 | 0.903 |
| SAINet | OPTLASERENG 2024 | 0.055 | 0.851 | 0.936 | 0.898 |
| HFMDNet | TIM 2024 | 0.051 | 0.862 | 0.945 | 0.911 |
| SA2F | TII 2024 | 0.061 | 0.845 | 0.927 | 0.883 |
| ACLNet-T | TNNLS 2025 | 0.056 | 0.86 | 0.938 | 0.898 |
| TCINet | TIM 2025 | 0.049 | 0.861 | 0.937 | 0.901 |
| Ours | - | 0.047 | 0.867 | 0.947 | 0.911 |
Table 1: Quantitative comparisons on the NEU RSDDS-AUG dataset. Performance evaluation across four metrics compared against 18 state-of-the-art methods. ” ↑ ”/” ↓” indicates that larger or smaller is better. The best result for each metric is highlighted in bold. Abbreviations: NEU RSDDS-AUG = Northeastern University Rail Surface Defect Detection System Augmented Dataset; MAE = Mean Absolute Error (lower is better); Sα = Structural Measure (higher is better); Emaxφ = Maximum Enhanced-Alignment Measure (higher is better); Fmaxβ = Maximum F-Measure (higher is better); SOTA = State-of-the-Art.
Figure 8 illustrates the Precision-Recall (P-R) and F-Measure curves for DMENet compared with other methods. The P-R curves depict how precision varies with recall across different methods. The P-R curve of DMENet is stable and balanced, positioned closest to the top-right of the graph, indicating that it maintains the highest precision under the same recall rate. The F-Measure curves show F-Measure across various thresholds. The DMENet curve consistently remains above those of the other methods, indicating it maintains the best F-Measure performance across different thresholds.

Figure 8: The P-R curves and F-Measure curves on the NEU RSDDS-AUG dataset. (A) P-R curves of DMENet compared to other methods. (B) F-measure curves at various thresholds. Abbreviations: P-R = Precision-Recall; NEU RSDDS-AUG = Northeastern University Rail Surface Defect Detection System Augmented Dataset. Please click here to view a larger version of this figure.
Visualization analysis
Figure 9 compares ground truth (GT) and the visual results of the proposed method with those of other methods. In rows 1, 2, 5, 8, and 9, when the textures and color appearances of the background and defects are highly similar, other methods are more prone to misidentifying the background as defects. In contrast, DMENet effectively uses depth information to distinguish foreground from background, thereby reducing misidentification. Furthermore, as shown in rows 3, 4, 7, and 8, the proposed method effectively bridges the semantic gap across modalities, reduces semantic confusion, and demonstrates enhanced robustness to disruptions caused by poor depth information. Compared with the comparative methods, the predictions of DMENet exhibit more complete internal structures, smoother boundaries, and better separation, which closely resemble the true morphology of irregular defects, as seen in rows 3, 4, 5, and 6. These results highlight the effectiveness of the proposed method in handling challenging defect scenes compared to other methods.

Figure 9: Visual comparisons for prediction maps of different methods on the NEU RSDDS-AUG dataset. Abbreviations: RGB = Red-Green-Blue; Depth = Depth Map; BTS = BTSNet; TriTrans = TriTransNet; SP = SPNet; C2DF = C2DFNet; CIR = CIRNet; RF = RFNet; FHE = FHENet; CAVER = Cross-Modal View-Mixed Transformer; PICR = PICRNet; SAI = SAINet; Ours = DMENet; GT = Ground Truth. Please click here to view a larger version of this figure.
Complexity evaluation
To assess the computational efficiency of the proposed method, a thorough evaluation of its complexity compared to various methods on the same device is conducted. This assessment encompasses several critical metrics, including parameters, floating-point operations (FLOPs), and inference speed (FPS). As illustrated in Table 2, DMENet delivers performance that surpasses more complex models while maintaining moderate FLOPs, parameters, and FPS. Therefore, the proposed method achieves a relatively good balance between resource usage and performance, making it a viable option for the application in defect scenes that require both efficiency and effectiveness.
| Model | Input Size | FLOPs G lower is better | Params M lower is better | FPS higher is better |
| BTSNet | 352 x 352 | 250.8 | 99 | 17.2 |
| TriTransNet | 256 x 256 | 282.7 | 138.8 | 8.9 |
| SPNet | 352 x 352 | 68.1 | 150.3 | 41 |
| C2DFNet | 256 x 256 | 11.1 | 47.5 | 193.2 |
| CIRNet | 352 x 352 | 42.6 | 103.2 | 66.4 |
| RFNet | 352 x 352 | 37.3 | 90.8 | 31.2 |
| FHENet | 320 x 320 | 2.8 | 5.2 | 170.7 |
| MENet | 384 x 384 | 50.7 | 183.6 | - |
| PENet | 320 x 320 | 32.2 | 82.4 | - |
| PICRNet | 224 x 224 | 27.1 | 112 | 57.9 |
| CAVER | 256 x 256 | 31.6 | 93.8 | 83.7 |
| RDNet | 320 x 320 | 40.3 | 87.7 | - |
| SAINet | 256 x 256 | 33.1 | 57.9 | 81.6 |
| HFMDNet | 384 x 384 | 242.2 | 431.6 | - |
| Ours | 224 x 224 | 28.4 | 134.1 | 56.2 |
Table 2: Comparisons of computational efficiency and complexity on the NEU RSDDS-AUG dataset. Evaluation of model resource usage measured on a standardized hardware environment. Abbreviations: NEU RSDDS-AUG = Northeastern University Rail Surface Defect Detection System Augmented Dataset; FLOPs = Floating-Point Operations; G = Giga (109); Params = Parameters; M = Millions (106); FPS = Frames Per Second (higher is better).
Ablation studies
Ablation studies are conducted on the NEU RSDDS-AUG dataset to validate the effectiveness of each component in DMENet.
Effectiveness of each component in DMENet
In the baseline, the CAED, EGFE, and HFA modules are removed from the original DMENet framework, and the DMFF module is replaced with element-wise addition to enable simple cross-modal interaction. The following variants are set to evaluate the contribution of the proposed modules: (1) Baseline with DMFF module for cross-modal interaction; (2) Baseline with DMFF module and HFA for feature aggregation; (3) Complete network that includes DMFF, HFA, CAED, and EGFE modules for boundary refinement. It should be noted that CAED and EGFE function as interconnected modules, and they are either included or removed together in the ablation studies. The quantitative results and visual results are shown in Table 3 and Figure 10, respectively.
| Setting | Baseline | DMFF | HFA | CAED and EGFE | MAE lower is better | S-measure higher is better | Max E-measure higher is better | Max F-measure higher is better |
| S1 | Yes | No | No | No | 0.056 | 0.847 | 0.936 | 0.895 |
| S2 | Yes | Yes | No | No | 0.051 | 0.858 | 0.943 | 0.903 |
| S3 | Yes | Yes | Yes | No | 0.05 | 0.859 | 0.945 | 0.905 |
| Ours | Yes | Yes | Yes | Yes | 0.047 | 0.867 | 0.947 | 0.911 |
Table 3: Module ablation analysis on the NEU RSDDS-AUG dataset. Quantitative performance contributions of progressively incorporating DMFF, HFA, and CAED with EGFE modules into the baseline model. Abbreviations: NEU RSDDS-AUG = Northeastern University Rail Surface Defect Detection System Augmented Dataset; Baseline = Simple addition fusion model; DMFF = Depth-Mining Feature Fusion; HFA = Hierarchical Feature Aggregation; CAED = Context-Aware Edge Detector; EGFE = Edge-Guided Feature Enhancement; MAE = Mean Absolute Error (lower is better); Sα = Structural Measure (higher is better); Emaxφ = Maximum Enhanced-Alignment Measure (higher is better); Fmaxβ = Maximum F-Measure (higher is better).

Figure 10: Visual comparisons for prediction maps generated by different settings on modules. (A) RGB. (B) Depth. (C) S1. (D) S2. (E) S3. (F) Ours. (G) GT. Abbreviations: RGB = Red-Green-Blue; Depth = Depth Map; S1 = Baseline without DMFF, HFA, CAED, EGFE; S2 = Baseline with DMFF; S3 = Baseline with DMFF and HFA; Ours = Full DMENet Model; GT = Ground Truth. Please click here to view a larger version of this figure.
DMENet achieves improvements of 16.1% in MAE, 2.4% in Sα, 1.2% in Emaxφ and 1.8% in Fmaxβ compared to the baseline in total, demonstrating overall advancements in detection performance. Compared to the simple interaction method, the DMFF module achieves a superior cross-modal interaction effect. It can be seen that DMENet reduces semantic inconsistencies and resists interference from redundant depth information, which effectively improves the identification of defect regions. The HFA module aggregates hierarchical features to preserve defect details and to complement salient regions across modalities, resulting in complete, clear defect predictions. With the CAED and EGFE modules, the boundary refinement process comprehensively incorporates edge information at both coarse and fine levels, making defect boundaries more distinct and achieving the finer separation between foreground and background regions.
Effectiveness of each module's internal structure
As shown in Table 4, to further analyze how each design contributes, ablation experiments are conducted on the internal design structures of each module. Experiments are performed with the following settings: (1) Without pixel-level calibration of depth features in the DMFF module. (2) Replacing depth reconstruction with element-wise addition for cross-modal interaction in the DMFF module. (3) Without skip connections from adjacent encoding layers for feature aggregation in the HFA module. (4) Replacing CAED with a concatenation of shallow features followed by convolutions. (5) Without edge-sensitive context for boundary perception in the EGFE module. (6) Without edge maps for boundary sharpening in the EGFE module. Table 4 shows the quantitative results, and Figure 11 illustrates the visual results.
| Module | Setting | MAE lower is better | S-measure higher is better | Max E-measure higher is better | Max F-measure higher is better |
| DMFF | without pixel calibration | 0.049 | 0.866 | 0.944 | 0.907 |
| DMFF | without channel alignment | 0.051 | 0.862 | 0.942 | 0.904 |
| HFA | without encoding connections | 0.048 | 0.866 | 0.947 | 0.909 |
| CAED and EGFE | without CAED | 0.049 | 0.863 | 0.944 | 0.905 |
| CAED and EGFE | without context features | 0.049 | 0.865 | 0.945 | 0.908 |
| CAED and EGFE | without edge maps | 0.048 | 0.867 | 0.947 | 0.91 |
| Ours | Ours | 0.047 | 0.867 | 0.947 | 0.911 |
Table 4: Module internal structure ablation analysis on the NEU RSDDS-AUG dataset. Evaluation of specific structural design choices within the DMFF, HFA, CAED, and EGFE modules. Abbreviations: NEU RSDDS-AUG = Northeastern University Rail Surface Defect Detection System Augmented Dataset; w/o = Without; DMFF = Depth-Mining Feature Fusion; HFA = Hierarchical Feature Aggregation; CAED = Context-Aware Edge Detector; EGFE = Edge-Guided Feature Enhancement; MAE = Mean Absolute Error (lower is better); Sα = Structural Measure (higher is better); Emaxφ = Maximum Enhanced-Alignment Measure (higher is better); Fmaxβ = Maximum F-Measure (higher is better).

Figure 11: Visualization comparison for feature maps of the last decoding stage by different settings on model internal structures. (A) RGB. (B) Depth. (C) w/o pixel calibration. (D) w/o channel alignment. (E) w/o encoding connections. (F) w/o CAED. (G) w/o context features. (H) w/o edge maps. (I) Ours. (J) GT. Abbreviations: w/o = Without; RGB = Red-Green-Blue; Depth = Depth Map; CAED = Context-Aware Edge Detector; Ours = Full DMENet Model; GT = Ground Truth. Please click here to view a larger version of this figure.
When the DMFF module introduces depth features without pixel-wise calibration, additional noise from the depth information appears. Depth pixel-wise calibration provides a reliable spatial representation of depth features for subsequent fusion. When the depth feature reconstruction operation in the DMFF module is removed, irrelevant channel information in the depth features leads to incorrect predictions. This operation is used to mine valuable depth information that is semantically related to RGB and aligns the semantics between the modalities at the channel level. When skip connections in the HFA module are removed, defect features become incomplete and distorted. They are introduced to fuse multi-scale features with contextual information, thereby enhancing the richness of the feature representation and retaining more defect details.
When the CAED is replaced with a typical method that concatenates RGB and depth features from the shallow layers using convolutions, the resulting features contain more noise, and the predicted defect edges deviate from the ground truth. The CAED can provide higher-quality edge information, ensuring the effectiveness of the boundary refinement process. To validate this claim, Figure 12 shows the edge maps obtained using different methods. It can be seen that the CAED can produce higher-quality edge maps. Furthermore, in the EGFE module, removing edge-sensitive context features while retaining edge maps results in incorrectly localized defect boundaries, and the separation between foreground and background becomes less distinct. Conversely, eliminating edge map features leads to a relatively light impact. In this case, some defect edge regions in the features become slightly blurred, but the separation between foreground and background is still clear. Compared with directly sharpening defect boundaries using edge maps, edge-sensitive contextual features can separate the foreground and background at a broader semantic level, better perceive defect boundary regions, and have a more significant impact on the results.

Figure 12: Visualization comparison for edge maps by different settings on edge detector. (A) RGB. (B) Depth. (C) w/o CAED. (D) Ours. (E) GT. Abbreviations: w/o = Without; CAED = Context-Aware Edge Detector; RGB = Red-Green-Blue; Depth = Depth Map; Ours = Full DMENet Model; GT = Ground Truth. Please click here to view a larger version of this figure.
Effectiveness of each modality
Ablation studies are also conducted on different modalities to determine whether the proposed method effectively utilizes complementary information between modalities. Experiments are conducted using either RGB or depth as input while preserving all components of DMENet. As shown in Table 5 and Figure 12, DMENet outperforms the single RGB modality setup by 9.6% in MAE, 0.6% in Sα, 0.7% in Emaxφ, and 0.9% in Fmaxβ. When the color and texture of the defect surface are highly similar, a single RGB modality cannot clearly distinguish the foreground from the background. Furthermore, DMENet significantly surpasses the single depth modality setup by 62.7% in MAE, 20.6% in Sα, 14.0% in Emaxφ, and 19.2% in Fmaxβ. It can be seen that depth information is poor, and defect-related information is severely limited, which is a common issue in defect scenes. These results indicate that across the entire NEU RSDDS-AUG dataset, the RGB modality provides richer, more accurate defect information and plays a dominant role in surface defect detection. While primarily leveraging RGB information, RGB-D modality in DMENet introduces supplementary depth information to enhance RGB features. DMENet not only improves detection accuracy based on good-depth cases but also maintains robustness in poor-depth cases.
| Setting | MAE lower is better | S-measure higher is better | Max E-measure higher is better | Max F-measure higher is better |
| Depth | 0.126 | 0.719 | 0.831 | 0.764 |
| RGB | 0.052 | 0.862 | 0.94 | 0.903 |
| RGB-D | 0.047 | 0.867 | 0.947 | 0.911 |
Table 5: Modality ablation analysis on the NEU RSDDS-AUG dataset. Comparison of network performance using single depth, single RGB, and combined RGB-D modalities. Abbreviations: NEU RSDDS-AUG = Northeastern University Rail Surface Defect Detection System Augmented Dataset; RGB = Red-Green-Blue; D = Depth; MAE = Mean Absolute Error (lower is better); Sα = Structural Measure (higher is better); Emaxφ = Maximum Enhanced-Alignment Measure (higher is better); Fmaxβ = Maximum F-Measure (higher is better).

Figure 13: Visual comparisons for prediction maps generated by different settings on modalities. (A) RGB. (B) Depth. (C) RGB-based prediction. (D) Depth-based prediction. (E) RGB-D-based prediction. (F) GT. Abbreviations: RGB = Red-Green-Blue; Depth = Depth Map; RGB-D = Combined RGB and Depth Modalities; GT = Ground Truth. Please click here to view a larger version of this figure.
Effectiveness of loss weighting
As shown in Table 6, to provide empirical support for the loss weighting design, ablation experiments were conducted with four combinations of the three loss components (Lbce : Liou : Ldice): the baseline setting (1:1:1), weak edge supervision (1:1:0.5), strong edge supervision (1:1:2.0), and high BCE weight (2:1:1). All variants were trained on NEU RSDDS-AUG under identical settings (warm start, 10 epochs).
| Variant | Lbce : Liou : Ldice | MAE lower is better |
| baseline_w11 | 1 : 1 : 1 | 0.0491 |
| weak_dice | 1 : 1 : 0.5 | 0.0496 |
| strong_dice | 1 : 1 : 2.0 | 0.0489 |
| high_bce | 2 : 1 : 1 | 0.0501 |
Table 6: Loss weight ablation on NEU RSDDS-AUG under warm-start training. Performance sensitivity across four loss weighting ratios (Lbce : Liou : Ldice) evaluated on 10 epochs. Abbreviations: NEU RSDDS-AUG = Northeastern University Rail Surface Defect Detection System Augmented Dataset; BCE = Binary Cross-Entropy Loss; IoU = Intersection over Union Loss; Dice = Dice Loss; MAE = Mean Absolute Error (lower is better).
The four variants achieve MAE of 0.0491, 0.0496, 0.0489, and 0.0501, respectively. The differences are within 0.0012, indicating that DMENet is not sensitive to the exact loss weighting. The strong edge supervision setting (1:1:2.0) achieves the best result, suggesting that edge supervision (Dice loss on edge maps) contributes marginally more than the other components, consistent with the design philosophy of edge-guided refinement. The baseline 1:1:1 setting is retained in the main experiments for simplicity and to avoid overfitting the hyperparameters to the validation set.
Performance on other datasets
As the NEU RSDDS-AUG dataset lacks a validation set, the generalization capability of DMENet requires further proof. To demonstrate that the proposed method generalizes, experiments are conducted on three additional RGB-D benchmark datasets: NLPR, NJU2K, and STERE. To ensure fairness and enable sufficient comparison, an effort is made to reference the same experimental settings as those used for methods in natural scenes, leading to the removal of some methods evaluated on the NEU RSDDS-AUG dataset and the inclusion of additional methods. The proposed method is compared with 12 state-of-the-art methods, including HAINet54, BBSNet55, TriTransNet49, SPNet24, SiaTrans56, C2DFNet50, RFNet51, MITFNet57, HiDANet26, CAVER52, RDNet36, and TSVT58.
As shown in Table 7, DMENet achieves the best result on the NLPR and NJU2K datasets. Specifically, on the NLPR dataset, DMENet surpasses MITFNet57, which is the second-best performer, by 5.6% in MAE, 0.5% in Sα, 0.5% in Emaxφ, and 0.3% in Fmaxβ. On the NJU2K dataset, the proposed approach shows improvements over HiDANet26 by 10.3% in MAE, 0.2% in Sα, and 0.4% in Emaxφ. On the STERE dataset, the overall performance of DMENet surpasses most compared methods, having the best results in MAE and Emaxφ. NLPR, NJU2K, and STERE datasets encompass a variety of natural scenes and diverse salient targets. DMENet demonstrates excellent performance on these datasets, which are characterized by their wide range of salient targets and scenes. As shown in Figure 13, DMENet outperforms other methods across various scenes. The method achieves this by mining valuable depth information and suppressing redundant interference. It also aligns features in different modalities at both the spatial and channel levels to enhance semantic consistency. Thus, it can robustly and effectively synthesize complementary information from modalities across various scenes, achieving superior visual results, as shown in Figure 14.
| Method | NLPR MAE lower is better | NLPR S-measure higher is better | NLPR Max E-measure higher is better | NLPR Max F-measure higher is better | NJU2K MAE lower is better | NJU2K S-measure higher is better | NJU2K Max E-measure higher is better | NJU2K Max F-measure higher is better | STERE MAE lower is better | STERE S-measure higher is better | STERE Max E-measure higher is better | STERE Max F-measure higher is better |
| HAINet | 0.024 | 0.924 | 0.96 | 0.915 | 0.038 | 0.912 | 0.944 | 0.915 | 0.04 | 0.907 | 0.944 | 0.906 |
| BBSNet | 0.023 | 0.93 | 0.961 | 0.918 | 0.035 | 0.921 | 0.949 | 0.92 | 0.041 | 0.908 | 0.942 | 0.903 |
| TriTransNet | 0.02 | 0.928 | 0.966 | 0.924 | 0.03 | 0.92 | 0.955 | 0.926 | 0.033 | 0.908 | 0.953 | 0.911 |
| SPNet | 0.021 | 0.927 | 0.962 | 0.919 | 0.028 | 0.924 | 0.952 | 0.928 | 0.037 | 0.907 | 0.942 | 0.906 |
| SiaTrans | 0.024 | 0.929 | 0.964 | 0.918 | 0.035 | 0.923 | 0.956 | 0.921 | 0.038 | 0.911 | 0.951 | 0.907 |
| C2DFNet | 0.022 | 0.928 | 0.961 | 0.917 | 0.039 | 0.908 | 0.943 | 0.909 | 0.038 | 0.902 | 0.943 | 0.897 |
| RFNet | 0.02 | 0.931 | 0.966 | 0.927 | 0.03 | 0.925 | 0.955 | 0.929 | 0.036 | 0.911 | 0.95 | 0.911 |
| MITFNet | 0.018 | 0.933 | 0.968 | 0.928 | 0.03 | 0.923 | 0.957 | 0.926 | 0.034 | 0.909 | 0.953 | 0.91 |
| HiDANet | 0.021 | 0.929 | 0.963 | 0.923 | 0.029 | 0.926 | 0.957 | 0.931 | 0.035 | 0.911 | 0.949 | 0.912 |
| CAVER | 0.021 | 0.934 | 0.97 | 0.929 | 0.029 | 0.925 | 0.959 | 0.928 | 0.032 | 0.917 | 0.955 | 0.916 |
| RDNet | 0.019 | 0.936 | 0.97 | 0.927 | 0.034 | 0.921 | 0.951 | 0.924 | 0.033 | 0.921 | 0.955 | 0.916 |
| TSVT | 0.021 | 0.935 | 0.966 | 0.924 | 0.037 | 0.917 | 0.939 | 0.917 | 0.035 | 0.912 | 0.946 | 0.915 |
| Ours | 0.017 | 0.938 | 0.973 | 0.931 | 0.026 | 0.928 | 0.961 | 0.931 | 0.032 | 0.915 | 0.956 | 0.913 |
Table 7: Quantitative comparisons on benchmark datasets (NLPR, NJU2K, and STERE). Cross-domain performance evaluation against 12 state-of-the-art methods. The best result for each dataset is highlighted in bold. Abbreviations: NLPR = National Laboratory of Pattern Recognition Dataset; NJU2K = Nanjing University 2000 Dataset; STERE = Stereoscopic Dataset; MAE = Mean Absolute Error (lower is better); Sα = Structural Measure (higher is better); Emaxφ = Maximum Enhanced-Alignment Measure (higher is better); Fmaxβ = Maximum F-Measure (higher is better).

Figure 14: Visual comparisons for prediction maps of different methods on other datasets. Abbreviations: RGB = Red-Green-Blue; Depth = Depth Map; HAI = HAINet; BBS = BBSNet; TriTrans = TriTransNet; SP = SPNet; C2DF = C2DFNet; RF = RFNet; HIDA = HiDANet; Ours = DMENet; GT = Ground Truth. Please click here to view a larger version of this figure.
Multi-seed stability and robustness
Multi-seed stability
To verify that the reported performance is not dependent on a particular random initialization, DMENet was trained three times on NEU RSDDS-AUG with different random seeds (42, 123, and 2024) under identical settings. The three runs achieve MAE values of 0.0487, 0.0478, and 0.0485, respectively, yielding an average MAE of 0.0483 with a standard deviation of 0.0004. The small standard deviation indicates that the performance of DMENet is statistically stable and reproducible across independent training runs.
Robustness to input perturbations
To assess robustness under realistic industrial conditions, DMENet was evaluated under 16 perturbation settings spanning four types of input degradation, each at four severity levels: Gaussian noise added to depth maps (sigma from 0.05 to 0.3), random missing of depth pixels (10% to 70%), spatial misalignment between RGB and depth (4 to 32 pixels), and additive reflection on RGB images (intensity 0.1 to 0.7). The full results are provided in Supplementary File 1.
DMENet exhibits strong robustness to depth-related degradations: the MAE increase remains below +0.0003 under Gaussian depth noise, below +0.005 under up to 70% missing depth pixels, and below +0.0003 under RGB-D misalignment up to 32 pixels. These results support the selective depth mining design, which down-weights unreliable depth information rather than depending on it uniformly. The main weakness is additive reflection on RGB images, which increases MAE by up to +0.11 at intensity 0.7. This failure mode is discussed in Section 4.7, where physics-based mitigation strategies are proposed as future work.
Data Availability
The datasets analyzed in this study are available in the following repositories. The NEU RSDDS-AUG RGB-D surface defect dataset is available at https://github.com/bskyqw/DMENet. The complete training pipeline, including code, data preparation scripts, and evaluation tools, will be released publicly on GitHub with a Zenodo DOI upon manuscript acceptance. Detailed configurations are provided in the Protocol section of Supplementary File 1.
Supplementary File 1: Comprehensive input perturbation stress testing and multi-seed stability analysis. Quantitative robustness evaluation across 16 perturbation settings (depth noise, missing depth pixels, spatial misalignment, and RGB reflection) and multi-seed reproducibility metrics (N = 3) evaluated on the NEU RSDDS-AUG dataset. Abbreviations: DMENet = Depth-Mining Network with Edge-Sensitive Context; NEU RSDDS-AUG = Northeastern University Rail Surface Defect Detection System Augmented Dataset; MAE = Mean Absolute Error; Std = Standard Deviation; RGB = Red-Green-Blue; D = Depth. Please click here to download this file.