Optimizing 3D UNet Parameters for Cranial Defect Reconstruction
Abstract
1. Introduction
2. Previous Work
3. Materials and Methods
3.1. Research Pipeline
3.2. Data Preprocessing
3.2.1. Cropping
3.2.2. Resampling
3.2.3. Noise Processing
3.3. Defect Generation
3.3.1. Defect Morphology Simulation
- Cylindrical defect: A circular cylinder with a radius of voxels and height voxels.
- Ellipsoidal defect: An ellipsoid with semi-axes voxels.
- Cuboidal defect: A rectangular box with an edge length of 80 voxels.
- Noisy cylindrical defect: A cylindrical mask with boundary perturbations introduced by noisy_mask().
- Noisy ellipsoidal defect: An ellipsoidal mask with stochastic boundary deformations.
3.3.2. Noisy Defective Skull
3.3.3. Denoised Defective Skull
3.4. 3D UNet
3.4.1. 3D UNet Architecture
Network Architecture and Training Setup
3.4.2. Kernel Size
3.4.3. Dice Loss and Hybrid Combinations of Dice Loss and Boundary Loss
Similarity Coefficient (DSC)
Hausdorff Distance (HD)
3.4.4. Three Data-Centric Training Configurations
- Noisy samples with diverse defect morphologies: This group includes 1250 samples generated from non-denoised data, incorporating five defect types across the five anatomical regions (250 samples per region).
- Denoised samples with ellipsoidal defects: This group consists of 1250 samples generated from denoised data, where a single ellipsoidal defect is applied at each anatomical region (250 samples per region).
- Denoised samples with multiple defect morphologies: This group includes 1250 samples generated from denoised data, incorporating multiple defect types across the five anatomical regions (250 samples per region).
3.4.5. Experimental Setup
4. Results and Discussion
4.1. Effect of Denoising on Model Stability
4.2. Effect of Training Data Arrangement
4.3. Effect of Defect Morphology in Training
4.4. Influence of Kernel Size on Accuracy and Efficiency
4.5. Loss Function Selection
4.6. Summary of Findings
5. Conclusions and Future Works
6. Contributions
- The impact of kernel size and loss function design on reconstruction accuracy is quantitatively analyzed.
- A boundary-aware loss function is shown to significantly improve implant surface continuity.
- The proposed model achieves competitive performance, demonstrating its suitability for clinical applications.
- A controlled optimization framework is proposed, where five factors (denoising, data arrangement, morphology diversity, kernel size, loss function) are evaluated independently and jointly.
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Goiato, M.C.; Anchieta, R.B.; Pita, M.S.; dos Santos, D.M. Reconstruction of skull defects: Currently available materials. J. Craniofacial Surg. 2009, 20, 1512–1518. [Google Scholar] [CrossRef]
- Aydin, S.; Kucukyuruk, B.; Abuzayed, B.; Aydin, S.; Sanus, G.Z. Cranioplasty: Review of materials and techniques. J. Neurosci. Rural. Pract. 2011, 2, 162. [Google Scholar] [CrossRef]
- Winkler, P.A.; Stummer, W.; Linke, R.; Krishnan, K.G.; Tatsch, K. The influence of cranioplasty on postural blood flow regulation, cerebrovascular reserve capacity, and cerebral glucose metabolism. Neurosurg. Focus 2000, 8, 1–9. [Google Scholar] [CrossRef]
- Safi, S.; Ali, A.; Abdelhafez, I.; Salam, A.; Alrabayah, T.; Alyafei, A.; Belkhair, S. Predictors of clinical outcomes in autologous cranioplasty. World Neurosurg. 2022, 167, e561–e566. [Google Scholar] [CrossRef] [PubMed]
- Zanotti, B.; Zingaretti, N.; Verlicchi, A.; Robiony, M.; Alfieri, A.; Parodi, P.C. Cranioplasty: Review of materials. J. Craniofacial Surg. 2016, 27, 2061–2072. [Google Scholar] [CrossRef] [PubMed]
- Khader, B.A.; Towler, M.R. Materials and techniques used in cranioplasty fixation: A review. Mater. Sci. Eng. C 2016, 66, 315–322. [Google Scholar] [CrossRef] [PubMed]
- Kurtz, S.M.; Devine, J.N. PEEK biomaterials in trauma, orthopedic, and spinal implants. Biomaterials 2007, 28, 4845–4869. [Google Scholar] [CrossRef]
- Nolden, E.L.; Guimarães Carvalho, B.K.; Barkovskij-Jakobsen, K.S.; Wenning, A.S.; Szentes, B.L.; Agócs, G.; Németh, Z.; Kivovics, M.; Hegyi, P.; Köles, L.; et al. Comparative Safety and Efficacy of Patient-Specific Versus Hand-Molded Implants in Cranioplasty: A Systematic Review and Meta-Analysis. J. Clin. Med. 2025, 14, 8655. [Google Scholar] [CrossRef]
- Kim, C.N.T.; Binh, C.X.; Dung, V.T.; Toan, T.V. Design and mechanical evaluation of a large cranial implant and fixation parts. Interdiscip. Neurosurg. 2023, 31, 101676. [Google Scholar] [CrossRef]
- Jindal, P.; Bhattachar, A.; Singh, M.; Pareek, D.; Watson, J.; O’Connor, R.; Breedon, P.; Reinwald, Y.; Juneja, M. Unilateral cranial defect bone reconstruction using 3D designing and manufacturing. Trans. Addit. Manuf. Meets Med. 2022, 4, 655. [Google Scholar] [CrossRef]
- Abdullah, J.Y.; Abdullah, A.M.; Hueh, L.P.; Husein, A.; Hadi, H.; Rajion, Z.A. Cranial implant design applying shape-based interpolation method via open-source software. Appl. Sci. 2021, 11, 7604. [Google Scholar] [CrossRef]
- Nguyen, L.H.; Le, T.D.; Hoang, H.H.; Nguyen, H.T.; Cuc, N.T.K. Investigate on Skull Defect Reconstruction Technologies. In Proceedings of the 2024 IEEE 11th International Conference on Computational Cybernetics and Cyber-Medical Systems (ICCC); IEEE: Piscataway, NJ, USA, 2024; pp. 000295–000300. [Google Scholar] [CrossRef]
- Juneja, M.; Singla, I.; Poddar, A.; Pandey, N.; Goel, A.; Sudhir, A.; Bhatia, P.; Singh, G.; Kharbanda, M.; Kaur, A.; et al. A comprehensive AI framework for superior diagnosis, cranial reconstruction, and implant generation for diverse cranial defects. Bioengineering 2025, 12, 188. [Google Scholar] [CrossRef]
- Oteiza, J.Z.; Zimmermann, C.J.; Thieringer, F.M.; Sharma, N. Harnessing generative design algorithms in cranioplasty. Trans. Addit. Manuf. Meets Med. 2024, 6, 1803. [Google Scholar] [CrossRef]
- Wodzinski, M.; Hemmerling, D.; Daniol, M. Automatic cranial defect reconstruction with self-supervised deep deformable masked autoencoders. In Proceedings of the 2024 46th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC); IEEE: Piscataway, NJ, USA, 2024; pp. 1–4. [Google Scholar] [CrossRef]
- Wang, J.; Ruhaiyem, N.I.R.; Fu, P. A comprehensive review of U-Net and its variants: Advances and applications in medical image segmentation. IET Image Process. 2025, 19, e70019. [Google Scholar] [CrossRef]
- Liu, J.; Yan, Z.; Zhou, C.; Shao, L.; Han, Y.; Song, Y. mfeeU-Net: A multi-scale feature extraction and enhancement U-Net for automatic liver segmentation from CT Images. Math. Biosci. Eng. 2023, 20, 7784–7801. [Google Scholar] [CrossRef]
- Li, J.; Pepe, A.; Gsaxner, C.; Campe, G.v.; Egger, J. A baseline approach for autoimplant: The miccai 2020 cranial implant design challenge. In Proceedings of the Workshop on Clinical Image-Based Procedures; Springer: Berlin/Heidelberg, Germany, 2020; pp. 75–84. [Google Scholar] [CrossRef]
- Matzkin, F.; Newcombe, V.; Glocker, B.; Ferrante, E. Cranial implant design via virtual craniectomy with shape priors. In Cranial Implant Design Challenge; Springer: Berlin/Heidelberg, Germany, 2020; pp. 37–46. [Google Scholar] [CrossRef]
- Wodzinski, M.; Daniol, M.; Socha, M.; Hemmerling, D.; Stanuch, M.; Skalski, A. Deep learning-based framework for automatic cranial defect reconstruction and implant modeling. Comput. Methods Programs Biomed. 2022, 226, 107173. [Google Scholar] [CrossRef]
- Wu, C.T.; Yang, Y.H.; Chang, Y.Z. Three-dimensional deep learning to automatically generate cranial implant geometry. Sci. Rep. 2022, 12, 2683. [Google Scholar] [CrossRef] [PubMed]
- Mazzocchetti, S.; Bevini, M.; Badiali, G.; Lisanti, G.; Di Stefano, L.; Salti, S. Automatic implant generation for cranioplasty via occupancy networks. IEEE Access 2024, 12, 95185–95195. [Google Scholar] [CrossRef]
- Wu, C.T.; Yang, Y.H.; Chang, Y.Z. Creating high-resolution 3D cranial implant geometry using deep learning techniques. Front. Bioeng. Biotechnol. 2023, 11, 1297933. [Google Scholar] [CrossRef] [PubMed]
- Wodzinski, M.; Kwarciak, K.; Daniol, M.; Hemmerling, D. Improving deep learning-based automatic cranial defect reconstruction by heavy data augmentation: From image registration to latent diffusion models. Comput. Biol. Med. 2024, 182, 109129. [Google Scholar] [CrossRef]
- Resmi, S.; Singh, R.P.; Palaniappan, K. Automatic skull shape completion of defective skulls using transformers for cranial implant design. Procedia Comput. Sci. 2024, 235, 3305–3314. [Google Scholar] [CrossRef]
- Wodzinski, M.; Daniol, M.; Hemmerling, D. Automatic skull reconstruction by deep learnable symmetry enforcement. Comput. Methods Programs Biomed. 2025, 263, 108670. [Google Scholar] [CrossRef]
- Kesornsri, T.; Asawalertsak, N.; Tantisereepatana, N.; Manowongpichate, P.; Lohwongwatana, B.; Puncreobutr, C.; Achakulvisut, T.; Vateekul, P. CraNeXt: Automatic reconstruction of skull implants with skull categorization technique. IEEE Access 2024, 12, 84907–84922. [Google Scholar] [CrossRef]
- Freire, V.; Moser, T.P.; Lepage-Saucier, M. Radiological identification and analysis of soft tissue musculoskeletal calcifications. Insights Into Imaging 2018, 9, 477–492. [Google Scholar] [CrossRef]
- Bedwani, S.; Blais, D.; Roberge, D.; DeBlois, F. Eliminating computed tomography imaging artifacts through 3D printed radiotherapy head supports. J. Appl. Clin. Med. Phys. 2020, 21, 248–252. [Google Scholar] [CrossRef]
- Ma, X.; Figl, M.; Unger, E.; Buschmann, M.; Homolka, P. X-ray attenuation of bone, soft and adipose tissue in CT from 70 to 140 kV and comparison with 3D printable additive manufacturing materials. Sci. Rep. 2022, 12, 14580. [Google Scholar] [CrossRef] [PubMed]
- Sharif, S.; Naqvi, R.A.; Biswas, M. Learning medical image denoising with deep dynamic residual attention network. Mathematics 2020, 8, 2192. [Google Scholar] [CrossRef]
- Yu, Y.; Khadivi, S.; Xu, J. Can data diversity enhance learning generalization? In Proceedings of the 29th International Conference on Computational Linguistics; International Committee on Computational Linguistics: New York, NY, USA, 2022; pp. 4933–4945. [Google Scholar] [CrossRef]
- Juneja, M.; Poddar, A.; Kharbanda, M.; Sudhir, A.; Gupta, S.; Joshi, P.; Goel, A.; Fatma, N.; Gupta, M.; Tarkas, S.; et al. SCAI-Net: An AI-driven framework for optimized, fast, and resource-efficient skull implant generation for cranioplasty using CT images. Comput. Biol. Med. 2025, 194, 110504. [Google Scholar] [CrossRef] [PubMed]
- Thulung, S.; Ranabhat, K.; Bishokarma, S.; Gongal, D.N. Morphometric measurement of cranial vault thickness: A tertiary hospital based study. JNMA J. Nepal Med. Assoc. 2019, 57, 29. [Google Scholar] [CrossRef]
- Chang, E.; Yeh, H.; Demberg, V. Does the order of training samples matter? Improving neural data-to-text generation with curriculum learning. arXiv 2021, arXiv:2102.03554. [Google Scholar] [CrossRef]
- Kervadec, H.; Bouchtiba, J.; Desrosiers, C.; Granger, E.; Dolz, J.; Ayed, I.B. Boundary loss for highly unbalanced segmentation. In Proceedings of the International Conference on Medical Imaging with Deep Learning; Proceedings of Machine Learning Research (PMLR): New York, NY, USA, 2019; pp. 285–296. [Google Scholar] [CrossRef]
- Dice, L.R. Measures of the Amount of Ecologic Association Between Species. Ecology 1945, 26, 297–302. [Google Scholar] [CrossRef]
- Huttenlocher, D.P.; Klanderman, G.A.; Rucklidge, W.J. Comparing images using the Hausdorff distance. IEEE Trans. Pattern Anal. Mach. Intell. 1993, 15, 850–863. [Google Scholar] [CrossRef]
- Mainprize, J.G.; Fishman, Z.; Hardisty, M.R. Shape completion by U-Net: An approach to the AutoImplant MICCAI cranial implant design challenge. In Cranial Implant Design Challenge; Springer: Berlin/Heidelberg, Germany, 2020; pp. 65–76. [Google Scholar] [CrossRef]
- Ellis, D.G.; Aizenberg, M.R. Deep learning using augmentation via registration: 1st place solution to the AutoImplant 2020 challenge. In Cranial Implant Design Challenge; Springer: Berlin/Heidelberg, Germany, 2020; pp. 47–55. [Google Scholar] [CrossRef]










