SegTest: Metamorphic Testing of Image Segmentation via Guided Instance-Level Test Data Augmentation

被引:0
作者
Hou, Zhonghao [1 ]
Wang, Xingya [1 ,2 ,3 ]
Zhang, Shijie [1 ]
Chen, Zhenyu [1 ]
机构
[1] Nanjing Univ, State Key Lab Novel Software Technol, Nanjing, Jiangsu, Peoples R China
[2] Nanjing Tech Univ, Coll Comp & Informat Engn, Coll Artificial Intelligence, Nanjing, Jiangsu, Peoples R China
[3] Army Engn Univ PLA, Coll Command & Control Engn, Nanjing, Jiangsu, Peoples R China
关键词
data augmentation; image segmentation software; metamorphic testing; test case generation; CONVOLUTIONAL NEURAL-NETWORKS;
D O I
10.1002/stvr.1910
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Image segmentation software (SegSoftware) is a kind of DNN-based image analysis software that aims to recognize the shapes and categories of instances according to their implicit semantic information. SegSoftware frequently uses in safety-critical fields. Therefore, we should provide adequate testing to SegSoftware. Due to the high cost of manually acquiring the testing oracle for SegSoftware, we employ metamorphic testing to detect its erroneous behaviour. This paper proposes SegTest, a metamorphic testing method that primarily addresses two major challenges in applying metamorphic testing to SegSoftware: (1) devising a method for generating derived test cases, which is the data augmentation approach, and (2) finding effective metamorphic relations for automatically generating the testing oracle. Regarding the former, SegTest utilizes an instance-level data augmentation method. It generates new test data by inserting annotated instances into the existing images. For ease of exposing erroneousness, we statistically analysed thousands of SegSoftware erroneous behaviours and formulated the guidance strategy of instance selecting and insertion positioning. As for the latter, this paper proposes a metamorphic relation to insert an instance at a position in an original image, where SegSoftware should accurately segment the inserted instance's contour and assign it the appropriate category while preserving the segmentation results of other regions unchanged. Our empirical study shows that SegTest can effectively detect thousands of erroneous behaviours of SegSoftware, and the formulated augmentation strategy achieves a 12.1%-14.1% improvement in SegSoftware erroneousness detection. SegTest also detects 7135 erroneous behaviours on the commercial IBM Segmenter, which verifies the effectiveness of erroneousness detection in practice.
引用
收藏
页数:19
相关论文
共 53 条
  • [1] Asanomi T., 2023, MixBag: BagLevel Data Augmentation for Learning From Label Proportions, P16570
  • [2] SegNet: A Deep Convolutional Encoder-Decoder Architecture for Image Segmentation
    Badrinarayanan, Vijay
    Kendall, Alex
    Cipolla, Roberto
    [J]. IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, 2017, 39 (12) : 2481 - 2495
  • [3] Enhancing MR image segmentation with realistic adversarial data augmentation
    Chen, Chen
    Qin, Chen
    Ouyang, Cheng
    Li, Zeju
    Wang, Shuo
    Qiu, Huaqi
    Chen, Liang
    Tarroni, Giacomo
    Bai, Wenjia
    Rueckert, Daniel
    [J]. MEDICAL IMAGE ANALYSIS, 2022, 82
  • [4] Chen S., 2021, Validation on Machine Reading Comprehension Software Without Annotated Labels: A PropertyBased Method, P590
  • [5] Chen TY, 2020, Arxiv, DOI [arXiv:2002.12543, DOI 10.48550/ARXIV.2002.12543]
  • [6] Fault-based testing without the need of oracles
    Chen, TY
    Tse, TH
    Zhou, ZQ
    [J]. INFORMATION AND SOFTWARE TECHNOLOGY, 2003, 45 (01) : 1 - 9
  • [7] The Cityscapes Dataset for Semantic Urban Scene Understanding
    Cordts, Marius
    Omran, Mohamed
    Ramos, Sebastian
    Rehfeld, Timo
    Enzweiler, Markus
    Benenson, Rodrigo
    Franke, Uwe
    Roth, Stefan
    Schiele, Bernt
    [J]. 2016 IEEE CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR), 2016, : 3213 - 3223
  • [8] Modeling Visual Context Is Key to Augmenting Object Detection Datasets
    Dvornik, Nikita
    Mairal, Julien
    Schmid, Cordelia
    [J]. COMPUTER VISION - ECCV 2018, PT XII, 2018, 11216 : 375 - 391
  • [9] InstaBoost: Boosting Instance Segmentation via Probability Map Guided Copy-Pasting
    Fang, Hao-Shu
    Sun, Jianhua
    Wang, Runzhong
    Gou, Minghao
    Li, Yong-Lu
    Lu, Cewu
    [J]. 2019 IEEE/CVF INTERNATIONAL CONFERENCE ON COMPUTER VISION (ICCV 2019), 2019, : 682 - 691
  • [10] Multi-Organ Segmentation Over Partially Labeled Datasets With Multi-Scale Feature Abstraction
    Fang, Xi
    Yan, Pingkun
    [J]. IEEE TRANSACTIONS ON MEDICAL IMAGING, 2020, 39 (11) : 3619 - 3629