Introduction
To reveal some of the dataset’s features that consist of mostly linear “zones” parallel to the y-axis (in computer vision the axes are flipped relative to the ones in Euclidean geometry) we can apply a range of well-known feature extraction methods from the original images to produce new images that highlight simple features such as edges and line segments. In the literature such feature extraction methods are divided into transform-based and backbone-based. Transform-based methods are simpler and aim to reveal features at raw pixel level such as edges or parametric level such as line segments. Backbone-based methods rely on a backbone neural network and produce parametric features such as line segments or lines. The reasons we embarked in this exercise is twofold:- We can use the new transform-based images as input to downstream AD tasks. The transformed images can be used by themselves in interpretable AD schemes that rely on characterizing in a discriminative way the edges or the lines of each machine setting.
- The images we had at our disposal are blurry and such transforms may offer a downstream task a better chance to discriminate the anomalous from the nominal images.
Edge Detection - Sobel Transform
The Sobel transform is a well-known edge detection algorithm that is used in computer vision to detect edges in images. The Sobel operator is a discrete differentiation operator, computing an approximation of the gradient of the image intensity function. The operator is based on convolving the image with a small, separable, and integer-valued filter in the horizontal and vertical directions and is therefore relatively inexpensive in terms of computational cost. At each point in the image, the result of the Sobel–Feldman operator is either the corresponding gradient vector or the norm of this vector.Transformation Results
The Sobel transform can be applied to the Seamagine dataset images to highlight edges in the seam zones.Edge and Line Detection - Canny & Hough Transforms
In this section we look at another edge detection algorithm, the Canny edge detection algorithm paired with the Hough Transform for line detection. These two algorithms typically are applied together and result in a parametric representation of the edges in the image. The Canny edge detection algorithm is a widely used technique in computer vision for detecting edges in images. It works by identifying areas of rapid intensity change, which typically correspond to edges. The process involves several steps:- Applying Gaussian smoothing to reduce noise
- Calculating intensity gradients
- Applying non-maximum suppression to thin the edges
- Using double thresholding to identify strong and weak edges
- Edge tracking to connect the weak edges to strong ones
Parametric Line Detection - SOLD²
SOLD² is a state-of-the-art framework for detecting and describing line segments in images. Unlike traditional methods that focus solely on detection, it is designed to simultaneously detect line segments and learn robust descriptors for matching them across different images. SOLD² is a backbone-based feature extraction method and uses a heatmap-based approach to detect line segments, combined with a descriptor learning module for feature matching. The framework is end-to-end trainable and can be fine-tuned to the specific dataset. Its sensitivity and accuracy can be adjusted through parameters such as confidence thresholds and non-maximum suppression.Due to time constraints no finetuning was performed on the pretrained models.

