YOLO-1D Weights for Eddy Current Rail Defectograms (ECRv1)
Pre-trained checkpoint of YOLO-1D, a 1-D anchor-free YOLO-style detector, for detecting constructive
track elements in multichannel eddy current defectograms. The model takes a raw 15-channel eddy current
record (int16, 1 sample = 1 mm of track, ~50 000 samples) and returns the detected objects as intervals
[begin, end] with a class and a confidence score.
It was trained and evaluated on our public dataset ECRv1 (Eddy Current Rail) using its fixed train / val / test split. The code, the training configs and the evaluation pipeline live in the source repository:
Source code: https://github.com/BystrovGladkov/YOLO1D
This checkpoint is the large model of the augmentation-ablation series trained with the full eddy-current
augmentation set (configuration A8, 50 epochs, seed 0), evaluated on the ECRv1 test split.
Files
| File | Description |
|---|---|
best.pt | PyTorch checkpoint (torch.save dict with keys model, ema, epoch). Selected by the best mAP@0.5:0.95 on the validation split (epoch 48 of 50). Inference uses the EMA weights. 14.5 M parameters, 111 MB. |
args.yaml | Full resolved TrainingSettings of the run (architecture, preprocessing/augmentation pipeline, optimizer, etc.). Needed to build the model before loading best.pt. |
metrics.json | Validation and test metrics of this run (mAP@0.5:0.95, mAP@0.5, P, R, per class) after plain NMS. |
metrics_pp.json | The same metrics with the optional nested-object post-processing (see below). |
noisy_test.json | Robustness check: metrics on the test split with synthetic square-wave interference added. |
LICENSE, NOTICE.txt | Apache License 2.0 and attribution notice. |
SHA-256 of best.pt: 270b7122a27e13a9dff10e479c964c74306b14fc8162c926123cf3fa81a5b619
Dataset and split
ECRv1 contains 2953 fragments of eddy current defectograms from 89 anonymised inspection passages, 15 channels each, with 11 646 annotated constructive elements. The split is the one published with the dataset (fragments are assigned to splits by ranges of fragment numbers within each passage); nothing was re-split for this model.
| Split | Passages | Signals | Length, km | Objects |
|---|---|---|---|---|
| train | 56 | 2099 | 103.6 | 8256 |
| val | 25 | 560 | 27.7 | 2183 |
| test | 16 | 294 | 14.4 | 1207 |
The validation split was used for checkpoint selection only; all numbers below are on the test split.
Classes. ECRv1 class ids are mapped to contiguous network classes; class names in the code are short aliases of the dataset names:
| Network class | ECRv1 id | ECRv1 name |
|---|---|---|
0 flashbutt | 1 | Flash-butt weld |
1 aluminothermic | 2 | Aluminothermic weld |
2 rail end | 3 | Bolted joint |
3 axle counter | 4 | Axle counter |
4 crossing | 5 | Crossing |
5 manual arc | 12 | Manual arc weld |
Model and training summary
| Setting | Value |
|---|---|
| Architecture | YOLO-1D large: DarkNet-style 1-D backbone (CSP blocks, SPP, PSA attention), FPN neck, anchor-free head with Distribution Focal Loss (16 bins) |
| Backbone strides | original preset → head strides 32 / 128 / 256 |
| Input | 30 channels × 49 152 samples: the 15 raw sensor channels plus 15 interference-suppressed channels produced by the preprocessing stage, resized from the 50 000-sample record |
| Preprocessing (built into the model's transform) | reference standardization, detection and substitution of dead channels, FastICA interference suppression (→ 15 "clean" channels), Fourier low-frequency alignment, threshold normalization, padding to 50 000 and resize to 49 152 |
| Classes | 6 (see table above) |
| Loss weights | box 10, cls 0.5, DFL 3; task-aligned assigner |
| Optimizer | SGD, momentum 0.937, weight decay 3.9e-4, lr 0.01 → 1e-4, 3 warm-up epochs, batch 50, mixed precision |
| Epochs | 50; best epoch 48 |
| EMA | decay 0.9999, tau 2000 |
| Augmentations (applied with probability 0.5 per sample) | random resize and crop, phase-spectrum noise, jitter, amplitude inversion, channel scaling, channel masking, time masking, mosaic, mix-up, sinusoidal interference, square-wave interference |
| Post-processing | 1-D NMS with IoU 0.65, boxes rescaled to the original sample grid; optionally, suppression of axle-counter / crossing detections nested inside a crossing (contain_* settings, threshold 0.8) |
| Training seed | 0 |
Full details are in args.yaml.
Metrics
Evaluation protocol: COCO-style AP with IoU thresholds 0.50:0.05:0.95 and 101-point PR interpolation,
macro-averaged over the 6 classes (mAP); mAP@50 is AP at IoU ≥ 0.5. Precision and recall in the per-class
tables are at confidence threshold 0.5 with IoU ≥ 0.5.
Test split (294 signals), plain NMS
| Class | Objects | AP@0.5:0.95 | AP@50 | P | R |
|---|---|---|---|---|---|
| flashbutt | 481 | 0.858 | 0.985 | 0.947 | 0.958 |
| aluminothermic | 543 | 0.911 | 0.994 | 0.969 | 0.987 |
| rail end (bolted joint) | 43 | 0.906 | 0.973 | 0.915 | 1.000 |
| axle counter | 58 | 0.603 | 0.977 | 0.964 | 0.931 |
| crossing | 39 | 0.852 | 0.924 | 0.655 | 0.923 |
| manual arc | 42 | 0.815 | 0.917 | 0.921 | 0.833 |
| macro average | 1206 | 0.824 | 0.962 | 0.895 | 0.939 |
Test split, with nested-object post-processing
Detections of axle counter and crossing whose length lies more than 80 % inside a more confident crossing
detection are removed (same checkpoint, metrics_pp.json).
| Class | Objects | AP@0.5:0.95 | AP@50 | P | R |
|---|---|---|---|---|---|
| flashbutt | 481 | 0.858 | 0.985 | 0.947 | 0.958 |
| aluminothermic | 543 | 0.911 | 0.994 | 0.969 | 0.987 |
| rail end (bolted joint) | 43 | 0.906 | 0.973 | 0.915 | 1.000 |
| axle counter | 58 | 0.622 | 0.978 | 0.964 | 0.931 |
| crossing | 39 | 0.876 | 0.953 | 0.818 | 0.923 |
| manual arc | 42 | 0.815 | 0.917 | 0.921 | 0.833 |
| macro average | 1206 | 0.831 | 0.967 | 0.922 | 0.939 |
Summary
| Evaluation | mAP@0.5:0.95 | mAP@50 |
|---|---|---|
| val, plain NMS | 0.841 | 0.965 |
| test, plain NMS | 0.824 | 0.962 |
| test, with post-processing | 0.831 | 0.967 |
| test + synthetic square-wave interference, plain NMS | 0.771 | 0.924 |
The last row is a robustness check: square-wave interference (as used in training augmentation, noise_seed = 0)
is added to every test record before preprocessing (noisy_test.json).
Usage
Installation, a ready-to-run inference example and the evaluation commands are described in the source
repository: https://github.com/BystrovGladkov/YOLO1D (branch EKG, sections Installation,
Quick Start → Run Defectogram Pipeline and Full Datasets & Training → Task 2).
In short: clone the repository, create the dataset manifest with data/prepare_ecr.py (it downloads ECRv1
from Hugging Face or points to a local copy), put best.pt and args.yaml from this release into a run folder
such as experiments/ec_ablation/runs/A8_s0/train1/, and follow the Quick Start snippet. Inputs are raw
int16 records of shape (15, L) as in ECRv1; the preprocessing (including ICA interference suppression) is
part of the model's transform and runs automatically. Outputs are [begin, end, confidence, class] in samples
of the original record (1 sample = 1 mm).
The checkpoint can also be loaded without the repository's Trainer: build the model from args.yaml and load
checkpoint["ema"]["ema_model_state_dict"] (or checkpoint["model"] for the raw, non-EMA weights). Note that
the network expects the 30-channel preprocessed input described above, not the raw 15 channels.
Intended use and limitations
- Research use: detection of constructive track elements (welds, bolted joints, axle counters, crossings,
manual arc welds) in 15-channel eddy current defectograms with the ECRv1 data format (1 mm sampling,
int16). The model was trained and validated on ECRv1 only; equipment with a different channel layout or sampling step is out of scope. - ECRv1 currently annotates constructive elements only. The model does not detect rail defects.
- Rare classes (bolted joint, axle counter, crossing, manual arc) have about 40–60 test objects each, so their per-class numbers carry a noticeable sampling uncertainty.
- Not a certified inspection tool. Not intended to replace a qualified NDT inspector.
Dataset attribution
ECRv1 — Eddy Current Rail dataset, curated by Gladkov A. N., Bystrov L. Y. and Kuzmin E. V. (Department of Theoretical Computer Sciences, P.G. Demidov Yaroslavl State University). https://huggingface.co/datasets/Nasochec/ECRv1 — licensed under CC BY 4.0. The data are not included in this release.
License
The weights and the accompanying files are released under the Apache License 2.0 (see LICENSE and
NOTICE.txt), the same license as the source code.
Copyright (c) 2026 P.G. Demidov Yaroslavl State University. Developed by Gladkov A. N., Bystrov L. Y., and Kuzmin E. V. (Department of Theoretical Computer Sciences).
Citation
If you use these weights, the architecture, the processing pipelines or the ECRv1 dataset, please cite the paper (currently submitted to Trudy ISP RAN / Proc. ISP RAS):
@article{Gladkov2027,
title = {Neural Network YOLO-1D for Useful Signals Detection on Eddy Current Rail Defectograms},
author = {Gladkov, Artemy N. and Bystrov, Leonid Y. and Kuzmin, Egor V.},
journal = {Trudy ISP RAN/Proc. ISP RAS},
year = {2027},
note = {Submitted}
}
Source code: https://github.com/BystrovGladkov/YOLO1D · Dataset: https://huggingface.co/datasets/Nasochec/ECRv1