journal article·2025-11-05Open access

Open-Data-Driven Unity Digital Twin Pipeline: Automatic Terrain and Building Generation with Unity-Native Evaluation

Donghyun Woo, Hyunbin Choi, Ruben D. Espejo Jr., Joongrock Kim, Sunjin Yu

Applied Sciences· Volume 15· Issue 21

Abstract

The creation of simulation-ready digital twins for real-world simulations is hindered by two key challenges: the lack of widely consistent, application-ready open access terrain data and the inadequacy of conventional evaluation metrics to predict practical, in-engine performance. This paper addresses these challenges by presenting an end-to-end, open-data pipeline that generates simulation-ready terrain and procedural 3D objects for the Unity engine. A central finding of this work is that the architecturally advanced Swin2SR transformer exhibits severe statistical instability when applied to Digital Elevation Model (DEM) data. We analyze this instability and introduce a lightweight, computationally efficient stabilization technique adapted from climate science—quantile mapping (qmap)—as a diagnostic remedy which restores the model’s physical plausibility without retraining. To overcome the limitations of pixel-based metrics, we validate our pipeline using a three-axis evaluation framework that integrates data-level self-consistency with application-centric usability metrics measured directly within Unity. Experimental results demonstrate that qmap stabilization dramatically reduces Swin2SR’s large error (a 45% reduction in macro RMSE from 47.4 m to 26.1 m). The complete pipeline, using a robust SwinIR model, delivers excellent in-engine performance, achieving a median object grounding error of 0.30 m and real-time frame rates (≈100 FPS). This study provides a reproducible workflow and underscores a crucial insight for applying AI in scientific domains: domain-specific stabilization and application-centric evaluation are indispensable for the reliable deployment of large-scale vision models.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: 3D Surveying and Cultural Heritage · Digital Transformation in Industry · Robotics and Sensor-Based Localization

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Advanced Defense Engineering, Changwon National University, Changwon 51140, Republic of Korea

Department of AI Convergence Engineering, Changwon National University, Changwon 51140, Republic of Korea

School of Meta-Convergence Content Major, Department of Artificial Intelligence Convergence Engineering, Changwon National University, Changwon 51140, Republic of Korea

Funding

Institute of Information & Communications Technology Planning & Evaluation

References (53)

