Intelligent digital twin system based on federated learning model, and operation method therefor
The DT-FL framework synchronizes learning models across physical and cyber spaces, enabling effective monitoring and control of physical environments by leveraging federated learning to address data siloing and resource constraints, thus enhancing situational awareness and environmental control.
Patent Information
- Application Number
- PCT/KR2023/018025
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-24
- Filing Date
- 2023-11-10
- Publication Date
- 2024-08-29
AI Technical Summary
Current digital twin systems face challenges in effectively synchronizing and controlling remotely distributed physical space objects due to data siloing and the need for centralized data fusion, which limits their ability to perform accurate simulation, inference, and prediction.
The implementation of a Digital Twin based Federated Learning (DT-FL) framework that uses a federated learning model to synchronize learning models between physical and cyber spaces, allowing for dynamic registration and participation of devices, and enables collaborative learning with virtual objects that reflect the properties of physical objects, facilitating improved situational awareness and environmental control.
This approach allows for precise monitoring and control of physical environments through cyber objects, enhancing situational awareness and environmental control by combining shared learning models and redistributing them for improved performance, while addressing data privacy and resource constraints.
Smart Images

Figure KR2023018025_29082024_PF_FP_ABST
Abstract
Description
Intelligent digital twin system based on federated learning model and its operation method
[0001] Cross-reference to related applications
[0002] This application claims the benefit of priority to Korean Patent Application No. 10-2023-0025351, filed February 24, 2023, the contents of which are incorporated herein by reference in their entirety.
[0003] The present disclosure relates to an intelligent digital twin system based on a federated learning model and an operating method thereof, and more particularly, to an intelligent digital twin system and method based on a learning model for virtually monitoring and controlling objects in a remotely distributed physical space and their learning processes.
[0004] More specifically, in order to have the same objects (devices) of real space in cyberspace and accurately recognize the situation of physical space effectively and precisely control the surrounding environment through these cyberspace objects, a learning model is created using a machine learning program for each physical object, and this is then transmitted to a cyberspace server to synchronize and share the learning models of multiple physical objects and cyber objects. Based on a federated learning model that fuses and processes multiple learning models, simulation, inference, and prediction are performed more effectively. To this end, the intelligent digital twin system is provided by interconnecting physical objects and cyber objects, virtualizing the network of connected objects, synchronizing learning models, visualizing objects, networks, learning models, and performance results, and performing simulation, inference, and prediction.
[0005] Artificial Intelligence (AI) is making rapid progress. It shows potential to solve increasingly complex problems, including self-driving cars, finance, and healthcare. However, AI requires big data to solve complex problems. For example, AlphaGo was trained on 300,000 games to achieve superior results. Furthermore, data is often isolated, making it difficult to integrate it into a central entity. Various solutions have been proposed, including Gossip Learning (GL), Swarm Learning (SL), and Federated Learning (FL).
[0006] Gossip Learning is serverless and distributes learning across all objects in a peer-to-peer fashion. Each object in each physical space has its own local data, not shared with other nodes in the network. The trained model is broadcast to objects in each physical space, and objects in other physical spaces receive and update the model using different aggregation strategies.
[0007] Swarm Learning (SL) is a distributed, collaborative model training strategy where each node trains its own local model and shares it with other nodes in the network. Like Particle Swarm Optimization (PSO), SL treats each node as a particle and finds a single global model.
[0008] In Federated Learning (FL), the aggregation process is performed on the server, and the global model is shared with the server. Various aggregation techniques have been proposed to fuse the received models in a federated environment.
[0009] Meanwhile, Digital Twins (DT) play a crucial role in the IoT by creating virtual objects of physical devices and controlling and monitoring the physical IoT environment. Their virtualization capabilities are driving the growing use of digital twins in the Industrial Internet of Things (IIoT). Adaptive federated learning for IIoT has been proposed to enable digital twins to capture the characteristics of physical devices used in IIoT.
[0010] [Prior Art Literature]
[0011] [Patent Document] Republic of Korea Patent Publication No. 10-2448724 (September 29, 2022)
[0012] The present invention proposes a learning model for virtually monitoring and controlling objects and corresponding learning processes in a remotely distributed physical space, and proposes a Digital Twin based Federated Learning (DT-FL) framework.
[0013] More specifically, according to the present invention, in a digital twin that effectively recognizes the situation of a physical space and controls the surrounding environment through an object in cyberspace by having an object (thing) or device in a real space identically in cyberspace, a learning model is created through a machine learning program within each physical object, and this is transmitted to cyberspace to share and manage the learning models of multiple identical cyber objects, and further, the shared learning models are combined to improve performance and redistributed to the physical objects to support enhanced situational awareness and environmental control.
[0014] In other words, it is possible to synchronize learning models in physical space and learning models in cyberspace through “digital twins of learning models” as well as digital twins of data and objects.
[0015] The present invention utilizes the virtualization properties of digital twins to enable dynamic registration of devices and participation in federated learning, wherein each device has a virtual object in the digital twin environment, and the virtual object reflects all properties of the physical object.
[0016] The present invention supports collaborative federated learning in a digital twin, the learning process can be monitored and controlled in the digital twin, and the prediction results and performance metrics are provided in a visualized form through an interactive web application of the digital twin.
[0017] In the present invention, model transmission from a digital twin device to a cooperative federation learning server is performed via IoT connection, and other control commands and monitoring information are transmitted and received via the HTTP protocol.
[0018] The present invention provides an intelligent digital twin system framework that interconnects physical objects and cyber objects, virtualizes a network of objects connecting them, visualizes objects, networks, learning models, and performance results, synchronizes learning models, and performs simulations, inferences, and predictions.
[0019] The present invention has been devised to solve the above-described problem, and includes a method for operating an intelligent digital twin system based on a federated learning model, comprising: a first step of interconnecting objects corresponding to objects in a physical real space in cyberspace to synchronize learning models of objects in physical space and cyberspace; a second step of transmitting data and learning models of objects in the physical space to cyberspace and receiving them to recognize the environment and situation of the physical space through the objects in cyberspace and to control the surrounding environment; a third step of virtualizing a network connecting learning models generated in each physical object in the digital twin system to corresponding cyber objects in cyberspace through the transmitted and received data, and visualizing, sharing, and managing the learning models and performance results; and a fourth step of combining the shared learning models and generating a federated learning model to effectively perform simulation, inference, and prediction, and redistributing the federated learning model back to objects in the physical space to support enhanced situational awareness and environmental control.
[0020] In addition, the second step may include a step in which at least one object in a plurality of physical spaces that performs federated learning learns local data of the physical spaces and shares the parameters of the learned models with a federated server in the cyberspace through a data sharing protocol; and a step in which the federated server in the cyberspace provides a virtual object in which the properties of the objects in the plurality of federated physical spaces are reflected and synchronized, and mutually synchronizes the learning models of each object in the physical space and the cyberspace to select an optimal model among the transmitted parameters and models.
[0021] The second step may include a step in which the physical space's objects learn local data using a deep learning model and transmit information of the learned model to the federated server through a data sharing protocol, and the cyberspace's federated server receives data of the physical space's objects and parameters and gradient information corresponding to the learning model.
[0022] The third step may include a step of virtualizing and managing a learning model so that participation in federated learning can be performed by utilizing virtualization properties from a learning model generated within each physical object in the federated server of the cyberspace.
[0023] The third step includes a step of monitoring the status of the learning model in the cyberspace federated server and a step of setting the setting parameters of the learning model, wherein the local and global performance of the objects of the federated physical space are monitored through virtual objects of the objects of the physical space and the learning process is controlled, and the parameters of model parameters (weights) and gradients information received from the objects of the federated physical space are set.
[0024] The third step may include a step of visualizing the performance result table and performance metrics of objects in the federated physical space in a digital twin environment and providing them through an application in the federated server of the cyberspace.
[0025] The fourth step includes a step of performing a simulation using a learning model in the cyberspace federated server and a step of performing a prediction using the learning model, wherein the cyberspace federated server selects an optimal learning model based on the simulation and prediction results, and provides the selected optimal global model as an object in the federated physical space.
[0026] Meanwhile, in an intelligent digital twin system based on a federated learning model, a federated server in cyberspace is provided for setting objects corresponding to objects in a physical real space in cyberspace to be identical in order to synchronize learning models in physical space and cyberspace; a plurality of objects in physical space for transmitting data of objects in the physical space to the federated server in order to recognize the environment and situation of the physical space through the objects in cyberspace and precisely control the surrounding environment; wherein the federated server learns, shares, and manages a learning model generated from each physical object in the digital twin system in cyberspace through the received data of the physical objects, and combines the shared plurality of learning models to improve performance and redistributes them to objects in the physical space to perform improved situational awareness and environmental control.
[0027] According to the present invention, in a digital twin that has the same object (device) of a real space in cyberspace and effectively recognizes the situation of a physical space and controls the surrounding environment through the object of cyberspace, a learning model is created through a machine learning program within each physical object, and this is transmitted to cyberspace to share and manage the learning models of multiple identical cyber objects, and further, the shared learning models are combined to improve performance and redistributed to the physical object to support improved situational awareness and environmental control, thereby enabling a digital twin of a learning model as well as a digital twin of data and objects.
[0028] This will enable the learning model in physical space and the learning model in cyberspace to be mutually synchronized.
[0029] Additionally, according to the present invention, in terms of object and data synchronization of a digital twin, model parameters can be changed within the digital twin environment, allowing a user to fine-tune the performance of a machine learning model and optimize its operation in real time.
[0030] Additionally, by synchronizing the model and device states, it can accurately provide the state of physical objects or systems, providing efficient model synchronization of the digital twin platform.
[0031] Additionally, according to the present invention, device nodes used for federated learning within a digital twin environment can be visualized, and the cooperative federated learning system and components can be visually represented by virtualizing the learning device nodes.
[0032] This allows users to monitor and understand the behavior of a collaborative federated learning system, as well as make necessary adjustments to optimize performance.
[0033] Additionally, the digital twin environment according to the present invention provides control of a virtual environment generated from virtual components, allowing users to interact with the virtual components and adjust the collaborative federated learning system in real time without having to directly access the physical components.
[0034] By enabling digital twins to control virtual environments, the proposed digital twin platform can provide an efficient way to manage and optimize collaborative federated learning systems.
[0035] Additionally, the digital twin platform visualizes the results of each device node within the digital twin environment, allowing users to easily monitor and understand the performance of the collaborative federated learning system and optimize performance by making real-time adjustments as needed.
[0036] Additionally, by visualizing the results of each device node, it provides insight into the performance of the collaborative federated learning system and enables users to make learning-informed decisions to improve performance.
[0037] According to the present invention, after a learning model is created using a machine learning algorithm from a physical object in the real world, it is transmitted to a server in cyberspace to synchronize and share the learning models of multiple physical objects and cyber objects, and more effective simulation, inference, and prediction can be performed based on a federated learning model that fuses and processes multiple learning models.
[0038] By using a federated learning model that fuses learning models generated from various objects, an intelligent digital twin system can have objects in cyberspace identical to those in real space, effectively and accurately recognize the situation in physical space through these cyberspace objects, and precisely control the surrounding environment.
[0039] FIG. 1 is a diagram illustrating control properties of a virtual object in a digital twin system according to the present invention.
[0040] FIG. 2 is a diagram for explaining an intelligent digital twin system and method based on a federated learning model according to the present invention.
[0041] FIG. 3 is a drawing for explaining synchronization and connection of a physical device and a virtual device according to the present invention.
[0042] Figure 4 is a block diagram illustrating an intelligent digital twin system based on a federated learning model according to the present invention.
[0043] FIG. 5 is a graph illustrating the participation of some devices for a global model according to the present invention.
[0044] FIG. 6 is a drawing showing a representation of a physical device according to the present invention as a virtual device.
[0045] FIG. 7 is a diagram illustrating control and information of an instance of a registration device provided in a digital twin according to the present invention.
[0046] FIG. 8 is a drawing for explaining the settings of objects and servers in a physical space according to settings set by a user provided in a digital twin according to the present invention.
[0047] FIG. 9 is a diagram illustrating the performance history of objects in a federated physical space provided by a digital twin according to the present invention.
[0048] FIG. 10 is a diagram illustrating Algorithm 1 of a step performed by objects in a physical space during learning according to the present invention, and Algorithm 2, which is a method for selecting objects in a physical space and an aggregation process after receiving models from all objects in a physical space.
[0049] Figure 11 illustrates the learning time of objects in each federated physical space for all server rounds according to the present invention.
[0050] Figure 12 shows the weighted time for objects in each physical space according to the present invention.
[0051] Figure 13 illustrates the average model size and average transmission time of objects in each physical space according to the present invention.
[0052] The present invention is susceptible to various modifications and embodiments. Specific embodiments are illustrated in the drawings and described in detail in the detailed description. However, this is not intended to limit the present invention to specific embodiments, but rather to encompass all modifications, equivalents, and alternatives falling within the spirit and technical scope of the present invention.
[0053] However, when describing embodiments, if a detailed description of a related known function or configuration is judged to unnecessarily obscure the gist of the present invention, a detailed description thereof will be omitted. Furthermore, the sizes of each component in the drawings may be exaggerated for illustrative purposes and do not necessarily represent the sizes actually applied.
[0054] Additionally, throughout the specification, when a component is referred to as being "connected" or "connected" to another component, it should be understood that the component may be directly connected or connected to the other component, but may also be connected or connected via another component in between, unless otherwise specifically stated. Additionally, throughout the specification, when it is said that a part "includes" a component, this does not exclude other components, but rather includes other components, unless otherwise specifically stated.
[0055] Federated Learning (FL) addresses data privacy concerns by training local models on each node and sharing model parameters instead of the data itself. Furthermore, the federated server aggregates received models using model aggregation techniques and broadcasts the resulting models to objects in the connected physical space.
[0056] The present invention proposes a digital twin-based federated learning (DT-FL) framework for virtually monitoring and controlling objects and their learning processes in a remotely distributed physical space.
[0057] Open Connectivity Foundation (OCF) Iotivity, a connection-oriented protocol, connects objects in a federated physical space to a federated server, ensuring packet delivery. OCF Iotivity transmits model weights to and from the server and monitors the local learning of objects in the physical space using Hyper Text Transfer Protocol (HTTP).
[0058] After receiving a partially trained model from objects in the physical space, the server selects the optimal model using a normal distribution, taking into account the model's performance. Finally, the best models are aggregated and the final model is broadcast to objects in the physical space.
[0059] The DT-FL framework can be used with classification and regression datasets, and model architectures for those data can be designed on the digital twin platform.
[0060] The Federated Learning (FL) framework is used to learn a global model by maintaining local data of objects in a physical space.
[0061] Objects in each physical space contain their own local data collected from various sources. Data is collected and stored within the physical space, and data samples are not shared with objects or servers in other physical spaces.
[0062] The model is trained locally, and the trained parameters are shared with the server via a data sharing protocol. The local model is partially trained, and the trained model weights are shared with the server. The server applies various aggregation methods to achieve a global model, and finally, the global model is broadcast to all objects in the physical space.
[0063] For each object in the physical space, a deep learning model is first selected as a local model and trained using local training data. Deep learning models require massive amounts of data to solve complex problems.
[0064] If objects in each physical space share data with the server, all local data will be merged on the server, creating a big data problem. Solving this big data problem requires high computing power and resources on the server.
[0065] When smart, resource-constrained IoT devices generate time-series data, persistent connectivity to a central entity is required. Federation provides a solution to this problem by maintaining local data for objects in physical space and sharing learned models with a server.
[0066] Learning a model based on local data from objects in each physical space may not meet the generalization properties of deep neural networks. Federation combines all locally trained models, which generalize better than locally trained models, to form a global model. In a federation, objects in a physical space typically have limited resources compared to the federation server, both in terms of computational power and storage size.
[0067] Resource-constrained devices partially train a model for each server round and send the trained model to the server. The number of objects in the federation's physical space is directly proportional to the federation server's computational power. Objects in the physical space can register with the federation server and become part of the global learning model.
[0068] Registration and participation of objects in the federated physical space on the federated server can be achieved through virtual assets on the digital twin platform. Each device exists as a virtual object in the digital twin environment. These virtual objects reflect all the properties of the physical objects.
[0069] Figure 1 illustrates the control properties of virtual objects in a digital twin, where virtual entities of physical devices are designed in the first layer and connections are established with the physical devices. Synchronization properties are crucial when virtual objects must be synchronized with physical objects. The federated learning process can be monitored and controlled in the digital twin, and prediction results and performance metrics are visualized in an interactive web application within the digital twin. Model transmission from objects in the federated physical space to the federated server occurs via an IoTivity connection, and other control commands and monitoring information are transmitted and received via the HTTP protocol.
[0070] OCF IoTivity uses Constrained Application Protocols (CoAP) for device-to-device communication. This invention leverages an edge computing framework based on CoAP and HTTP. HTTP is used to send monitoring and control commands, and the OCF IoTivity protocol is used to transmit compressed models. For experiments, a DNN model is trained over the network, and the convergence of the global model for each physical space is visualized. The digital twin platform can be used for all deep learning models (models must be saved and added to the model list) and datasets (datasets must be deployed to objects in the physical space and listed in the digital twin's dataset list).
[0071] The features of the DT-FL framework according to the present invention are as follows.
[0072] 1) Virtual objects of things in a remotely distributed federated physical space are designed to virtually monitor and control performance and learning processes in a digital twin environment.
[0073] 2) OCF IoTivity and HTTP protocols are used in a single framework to efficiently perform model transfer.
[0074] 3) The interactive digital twin-based web application is designed to generate deep learning models for any problem (classification or regression).
[0075] 4) Objects in the federated physical space are registered on the digital twin platform, and the local and global performance of objects in each physical space is monitored.
[0076] 5) To achieve the best global model, we adopt the best physical space object selection method based on normal distribution.
[0077] 6) The framework of the present invention is tested on energy consumption data with objects from eight federated physical spaces and evaluated in terms of latency and local and global model performance.
[0078] Federated learning can address data privacy issues by maintaining local data on objects in a physical space and transmitting trained model weights. Privacy is a major concern for smart home users. The model according to the present invention considers energy consumption data from smart buildings, trained for each building.
[0079] A blockchain-enabled data sharing mechanism for IIoT was used to ensure secure communication between physical objects and servers. Furthermore, since trust is a key factor in collaborative learning, blockchain is used to establish trust between federated users. A three-layer architecture was proposed to secure communication and establish mutual trust. Transmission media is another critical component in virtualizing physical devices.
[0080] Federated Learning (FL) has become a core technology for IoT and networks due to its distributed training, which relies solely on model weights rather than data during global model training. The performance of the global model varies significantly depending on the aggregation method used during distributed training. Federated Averaging (FedAvg) is the simplest technique for aggregating model parameters on a server. A personalized FedAvg technique is also proposed, which considers the performance of objects in each physical space and updates the weights to the optimal ones. While FedAvg is communication-efficient, it relies on a single central entity, a federated server, which can be vulnerable to attacks and can compromise privacy. Therefore, the DFedAvgM model can be used to implement FedAvg in a distributed environment. Among these two types of federated learning architectures, one is the client-server architecture in the physical space and the other is the peer-to-peer architecture. The client-server architecture in the physical space has a central entity, with all objects in the federated physical space communicating with the central entity for global model training. Peer-to-peer architecture is a distributed architecture where servers are dynamically selected from objects in a selected physical space at each iteration.
[0081] Information shared by objects in the physical space with the server (in the physical object-server architecture) or dynamic server (in the peer-to-peer architecture) includes model parameters (model weights) or gradient information. For weight sharing, the server applies an aggregation technique and returns the resulting weight matrix to the objects in the physical space. For gradients, objects in the physical space compute gradients and share them with the server. The federated server applies gradient aggregation and returns the aggregated values to the objects in the physical space. The weight sharing approach does not require frequent synchronization because it shares the weight matrix of a partially trained local model with the server. The local model is trained on local data sets with different distributions in different federated nodes. The local data sets can be horizontally, vertically, or mixedly partitioned. The proposed method is based on horizontal federated learning, where data is partitioned horizontally.
[0082] Objects in physical space share two types of information with the server: (1) model parameters (weights) and (2) gradient information. According to the present invention, model parameters are shared with the server. Parameter sharing requires fast connections between objects in physical space and the server to enable large file transfers. To address model transfer delays, various communication-efficient federated learning techniques have been introduced. The proposed method utilizes the OCF connection framework to transmit compressed models and HTTP to transmit monitoring and control commands.
[0083] Federated learning strategies transfer knowledge from each node to other nodes in the network. Each node in the federation has its own data, and a local model is trained on the local data. The local model is shared with the server, which aggregates the received models and broadcasts the global model back to objects in the physical space. The proposed method considers the knowledge transfer capability of the federation to transfer knowledge from information-rich buildings to information-poor buildings. The local model is trained using energy usage data from eight residential buildings in Seoul. After each server round, the global model is transferred to the buildings and validated against local validation data.
[0084] Energy consumption prediction has become an established field of research due to its importance in the environment. Actual energy consumption data can be noisy, affecting the performance of local models. In this invention, knowledge about energy-efficient buildings is transferred to other buildings when aggregating models on a federated server. To select the most suitable model for aggregation, this invention utilizes a normal distribution-based object selection method in physical spaces. Finally, the global model is broadcast to all registered objects in the physical space. A digital twin platform is used to monitor and control objects in the physical space and visualize the results of the global and local models.
[0085] [Table 1]
[0086]
[0087] Below, a data set according to the present invention is described.
[0088] The digital twin-based federated learning (DT-FL) model according to the present invention was tested on an energy consumption dataset provided by a South Korean invention institute. The framework is flexible and can be used with any model or dataset. The dataset contains energy consumption and environmental parameters of eight residential buildings in Seoul. Each object in the federated learning (FL) physical space contains a dataset for one building, and the model is trained on local data. Additionally, some temporal features, including day of the week, date, and month, are extracted from existing features. Table 1 lists and describes the existing and extracted temporal features. The final processed data is distributed to objects in the federated physical space, and the digital twin platform initiates object registration in the physical space.
[0089] The data distribution is horizontal, with different numbers of samples for each object in the physical space. Horizontal federated learning (FL) can be defined as follows:
[0090] D i is the local dataset of object i in physical space and D i (S ∈ D i ) of sample s = (s ID , S fearure , S label ) is a vector, S ID ∈ X i ID , S feature ∈ X i feature and S label ∈ X i label , i.e. S ID , S feature and S label S represents the sample ID, sample feature and sample label respectively. ID ∈ X i ID , S feature ∈ X i feature and Slabel ∈ X i label represent the ID space, feature space, and label space, respectively.
[0091] If the local data of an object in physical space has the same function space and different ID space, i.e. X i feature =X j feature And, X i ID ≠X j ID In this case, the distribution is horizontal. Also, in vertical federated learning (FL), the feature spaces are different and the ID spaces are the same, i.e., X i feature ≠X j feature And, X i ID =X j ID The data distribution of objects in other union physical spaces is as shown in Table 2.
[0092] [Table 2]
[0093]
[0094] A digital twin for federated learning (FL) is described below.
[0095] For the federated framework, digital twins use HTTP for monitoring and controlling objects in the federated physical space, and OCF IoTivity for model sharing. Control commands are transmitted via HTTP using a Flask server, and models are shared and received in OCF IoTivity, as illustrated in Figure 2. Digital twin-supported apps run on objects in each physical space via local IP addresses and registered ports. Because the data for objects in each physical space is identical in terms of the number of functions, the servers share the initial model architecture. Furthermore, because objects in each physical space use the same architecture, the extracted weight matrices have the same shape and can be easily aggregated. The sequence of the method of the present invention is described as follows.
[0096] 1) Start the digital twin and register things in the federated physical space using IP addresses and ports.
[0097] 2) Deploy and launch digital twin support apps on objects in each physical space.
[0098] 3) Set the initial configuration of the entire system as shown in Fig. 4.
[0099] 4) Start the server in the digital twin.
[0100] 5) Start with objects in physical space in a digital twin.
[0101] 6) Algorithm 1 of Fig. 10 shows the steps performed by objects in physical space during learning.
[0102] 7) Algorithm 2 of Fig. 10 shows the method for selecting objects in a physical space and the aggregation process after receiving models from all objects in the physical space.
[0103] Physical nodes are registered on the digital twin platform, and virtual objects of federated nodes are created.
[0104] Figure 3 illustrates the synchronization and connectivity of a physical device and a virtual device according to the present invention.
[0105] All nodes are registered using the HTTP protocol, and the model is shared using OCF Iotivity. In this invention, performance-based weighted aggregation is used to aggregate the weights in the receive mode. The aggregated model is broadcast to objects in the physical space using IoTivity.
[0106] Figure 3 illustrates how the server assigns dynamic virtual ports to all objects in the physical space to parallelize model transmission. A digital twin user designs a model, registers objects in the physical space, and configures a configuration for federated learning. After initiating the federation process, a configuration is generated and transmitted to the registered objects in the physical space. The objects in the physical space accept the configuration and begin the training process according to the instructions received from the server. A digital twin assistant application is deployed to the objects in the physical space to transmit their status and performance.
[0107] Figure 4 is a block diagram of a digital twin (DT) proposed for federated learning according to the present invention.
[0108] The lowest layer of the architecture represents a network of IoT devices. A digital twin assistant application is deployed on IoT devices to control and monitor global model training. The initial model is prepared on the digital twin and broadcast to registered customers. Model preparation includes hidden layer selection, loss function, activation function, optimizer, and learning rate. The digital twin also provides input and output dimensions of local data to prepare the input and output layers of the model, taking into account the characteristics of the local data.
[0109] Finally, the digital twin sends its parameters to the federated server, which prepares a model and broadcasts it to objects in the physical space. Objects in the federated physical space learn the received model and send the partially trained model to the server. The server aggregates the received models and sends them back to the objects in the physical space. All objects in the physical space are registered, monitored, and controlled by the digital twin.
[0110] From here on, we will explain the weighted aggregation method based on performance.
[0111] Aggregation of local models plays a crucial role in the performance of the global model. The proposed framework uses FedAvg as the aggregation technique on the server. First, the federated server broadcasts an initial model with random weights, and objects in the physical space perform local updates (≥ 1).
[0112]
[0113] [Mathematical Formula 1]
[0114]
[0115] Here, k is the object number in physical space and t is the total local update completed in the previous server round.
[0116] Local data sample x at object k in the federated physical space k,1 , x k,2 , ..., x k,nk When this is included, the local loss of objects in each physical space can be defined as follows.
[0117]
[0118] [Equation 2]
[0119]
[0120] Here, l(.;.) is a user-defined loss function and is considered as the performance of object k in physical space.
[0121] Objects in physical space have weights Send to the server, New global in receiving model Aggregation is performed to create a model.
[0122] In terms of the participation of objects in physical space, two main types of aggregation are performed on the server.
[0123] (1) Participation of the entire device: This type of aggregation aggregates the weights of all registered physical space objects without analyzing the performance of objects in the physical space.
[0124]
[0125] [Equation 3]
[0126]
[0127] Participation of any device can have a significant impact on the global model. For example, if a federated network contains objects from ten physical spaces and the performance of objects from two physical spaces is substandard, the participation of objects from these physical spaces will negatively impact the global model.
[0128] (2) Participation of some devices: When participating in some devices, various performance metrics of objects in the physical space are considered and selected. A strategy where the best model is selected for aggregation is more realistic. The global model is obtained by aggregating the weights of objects in the selected physical space.
[0129]
[0130] [Equation 4]
[0131]
[0132] S here t is a set of objects in the physical space selected in the th server round.
[0133] In the present invention, a physical space object selection mechanism based on normal distribution is adopted.
[0134]
[0135] [Equation 5]
[0136]
[0137] Here, refers to the performance of objects in all physical spaces, is the standard deviation of the performance of objects in all physical spaces.
[0138] For each server round, the performance (loss) distribution is calculated, and objects in the physical space are selected if the loss is less than a threshold value, as shown in Fig. 5 and mathematical equation 6 below.
[0139]
[0140] [Equation 6]
[0141]
[0142]
[0143] We will explain how to register a digital twin device for digital twin implementation.
[0144] After deploying the dataset and digital twin-enabled applications to objects in the physical space, the objects in the physical space are registered on the digital twin platform using IP addresses and port numbers. The digital twin-enabled applications include model training and sender / receiver modules. Digital twin support is also used to monitor and control devices by sending control commands from the digital twin.
[0145] Figure 6 illustrates a physical device according to the present invention expressed as a virtual device.
[0146] Figure 6 shows the controls available on a device when adding it to a digital twin using its IP address and port number. Virtual objects of physical objects in a physical space can be launched from the digital twin platform.
[0147] The list of registered devices, along with their status and data distribution, is displayed on the digital twin platform. Initially, the server requests metadata from objects in the registered physical space to prepare a model. Actively registered devices return information about their local data (number of samples and features). The model is prepared based on the information in the local data and broadcast to objects in the actively registered physical space.
[0148] As shown in Figure 7, instances of offline registered devices are also displayed in the digital twin without control or information. Only active devices participate in the federation process to obtain a global model. After initiating an object in the active federated physical space, the object in the physical space waits for local learning to begin as an initial configuration.
[0149] The configuration of objects in each physical space is generated on the server.
[0150] As shown in Figure 8, the digital twin considers the user's settings and generates multiple JSON configuration files for objects and servers in the physical space. The initial configuration includes the unique node ID assigned by the server, the dataset name, the server's IP and port, the model name, the server round, and the local epoch. To avoid conflicts, the server's ports are dynamically assigned to objects in each federated physical space. The server first searches for available ports, then assigns a unique port to each object in each physical space. It then sends the configuration file to each object in each physical space via the registered IP and port.
[0151] Once the server round is complete, the performance of each physical space can be visualized on the digital twin platform. After activating the device and completing the first round, the performance history can be visualized on the digital twin, as shown in Figure 9. The performance history includes various evaluation metrics and can be modified during model creation.
[0152] Hereinafter, the results of the joint execution according to the present invention will be described.
[0153] The following evaluation metrics were used to evaluate the performance of local and global models.
[0154] Mean Absolute Error (MAE): MAE is the absolute difference between the actual value and the predicted value.
[0155]
[0156] [Equation 7]
[0157]
[0158]
[0159] R2 Score: The R2 score indicates the accuracy of the model, with a higher R2 value indicating better model performance.
[0160]
[0161] [Equation 8]
[0162]
[0163]
[0164] MAE is also used as a loss function to train models using gradient descent.
[0165] Below we will explain the synchronization and connection of things in the federated server and the federated physical space.
[0166] OCF IoTivity uses the CoAP protocol to transmit data and commands. To illustrate the effectiveness of the digital twin model of the present invention, the waiting and learning times for objects in each physical space were calculated.
[0167] Figure 11 illustrates the learning time for objects in each federated physical space for all server rounds according to the present invention. The first round shows the model learning time, while the remaining rounds show the fine-tuning time. In the first round, weights are random. In the remaining rounds, aggregated weights shared by the server are used. Learning time varies significantly depending on the machine capacity and data distribution. Since objects in all physical spaces use the same resources, learning time varies depending on the number of samples in the local dataset. Since each building has a different floor, the distribution of the dataset is not identical in terms of the number of samples and is independent (non-IID).
[0168] Latency represents the time it takes for objects in the physical space to complete training and wait for a response from the server. The server waits until all objects in the physical space have completed the training process and shared their JSON-compressed weight matrices. The weights are converted to JSON and compressed using the JSON Compressor Python library.
[0169] Figure 12 shows the weighted time for objects in each physical space. Figures 11 and 12 show that objects in physical spaces with shorter training times have higher latency, as the server waits for all objects in each physical space to complete the training process. Latency also represents the round-trip time (RTT) for sending and receiving models. Model transmission time also affects latency, as objects in each physical space wait for the aggregated model after training. Therefore, to reduce round-trip time, OCF IoTivity is used for model transmission.
[0170] To demonstrate the efficiency of OCF IoTivity in the proposed digital twin framework for model transfer, we compare the model size and model transfer time for objects in each physical space.
[0171] Figure 13 shows the average model size and average transmission time for objects in each physical space. The numerical data confirms that OCF IoTivity's model transmission time is significantly shorter than that of the HTTP protocol. Objects in each physical space are associated with a unique server port, enabling parallel model transmission when objects in multiple physical spaces complete the training process simultaneously. Furthermore, after the aggregation process, the server broadcasts the aggregated weights to objects in each physical space through a dedicated port in parallel.
[0172] The method for fusion of a local model and a global model according to the present invention is described as follows.
[0173] In federated learning, each physical space object has local data about a residential building, and a local model is trained on that data. The digital twin platform performs model deployment, and the physical space objects learn the model received from the local data. Furthermore, the federated configuration is distributed from the digital twin platform to each physical space object, transmitting and receiving model weights and performance from the server.
[0174] In one embodiment, five local rounds and 50 server rounds were used to train the global model. In each server round, the local model was trained for five epochs. The weights of the partially trained model were shared with the server for aggregation. Additionally, MSE was selected as the loss function to evaluate the model's performance. Objects in the physical space were selected on the server based on their performance on the local data. Experiments were conducted on both full and partial participation of objects in the physical space in the aggregation process. As shown in Figure 5, two quartiles were considered for partial participation of objects in the physical space.
[0175] In the first experiment, we selected objects in the physical space with losses less than the average loss (μ), and in another experiment, we selected objects in the physical space with losses less than μ + σ.
[0176] Comparing the fusion results of local and global models for objects in each physical space, the results show that the convergence and performance of the global model (μ + σ) are superior to those of other global models.
[0177] This invention proposes an intelligent digital twin-based federated learning framework for energy consumption prediction. The framework is tested on energy consumption data, distributed over a network, and controls distributed learning of a global model from a digital twin web interface. The proposed framework uses digital twins to set federated parameters, including server rounds, local epochs, server IP addresses, and ports. Monitoring and control commands are transmitted via HTTP, and model parameters are sent and received via OCF IoTivity. Digital twin-enabled applications are developed and deployed on objects in the federated physical space to control physical devices in virtual instances. Model management for the federation is embedded in the digital twin, designing the model architecture and broadcasting the initial model. Digital twin model management can design models for all local data by setting the input and output dimensions of local data. The initial model is trained for a specified epoch, and the weights are transmitted to the server using OCF IoTivity. A normal distribution method is used to select the best model before aggregation and discard models with high losses. Various quartiles of the normal distribution are used to set thresholds for model selection. The best model is aggregated and broadcast to all registered objects in the physical space. Objects in the physical space fine-tune the received model for a specific epoch and send the weights back to the server. The results demonstrate the effectiveness of using IoTivity to send models to the server. Furthermore, partial participation (selection of the best model) of objects in the physical space for model aggregation yields better results than full participation of objects in the physical space. Based on the first three quartiles of the normal distribution, the global model achieved with partial participation generalizes well to all objects in the physical space and converges faster than other models.
[0178] The present invention facilitates communication between devices and device nodes using HTTP and CoAP protocols. The present invention utilizes IoT, an open-source software framework designed for the Internet of Things (IoT). IoT provides a secure and scalable communication infrastructure for IoT devices, enabling efficient transmission of data and information. Using HTTP and CoAP, the present invention ensures robust, simple, yet reliable and easy-to-use communication between devices on a network.
[0179] Furthermore, the present invention enables monitoring of device nodes within a digital twin platform. This means that users can view real-time data and performance metrics for each device node, as well as control and modify the status of the device node within the digital twin environment. Thus, the digital twin platform according to the present invention enables real-time monitoring and control of device nodes, thereby providing a convenient and efficient method for managing and optimizing a collaborative federated learning system.
[0180] Furthermore, the digital twin platform according to the present invention visualizes the results of each device node in graph and table formats, providing a clear and comprehensive overview of the performance of each device node, enabling users to easily understand the overall performance of the collaborative federated learning system. Furthermore, the result tables and performance metrics of each device node are also visualized within the digital twin (DT) environment, providing users with detailed information about the performance of each device node, including metrics such as accuracy, error rate, and convergence time. By visualizing this information, users can identify areas for improvement and make informed decisions to optimize the performance of the collaborative federated learning system.
[0181] Furthermore, in the digital twin platform according to the present invention, Internet of Things (IoT) devices are used as collaborative federated learning devices, and the collaborative federated learning model is trained on these IoT devices, which represent the physical components to be monitored and controlled. Such IoT devices are typically small, low-power, and inexpensive, making them ideal for use as collaborative federated learning devices. Furthermore, IoT devices often feature various sensors and actuators, which can be used to monitor and control the physical components they represent. This allows users to gain valuable insights into the behavior and performance of the physical components and control them in real time. Furthermore, IoT devices can be connected to the Internet to communicate and exchange data with the digital twin environment and other IoT devices. This allows collaborative federated learning device nodes to exchange data in real time, thereby enhancing the performance of the collaborative federated learning system.
[0182] Furthermore, according to the present invention, the proposed digital twin platform for collaborative federated learning (FL) can connect collaborative federated learning device nodes using an Artificial Intelligence of Technology (AIoT) network. The AIoT network provides a more advanced and intelligent solution for connecting device nodes than existing AIoT networks used in existing digital twin environments. Like existing AIoT networks, the AIoT network allows collaborative federated learning device nodes to communicate and exchange data in real time, and provides additional intelligence and machine learning capabilities, enabling the collaborative federated learning device nodes to learn and adapt to the data exchanged. This allows the collaborative federated learning device nodes to make more informed decisions and improve the performance of the collaborative federated learning system. By enabling real-time data exchange and providing machine learning capabilities, the AIoT network can enhance the performance and intelligence of the collaborative federated learning system.
[0183] The present invention proposes a real-time device monitoring and control mechanism. Device registration, monitoring, control, and result visualization are considered. The invention synchronizes the latency of objects in a federated physical space, and minimizes model transmission latency by using OCF Iotivity between objects in the physical space and servers.
[0184] The detailed description of the present invention, as described above, has described specific embodiments. However, various modifications are possible without departing from the scope of the present invention. The technical spirit of the present invention should not be limited to the aforementioned embodiments, but should be defined not only by the claims but also by equivalents thereof.
[0185] According to the intelligent digital twin method based on a learning model for virtually monitoring and controlling objects and corresponding learning processes in a remotely distributed physical space according to the present disclosure, an intelligent digital twin system based on a federated learning model can be provided that has identical objects in a real space in cyberspace and can accurately recognize the situation in a physical space and precisely control the surrounding environment through these cyberspace objects.
Claims
1. In the operation method of an intelligent digital twin system based on a federated learning model, A first step of interconnecting objects corresponding to objects in physical real space in cyberspace to synchronize learning models of physical space and cyberspace objects; A second step of transmitting data and learning models of objects in the physical space to the cyberspace and receiving them in order to recognize the environment and situation of the physical space through objects in the cyberspace and control the surrounding environment; A third step of virtualizing a network that connects the learning model generated within each physical object in the digital twin system to the corresponding cyber object in the cyberspace through the transmitted and received data, and visualizing, sharing, and managing the learning model and performance results; and A fourth step of combining the shared learning models and generating a federated learning model to effectively perform simulation, inference, and prediction, and redistributing the federated learning model to objects in the physical space to support enhanced situational awareness and environmental control; An intelligent digital twin operation method based on a federated learning model, characterized in that it includes.
2. In claim 1, The second step is a step in which at least one object in a plurality of physical spaces that performs federated learning learns local data of the physical space and shares the parameters of the learned model with a federated server in the cyberspace through a data sharing protocol; and A step in which the federated server of the cyberspace provides a synchronized virtual object reflecting the properties of objects of the plurality of federated physical spaces, and mutually synchronizes the learning models of each object of the physical space and cyberspace to select an optimal model among the transmitted parameters and models; An intelligent digital twin operation method based on a federated learning model, characterized in that it includes.
3. In claim 1, The second step is a step in which the physical space's objects learn local data using a deep learning model and transmit information of the learned model to the federated server through a data sharing protocol, and the cyberspace's federated server receives data of the physical space's objects and parameters and gradient information corresponding to the learning model; An intelligent digital twin operation method based on a federated learning model, characterized in that it includes.
4. In claim 1, The third step is a step of virtualizing and managing a learning model so that participation in federated learning can be performed by utilizing virtualization properties from a learning model generated within each physical object in the cyberspace federated server; An intelligent digital twin operation method based on federated learning model virtualization, characterized in that it includes.
5. In claim 1, The third step includes a step of monitoring the status of the learning model in the cyberspace federation server and a step of setting the setting parameters of the learning model. An intelligent digital twin operation method based on a federated learning model, characterized in that the local and global performance of objects in the federated physical space are monitored and the learning process is controlled through virtual objects of objects in the physical space, and the parameters of model parameters (weights) and gradients information received from objects in the federated physical space are set.
6. In claim 1, The third step is a step of providing a performance result table and performance metrics of objects in the federated physical space through an application by visualizing them in a digital twin environment in the federated server of the cyberspace; An intelligent digital twin operation method based on a federated learning model, characterized in that it includes.
7. In claim 1, The fourth step includes a step of simulating using a learning model in the cyberspace federation server and a step of performing prediction using the learning model. An intelligent digital twin operation method based on a federated learning model, characterized in that the federated server of the cyberspace selects an optimal learning model based on the simulation and prediction results and provides the selected optimal global model as an object of the federated physical space.
8. In an intelligent digital twin system based on a federated learning model, A cyberspace federation server that sets objects in cyberspace that correspond to objects in physical reality to be the same in order to synchronize learning models in physical space and cyberspace; A plurality of objects in a physical space that transmit data of objects in the physical space to the federated server to recognize the environment and situation of the physical space through objects in the cyberspace and precisely control the surrounding environment; An intelligent digital twin system based on a federated learning model, characterized in that the federated server learns, shares, and manages learning models generated from each physical object in the digital twin system through the data of the received physical objects in the cyberspace, combines the shared multiple learning models to improve performance, and redistributes them to objects in the physical space to perform improved situational awareness and environmental control.
Citation Information
Patent Citations
Digital twinborn platform construction method, device and equipment based on federated learning
CN114945044A
Federal learning-based reliability optimization method for digital twinning-assisted industrial Internet of Things
CN115310360A
Arched sunshade using a color galvanized iron sheet with frame-formed
KR1020230040248A
Computing system for virtual sensor implementation using digital twin and method for realtime data collection thereof
KR102355178B1
Real-time distributed similation device using digital twin and method using the same
KR102411891B1
Cited By
Intelligent power supply planning method based on medium-voltage power distribution network
CN119171437A
Coal mining power grid operation optimization method and system based on intelligent analysis
CN120810600A
Application specific auto-evaluation for large language models (LLMs)
US12645883B2
Application Specific Auto-evaluation for Large Language Models (LLMs)
US20260023929A1
