Back to the TÜBİTAK RUTE internship

05TÜBİTAK RUTE · Image processing

Brake pad defectsegmentation.

Find the pad. Then inspect its surface. A two-stage workflow that turns an image into readable defect masks and a thickness output.

Context
TÜBİTAK RUTE · Internship
Task
Pad and defect segmentation
Defect model
YOLOv11l-seg
Output
Stain · Crack · Thickness (px)

My contribution

I annotated the data, trained and evaluated the models, and developed the full workflow from pad extraction to defect masks and result visualization.

05Combined outputRUTE
Sample 74.png with stain and crack predictions, thickness lines and an analysis summary.
Final output for sample 74.png. Defect predictions and thickness in pixels appear on the same image.

01Data and problem

Start with the right region.

The pad occupies only a small part of the image. Stains and cracks are smaller details within that region.

I prepared pad and defect annotations. The first model extracts a pad mask and crops the image to that region; this region of interest becomes the second model’s input.

01ROIRUTE
A full railway component image with the pad region marked in red on the left; the cropped pad on the right.
From the full image to the region of interest (ROI). The defect model processes the cropped pad.

02The processing flow

Two models. One result.

The pad mask feeds both the crop and the thickness calculation. Defect masks are mapped back to the original image coordinates.

02Actual analysis outputs01 / 05
The unannotated original brake pad image, from the first panel of the report.

01 · Image — The original frame entering the analysis.

The second panel showing the first model’s pad region in green with a confidence label.

02 · Pad — The brake pad region marked by the first model.

Cropped pad with letterbox padding and the original box describing ROI size, scale and padding.

03 · ROI + Letterbox — The crop and aspect-preserving padding, with the source information box intact.

The fourth panel with a red stain prediction on the pad ROI and its stain: 1 information box.

04 · Defects — The second model’s stain prediction within the ROI.

The final panel with pad, defect and thickness markings mapped back to the original frame, including summary text.

05 · Coordinates + Result — Markings mapped back to the original frame and the final output.

01 · Image — The original frame entering the analysis.
Two stagesYOLO · ROI
  1. ImageFull frame
  2. PadFirst segmentation
  3. ROICrop from mask
  4. LetterboxPreserve aspect ratio
  5. DefectsStain and crack masks
  6. CoordinatesMap to the full frame
  7. ResultMasks + pixel measure
The diagram explains the processing sequence; the five panels are actual analysis outputs from the report.

03Model output

Two traces on the surface.

Stains and cracks are marked as separate classes. Predictions across different pads make the model’s output visible.

03Stain / CrackRUTE
Validation predictions on cropped pads showing stain and crack masks with confidence scores.
Example predictions from the defect dataset’s validation split. Colored regions are predicted masks; numbers are prediction confidence.

ROI defect dataset · Validation split · YOLOv11l-seg

Mask mAP@0.5
90.83%
Mask mAP@0.5:0.95
57.93%

These scores describe only the defect segmentation stage. They are not full-pipeline or independent test results; the report does not specify the validation image count. I split the data before augmentation, keeping all copies of each image in the same split.

04Experiments

One problem, different scales.

On the way to the final workflow, I explored different segmentation approaches on full images and cropped regions.

DeepLab

With DeepLab, I explored single-stage segmentation directly from the full image.

04aFull imageRUTE
Full image, ground truth and predicted mask side by side in the DeepLab experiment.
Single-stage DeepLab experiment on a full image · Input / ground truth / prediction.

SegFormer

With SegFormer, I examined ROI masks and the visibility of small defects.

04bROIRUTE
Cropped pad, ground truth and predicted mask side by side in the SegFormer experiment.
SegFormer experiment on an ROI · Input / ground truth / prediction.

05From mask to measurement

A boundary becomes a measure.

The pad mask provides more than a location. I also used its image boundary to produce a thickness output in pixels.

05ThicknessRUTE
Before and after views of the same image, with a pad boundary and a 110.88 px thickness label on the right.
Original before/after pair. The displayed value is 110.88 px for this sample, which differs from the opening 74.png sample.

This is a prototype pixel measurement. No physical calibration, millimeter measurement or measurement-accuracy claim is made.

06The resulting work

From annotation to analysis.

  1. 01

    Data preparation

    Preparation from pad and defect annotations through to training inputs.

  2. 02

    Model experiments

    Exploration of YOLO segmentation, DeepLab and SegFormer approaches.

  3. 03

    Two-stage workflow

    Pad masks, ROI extraction, defect analysis and coordinate mapping.

  4. 04

    Readable output

    A visualization bringing defect masks and pixel measurements together.

An image-processing prototype developed during the internship. Small defects and mask boundaries remain areas for improvement; field deployment and maintenance-decision validation are outside this case’s scope.

Contact

Let’s buildthe next system together.

As an engineer focused on turning AI models into systems that work in the real world, I’m open to new opportunities and technical collaborations. If you work on computer vision, edge AI or applied machine learning, I’d be glad to connect.

Muhammed Ali Yıldırım

Applied AI / ML Engineering

Back to top