EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

Dynamic Focal Loss adjustment for railway defect detection

MEHMET KOÇ, RIDVAN ÖZDEMİR, ÖMER GEREK

Turkish Journal of Electrical Engineering and Computer Sciences · 16.09.2026 · 34 (5) · 791-808

DOI: 10.55730/1300-0632.4276 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Turkish Journal of Electrical Engineering and Computer Sciences, online erschienen am 16.09.2026. Verfasst von MEHMET KOÇ und 2 weiteren Autor:innen. Die Arbeit nennt 41 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Railway infrastructure is critical to the safe and efficient operation of transportation systems, and the early detection of defects is essential for preventing catastrophic failures. Automated defect detection methods are therefore crucial for maintaining continuous safety while reducing maintenance costs. Although Focal Loss is widely used in object detection under class-imbalanced conditions, its fixed α parameter may limit its effectiveness in detecting rare defects. In this study, we propose an adaptive α-tuned Focal Loss approach that dynamically adjusts class weights based on average precision (AP) values. By iteratively optimizing α without relying on gradient-based optimization, the proposed method improves the recall of underrepresented defect classes. The theoretical foundations of the proposed optimization are also investigated, including its formulation as a bilevel optimization problem. The proposed method is applied to automated railway defect detection using real-world infrastructure data. To enhance robustness and generalizability, the experimental framework incorporates online data augmentation and 5-fold cross-validation, achieving a stable mean average precision (mAP) of 93.42% ± 0.45%. Comparative visual analyses further demonstrate the model's ability to localize critical defects that are overlooked by baseline methods. Furthermore, a nonlinear relationship between α and AP is modeled through fitted curve analysis, highlighting the importance of dynamic class weighting in improving detection performance.

Zitieren

APA

KOÇ, M., ÖZDEMİR, R., & GEREK, Ö. (2026). Dynamic Focal Loss adjustment for railway defect detection. Turkish Journal of Electrical Engineering and Computer Sciences, 34(5), 791-808. https://doi.org/10.55730/1300-0632.4276

Vancouver

KOÇ M, ÖZDEMİR R, GEREK Ö. Dynamic Focal Loss adjustment for railway defect detection. Turkish Journal of Electrical Engineering and Computer Sciences. 2026;34(5):791-808. doi:10.55730/1300-0632.4276

BibTeX
@article{KO2026,
  author = {KOÇ, MEHMET and ÖZDEMİR, RIDVAN and GEREK, ÖMER},
  title = {Dynamic Focal Loss adjustment for railway defect detection},
  journal = {Turkish Journal of Electrical Engineering and Computer Sciences},
  year = {2026},
  volume = {34},
  number = {5},
  pages = {791--808},
  doi = {10.55730/1300-0632.4276}
}
Kostenlos starten →