Skip to main content
. Author manuscript; available in PMC: 2021 Dec 22.
Published in final edited form as: Phys Med Biol. 2020 Dec 22;65(24):245037. doi: 10.1088/1361-6560/abc812

Algorithm 2.

Adaptive training scheme.

1. Train DNN for θ* by minimizing the loss function in equation (1);
for i = 1, 2, …, Nadapt do
2. Run Algorithm 1 for {pi*(k)i=1,2,,Ntrain,k=1,2,,K};
3. Find a set of perturbed samples P{xi+pi*(k)i=1,2,,Ntrain,k=1,2,,K} that were found vulnerable;
4. If P = ∅, set i = Nadapt;
 Otherwise, Set S = SP, update θ* over enlarged S by minimizing the loss function in equation (1);
end for
Output θ*