Papers › CableInspect-AD: An Expert-Annotated Anomaly Detection Dataset

CableInspect-AD: An Expert-Annotated Anomaly Detection Dataset

30 Sep 2024arXiv:2409.20353archive 2025-07-28

Akshatha Arodi, Margaux Luck, Jean-Luc Bedwani, Aldo Zaimi, Ge Li, Nicolas Pouliot, Julien Beaudry, Gaétan Marceau Caron

Machine learning models are increasingly being deployed in real-world contexts. However, systematic studies on their transferability to specific and critical applications are underrepresented in the research literature. An important example is visual anomaly detection (VAD) for robotic power line inspection. While existing VAD methods perform well in controlled environments, real-world scenarios present diverse and unexpected anomalies that current datasets fail to capture. To address this gap, we introduce CableInspect-AD, a high-quality, publicly available dataset created and annotated by domain experts from Hydro-Qu\'ebec, a Canadian public utility. This dataset includes high-resolution images with challenging real-world anomalies, covering defects with varying severity levels. To address the challenges of collecting diverse anomalous and nominal examples for setting a detection threshold, we propose an enhancement to the celebrated PatchCore algorithm. This enhancement enables its use in scenarios with limited labeled data. We also present a comprehensive evaluation protocol based on cross-validation to assess models' performances. We evaluate our Enhanced-PatchCore for few-shot and many-shot detection, and Vision-Language Models for zero-shot detection. While promising, these models struggle to detect all anomalies, highlighting the dataset's value as a challenging benchmark for the broader research community. Project page: https://mila-iqia.github.io/cableinspect-ad/.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2409.20353")

Code

Syntology Ran 16 of 22 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 16 ran with no contract checked.

By repository: official repository: 22 samples from 1 repository, 16 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

mila-iqia/cableinspect-ad-code officialmentioned in paperpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

22 samples harvested; 16 ran; 0 honoured the contract we drafted; 6 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

16ran
6unverified

Licence: 0 of the 22 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from mila-iqia/cableinspect-ad-code. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

add_class_description mila-iqia/cableinspect-ad-code/src/anomaly_detector/base_anomaly_detector_inference.py official repository ran Apache-2.0 (permissive) · bf01bf57f7eee8c7 · report
add_class_name mila-iqia/cableinspect-ad-code/src/anomaly_detector/base_anomaly_detector_inference.py official repository ran Apache-2.0 (permissive) · d7c35998ffe39b5d · report
build_data_rows_from_data_dict mila-iqia/cableinspect-ad-code/dataset/generate_labels.py official repository ran Apache-2.0 (permissive) · 07fa7d6e6f042906 · report
build_labels_dataframe_from_annotations mila-iqia/cableinspect-ad-code/dataset/generate_labels.py official repository ran Apache-2.0 (permissive) · ce8d2afe5c019df9 · report
build_labels_dataframe_from_data_rows mila-iqia/cableinspect-ad-code/dataset/generate_labels.py official repository ran Apache-2.0 (permissive) · 0fcc22a29c7ed53f · report
check_df_cable_side_pass mila-iqia/cableinspect-ad-code/dataset/utils.py official repository ran Apache-2.0 (permissive) · 4b46ad44d8b56051 · report
compute_metrics mila-iqia/cableinspect-ad-code/src/anomaly_detector/evaluation_utils.py official repository ran Apache-2.0 (permissive) · 753b40afacd6ec68 · report
crop_image mila-iqia/cableinspect-ad-code/dataset/raw_to_cropped_dataset.py official repository ran Apache-2.0 (permissive) · d7f4146dfedb7f98 · report
extract_metrics mila-iqia/cableinspect-ad-code/src/anomaly_detector/evaluation_utils.py official repository ran Apache-2.0 (permissive) · a8e594894de43df9 · report
flatten_dict mila-iqia/cableinspect-ad-code/src/enhanced-patchcore/post_processing/post_processing_unsupervised_results.py official repository ran Apache-2.0 (permissive) · 94bd9041d52daa8d · report
get_anomaly_ids mila-iqia/cableinspect-ad-code/dataset/utils.py official repository ran Apache-2.0 (permissive) · 6b425c3917a99747 · report
get_border mila-iqia/cableinspect-ad-code/dataset/raw_to_cropped_dataset.py official repository ran Apache-2.0 (permissive) · 6e8bda85f761c8f1 · report
identify_connected_anomalies mila-iqia/cableinspect-ad-code/dataset/utils.py official repository ran Apache-2.0 (permissive) · 922b7ffc50bacd31 · report
read_prompt_from_yaml mila-iqia/cableinspect-ad-code/src/anomaly_detector/base_anomaly_detector_inference.py official repository ran Apache-2.0 (permissive) · 416586b364c17784 · report
read_result_csv mila-iqia/cableinspect-ad-code/src/anomaly_detector/evaluation_utils.py official repository ran Apache-2.0 (permissive) · 704fc42c8390c49f · report
remove_broken_runs mila-iqia/cableinspect-ad-code/src/enhanced-patchcore/post_processing/post_processing_unsupervised_results.py official repository ran Apache-2.0 (permissive) · d731e161ae42ec44 · report
add_anomalous_label mila-iqia/cableinspect-ad-code/src/enhanced-patchcore/src/anomalib/post_processing/post_process.py official repository unverified Apache-2.0 (permissive) · 943f15268bdd462e · report
add_label mila-iqia/cableinspect-ad-code/src/enhanced-patchcore/src/anomalib/post_processing/post_process.py official repository unverified Apache-2.0 (permissive) · 4447ac929ca7ab0c · report
add_normal_label mila-iqia/cableinspect-ad-code/src/enhanced-patchcore/src/anomalib/post_processing/post_process.py official repository unverified Apache-2.0 (permissive) · fe1771d45fa5b75a · report
read_image mila-iqia/cableinspect-ad-code/dataset/raw_to_cropped_dataset.py official repository unverified Apache-2.0 (permissive) · 3a9a6499b8b37aad · report
update_multi_gpu_training_config mila-iqia/cableinspect-ad-code/src/enhanced-patchcore/src/anomalib/config/config.py official repository unverified Apache-2.0 (permissive) · 6d3c92b52fa4d6da · report
update_nncf_config mila-iqia/cableinspect-ad-code/src/enhanced-patchcore/src/anomalib/config/config.py official repository unverified Apache-2.0 (permissive) · 5179dd442c5dbf8b · report

Tasks

Anomaly Detection

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections