Datadory notebook

Railway defect detection image datasets, delivered training-ready

Datadory delivers rail transportation data covering every modality a railway defect detection programme consumes: gigabyte-scale labelled track-fault archives, Dutch infrastructure-manager fastener and insulation-joint photography, track defects boxed in YOLO format, region-aware CGAN synthetic surface-defect renders, the WHU Railway 3D point-cloud benchmark for LiDAR stacks, plus four decades of Federal Railroad Administration accident series and 302,771 network segments to georeference against - normalised into one schema with annotation structure intact, delivered daily, weekly, or hourly.

1,744 datasets. Pick your catch.

What counts as a railway defect detection image dataset?

A railway defect detection image dataset is a collection of photographs or video frames of track components - rail surface, fasteners, insulation joints, sleepers, foreign objects - with labels marking which regions show a fault. Three label styles dominate: binary classification (defective versus non-defective scene), object detection boxes in YOLO format, and segmentation masks. A fourth modality skips pixels entirely: LiDAR point clouds such as the WHU Railway 3D benchmark, where models hunt geometric anomalies instead of visual ones.

Within Datadory's fifteen-record Rail Transportation shelf, three records carry most of the vision workload. Kaggle Railway Datasets Collection (scored 7/10) holds the practitioner layer: gigabyte-scale image archives alongside operational tables. HuggingFace Railway Datasets (scored 6/10) is the machine-learning shelf proper: twenty-seven public collections leaning hard toward model inputs, YOLO-format defect boxes included. Data.gov US Rail Catalog (scored 9/10) supplies labels of a different kind - incident statistics reaching back to 1975 through the Federal Railroad Administration.

Set scale expectations by bytes, not marketing copy. The largest verified single archive is Ashik Adnan's fastener variant of Railway Track Fault Detection at 3.2 GB; Salman Ibne Eunus' original runs 2.1 GB; Oscar van Hees' insulation joint photographs run 1.9 GB. At the other end, Richard Bartels' ProRail fastener set is just 16.6 MB - small enough to train on a laptop GPU, which makes it the fastest honest way to learn whether your labelling scheme works before anyone commits to the multi-gigabyte corpora.

Which track-fault and fastener corpora does Datadory deliver?

Five named collections do most of the work in this niche:

  1. Railway Track Fault Detection (Salman Ibne Eunus) - 2,144,087,316 bytes, roughly 2.1 GB, of labelled defective and non-defective track scenes. The canonical starting point for binary classification approaches.
  2. Railway Track Fault Detection Dataset2 Fastener variant (Ashik Adnan) - about 3.2 GB, the largest verified archive in the niche, applying the same defective/non-defective split to fastener-focused imagery.
  3. Finding railway fasteners in image data - ProRail (Richard Bartels) - 16,558,223 bytes of real imagery from the Netherlands' infrastructure manager. Small, field-captured, and honest about how messy real capture looks.
  4. Insulation joint images (Oscar van Hees) - 1.9 GB, also ProRail-derived, covering a component class most general track sets ignore entirely.
  5. Indian Railway Failure Detection & Maintenance (Shambhuraje Jagadale) - 100,000 records across 27 MB of tabular maintenance context to sit beside any imagery corpus.

What does the machine-learning shelf add for track-defect vision models?

Twenty-seven public collections answer 'railway' on the HuggingFace shelf at research time (August 2026), and they skew toward machine-learning inputs rather than operating statistics - precisely why vision engineers should treat it as a shelf of its own rather than an afterthought. Everything arrives through Datadory under one uniform wrapper, author attribution preserved on every row.

The computer-vision cluster inside those 27:

  • ybli/yolo-railway-track-defect-object-detection - track defects boxed in YOLO format, ready for Ultralytics-style training loops without a relabelling pass.
  • aurora0403/Railway_Foreign_Object_Dataset - foreign object imagery on rights-of-way.
  • szhou-17/Region-Aware-CGAN-based-Synthetic-Rail-Surface-Defect-Dataset - synthetic rail surface defects generated with region-aware conditional GANs, useful for augmenting scarce real fault examples.
  • pranavtiwari417/VAJRA-AI-Railway-Safety-Dataset - safety-scenario imagery.
  • mominh/WHU-Railway3D-compressed - the WHU Railway 3D benchmark if your inspection stack is LiDAR rather than camera-based.
  • sirlab-ai simulated railway-forest-daylight renderings for domain randomisation.

How do you pair incident records with image labels?

Images teach a model what a crack looks like; incident statistics tell you where and how often faults become failures. The Data.gov US Rail Catalog resolves to about 547 rail-tagged federal records, led by more than 100 Federal Railroad Administration series - Highway-Rail Crossing Inventory, three Highway Rail Accidents variants, Rail Equipment Accidents and Railroad Equipment Safety among them.

Those FRA files arrive as plain CSV with national highway-rail accident rows reaching back to 1975 and per-State files from 1991. For European grounding, the European Union Agency for Railways publishes Common Safety Indicators spanning 2006 to 2024 across 347 distinct indicator codes as XLSX.

The practical join is geographic, not record-level: overlay your deployment corridor against FRA subdivision or crossing coordinates to decide which track sections your camera inspections sample first, then compare model-flagged hotspots against recorded incidents. A detector whose high-score corridors never overlap recorded accidents usually has a labelling problem, not a modelling one. Datadory delivers both sides against one schema, so the sanity check runs as a join rather than as a second integration project.

How does georeferencing turn detections into assets?

Every detected fault earns its keep only once it carries a segment identity - the difference between 'the model found something' and 'milepost X on subdivision Y needs a crew'. The NTAD North American Rail Network Lines record supplies that spine: 302,771 mapped segments across the US, Canada and Mexico, each attributed with operating railroad, trackage-rights holders, FRA district and measured segment length, scored 9/10 on Datadory's rubric.

Joining imagery positives onto network geometry also exposes the sampling bias every inspection corpus quietly carries. Community collections over-represent whichever corridors their maintainers photographed; incident statistics over-represent wherever reporting is disciplined. Holding both lets you see which gaps are yours and which belong to the data.

What does a working first-pass pipeline look like?

Six steps take a team from empty directory to a defensible first detector:

  1. Pick the corpus deliberately. Start from the 16.6 MB ProRail fastener set to validate the labelling scheme cheaply, then scale to the 2.1 GB and 3.2 GB track-fault archives once the pipeline survives contact with real imagery.
  2. Normalise the label scheme. Decide early whether the detector predicts binary scene classes or bounding boxes. Convert classification archives into box annotations only if labelling budget exists; otherwise start from the YOLO-format set as-is.
  3. Split by capture context, not randomly. Random splits leak near-duplicate frames between train and validation; hold out whole capture sessions so the metric reflects generalisation to unseen track.
  4. Augment with synthetic defects from the Region-Aware CGAN synthetic surface-defect set when real fault examples run thin - the standard remedy for classes too rare to photograph on demand.
  5. Georeference the positives onto NTAD's 302,771 attributed segments so every detection carries segment identity, operating railroad and FRA district.
  6. Sanity-check against incident rates using FRA equipment-accident series; disagreement between model-flagged hotspots and recorded incidents is diagnostic information, not noise.

Who builds on railway defect imagery?

Track-inspection engineering teams combine the defect-imagery sets, foreign-object catalogue and synthetic renders into training corpora sized beyond what any single upload provides, then georeference detections onto network geometry so findings route to crews.

Perception researchers evaluate against the WHU Railway 3D point-cloud benchmark and the detection sets so results compare across papers and vendors instead of against private fixtures.

Safety analytics groups overlay model-flagged corridors against four decades of FRA accident history, turning inspection output into maintenance prioritisation input.

The personas who lean hardest: Data Scientists & ML Engineers, who get labelled imagery and point clouds already shaped for training loops - see data scientists in rail transportation; Developers & Builders, wiring inspection output into asset systems - see developers and builders in rail transportation; and Market Researchers, sizing the track-inspection technology market - see market researchers in rail transportation.

How does Datadory deliver railway defect detection imagery?

API, files, or your warehouse. Daily, weekly, or hourly.

Imagery moves as versioned file deliveries with annotation structure intact, so image pipelines start on day one rather than week three; the tabular sides - catalog metadata, incident statistics, network geometry - land as typed rows against documented dictionaries. Most vision teams run a hybrid: a versioned corpus pull per training cycle, plus standing feeds on the incident side keyed to publication so the safety context stays current while the pixels stay frozen at a known vintage.

Where to go next

Start with the rail transportation data guide, which scores all fifteen records in this industry by quality, coverage and fit, then open the product pages behind every collection named above: Kaggle Railway Datasets Collection and HuggingFace Railway Datasets for the imagery, Data.gov US Rail Catalog for the incident statistics, and NTAD North American Rail Network Lines for the geometry spine. The ml model training playbook (/use-cases/ml-model-training) walks the modelling side. The rail transportation industry hub holds field dictionaries, sample rows and coverage chips for every record in the pool, and the best rail transportation datasets list ranks the whole shelf in one view.

Pick up where this leaves off

Every one of these ships with sample rows before you commit to anything.

Rail Transportation Global uploads - strongest for Indian Railways, with European…

Kaggle Railway Datasets Collection

Rail Transportation Global mix - India

HuggingFace Railway Datasets

Rail Transportation United States, with several BTS and FRA series extending into…

Data.gov US Rail Catalog

Rail Transportation EU member states plus Switzerland

European Union Agency for Railways (ERA)

Rail Transportation All 50 US states plus District of Columbia

NTAD North American Rail Network Lines

Want rows instead of a pitch? Name the datasets.

API, files, or your warehouse. Daily, weekly, or hourly.

Get a sample

Questions worth asking

What is the largest railway defect detection image dataset?

Ashik Adnan's fastener variant of Railway Track Fault Detection, at roughly 3.2 GB, followed by Salman Ibne Eunus' original at about 2.1 GB of labelled track scenes and Oscar van Hees' 1.9 GB insulation-joint photography. At the opposite pole sits Richard Bartels' 16.6 MB ProRail fastener set - small enough to train on a laptop GPU, which makes it the fastest way to validate a labelling scheme before committing to the multi-gigabyte corpora.

Which railway defect dataset works with YOLO?

ybli/yolo-railway-track-defect-object-detection ships track defects boxed in YOLO label format, so it plugs directly into Ultralytics-style training pipelines. The larger track-fault archives organise imagery as defective/non-defective scene folders instead, which suits binary classifiers more than localisation models out of the box; Datadory cuts them to box annotations during sample scoping where labelling budget allows.

Can these images be used in a production or commercial model?

Terms are declared per publishing author rather than by platform, so they get confirmed at sample scoping instead of assumed. Several large archives grant no explicit reuse terms at all, and thirteen of the twenty-seven cards on the machine-learning shelf declare none either. Datadory states the declared terms beside every delivered row and flags the collections where nothing explicit exists, which puts the production decision on evidence rather than hope. Government geometry like the NTAD North American Rail Network Lines carries no such ambiguity.

How often can railway defect imagery be delivered through Datadory?

Daily, weekly, or hourly - your call. The underlying collections are maintained snapshots rather than streaming feeds, so most vision teams take a versioned file delivery per training cycle and let the incident-statistics side move on a standing schedule keyed to publication. Successive cycles pin their vintages, so results stay reproducible.

Can defect imagery be combined with accident and network records?

Yes, and the companions are catalogued alongside it. Federal Railroad Administration highway-rail accident series reach back to 1975 with per-State files from 1991, the NTAD North American Rail Network Lines contributes 302,771 attributed segments for georeferencing, and the European Union Agency for Railways publishes Common Safety Indicators spanning 2006 to 2024. Datadory delivers them joined into one schema rather than as three separate integration projects.