Skip to main content
GIS-Schools GIS-Schools
Anomaly & Defect Detection ยท GeoAI

PatchCore - Visual Inspection Anomaly Detection

Learn normal visual appearance and flag unusual image regions for review. Build a task-specific memory bank before inspecting new assets.

Anomaly & Defect Detection task illustration
Family: Normal-feature memory modelArchitecture: Pretrained CNN patches and nearest-neighbor memoryVersion: Anomalib PatchCore implementationLicense: Apache-2.0 implementation; backbone/data terms separate
PatchCore - Visual Inspection Anomaly Detection

Exact implementation and checkpoint

Anomalib's PatchCore implementation. It requires a memory bank fitted to representative normal images; this record does not provide a ready-made bridge-crack or universal defect checkpoint.

How it works

A pretrained CNN extracts local patch features. Representative normal features are stored in a memory bank; distances from new patches produce anomaly scores and localization maps.

Inputs and outputs

Consistently prepared inspection images enter the pipeline. Output includes an image-level score and a heatmap of unusual regions, not a guaranteed defect diagnosis or named defect class.

Training and fine-tuning

Collect normal images covering allowed lighting, viewpoint and material variation. Fit the feature memory with Anomalib and calibrate thresholds on separate normal and defect examples. Preserve preprocessing and the fitted memory together.

GIS and digital twin use

Prioritize human review of component photos linked to asset IDs and inspection dates. Site-specific validation is required before applying this approach to cracks, corrosion or other infrastructure conditions.

Validation on your data

Review missed defects and nuisance alarms by defect type and acquisition condition. Choose thresholds around the actual inspection workflow, retaining the original image beside every flag.

Limitations

A new background or illumination may look anomalous. A visually familiar but dangerous defect can be missed. Generic pretrained CNN weights alone do not constitute a fitted inspection model.

Resources and license

Anomalib is Apache-2.0. Backbone and dataset terms remain separate. The linked resource is a fitting guide, not a downloadable trained defect model. No training or diagnosis is performed by this page.

Integration and validation status

This is a workflow component, not an installed iTwin plugin or automatic asset update service. Preserve coordinate reference systems, units, acquisition dates and source provenance for spatial outputs; preserve timestamps and sensor units for time-series outputs. Review results before attaching them to an authoritative asset.

GISSchools has not run training, inference or an accuracy benchmark for this entry. Covers and diagrams are conceptual illustrations. Official resources remain external.

Official references

Examples and images

Downloads and resources

External resourceOfficial repositoryProvider: Anomalib / Open Edge Platform
Open resource ↗
External resourceUsage and configurationProvider: Anomalib / Open Edge Platform
Open resource ↗
External resourceImplementation and Fitting GuideProvider: Anomalib / Open Edge PlatformVersion: Anomalib PatchCore implementationLicense: Apache-2.0 implementation; backbone/data terms separate

Anomalib is Apache-2.0. Backbone and dataset terms remain separate. The linked resource is a fitting guide, not a downloadable trained defect model. No training or diagnosis is performed by this page.

Open resource ↗
External resourceLicense and noticesProvider: Anomalib / Open Edge Platform
Open resource ↗
Discussion

Comments

0

No comments yet. Start the discussion.

Join the discussion

Leave a reply

Your email address will not be published. Required fields are marked.