scieee AI-readable full text Open interactive document viewer

A Proposal for a Federated Learning Protocol for Mobile and Management Systems

Michálek, Jakub; Oujezský, Václav; Holík, Martin; Škorpil, Vladislav

Abstract

In this research paper, we introduce a federated learning communication protocol tailored for emergency management applications. Our primary objective is to tackle the communication challenges that arise in such critical scenarios. In order to overcome the limitations associated with centralized server architectures, we present an innovative communication protocol. This protocol empowers the framework to effectively cooperate with multiple centralized servers, fostering efficient knowledge sharing and model training while ensuring the utmost data privacy and security. By harnessing this protocol, our framework elevates the performance and resilience of vital infrastructure systems operating on the Android platform, thereby facilitating real-time operational scenarios. This research makes a substantial contribution to the field of emergency management applications, as we offer a comprehensive solution that optimizes communication and enables seamless collaboration with numerous centralized servers.

Full text

Citation: Michalek, J.; Oujezsky, V.; Holik, M.; Skorpil, V. A Proposal for a Federated Learning Protocol for Mobile and Management Systems. Appl. Sci. 2024,14, 101. https:// doi.org/10.3390/app14010101 Academic Editor: Luis Javier Garcia Villalba Received: 12 November 2023 Revised: 14 December 2023 Accepted: 20 December 2023 Published: 21 December 2023 Copyright: © 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https:// creativecommons.org/licenses/by/ 4.0/). applied sciences Article A Proposal for a Federated Learning Protocol for Mobile and Management Systems Jakub Michalek †, Vaclav Oujezsky *,† , Martin Holik and Vladislav Skorpil Department of Telecommunication, Brno University of Technology, Technicka 12, 616 00 Brno, Czech Republic; [email protected] (J.M.); [email protected] (M.H.); [email protected] (V.S.) *Correspondence: [email protected] †These authors contributed equally to this work. Featured Application: The proposed protocol can be applied to systems utilizing federated learning. The design takes into account systems that necessitate both redundant and secure communication. Abstract: In this research paper, we introduce a federated learning communication protocol tailored for emergency management applications. Our primary objective is to tackle the communication challenges that arise in such critical scenarios. In order to overcome the limitations associated with centralized server architectures, we present an innovative communication protocol. This protocol empowers the framework to effectively cooperate with multiple centralized servers, fostering efficient knowledge sharing and model training while ensuring the utmost data privacy and security. By harnessing this protocol, our framework elevates the performance and resilience of vital infrastructure systems operating on the Android platform, thereby facilitating real-time operational scenarios. This research makes a substantial contribution to the field of emergency management applications, as we offer a comprehensive solution that optimizes communication and enables seamless collaboration with numerous centralized servers. Keywords: Android; communication protocol; federated learning; framework; machine learning; mobile 1. Introduction Emergency management applications [ 1 ] play a critical role in maintaining the efficient operation of various industries. For example, transportation emergency management systems play a pivotal role in significantly augmenting traffic safety and accruing substantial experiential insights in the domain of transportation emergency management. Notably, these systems facilitate expeditious information processing and environmental interaction in the context of traffic accidents. Furthermore, they enable the expeditious estimation of the temporal parameters associated with rescue operations and the evacuation of individuals in the aftermath of such incidents [ 2 ]. Thus, it is imperative to develop robust and secure frameworks and communication protocols to enhance their performance and intelligence. As the demand for crisis management grows, especially in terms of coordinated efforts among emergency response teams, there is a pressing need for reliable and rapid information access to address crisis situations effectively. Information systems (IS), particularly web applications based on client–server principles, offer one approach to managing this information. Database systems are essential for organizing logically related data for future use. Modern systems handle complex structured and unstructured data, encompassing IS programs, data analysis, and process management. Local and cloud systems, such as Google Firebase Messaging [ 3 ] and MongoDB Realm [ 4 ], are employed for notifications, remote configuration, and application management. Safeguarding the integrity of these data is a paramount concern for programmers and institutions alike. In recent years, federated learning [ 5 , 6 ] has emerged as a promising technique to harness decentralized data sources while preserving data privacy. Research into using Appl. Sci. 2024,14, 101. https://doi.org/10.3390/app14010101 https://www.mdpi.com/journal/applsci Appl. Sci. 2024,14, 101 2 of 14 federated learning in emergency management applications is undergoing progressive expansion. For example, a privacy-preserving federated transfer learning approach for disaster classification (FedTL) has been proposed, which uses federated learning for disaster analysis from an image from social networks [ 7 ], or an application using the FedResilience algorithm that improves the resilience of resource-constrained critical infrastructures [ 8 ]. Even with these developments, the exploration of federated learning within emergency management applications on the Android platform still needs to be explored. While federated learning has shown promise in decentralized data utilization, its application and exploration in the Android ecosystem for emergency management remain limited. This paper introduces our proposed KI federated learning framework specifically proposed for emergency management applications and mainly our proposed communication protocol. The abbreviation KI is based on the Czech abbreviation for critical infrastructure. The framework and the communication protocol are designed to tackle the unique challenges presented by these systems, which include limited computational resources, diverse data sources, and rigorous security requirements. The framework incorporates novel communication protocols and machine learning techniques to facilitate collaborative model training while upholding data privacy. It empowers distributed machine learning model training across multiple Android devices, capitalizing on their collective intelligence without compromising the confidentiality of sensitive data. Furthermore, the framework features adaptive learning algorithms that can dynamically adjust model updates to accommodate the changing characteristics of the infrastructure system. This adaptive capability ensures that the trained models remain accurate and relevant in real-time operational scenarios. The scientific contribution is as follows: • Introduction of the KI Federated Learning Framework: Development of a novel framework, specifically designed for emergency management applications used with Android systems. • Innovative Communication Protocol: Proposal of a communication protocol compatible with Apache Kafka and Firebase, contributing to structured communication in federated learning systems. • Adaptive Learning Algorithms: Integration of adaptive learning algorithms to dynamically adjust model updates, ensuring relevance and accuracy in real-time operational scenarios. • Expansion of Federated Learning in Android: Exploration and expansion of federated learning applications within the Android platform, contributing to the evolving field of Android-based emergency management systems. • Simulation and Evaluation: Comprehensive simulation within MATLAB Simulink to assess the efficacy of the proposed communication protocol and framework, ensuring practical feasibility. In summary, this research makes a significant contribution to the advancement of federated learning in the context of critical infrastructure systems. It provides a communication protocol and practical and secure framework tailored to the Android platform, opening up new possibilities for enhancing the performance and security of these systems. Ultimately, this will increase reliability and resilience in critical operational scenarios. The paper is structured as follows. Section 2provides a comprehensive overview of the current state of existing frameworks and tools in the realm of federated learning. In Section 3, we introduce a novel Android federated learning framework tailored to critical infrastructure systems. We delve into the crucial necessity for robust communication between end devices and central servers and the adoption of multiple independent central servers. The principles of our proposed communication protocol used in our framework are elucidated in Section 4, and the results and protocol simulation are presented in Section 5. This is followed by a detailed discussion of the outcomes and our proposed solutions in Section 6. Finally, Section 7offers a concluding perspective on the entire endeavor. Appl. Sci. 2024,14, 101 3 of 14 2. The State of the Art As part of our research [ 6 ], we present a comprehensive overview and comparative analysis of existing frameworks, along with an introduction to the fundamental principles of federated learning. Among the most prominent open-source federated learning frameworks are TensorFlow Federated (TFF) [ 9 ] and Federated AI Technology Enabler (FATE) [ 10 ]. TFF is tailored for decentralized data processing and boasts support for various algorithms such as FedAvg and FedSGD. It provides both a Federated Learning Application Programmable Interface (API) for high-level interfaces and a Federated Core (FC) API for distributed computing. TFF has demonstrated its efficacy in practical applications, such as mobile keyboard prediction [ 9 ]. FATE, on the other hand, places a strong emphasis on secure computing protocols based on homomorphic encryption and multiparty computation. It accommodates a broad spectrum of machine learning algorithms and traditional methods. Notable projects leveraging federated learning include VisionAir [ 11 ] for air quality estimation, an object recognition project by Jose Carbacho [12], and a privacy-preserving system for Android malware detection. The Flower project, built on TFF, facilitates federated learning across different servers and devices [13]. For addressing the challenge of heterogeneous data distribution, the Federated Learning with Dynamic Regularization (FedDyn) framework [ 14 ] has been developed. It tackles the balance between minimizing the error on individual devices and minimizing the global error by employing dynamic regularization to achieve convergence between local and global errors. Hybrid Federated Dual Coordinate Ascent (HyFDCA) [ 15 ] is dedicated to handling the intricacies of hybrid federated learning, where each client manages a specific subset of data samples or features. It utilizes a dual coordinate ascent approach to tackle these challenges. Lastly, the KafkaFed [ 16 ] framework introduces an algorithm for federated learning that harnesses Apache Kafka as its communication medium. KafkaFed leverages the robust messaging capabilities of Kafka to facilitate seamless communication and coordination among the participants in the federated learning process. These diverse frameworks offer a range of approaches and techniques to address the various aspects and challenges of federated learning. Emergency management applications encompass a wide array of essential systems and services crucial for a society and nation’s proper functioning. Android federated learning can have significant applications and implications within the realm of emergency management applications. The integration of federated learning on Android devices within these applications offers several advantages, including improved privacy, localized data processing, and real-time decision-making capabilities. However, it is imperative to exercise meticulous consideration concerning security, resource constraints, data quality, and compliance to ensure the successful and responsible implementation of federated learning in the context of emergency management. Android’s role in emergency management applications is an emerging field that has not received substantial attention thus far. Nonetheless, the Android operating system is gradually expanding beyond mobile devices and into the Internet of Things (IoT) domain. Consequently, it becomes increasingly crucial to explore the implications and potential applications of Android within emergency management systems. Furthermore, aside from the traditional deployment options, novel Android deployment solutions are emerging, such as Waydroid [ 17 ] and LineageOS [ 18 ]. These platforms enable the operation of a full-fledged Linux distribution with an Android compatibility layer on Android devices. This breakthrough enhances flexibility and customization, allowing users to leverage Android applications alongside Linux-based functionalities. These evolving deployment options open up exciting new possibilities for Android-based systems in a variety of contexts. Beyond the Android-based systems mentioned above, the current possibilities for implementing machine learning using Google TFlite cover a range of other devices. This includes, for example, STM32 AI [ 19 ], where custom models can be implemented on a range of microprocessors. However, this is beyond our research, and we are primarily focused on Android systems. Appl. Sci. 2024,14, 101 4 of 14 As a part of our project, we conducted an anonymous survey aimed at exploring the potential requisites and applications of integrating federated learning with Android systems in the context of critical infrastructures. The survey outcomes unveiled several pivotal requirements, with a pronounced focus on the imperative need for secure and dependable data transmission. Notably, the quality of service and ensuring the unwavering delivery of data emerged as critical facets within this domain. Furthermore, the survey underscored the significance of services relating to data management and machine learning. These services assume a central role in effectively harnessing data resources and deploying machine learning algorithms within the framework of federated learning. In sum, the survey illuminated the paramount importance of addressing security concerns, establishing a dependable data transmission infrastructure, and providing robust services for data management and machine learning. These elements are essential for realizing the full potential of federated learning when integrated with Android systems for emergency management applications. The subsequent sections elaborate on the proposed framework, taking into account the insights derived from our survey and building upon existing frameworks. 3. The Proposed Framework Components A fundamental prerequisite in our design is the establishment of a reliable communication channel between the terminal devices and the central server. This channel is crucial for transmitting loss calculations and model weights. Our design accounts for the versatility of this system to be applied across various technologies and includes provisions for backup communication methods. Furthermore, we must address the challenge of preventing the central server from becoming overwhelmed by multiple client requests. To meet this requirement, we accommodate the deployment of multiple independent central servers that synchronize during the learning process. The conceptual framework for connecting these central servers and end clients is depicted in Figure 1. Car Mobile client Generic Global model Local model Loss/Weights updates Training devices Deployment devices Mobile client Model transfer Mobile client Datastore Kafka Broker Global model Firebase Application Load Balancer Figure 1. The components of the conceptual framework. Appl. Sci. 2024,14, 101 5 of 14 In this design framework, multiple central servers are employed simultaneously, and communication is facilitated using a combination of Apache Kafka [ 20 ] and a real-time database. A real-time database is a data repository that actively gathers, processes, and enhances data immediately upon their creation, ensuring that the database remains up- to-date in real time. Kafka serves as an auxiliary communication source rather than the primary one. This choice is motivated by the need to mitigate potential data loss in the event of communication failures, necessitating the implementation of a mechanism for data retransmission. It is worth noting that our design departs from the common practice of using the protobuffer method for data transfer, instead opting for text-based communication as per the specified requirements. For the real-time database component, we have chosen the Firebase Realtime Database [ 21 ] for the development. Additionally, on the end clients, we utilize the default TensorFlow Lite [ 22 ] framework provided by Google, while the servers employ TensorFlow as their primary framework. These technology choices align with our intention to leverage the capabilities and compatibility offered by Google technologies to ensure the efficient and effective operation of the system. 4. The Proposed Communication Protocol The communication protocol proposed in this design is designed to be compatible with both Apache Kafka and the Firebase Realtime Database. In this protocol, all information, including details about model weights, is transmitted in the JavaScript Object Notation (JSON) format. This approach ensures that the data exchanged among the various components of the system can be easily parsed, interpreted, and processed by both Apache Kafka and the real-time database, enabling seamless communication and data synchronization across the system. The learning model within this system encompasses several distinct states, including: • Recovering from a Checkpoint: Involves restoring the model to a previously saved state . • Training: Entails the iterative process of optimizing the model’s parameters using training data. • Resaving the Model to a Checkpoint File: Preserves the updated state for future reference. • Exporting the Weights of the Trained Model to JSON Format: Facilitates their transfer and storage in a human-readable format. • Importing the Weights from the JSON Format Delivered by the Server: Allows the model to incorporate the updated weights received from the server into its current state. These defined states enable the model to undergo checkpoint recovery, training, and the exchange of model weights in a structured and coherent manner throughout the learning process. Furthermore, an additional feature currently in development involves two approaches for calculating the average of the weights. Firstly, the average of the weights is calculated directly on the clients. Secondly, the model itself utilizes TensorFlow functions to calculate the average of the weights. Figure 2provides an illustration of the design and implementation of the communication protocol, which is followed by the client and server-side logic, as depicted in Figures 3and 4 . The protocol commences when the client initializes and retrieves the configuration information from the Firebase Realtime Database. This configuration includes details like the current model version. Subsequently, the client queries the database to select the server intended for training by sending a server selection message. All queries, including this one, are sent to the Firebase Realtime Database and/or Kafka. Furthermore, the communication protocol incorporates a “learning exchange message” designed to convey critical information related to model training. This message comprises several essential components, including a designated client number, priority level, sequence number, and a type entry specifying the message’s nature. The type entry distinguishes Appl. Sci. 2024,14, 101 6 of 14 between messages containing computed model loss and those intended to transmit updated weights for the global model. By incorporating these elements into the learning exchange message, the protocol establishes a well-structured format for transmitting vital information relevant to model training. The client number helps identify the sender, while the priority and sequence numbers aid in organizing and prioritizing messages. The type entry allows for the precise interpretation and handling of different data types, ensuring clarity and consistency in the communication process. This standardization promotes effective coordination and synchronization in the learning exchange process between clients and servers. KEEPALIVE clientID status serverID status CONFIGURATION ipv4AddressServer modelVersion future use LEARNING EXCHANGE clientSpecificNumber priority loss weights sequence number SERVER SELECTION clientID serverID type task Server Client Figure 2. Protocol implementation. INIT do / getConfiguration exit / setConfiguration READY do / waitingJob exit / job CONFIGURATION do / serverSelection Data do / gatherData exit / data TRAINING enter / job do / train exit / loss, weights RESTORE enter / weights do / restore, save SERVER Start app Figure 3. Client site logic. Appl. Sci. 2024,14, 101 7 of 14 DISTRIBUTION do / redistributeModel exit / waitForNewModel, Initialization MODEL do / createModel, updateModel exit / model TRAINING enter / clientsWeights do / average, train exit / selected loss, weights RESTORE enter / weights do / restore, save CLIENT Server INITIALIZATION enter / modelVersion do / clientsSelection exit / clientsTasks Figure 4. Server site logic. 5. Communication Protocol Simulation To assess the efficacy of the communication protocol design, a simulation was implemented within the MATLAB R2022a Simulink software [ 23 ]. The simulation resources are available in ref. [ 24 ]. The simulation comprised three fundamental components: a server, a database, and clients. The operational characteristics of these components are delineated through state transitions, collectively constituting a comprehensive state graph for each. Inter-component communication is facilitated through the transmission of messages and events, grounded in the reciprocal exchange of states. The constituent elements of the simulation were constructed based on the logic proposed in the communication protocol, augmented by additional logic essential for testing all conceivable scenarios that may arise during their interaction. The simulation itself was formulated to enable the emulation of communication involving any quantity of clients with a single server through a real-time database. The structural details of the individual foundational components are explicated in the subsequent sections. The state graph corresponding to the client is illustrated in Figure 5. Upon commencement of the simulation, the client initially transitions to the INIT state, wherein it requests configuration information from the database and awaits a response. Subsequent to the configuration retrieval, the client progresses to the CONFIGURATION state, wherein it selects the server for communication. Following this, the client enters the READY state, signaling its preparedness to receive a job for processing and awaits such a job from the server. Upon receipt of a task, the client enters the GATHER_DATA state, wherein client data are collated for learning. Another state, TRAINING_MODEL, involves training the model acquired during configuration, resulting in the creation of a new local model specific to the client. Post each training round, local weights are transmitted to the server, and the client anticipates the reception of new global weights. This iterative process persists until the completion of all rounds specified in the job assignment. Subsequently, the training concludes, and the client, in the RESTORE state, obtains the newly trained global model before reverting to the READY state. This cyclic process repeats periodically, contributing to the refinement of the global model. The OFF state was incorporated into the status graph, which the client enters if it is deactivated in the simulation, thereby facilitating the simulation of random login and logout events of client devices. The state graph corresponding to the server is depicted in Figure 6. Upon activation, the server transitions to the MODEL state, where a default data model is generated for subsequent enhancement by clients. It then proceeds to the SERVER_INTERFACE state, awaiting job requests from individual clients. Upon receipt of job requests from all reg- Appl. Sci. 2024,14, 101 8 of 14 istered clients, jobs are dispatched to clients in the INITIALIZATION state. The server subsequently awaits local weights from clients and, upon reception, transitions to the TRAINING_GLOBAL_MODEL state, wherein these weights are amalgamated into global weights. This process iterates until the conclusion of all rounds specified in the job. Following the overall training, a novel global model is formulated and disseminated to clients. The server reverts to the SERVER_INTERFACE state, awaiting further client task applications . The state graph for the database, as delineated in Figure 7, is formulated to consist of message and event forwarding between the server and the database. It preserves information pertaining to the status and quantity of clients. Additionally, each component encompasses a state graph for KEEPALIVE messages, which is integral for sustaining the connection between the client and the server via the database. Within the simulation, keepalive messages are periodically dispatched from both clients and the server to the database, which, in turn, monitors potential outages of clients or the server itself, reacting accordingly to these alterations. Client_1_box Client_1 TRAINING_MODEL MODEL_TRAINED entry: c1_state="model_trained" c1_rounds=c1_rounds+1; c1_model_ready=false; send(C_localWeights,Database) TRAINING entry: c1_state="training" after(10,sec) RESTORE entry: c1_state="restore" c1_model_ready=false; send(C_getGlobalModel,Database) during: ifs1_model_version>c1_model_version c1_model_ready=true; c1_model_version=s1_model_version; end CONFIGURATION entry: c1_state="configuration" exit: C_serverSelection.data="server1" send(C_serverSelection) send(C1_serverSelection,Database) INIT READY entry: c1_state="online" exit: C_getConfiguration.data="client1" send(C_getConfiguration) send(C1_getConfiguration,Database) WAIT_FOR_CONFIGURATION entry,during: c1_state="wait_for_configuration" ifreceive(C_configuration)&&C_configuration.data=="client1" c1_set_configuration=true c1_model_version=s1_model_version c1_model_ready=true end after(60,sec) 2 [c1_on==1] 2 READY WAIT_FOR_JOB entry,during: c1_state="wait_for_job" ifs1_state=="send_job" c1_job=true; c1_rounds=0; end READY_TO_JOB entry: c1_state="ready" send(C1_readyToJob,Database) [c1_on==1] 2 OFF entry: ifc1_set_configuration==true s1_clients=s1_clients-1; c1_set_configuration=false; end WAIT_FOR_DATA entry,during: c1_state="model_trained" ifc1_rounds==3 c1_job=false end ifs1_state=="global_round_trained" c1_model_ready=true; end GATHER_DATA entry: c1_state="gather_data" [c1_model_ready==true] 2 [c1_on==1] 2 after(10,sec) [c1_job==true] 2 [c1_job==false] 3 [c1_on==0] 1 [c1_on==0] 1 [c1_model_ready==true] 2 [c1_on==1] 2 [c1_set_configuration==true] [c1_on==0] 1 [c1_on==0] 1 [c1_on==0] 1 [c1_on==0] 1 [c1_on==1] [c1_on==0] 1 [c1_on==0] 1 1 Client_1_keepalive SENDING entry: ifc1_on==true send(C1_keepAlive,Database_keepalive) end WAITING after(20,sec) 2 1 Figure 5. Client state graph. Appl. Sci. 2024,14, 101 9 of 14 Server__box Server_1_keepalive WAITING SENDING entry: ifs1_on==1 send(S1_keepAlive,Database_keepalive) end after(10,sec) 2 Server_1 TRAINING GLOBAL_MODEL_TRAINED entry: s1_state="global_model_trained" s1_model_version=s1_model_version+1; send(S_globalModel,Database) exit: s1_client_weights=0; s1_ready_to_job=false; TRAINING_GLOBAL_MODEL entry: s1_state="global_round_trained" s1_ready_to_train=false; exit: send(S1_globalWeights,Database) [s1_rounds==3] 1 SERVER_INTERFACE entry,during: s1_state="waiting_for_clients"; s1_clients_ready=0; if(c1_state=="wait_for_job") s1_clients_ready=s1_clients_ready+1; end if(c2_state=="wait_for_job") s1_clients_ready=s1_clients_ready+1; end if(s1_clients_ready==s1_clients&&s1_clients_ready>0) s1_ready_to_job=true; end MODEL entry: s1_state="online"; exit: s1_model_version=s1_model_version+1; INITIALIZATION SEND_JOB entry: s1_state="send_job" s1_rounds=0; send(S1_sendJob,Database) RECIEVE_JOBS entry,during: s1_client_weights=0; ifc1_state=="model_trained" s1_client_weights=s1_client_weights+1; end ifc2_state=="model_trained" s1_client_weights=s1_client_weights+1; end ifs1_client_weights==s1_clients s1_ready_to_train=true; s1_rounds=s1_rounds+1; send(S1_ready_to_train,Database); end C_localWeights [s1_ready_to_train==true] 1 after(10,sec) 2 [c1_state=="restore"] 2 [s1_ready_to_job==true] 1 4 Figure 6. Server state graph. Database GLOBAL_MODEL entry: ifc1_state=="model_trained" send(S1_globalWeights,Client_1_box.Client_1.WAIT_FOR_DATA) end ifc2_state=="model_trained" send(S1_globalWeights,Client_2_box.Client_2.WAIT_FOR_DATA) end LOCAL_MODEL entry: send(C_localWeights,Server__box.Server_1) GLOBAL_MODEL1 entry: send(S_globalModel,Client_1_box.Client_1.RESTORE) send(S_globalModel,Client_2_box.Client_2.RESTORE) JOB entry: ifc1_state=="wait_for_job" send(S1_sendJob,Client_1_box.Client_1.READY.WAIT_FOR_JOB) end ifc2_state=="wait_for_job" send(S1_sendJob,Client_2_box.Client_2.READY.WAIT_FOR_JOB) end SERVER_SELECTION entry: switchC_serverSelection.data case"server1" ifc1_on==1&&c2_on==1 s1_clients=2; elses1_clients=1 end end CONFIGURATION entry: C_configuration.data=C_getConfiguration.data exit: send(C_configuration) switchC_getConfiguration.data case"client1" send(configuration,Client_1_box.Client_1.INIT.WAIT_FOR_CONFIGURATION) case"client2" send(configuration,Client_2_box.Client_2.INIT.WAIT_FOR_CONFIGURATION) end DATABASE_INTERFACE C_getGlobalModel 6 S1_globalWeights 5 C_localWeights 4 C_getConfiguration 1 C_serverSelection 2 S1_sendJob 3 3 Figure 7. Database state graph.