Semi-Supervised Defect Segmentation with Pairwise Similarity Map Consistency and Ensemble-Based Cross-Pseudo Labels (simEps)
In this study, we propose a novel method based on pairwise similarity map consistency with ensemble-based cross-pseudo labels for semisupervised defect segmentation that uses limited labeled samples while exploiting additional label-free samples. The proposed approach uses three network branches that are regularized by pairwise similarity map consistency, and each of them is supervised by the pseudo labels generated by ensemble of predictions of the other two networks for the unlabeled samples. The proposed method achieved significant performance improvement over the baseline of learning only from the labeled images and the current stateof-the-art semi-supervised methods.
The overall architecture of the proposed method with three parallel netwroks is presented as follows:
Fig. 1: The overall framework of the proposed method. The labeled and unlabeled samples are fed to the networks to generate multi-scale outputs, Pe, Pd and Po. (a) The supervised segmentation loss (
The pairwise similarity map consistecy loss among the parallel networks at three stages is illustrated in the following figure.
Fig. 2: Paiwrwise similarity map consistency loss computation.
You can read the details about the methods, implementation, and results from: (https://ieeexplore.ieee.org/document/9994033)
Please cite ourwork as follows:
@article{sime2022semi,
title={Semi-Supervised Defect Segmentation with Pairwise Similarity Map Consistency and Ensemble-Based Cross-Pseudo Labels},
author={Sime, Dejene M and Wang, Guotai and Zeng, Zhi and Wang, Wei and Peng, Bei},
journal={IEEE Transactions on Industrial Informatics},
year={2022},
publisher={IEEE}
}
PyTorch >= 1.1.0 PyYAML, tqdm, tensorboardX
Download datasets. There are 3 datasets to download:
Put downloaded data into the following directory structure:
- data/
- NEU_data/ ... # raw data of NEU-Seg
- DAGM_data/ ...# raw data of DAGM
- MTiles_data/ ...# raw data of MTiles
The training files and settings for each compared network is presented in separate directory. Train each network and test from the presented directory. To train the proposed simEps method run the following after setting hyperparameters such as labeled-ratio, iteration-per-epoch, consistency ramp length, and pair-wise-similarity loss coefficient.
python simEps_train.py
To test the performance of the proposed method:
run simEps_Testing.ipynb
To evaluate and visualize the pairwise similarirty map:
run simEps_evalaute.ipynb
Similarly, train the proposed method, simEps, for the other datasets from the indicated directories after setting appropriate hyper-parametres.
The results of the proposed method compared with the supervised baseline is presented as follows:
Fig. 3: Results from the proposed method vs. the supervised baseline on the NEU-Seg dataset.
Fig. 4: Comparison of results using different baseline networks (DLV3+ and UNet).
The visualization of the segmetnation results for the baseline, selected semi-supervised methods and our proposed method with the NEU-Seg dataset is presented as follows.
Fig. 5: Visualization of segmentation results on the NEU_seg dataset.
Fig. 6: Visualization of paiwrwise similarity map computed at multi-stages after training.
This repo borrowed many implementations from SSL4MIS
For any issue please contact me at [email protected]