Show source-provided references
1. Wang, Z., Zhang, X., and Wang, X. (2021, January 13–16). Digital twin simulation of connected and automated vehicles with the unity game engine. Proceedings of the 2021 Winter Simulation Conference (WSC), Phoenix, AZ, USA.10.36227/techrxiv.14582943.v1 ↗
2. Balla, M., Drgona, P., Duriš, S., Kajan, S., and Hubinský, P. (2023). Educational case studies: Creating a digital twin of the production line in TIA Portal, Unity, and Game4Automation Framework. Sensors, 23.10.3390/s23104977 ↗
3. Integrating machine learning model and digital twin system for additive manufacturing10.1109/ACCESS.2023.3294486 ↗
4. Purinton, B., and Bookhagen, B. (2021). Beyond vertical point accuracy: Assessing inter-pixel consistency in 30 m global DEMs for the arid central Andes. Front. Earth Sci., 9.10.3389/feart.2021.758606 ↗
5. Han, C., Liu, Y., Zhang, C., Yang, C., and Zhang, Z. (October, January 26). Quality assessment of three digital elevation models with 30 M resolution by taking 12 M TanDEM-X DEM as reference. Proceedings of the 2020 IEEE International Geoscience and Remote Sensing Symposium (IGARSS), Waikoloa, HI, USA.10.1109/IGARSS39084.2020.9323514 ↗
6. A review of digital terrain modeling10.1111/cgf.13657 ↗
7. Airbus Defence and Space GmbH (2022). Copernicus Digital Elevation Model: Product Handbook, Version 5.0, Airbus Defence and Space GmbH. Available online: https://dataspace.copernicus.eu/sites/default/files/media/files/2024-06/geo1988-copernicusdem-spe-002_producthandbook_i5.0.pdf.
8. Effects of terrain morphology, sampling density, and interpolation methods on grid DEM accuracy10.14358/PERS.71.7.805 ↗
9. Super-resolution for terrain modeling using deep learning in high mountain Asia
10. D-SRGAN: DEM super-resolution with generative adversarial networks
11. A large scale digital elevation model super-resolution Transformer
12. A comprehensive review of image super-resolution metrics: Classical and AI-based approaches
13. Kawulok, M., Kurek, J., Hrynczenko, K., and Rusek, K. (2018, January 19–21). Towards robust evaluation of super-resolution satellite image reconstruction. Proceedings of the Asian Conference on Intelligent Information and Database Systems, Dong Hoi, Vietnam.10.1007/978-3-319-75417-8_45 ↗
14. Deep learning methods applied to digital elevation models: State of the art
15. Domain adaptation for the classification of remote sensing data: An overview of recent advances10.1109/MGRS.2016.2548504 ↗
16. Lyu, F. (2025, January 15–17). Evaluating the evaluation matrices: Integrating spatial assessment in geospatial AI model training and evaluation. Proceedings of the I-GUIDE Forum 2025: Geospatial AI and Innovation for Sustainability Solutions, Boulder, CO, USA.10.5703/1288284317905 ↗
17. OpenStreetMap Contributors (2025, September 16). OpenStreetMap. Available online: https://www.openstreetmap.org.
18. Sentinel-2: ESA’s optical high-resolution mission for GMES operational services10.1016/j.rse.2011.11.026 ↗
19. Liang, J., Cao, J., Sun, G., Zhang, K., Van Gool, L., and Timofte, R. (2021, January 11–17). SwinIR: Image restoration using Swin Transformer. Proceedings of the IEEE/CVF International Conference on Computer Vision Workshops (ICCVW), Montreal, BC, Canada.10.1109/ICCVW54120.2021.00210 ↗
20. Conde, M.V., Choi, U.J., Burchi, M., and Timofte, R. (2023, January 18–22). Swin2SR: SwinV2 transformer for compressed image super-resolution and restoration. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), Vancouver, BC, Canada.10.1007/978-3-031-25063-7_42 ↗
21. Convolutional neural network based DEM super resolution
22. Error assessment and propagation in digital terrain modeling: A review
23. An integrated method for DEM simplification with terrain structural features and smooth morphology preserved
24. Zheng, Z., Chen, Z., Wu, S., and Huang, C. (2023). Terrain self-similarity-based transformer for generating super resolution DEMs. Remote Sens., 15.10.3390/rs15071954 ↗
25. A real-world benchmark for Sentinel-2 multi-image super-resolution
26. Transformer-based multi-stage enhancement for remote sensing image super-resolution
27. Terrain super-resolution through aerial imagery and fully convolutional networks10.1111/cgf.13345 ↗
28. OpenStreetMap: User-generated street maps10.1109/MPRV.2008.80 ↗
29. Ronneberger, O., Fischer, P., and Brox, T. (2015, January 5–9). U-net: Convolutional networks for biomedical image segmentation. Proceedings of the Medical Image Computing and Computer-Assisted Intervention (MICCAI), Munich, Germany.10.1007/978-3-319-24574-4_28 ↗
30. DeepLab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected CRFs10.1109/TPAMI.2017.2699184 ↗
31. Chen, L.C., Zhu, Y., Papandreou, G., Schroff, F., and Adam, H. (2018, January 8–14). Encoder-decoder with atrous separable convolution for semantic image segmentation. Proceedings of the European Conference on Computer Vision (ECCV), Munich, Germany.10.1007/978-3-030-01234-2_49 ↗
32. He, K., Gkioxari, G., Dollár, P., and Girshick, R. (2017, January 22–29). Mask R-CNN. Proceedings of the IEEE International Conference on Computer Vision (ICCV), Venice, Italy.10.1109/ICCV.2017.322 ↗
33. Kirillov, A., Mintun, E., Ravi, N., Mao, H., Rolland, C., Gustafson, L., Xiao, T., Whitehead, S., Berg, A.C., and Lo, W.Y. (2023, January 2–6). Segment anything. Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), Paris, France.10.1109/ICCV51070.2023.00371 ↗
34. Deep learning for image super-resolution: A survey10.1109/TPAMI.2020.2982166 ↗
35. Shaping the global high-resolution TanDEM-X digital elevation model10.1109/JSTARS.2021.3095178 ↗
36. (2014). Department of Defense World Geodetic System 1984—Its Definition and Relationships with Local Geodetic Systems (Standard No. NGA.STND.0036).
37. (2014). The Universal Grids and the Transverse Mercator and Polar Stereographic Map Projections (Standard No. NGA.SIG.0012).
38. The development and evaluation of the Earth Gravitational Model 2008 (EGM2008)10.1029/2011JB008916 ↗
39. GDAL/OGR Contributors (2025, September 25). GDAL—Geospatial Data Abstraction Library. Open Source Geospatial Foundation. Available online: https://gdal.org.
40. On the use of windows for harmonic analysis with the discrete Fourier transform10.1109/PROC.1978.10837 ↗
41. Technical note: Downscaling RCM precipitation to the station scale using quantile mapping–a comparison of methods10.5194/hess-16-3383-2012 ↗
42. Bias correction of GCM precipitation by quantile mapping: How well do methods preserve changes in quantiles and extremes?10.1175/JCLI-D-14-00754.1 ↗
43. Intercomparison of bias correction methods for precipitation of multiple GCMs across six continents
44. Lightweight mask R-CNN for instance segmentation and particle physical property analysis in multiphase flow10.1016/j.powtec.2024.120366 ↗
45. Diachenko, O., Vovk, O., Ustymenko, I., and Gaponova, O. (2022). Industrial collaborative robot digital twin integration and control using Robot Operating System. Advances in Manufacturing, Springer.10.36897/jme/148110 ↗
46. A gentle introduction to the Holm-Bonferroni method
47. A simple sequentially rejective multiple test procedure
48. Wang, X., Yu, K., Wu, S., Gu, J., Liu, Y., Dong, C., Qiao, Y., and Loy, C.C. (2018, January 8–14). ESRGAN: Enhanced Super-Resolution Generative Adversarial Networks. Proceedings of the European Conference on Computer Vision (ECCV) Workshops, Munich, Germany.10.1007/978-3-030-11021-5_5 ↗
49. Meta (Oculus) (2024). Testing and Performance Analysis (Unity), Meta Oculus. Meta Quest Developer Documentation.
50. Meta (Oculus) (2024). Guidelines for VR Performance Optimization (PC/Rift), Meta Oculus. Meta Developer Documentation.
51. An Application-Driven LOD Modelling Paradigm for 3D City Models10.1016/j.isprsjprs.2020.01.019 ↗
52. Federal Highway Administration (FHWA) (2025, September 16). Handbook for Designing Roadways for the Aging Population, Available online: https://highways.dot.gov/safety/other/older-road-user/handbook-designing-roadways-aging-population.
53. Euro NCAP (Lane Support Systems (LSS) Test Protocol, 2023). Lane Support Systems (LSS) Test Protocol, Version 4.3.