Back to search

University of York

Generative models for unsupervised anomaly detection in temporal data

Abstract

dc:description.abstract

Line-scan imagery has become a core sensing modality in automated railway inspection, enabling high-resolution, continuous monitoring of track structures. Unlike conventional 2D images, line-scan images are constructed row-by-row as the camera moves along the track, forming temporally ordered sequences where the vertical axis encodes time and the horizontal axis represents spatial cross-sections. This spatiotemporal structure introduces unique challenges for anomaly detection, including subtle structural deviations, periodic object patterns, and high-frequency, non-informative background textures. To address these challenges, this thesis proposes two complementary generative frameworks for unsupervised anomaly detection in railway line-scan imagery. The first is a VAE-GAN model trained to predict future segments of track sequences based on temporal continuation. By learning normal structural dynamics, the model can identify deviations that violate expected continuity. A confidence-aware auxiliary decoder assigns pixel-wise certainty scores to guide the anomaly score, improving robustness against stochastic background textures such as ballast. The second approach leverages Stable Diffusion as a high-fidelity reconstruction model. By fine-tuning a pretrained latent diffusion inpainting model using LoRA (Low-Rank Adaptation), we adapt the generative process to grayscale, line-scan railway images. To localize anomalies, we introduce a segmentation-guided pipeline using FastSAM to detect object-level differences between original and inpainted images. Regions exhibiting significant structural changes, as measured by Intersection over Union (IoU), are flagged as anomalous. Both methods are evaluated on synthetic and real-world datasets, demonstrating their effectiveness in detecting structural faults under minimal supervision. The thesis concludes by comparing the two approaches, discussing their respective advantages, and proposing future directions for hybrid modeling. Overall, this work highlights the potential of generative modeling in addressing the unique demands of industrial inspection tasks involving line-scan imagery.

Degree

thesis:*
Name dc:type.qualificationname
Ph.D
Level dc:type.qualificationlevel
doctoral
Grantor dc:publisher.institution
University of York
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Xing, Zeyu
Advisors dc:contributor.advisor
  • Smith, William
  • Mehmood, Owais

Rights

Language dc:language.dcterms_iso639_2
eng

Chain of custody

source
Harvested from
White Rose University Consortium
Base URL
etheses.whiterose.ac.uk/cgi/oai2
Last updated
2026-11-18
Source record
OAI-PMH GetRecord
related terms
citation

Xing, Zeyu. Generative models for unsupervised anomaly detection in temporal data. doctoral thesis, University of York, 2025.