Evaluating and Enhancing Segmentation Model Robustness with Metamorphic Testing

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Mzoughi, Seif, Elshafeia, Mohamed, Khomh, Foutse
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915225316360192
author Mzoughi, Seif
Elshafeia, Mohamed
Khomh, Foutse
author_facet Mzoughi, Seif
Elshafeia, Mohamed
Khomh, Foutse
contents Image segmentation is critical for applications such as medical imaging, augmented reality, and video surveillance. However, segmentation models often lack robustness, making them vulnerable to adversarial perturbations from subtle image distortions. In this work, we propose SegRMT, a metamorphic testing approach that leverages genetic algorithms (GA) to optimize sequences of spatial and spectral transformations while preserving image fidelity via a predefined PSNR threshold. Using the Cityscapes dataset, our method generates adversarial examples that effectively challenge the DeepLabV3 segmentation model. Our experiments show that SegRMT reduces DeepLabV3's mean Intersection over Union (mIoU) to 6.4%, outperforming other adversarial baselines that decrease mIoU to between 8.5% and 21.7%. Furthermore, when used for adversarial training, SegRMT boosts model performance, achieving mIoU improvements up to 73% on dedicated adversarial datasets and increasing cross-adversarial mIoU to 53.8%, compared to only 2%-10% for other methods. These findings demonstrate that SegRMT not only simulates realistic image distortions but also enhances the robustness of segmentation models, making it a valuable tool for ensuring reliable performance in safety-critical applications.
format Preprint
id arxiv_https___arxiv_org_abs_2504_02335
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Evaluating and Enhancing Segmentation Model Robustness with Metamorphic Testing
Mzoughi, Seif
Elshafeia, Mohamed
Khomh, Foutse
Computer Vision and Pattern Recognition
Software Engineering
Image segmentation is critical for applications such as medical imaging, augmented reality, and video surveillance. However, segmentation models often lack robustness, making them vulnerable to adversarial perturbations from subtle image distortions. In this work, we propose SegRMT, a metamorphic testing approach that leverages genetic algorithms (GA) to optimize sequences of spatial and spectral transformations while preserving image fidelity via a predefined PSNR threshold. Using the Cityscapes dataset, our method generates adversarial examples that effectively challenge the DeepLabV3 segmentation model. Our experiments show that SegRMT reduces DeepLabV3's mean Intersection over Union (mIoU) to 6.4%, outperforming other adversarial baselines that decrease mIoU to between 8.5% and 21.7%. Furthermore, when used for adversarial training, SegRMT boosts model performance, achieving mIoU improvements up to 73% on dedicated adversarial datasets and increasing cross-adversarial mIoU to 53.8%, compared to only 2%-10% for other methods. These findings demonstrate that SegRMT not only simulates realistic image distortions but also enhances the robustness of segmentation models, making it a valuable tool for ensuring reliable performance in safety-critical applications.
title Evaluating and Enhancing Segmentation Model Robustness with Metamorphic Testing
topic Computer Vision and Pattern Recognition
Software Engineering
url https://arxiv.org/abs/2504.02335