When engineers photograph a brittle material such as concrete, ceramic or rock to judge how badly it is cracked, the image passes through an automatic quality check before any crack-finding model sees it. That check almost always measures how sharp the picture looks. A sharp-looking image is not the same as one that still shows the crack features that decide structural risk. Mild blur or downsampling can erase hairline cracks, which are the early signs of brittle failure, while the image still passes a sharpness threshold. A heavily degraded image can lose all its fine texture yet keep the single long crack that governs failure, and a sharpness filter would throw it away. We propose a quality gate that scores each image by how much error it is likely to cause in the measurements an engineer actually uses: longest crack length, total crack length, branching and maximum width. The gate is trained on fracture simulations, where the true crack geometry is known exactly.
The pieces play different roles. A virtual laboratory, here brittle-fracture simulation by peridynamics (a crack model that lets cracks form anywhere without a predefined path), supplies crack networks with exact ground truth, including cracks thinner than human annotators reliably label. Automated image quality assessment is the object we redesign. The analytic hierarchy process (AHP) handles one narrow, necessary job. AHP is a method that turns an expert's pairwise judgments, such as "longest crack matters moderately more than branch count," into consistent numerical weights. Here those weights combine several crack-measurement errors into one score of engineering consequence. Material brittleness sets the application regime and defines which measurements matter.
Core Claim
A no-reference quality predictor, meaning one that sees only the degraded image and never the clean original, can be trained to predict expert-weighted error in mechanically relevant crack measurements. We claim such a predictor makes better accept, reject or re-acquire decisions than three alternatives: sharpness heuristics, generic perceptual quality models, and the crack segmenter's own confidence. We expect the advantage to be largest on thin and webbed cracks, which existing crack benchmarks already identify as the failure regime.
The quantity the gate predicts for image $x$ is
$$L(x) = \sum_{k=1}^{K} w_k \,\frac{|d_k(\hat{m}(x)) - d_k(m^*)|}{d_k(m^*) + \epsilon},$$
where $d_k$ is the $k$-th crack descriptor (for example, longest crack length) computed from a binary crack mask, $\hat{m}(x)$ is the mask a fixed segmenter predicts from the degraded image, $m^*$ is the true mask, $\epsilon$ is a small constant that prevents division by zero, and $w_k$ are the AHP-derived weights. An image counts as unusable when $L(x)$ exceeds an engineering tolerance $\tau$.
Grounding in Prior Work
Two strands of prior work motivate the proposal. Quality gates are already standard ahead of vision models. XAI-guided Insulator Anomaly Detection for Imbalanced Datasets discards drone images whose Laplacian sharpness falls below about 14 before classifying cracked insulator shells. Hybrid AI-assistive diagnostic model permits rapid TBS classification of cervical liquid-based thin-layer cell smears rejects poorly focused slides with an XGBoost classifier before running detection. Both define quality by image properties, not by the downstream measurement, and neither concerns fracture. The second strand shows that crack segmentation fails exactly where brittle-failure assessment needs it most. CrackSeg9k unifies ten crack datasets and reports that webbed cracks and downsampled fine cracks degrade performance. CAC: Confidence-Aware Co-Training for Weakly Supervised Crack Segmentation still misses hairline cracks on low-contrast backgrounds and processes every input regardless of degradation.
Simulation work supplies both method and descriptors. Accelerating high-strain continuum-scale brittle fracture simulations with machine learning found that continuum-scale spallation is governed largely by maximum tensile stress and the "longest crack." That finding is why longest crack length is a first-class descriptor here rather than pixel overlap. StressNet feeds binary crack "damage channels" taken straight from simulation meshes into a stress surrogate. It assumes those masks are pristine, which is the assumption a real camera pipeline breaks and which our gate is designed to police. To generate crack networks in heterogeneous brittle media we reuse A Meshfree Peridynamic Model for Brittle Fracture in Randomly Heterogeneous Materials, with the solver PeriPy and the fast scheme of A general and fast convolution-based method for peridynamics.
One cited result constrains the design. Physics-guided adversarial networks for artificial digital image correlation data generation shows that synthetic mechanics images look plausible while violating physics unless physics is built in. We therefore take crack geometry from the solver and synthesize only appearance, never the cracks themselves.
AHP enters as an elicitation method only. Within that role, Experimental Research on Crack Resistance of Steel–Polyvinyl Alcohol Hybrid Fiber-Reinforced Concrete is the closest precedent: it uses AHP to merge competing mechanical and shrinkage measurements of brittle concrete into one crack-resistance index. We apply the same move to errors in image-derived crack descriptors instead of to material properties. We are aware that AHP is a structured heuristic without optimality guarantees (A modified axiomatic foundation of the analytic hierarchy process) and that its 1–9 rating scale can distort weights (THE EVALUATION OF APPROPRIATENESS FOR SCALING IN THE ANALYTIC HIERARCHY PROCESS). For both reasons, sensitivity to the weights is an explicit experiment rather than an assumption.
Research Program
The first component is a virtual crack laboratory. We run peridynamic simulations of quasi-brittle plates with random heterogeneity, varying loading mode, notch geometry and the spread of material toughness. The goal is crack networks covering the linear, branched and webbed shapes that CrackSeg9k uses as categories. Each final damage field is thresholded into a true mask $m^*$ at a known physical width. The mask is then rendered into an image: crack pixels are composited onto real crack-free surface patches cut from the concrete, masonry and ceramic portions of CrackSeg9k, with a crack-opening shading model. Finally, controlled degradations are applied: defocus blur, motion blur, illumination gradients, sensor noise, JPEG compression, and downsampling followed by upsampling.
The second component is the label. We fix one strong segmenter, the DeepLabV3+ model with DINO features from CrackSeg9k, and compute five descriptors on predicted and true masks: longest connected crack length, total skeleton length, branch-point count, maximum width, and crack area fraction. Five to eight practicing structural or materials engineers fill in AHP pairwise comparisons over these descriptors for the question "which error more misleads a brittle-failure assessment?" We accept individual matrices only if their consistency ratio is below 0.10 and combine experts by geometric mean.
The third component is the gate. A lightweight convolutional network regresses $L(x)$ from the degraded image alone. It is trained on simulated images and on CrackSeg9k images degraded the same way, with each source used separately and both combined. At deployment, two thresholds on the predicted score sort images into accept, re-acquire, or route to a human.
Baselines
The naive reference point is no gate at all: every image is segmented and its descriptors are reported. This sets the error level the gate must reduce. Running it requires nothing beyond the fixed segmenter.
The strongest deployed heuristic is a Laplacian-variance sharpness gate, as in XAI-guided Insulator Anomaly Detection for Imbalanced Datasets. That paper reports that discarding images with sharpness below about 14 yielded 100% classification accuracy on the remaining broken insulator components. It is the most direct competitor because it is what practitioners actually deploy ahead of crack inspection. For fairness we do not reuse the value 14. We tune the threshold on the same validation split our gate uses, and we compare at matched rejection rates.
The strongest learned image-quality competitor is a generic no-reference quality model drawn from PyTorch Image Quality, plus a variant fine-tuned with the same data and compute budget as our gate. This variant is trained to predict perceptual degradation level rather than descriptor error. It tests whether "quality" needs to be redefined at all.
The strongest task-aware competitor is the segmenter's own uncertainty: mean predictive entropy over crack pixels, and Monte Carlo dropout variance. This follows the confidence-splitting idea in CAC. It needs no extra model, which makes it the hardest baseline to justify beating.
Two ablations isolate the proposal's ingredients. The first replaces the AHP weights with equal weights, and also with a target that is simply segmentation intersection-over-union loss. It isolates the mechanics-weighted target. The second trains the identical gate on degraded CrackSeg9k only, with no simulation. It isolates the virtual laboratory.
For context on segmenter quality, the reported reference is mIoU 0.7712 and F1 0.7238 for DeepLabV3+ with DINO features on CrackSeg9k (CrackSeg9k). We found no reported result on Lacuna for quality gating evaluated by crack-descriptor error, so the gating comparison establishes its own reference numbers.
Beating the baselines means two things. At a fixed rejection rate of 25%, the accepted images must show lower mean weighted descriptor error $L$. We take 25% from the share of ungradable fundus photographs in Yifei Zhang et al., used as a realistic operating point. The gate must also achieve higher area under the ROC curve for flagging images with $L > \tau$. Both must hold with non-overlapping bootstrap confidence intervals, and they must hold separately on the thin-crack and webbed-crack subsets.
Why not just…?
Why not just use the segmenter's own confidence? This is the most serious threat. Confidence costs nothing and is directly tied to the task. Its known weakness is that blur makes networks confidently wrong. A hairline crack that has vanished produces confident background, not uncertain crack, so the error shows up as a confident omission that entropy cannot see. The thin-crack subset of the evaluation is designed to expose exactly this case. If entropy matches our gate there, we will report that the separate gate is unnecessary.
Why not just degrade real CrackSeg9k images and skip simulation? This is also a real alternative, and it is our second ablation. Our reason to expect simulation to help is that human-drawn masks in real datasets under-label the very hairline cracks CAC and CrackSeg9k report losing. A gate trained only on real masks therefore learns that losing them costs nothing. Simulated masks have exact widths. The test is evaluation on held-out real images, including a small set we re-annotate at high magnification. If the real-only gate matches the combined gate there, the virtual laboratory is not earning its cost and we drop it.
Why not just learn the descriptor weights from data instead of eliciting them with AHP? Data can say which descriptor errors happen. It cannot say which ones mislead an engineer's assessment, because that judgment is about consequences rather than statistics. The honest risk is that the choice of weights barely changes which images get rejected. We measure this directly by perturbing the AHP weights within each expert's spread and by comparing against equal weights. If the accept/reject decisions are stable under these perturbations, we will say that AHP adds transparency but not accuracy.
Why not just raise segmenter accuracy instead of gating? Better segmenters shift the curve but do not remove the regime where information is physically gone from the image. The gate's job is to detect that regime and trigger re-acquisition. We will check that the gate's advantage persists when the segmenter is swapped for the weaker non-DINO variant reported in CrackSeg9k.
Proposed Experiments
The core experiment trains each gate and evaluates risk-coverage curves on three test sets: held-out simulated images, held-out CrackSeg9k images with synthetic degradation, and naturally degraded CrackSeg9k images (those in its bottom sharpness decile, which carry their original annotations). Results are stratified by linear, branched and webbed shape and by true crack width.
The decisive check is a crossing analysis. We count images that the sharpness gate accepts but whose $L$ exceeds tolerance, and images it rejects whose $L$ is within tolerance. The proposal's premise holds only if both counts are substantial, and if ours reduces both on the thin-crack strata.
A second check tests transfer. A gate trained only in simulation is applied to real ceramic and masonry subsets that it never saw backgrounds from. Its AUROC drop relative to the real-trained gate quantifies the reality gap that rendering leaves.
A third check examines the AHP side. We report each expert's consistency ratio, the spread of weights across experts, and the fraction of accept/reject decisions that flip under weight perturbation.
The outcome that would falsify the proposal is simple to state: segmenter entropy, or a tuned sharpness threshold, matches the trained gate on thin and webbed cracks at the 25% rejection operating point.
References
- XAI-Guided Insulator Anomaly Detection for Imbalanced Datasets
- Hybrid AI-assistive diagnostic model permits rapid TBS classification of cervical liquid-based thin-layer cell smears
- CrackSeg9k: A Collection and Benchmark for Crack Segmentation Datasets and Frameworks
- CAC: Confidence-Aware Co-Training for Weakly Supervised Crack Segmentation
- Accelerating high-strain continuum-scale brittle fracture simulations with machine learning
- StressNet: Deep Learning to Predict Stress With Fracture Propagation in Brittle Materials
- A Meshfree Peridynamic Model for Brittle Fracture in Randomly Heterogeneous Materials
- PeriPy - A high performance OpenCL peridynamics package
- A general and fast convolution-based method for peridynamics: applications to elasticity and brittle fracture
- Physics-guided adversarial networks for artificial digital image correlation data generation
- Experimental Research on Crack Resistance of Steel–Polyvinyl Alcohol Hybrid Fiber-Reinforced Concrete
- A modified axiomatic foundation of the analytic hierarchy process
- THE EVALUATION OF APPROPRIATENESS FOR SCALING IN THE ANALYTIC HIERARCHY PROCESS
- PyTorch Image Quality: Metrics for Image Quality Assessment
- Artificial intelligence-enabled screening for diabetic retinopathy: a real-world, multicenter and prospective study