Skip to main content
. 2023 Jul 11;23(14):6287. doi: 10.3390/s23146287
Algorithm 1: Categorize Image Dataset.
  • [SETcrc, SETmis, SETadv] = Category (Image dataset, DNN classification results)

  • Input:{x,rightlabel}CIFAR-100(testset),DNNmodelDNN(x),adv_attackAML(x)

  • Output: The three categories of image dataset according to DNN model classification and AML results.

  • Initialize SETcrc, SETmis, SETadv to be all empty

  • for image x CIFAR-100 do

  •     if DNN(x) is mispredict then

  •         SETmis ← x

  •     else

  •         if DNN(x) is correct and AML(x) fail then

  •            SETcrc ← x

  •         else

  •            SETadv ← x

  •         end if

  •     end if

  • end for

  • return [SETcrc, SETmis, SETadv]