As a leading technology in the construction of new smart cities, digital twin technology has become the core of building smart city platforms with its characteristics such as real-time monitoring and dynamic simulation. This paper aims to explore the key technologies and applications of digital twin technology in the construction of smart city platforms. Through IoT sensing, information modeling, ubiquitous network and other technologies, digital twin technology realizes real-virtual connection and mapping, providing the possibility of global spatio-temporal data fusion for urban operations. In this context, the paper will study the five-dimensional structural model of digital twins in detail, deeply analyze the basic principles of digital twin driving, and explore the application of the digital twin standard system framework. Through the research of the paper, it aims to provide technical support for the digital twin application of smart city platforms and promote the intelligent development of urban management, public services and other fields. Therefore, the construction of urban information models with digital twin technology as the core is the foundation of new smart cities, and provides a new idea for realizing three-dimensional visual monitoring of smart cities [1].
The digital twin technology in this article mainly focuses on three aspects: first, GIS data processing and unity 3D is used to realize three-dimensional modeling of highways, green spaces, water systems, and real-life buildings in the urban environment; secondly, geographical information based on GIS (Geographical Information System) is used system) data to visually present a digital twin of the city that integrates sky, earth, and air, thereby providing spatio-temporal data services and other related application support for smart applications in various departments of the city, and assisting the construction of new infrastructure in the park; Finally, edge computing and terminal sensors and cloud computing are used to provide data support for the entire smart city platform [2][3][4][5][6].
The concept of Digital Twins originated in the field of industrial manufacturing, and by combining with a new generation of information technology such as 5G communication, Internet of Things, cloud computing, big data, artificial intelligence, etc., it has realized the actual landing and transformation of Digital Twin theories in many industrial fields, and gradually extended to the application fields of smart city, smart transportation, smart water conservancy, etc. [3]. The digital twin is a digital model of existing or to-be physical entity objects, which perceives, diagnoses, and predicts the state of physical entity objects in real time through actual measurement, simulation, and data analysis, regulates the behavior of physical entity objects through optimization and instruction, and evolves itself through mutual learning among related digital models, while improving the decision-making of stakeholders during the life cycle of physical entity objects. The construction of digital twin smart cities will lead to disruptive innovations in city only management and services. The digital twin smart city is used in scenarios where buildings, roads, water systems, green spaces and other infrastructures in the city have corresponding virtual impacts in the digital world, where attribute information and dynamic change information are visible, trajectories can be traced, and statuses can be investigated; the virtual and real are synchronized to operate, and the scenarios are blended; the past can be traced, and early warnings for safety accidents and expectations of external development trends can be carried out; and the virtual services are realistic, and simulated decision-making can be simulated.
In 2023, the “First Edition of Digital Twin Industrial Software White Paper” was released. Many related digital twin manufacturers have also announced their own digital twin platform technology architecture. The divisions are basically similar, and they are basically divided into physical entities, virtual models, application services, and twin data.
It is traditionally believed that the industrial Internet platform deployment architecture is divided into three levels: end, edge and cloud. If this architecture is applied to the construction of smart city digital twins, the production cost and implementation cycle will be very large. Regarding this problem, the architecture proposed in this article as shown in Figure 1, it is divided into three parts: the first part: the digital layer, which refers to converting the city into the corresponding digital model. This article proposes the construction of a converged digital body based on Unity 3D and Web platforms; the second part: the network layer, this article divides it into edge network and central network. The edge network performs field-level calculations on edge devices and finally aggregates the processed data to the central network, thereby reducing the pressure on the central network and improving the efficiency of network transmission; Section Three parts: Device layer, this article will be divided into soft gateway, hard gateway, and IoT devices[7][8].
Platform Deployment Architecture Diagram
The digitalization layer is subdivided into Unity 3D modeling and Web platform display integration, which improves the difficulty and efficiency of digitalization. In this paper, in order to verify the feasibility of the platform, a city's smart digital twin platform is used for verification, which is generally divided into three steps: ① Pruning and calibration of the city's GIS data to ensure that the GIS data and the real city scene correspond to each other, and the whole process is completed using QGIS software; ② The processed GIS data is imported into Unity 3D to make a real-life three-dimensional model of the target area; ③ Construct the Web platform, integrate the city digital model with the Web platform, and construct the three-dimensional display platform; Figure 2 shows the digital layer architecture diagram.
Mathematical Layer Architecture Diagram
For the five-dimensional model proposed in the Digital Twin 2023 whitepaper, which over-centralizes data, this model facilitates data management, but greatly increases the coupling of data and increases the intensity of central data processing. [9]
In this paper, we propose the edge network plus center network, as shown in Figure 3 the edge network is responsible for processing the data on the edge side and sending it to the IoT server through MQTT protocol, and the center network is responsible for the network service of the whole platform. The IoT server and the back-end server in Fig. 4 are in the same layer and they exchange information. This process will be explained in detail in this paper through engineering.
Network layer architecture diagram
Device layer network topology diagram
The device layer is subdivided into IoT devices, hard gateways, and soft gateways. IoT devices are considered to be at a level that does not have independent collection and communication capabilities. However, as Microcontroller Unit (MCU) technology becomes increasingly mature, more and more hardware is equipped with MCUs, and the time is divided into devices leaving the factory. It can be divided into front-mounted and rear-mounted. The rear-mounted MCU also needs to be installed with sensors or flow meters. It looks like a cheaper customized communication box. The existence of the rear-mounted MCU will weaken or cancel the hard gateway. Hard gateway is the most traditional end-side technology. It is generally believed that soft gateway can replace hard gateway in function and is more economical, because the difference between the two is that the deployment of the collection and forwarding program is changed from the box to the LAN server. However, in this article, hard gateways and soft gateways are used in parallel to ensure normal communication on different types of networks. Figure 4 shows the device layer network topology.
As digital city construction continues to advance, local governments and urban district authorities are paying more and more attention to geographical information data. They are using geographical information, satellite remote sensing, smart terminals and other data to assist urban construction and planning, and governance [10]. The application of geographical information data can effectively solve the problems of poor information flow and lack of professional data support in urban construction in the new era. Through the sharing of resources in various fields, a new urban information system and service method can be formed to provide various services. Provide a basis for regional informatization and standardization construction work. This verification will be completed strictly in accordance with the above-mentioned smart city platform architecture for digital twins.
Currently, with its distributed system architecture, data sharing services, efficient computing load, independent client and other advantages, map display based on WebGIS technology has become the mainstream architecture model of GIS. The project adopts a B/S architecture and uses a traditional browser as the client to facilitate client access and data sharing. This project refers to the above-mentioned architecture and is also divided into a digital layer and a network layer. The device layer realizes loose coupling between modules, and each module can be used independently.
GIS data preprocessing diagram
Unity 3D generates three-dimensional real-life imagesimages
IoT server visual interface
NodeMCU Development Board Pinout
General Architecture Diagram of a Smart City
Figure 10 is a web platform interface diagram that integrates a three-dimensional city model. The model behind the interface can be operated with the mouse. For example, the day and night of the entire city will be dynamically displayed on the platform. When night comes, the model behind the platform will also be displayed. After entering the night state, the command that it is night will be sent to our terminal equipment, and the terminal equipment will control the public lights in the entire city to be on.
Digital twin platform for a smart city
Coupling, independent working, cross-platform verification table
Unity 3D | Low coupling | Yes | Yes |
Web platform | Low coupling | Yes | Yes |
IoT terminal | Low coupling | Yes | Yes |
backend server | Low coupling | Yes | Yes |
There are many software designed in this project because it has gone through many processes, such as: GIS data preprocessing, GIS data reality model generation, 3D reality model generation, Web platform construction, data interaction, C# script writing, IoT terminal programming, and hardware simulation design. Wait for multiple processes. Table 2 will list the software designed in the above process and its functions.
Software used in engineering and its functions
Visual Studio Code | Develop web platform and server and write corresponding code. |
QGIS | Preprocess GIS data, such as data pruning. |
Unity 3D | Generate 3D reality models. |
Visual Studio 2022 | Write C# scripts for dynamic interaction in Unity 3D. |
Arduino IDE | Hardware program writing and burning. |
Postman | Data interaction API interface test. |
For the platform in this paper to build the feasibility of technology and development cycle, in this paper will be used and the traditional technology compared to develop the same effect in time and coupling to do further experiments, respectively, using the two architectures to build a complete digital twin case study, to see the actual completion of the time (the smallest unit of time for the hour) and coupling degree. For the traditional architecture in the number of chemical layer is used completely unity for development, the network layer uses a central network to build, and unity to build the model to do interaction, for the device layer, the use of serial communication or the use of bluetooth, etc., direct or indirect communication methods. Finally, according to the actual experimental comparison, the construction efficiency is improved by about 61.7%. Specific data as Table III.
Comparison of Architecture Development Cycle Times and Their Coupling Data Table
digitalization layer | 24h(high coupling) | 18h(Low coupling) |
network layer | 48h(high coupling) | 40h(Low coupling) |
device layer | 10h(high coupling) | 8h(Low coupling) |
Through engineering verification, this architecture is feasible and loosely coupled in actual applications. Each module of the architecture can be organized in any way, and each module can run independently. For example, if the real-life model built by our Unity 3D is not integrated into The web platform can also run and communicate with normal data. If you need to access other services later, such as AI functions, you only need to connect the interface to the back-end server at the network layer. A digital twin cannot yet reach the stage of shared intelligence. Multiple digital twins can be constructed, and they can share wisdom and evolve together.
The above project demonstration video has been uploaded to open source platforms and self-media platforms, and has also received suggestions and discussions from digital twin researchers and enthusiasts, as well as very strong interest in this architecture. At present, a rough estimate of the number of people interested in this project and architecture has There are about 20,000 people, of which graduate students and doctoral students can account for about 50%, and the rest are related workers and undergraduate students. Since the original project is relatively large from design to model, the total size is about 2GB, and it has not yet been open sourced on Github. Later, I simplified the interface and rebuilt a simplified version of this project based on the architecture of this article. It is currently open source. Because it is still relatively large, readers need to use the git lft tool when downloading this open source project to download large files from GitHub document. Open source URL:
The architecture of this article is still in its infancy, and there is still a long way to go to achieve the goal of digital twin co-intelligence. In the future, more new technologies should be added, the architecture should be kept low-coupled, and a universal digital twin should be built. Twin architecture. Figure 10 is a preliminary idea for further improvement of the architecture. Engineering verification has not yet been carried out. However, this architectural idea is also constructed in strict compliance with the architecture of this article. It only adds and deletes modules based on the loose coupling of this article's architecture., achieve rapid construction.
For Figure 11, the entire display and interaction part has been upgraded during the process. With the rapid development of augmented display technologies such as AR and MR, there is an increasing trend that AR/MR glasses may become an integral part of our daily life, work, and study. A second screen will greatly facilitate all aspects of our lives. At the same time, this flow chart will judge the data in the cloud computing center. When our data has incomplete information and unclear mechanisms, we need to make inferences through industrial big data and machine learning. Finally, the inference results will be transmitted to our display end. It is AR/MR; similarly, when the data in cloud computing has complete information and clear mechanisms, it is necessary to predict future data through digital calculation and simulation, and finally the prediction results are transmitted to our display, which is AR/MR; later The latter has higher accuracy than the former because we make predictions based on complete information and clear mechanisms.
Architecture upgrade flow chart