View full-text article in PMC Foods. 2024 Dec 14;13(24):4039. doi: 10.3390/foods13244039 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm 1 Training Stage 1 Require: D, modelθ ▹ Dataset 1:for epoch in {0,1,⋯,E} do 2: for all batch in D do 3: eggs←batch[0] ▹ 3D CT egg image 4: seg_mask←batch[1] ▹ 3D CT Segmentation Mask 5: predicted_mask←modelθ(eggs) ▹ Makes a prediction 6: loss←loss(seg_masks,predicted_mask) 7: model.backprop(loss) 8: end for 9:end for 10:Output modelθ