Skip to main content
. 2020 Dec 23;21(1):43. doi: 10.3390/s21010043
Algorithm 2 The learning process of SASAPD
Input: The training images Itrain, max-epochs E=12, the number of Itrain Ntrain, The testing image Itest and the
 groundtruth labels G
Output: The output prediction G, and its performance results GDice, GRecall, GPrecision and GFPS
 All the images are preprocessed according to the steps in Section 4.2.
Training Stage:
 Initialize the network weights, learning rate, batch size, and other parameters;
fori=1; t6; i++ do
  for j=1; jNtrain; j++ do
   Get the data batch from Itrain
   Compute loss function Ll (Equation (7))
   Each instance is assigned to the pyramid level which has the minimal loss Ll
   Train SASAPD by optimizing loss L (Equation (10)) where wl=1, and update the weights and parameters;
  end for
end for
for i=7; iE; i++ do
  for j=1; jNtrain; j++ do
   Get the data batch from Itrain
   Compute loss function Ll (Equation (7))
   Train SASAPD by optimizing loss L (Equation (10)), and update the weights and parameters;
  end for
end for
 Feed Itest into the well-trained SASAPD and then output the prediction segmentation G;
 Compute the performance results GDice (Equation (14)), GRecall (Equation (17)), GPrecision (Equation (17)) and running
 time GFPS
return GDice, GIoU, GRoC and GFPS.