Skip to main content
. 2020 Mar 30;11:10. doi: 10.4103/jpi.jpi_53_19

Algorithm 1.

Epithelial segmentation

Preprocess
Generate (n,m) patches with stride s
Calculate the respective ground-truth probabilities
graphic file with name JPI-11-10-g015.jpg
Train
Initialize weights and bias
For i=1: N_epochs, do
 Forward pass, predict Inline graphic
 L1 Loss: Inline graphic
 Backpropagate,
 Update weights with Adadelta optimizer: Inline graphic
End for
Save model and weights
Test
Load model and weights
Pad image: Inline graphic
Slice image to p,q subimages,
graphic file with name JPI-11-10-g020.jpg
Generate (n,m) patches with stride 4
Predict the probability of each pixel
Combine the predictions to form a gradient mask
Upscale the mask by factor of 4
Post-process
Threshold the mask
Smooth the mask edges with quadratic Bezier curve,
graphic file with name JPI-11-10-g021.jpg