| Year | Author | Dataset | Network | Methodology | Merits | Demerits |
|---|---|---|---|---|---|---|
| 2020 | Jianning Li et al. [18] | 200 skulls (CQ500) | CNN | Two-stage direct implant prediction: (1) coarse implant estimation from downsampled skulls; (2) fine prediction on cropped defect regions. | Practical design suitable for limited GPU resources; direct implant prediction without geometric subtraction. | Limited generalization to unseen defect patterns; inferior performance compared with later shape-completion-based methods. |
| 2020 | Franco Matzkin et al. [19] | 200 skulls (CQ500) | DE-UNet | Self-supervised learning via virtual craniectomy; direct implant estimation enhanced with atlas-based shape priors. | High accuracy; improved robustness for out-of-distribution cases; no need for real implant ground truth. | Strong dependence on atlas registration; shape priors may reduce average accuracy on in-distribution data. |
| 2022 | Marek Wodzinski et al. [20] | AutoImplant 2021 | 3D Residual UNet | Extensive data augmentation using cross-case (imperfect) image registration and VAE-based data synthesis. | Excellent generalization to real clinical cases; demonstrates the critical role of data augmentation over network design. | No novel reconstruction architecture; requires large datasets; limited performance for very large or highly asymmetric defects. |
| 2022 | Chieh-Tsai Wu et al. [21] | 73 clinical CT scans | UNet/V-Net | Supervised learning with paired intact skulls and synthetically generated defects (virtual craniectomy). | Lightweight architecture; minimal post-processing required. | Low spatial resolution; strong dependence on simple synthetic defect shapes. |
| 2023 | Stefano Mazzocchetti et al. [22] | SkullFix, SkullBreak | 3D UNet | Two-step pipeline: (1) full skull reconstruction from defective skulls; (2) implant generation via geometric subtraction. | Simple and stable pipeline; no requirement for real implant data. | Strong reliance on synthetic defects; lack of explicit geometric or anatomical constraints. |
| 2023 | Chieh-Tsai Wu et al. [23] | SkullFix, SkullBreak | 3D UNet | Two-stage reconstruction with high-resolution refinement; implant obtained via Boolean subtraction. | High-resolution implants; stable performance; effective for large defects. | More complex two-stage pipeline; sutures are not reconstructed; reduced accuracy for highly irregular defects. |
| 2024 | Marek Wodzinski et al. [15] | SkullFix, SkullBreak | Deep Deformable Masked Autoencoder (3D UNet backbone) | Self-supervised masked autoencoding with deformable transformations for skull completion. | No need for ground-truth labels; superior generalization, especially on SkullBreak; fast inference; effective global shape modeling. | Long training time; requires sufficiently diverse healthy skull datasets. |
| 2024 | Marek Wodzinski et al. [24] | SkullFix, SkullBreak | 3D Residual UNet | Large-scale data preparation using VAE, VQVAE, IntroVAE, SoftIntroVAE, WGAN-GP, and latent diffusion models. | Strong evidence that data preparation and augmentation dominate architectural changes; good performance on clinical data. | Extremely high computational cost; no new reconstruction architecture proposed. |
| 2024 | Resmi S. et al. [25] | AutoImplant 2021 | 3D UNet, 3D UNet + Transformer | Shape completion followed by implant generation via skull subtraction; Transformer used to model global context. | Improved global context modeling; simple and interpretable architecture. | Very low spatial resolution; overall performance remains limited; weak generalization. |
| 2025 | Marek Wodzinski et al. [26] | SkullFix, SkullBreak | ResNet, Vision Transformer | Learnable symmetry enforcement with two-stage reconstruction and symmetry refinement. | Significant accuracy improvement; reduced dependence on heavy data augmentation; robust for large, bilateral, and out-of-distribution defects. | Does not directly generate final implants; not integrated with generative models for extremely large defects. |
| 2025 | Mamta Juneja et al. [13] | MUG500+ | CRIGNet | Supervised learning with synthetically generated defects using virtual craniectomy. | Simple and interpretable pipeline; effective for small-to-moderate defects. | Lack of geometric constraints; limited generalization to large or asymmetric defects. |
| 2025 | Thathapatt Kesornsri et al. [27] | CQ500 | CraNeXt | Skull categorization prior to reconstruction; separate models trained for different skull shape categories. | Improved accuracy compared with a single global model; more stable learning for heterogeneous data. | Sensitive to categorization errors; scalability issues as the number of categories increases. |
| Defective Morphology | Rectangular | Circular Cylinder | Circular Cylinder with Boundary Disturbance | Elliptical Cylinder | Elliptical Cylinder with Boundary Disturbance |
|---|---|---|---|---|---|
| Defective | ![]() | ![]() | ![]() | ![]() | ![]() |
| Implant | ![]() | ![]() | ![]() | ![]() | ![]() |
| Mask | ![]() | ![]() | ![]() | ![]() | ![]() |
| Condition | DSC | HD (mm) | Epoch Time (s) | Observation |
|---|---|---|---|---|
| Raw data (no filtering) | 0.85 | 7.76 | 71.9 | Slight boundary noise |
| Denoised data | 0.92 | 4.46 | 71.8 | More stable mask boundary |
| Arrangement | DSC | HD (mm) | Observation |
|---|---|---|---|
| Random | 0.91 | 5.11 | Slower convergence, weaker boundaries |
| Ordered | 0.92 | 4.58 | Stable binary segmentation |
| Configuration | DSC | HD (mm) | Observation |
|---|---|---|---|
| Single | 0.86 | 6.86 | Lower generalization; poor adaptation to unseen geometries |
| Multiple | 0.92 | 6.83 | Better generalization; stable boundary accuracy |
| Kernel Size | DSC | HD (mm) | Time (s/epochs) | Observation |
|---|---|---|---|---|
| (2 × 2 × 2) | 0.86 | 5.39 | 50.8 | Computationally efficient but less accurate |
| (3 × 3 × 3) | 0.92 | 4.46 | 71.8 | Optimal balance |
| (4 × 4 × 4) | 0.92 | 4.34 | 135.2 | Computationally expensive, marginal gain |
| Study | Dataset | Method | DSC | HD (mm) | Notes |
|---|---|---|---|---|---|
| This work | MUG500 | 3D UNet | 0.94 | 3.8 | Single-network architecture |
| Juneja et al. (2025) [13] | MUG500 | CRIGNet | 0.98 | 4.63 | Synthetic defects with simple geometric shapes |
| G. Mainprize et al. (2020) [39] | AutoImplant 2020 | UNet | 0.87 | 6.72 | Limited dataset size (<300 cases) |
| Li et al. (2020) [18] | AutoImplant 2020 | Encoder-decoder | 0.85 | 5.18 | Two-stage multi-network architecture |
| G. Ellis et al. (2020) [40] | AutoImplant 2020 | UNet | 0.94 | 3.60 | Limited dataset size (<100 cases) |
| Matzkin et al. (2020) [19] | CQ500 | DE-UNet | 0.90 | 4.47 | Synthetic defect generation |
| Position | Frontal | Parietal | Right Temporal | Left Temporal | Occipital |
|---|---|---|---|---|---|
| Defective | ![]() | ![]() | ![]() | ![]() | ![]() |
| Ground Truth Implant | ![]() | ![]() | ![]() | ![]() | ![]() |
| Reconstructed Implant | ![]() | ![]() | ![]() | ![]() | ![]() |
| Case | Defective Skull | Reconstruction Result |
|---|---|---|
| 1 | ![]() | ![]() |
| 2 | ![]() | ![]() |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 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.
Share and Cite
Nguyen, L.H.; Phung, M.N.; Nguyen, H.T.; Nguyen, C.T.K.; Hoang, H.H. Optimizing 3D UNet Parameters for Cranial Defect Reconstruction. Appl. Sci. 2026, 16, 4763. https://doi.org/10.3390/app16104763
Nguyen LH, Phung MN, Nguyen HT, Nguyen CTK, Hoang HH. Optimizing 3D UNet Parameters for Cranial Defect Reconstruction. Applied Sciences. 2026; 16(10):4763. https://doi.org/10.3390/app16104763
Chicago/Turabian StyleNguyen, Long Huu, Minh Nhat Phung, Hung Thanh Nguyen, Cuc Thi Kim Nguyen, and Hai Hong Hoang. 2026. "Optimizing 3D UNet Parameters for Cranial Defect Reconstruction" Applied Sciences 16, no. 10: 4763. https://doi.org/10.3390/app16104763
APA StyleNguyen, L. H., Phung, M. N., Nguyen, H. T., Nguyen, C. T. K., & Hoang, H. H. (2026). Optimizing 3D UNet Parameters for Cranial Defect Reconstruction. Applied Sciences, 16(10), 4763. https://doi.org/10.3390/app16104763



































