Set Appropriate Thresholds for OK and NG Results

Once thresholds are set for the defect confidence chart, the Unsupervised Segmentation module can judge accordingly whether an image is OK, NG, or Unknown. In addition, a greater threshold of OK results indicates a smaller defect area identified by the algorithm. It is necessary to set appropriate thresholds for OK and NG results according to actual situations to obtain the optimal performance of the trained model.

Original image Threshold of OK results: 0.10 Threshold of OK results: 0.20

original image

OK threshold 2

OK threshold 1

In the defect confidence chart, the y-coordinate of the green curve stands for the ratio of the number of OK images with defect confidence higher than the value on the x-coordinate to the total number of OK images in the validation set. The y-coordinate of the red curve stands for the ratio of the number of NG images with defect confidence lower than the value on the x-coordinate to the total number of NG images in the validation set. If the two curves do not intersect, the OK and NG images can be completely separated by thresholds. In other words, it is possible to leave no images labeled as Unknown. In this case, the farther apart the two lines are from each other, the better.

Good result Poor result

good model performance

poor model performance

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.