Method of Multilevel Adaptive Synthesis of Monitoring Object Knowledge Graphs

: The paper introduces a method for adaptive deductive synthesis of state models, of complex objects, with multilevel variable structures. The method makes it possible to predict the state of objects using the data coming from them. The data from the objects are collected with sensors installed on them. Multilevel knowledge graphs (KG) are used to describe the observed objects. The new adaptive synthesis method develops previously proposed inductive and deductive synthesis methods, allowing the context to be taken into account when predicting the states of the monitored objects based on the data obtained from them. The article proposes the algorithm for the suggested method and presents its computational complexity analysis. The software system, based on the proposed method, and the algorithm for multilevel adaptive synthesis of the object models developed, are described in the article. The effectiveness of the proposed method is shown in the results from modeling the states of telecommunication networks of cable television operators.


Introduction
One crucial issue that needs to be solved via monitoring and control systems for complex objects with dynamic structures (particularly monitoring and control systems for telecommunication networks) is to reconfigure networks in a timely manner, based on the current situation, and the options for its subsequent development. The necessity for network reconfiguration can arise due to the failure of one or more elements of the network, an increase or decrease in user activity, and further influencing factors, whose compositions and degrees of influence, as a rule, cannot be described a priori. Network reconfiguration requires the ability to predict the state of networks based on the data they provide.
The task of predicting the state of complex objects is solved within both symbolic and sub-symbolic approaches [1,2]. Despite significant advances in the area of neural networks developed within the sub-symbolic approach, their applications to network state prediction remain restricted, due to the complexity of the transition from single pulses, at the level of which the neural network (NN) operates, to the level of abstract symbols. Moreover, existing NN architectures do not provide deep (and, at the same time, fast) data processing. Intensive work aimed at the solution of the listed issues is being conducted, but the created architectures require more profound elaboration for further industrial application. Solving the task of prediction using symbolic methods requires a priori data about objects, their states, and behavior; moreover, most methods have high computational complexity, which leads to delays in data processing. The processing time is usually reduced by lowering the precision and accuracy of the results being generated, which can lead to errors in making decisions about reconfiguration of networks.
Given the current circumstances, a new approach to the multilevel inductive-deductive synthesis of object models with dynamic structure, suggested in [3], is of interest. The authors of [4] implemented a multilevel approach to solving the tasks of data processing and analyzing, as applied to the tasks of synthesis of the real object models, resulting in a multiple reduction of synthesis complexity. This makes it possible to use methods with high computational complexity, in practice. The objects considered in the article are multilevel with dynamic structures. Horizontal and vertical links established between the elements reflect constant and varying, in time, linear and non-linear dependences, which characterize the objects being observed and reflect their structures and behavior changes in time and space. Inductive synthesis methods allow reconstructing the object models from statistical and operational data coming from the objects; whereas deductive synthesis methods are used to prove that it is possible for the observed object to transfer to a given state in the future. Data on the expected state of the objects, as well as the transferring procedures between the different states, can be provided by the end users; furthermore, it can be received through processing statistical data obtained from observing the objects.
The research is targeted to solve a class of problems on predicting the state of complex objects with variable structures that change, in time, under the influence of an aggregation of factors. Assumptions about the expected states of the objects at the end of the prediction period are not required. The problem is stated and solved in the following conditions: the objects have hierarchical structure; statistical data about the objects and the context in which they are operating can be obtained.
To solve the class of problems stated above, the paper formulates the adaptive multilevel deductive synthesis within the development of the approach, which allows takes into account the context when predicting the states of the observed objects. The task is solved by using the mechanism of policies that control the model synthesis processes basing on the data coming from the objects.
Let us consider the real-world object with a multilevel structure that varies in time. The structure of such object can be described as a typed bipartite graph - is the set of edges representing relations between the elements of different levels (vertical relations) m is the set of levels in the structure of the object, T V and T E are the set of possible types of vertices and edges correspondingly. Consider that the edges reflect hierarchical relations between the elements of the object |T E | = 1. The set of possible vertex types is a non-empty finite set that is specified for each object. To describe relations between the elements at one level, attributed relation graphs are used G ARG = (V, E, µ, η), where V is the set of vertices, E ⊆ V × V, µ : V → MV is the function of attributing the labels to typed vertices, η : E → ME is the function of attributing labels to typed edges, MV is the set of typed vertices, ME is the set of typed edges. The sets of vertex types T V and edge types T E are non-empty finite sets. Values of vertex and edge attributes are determined by their types. In that case, the model of the multilevel object with vertical and horizontal links between the elements is as follows l is the number of levels in the object structure, E H = E 0,1 ∪ E 1,2 ∪ . . . ∪ E l−1,j is the set of edges linking vertices from different levels, E p,q = e p i q j -is the edge linking the ith element of level P with the jth element of level q, E R = E R 0 ∪ E R 1 ∪ . . . ∪ E R l is the set of edges linking the elements at the levels, E R k are the edges reflecting the links of level K, FV and FE are the sets of admissible vertical and horizontal links between the elements, ξ is the distribution function of vertices over the levels, ζ is the function of linking the vertices and edges. For vertices and edges of graph G, their types and attributes are specified.
Attributes of vertices and edges of graph G are specified as V atr i = V atr i,1 , V atr i,2 , . . . , V atr i,N , where i is the node identifier, N is the number of node attributes of the corresponding type, E atr j = E atr j,1 , E atr j,2 , . . . , E atr j,M , where j is the edge identifier, M is the number of attributes for the edge of the corresponding type. Attributes of nodes and edges are the parameters of the complex object, the values of which characterize the state of the corresponding element of the monitoring object at a specified moment. The set of attribute values at the specified moment is read by the monitoring system and is used to analyze the state of the object in the original or transformed format. At a given time t k the state of the object is described as . For vertices V L t k and nodes E H t k of the graph, their attribute values are determined. The admissible sets for nodes and edges at a point of time t k -FV t k , FE t k are subsets of the sets of admissible values of FV and FE.
When predicting the state of the monitored object, the task is to determine the values of attributes of nodes and edges of graph G t k at time point t k+T , i.e., to construct graph G t k+T . In order to do this, the possibility of transition G t k → G t k+T is proved. When predicting the states of complex dynamic objects with numerous possible states, which depend on many external and internal factors, determining the possible transition rules by an expert's way may cause significant difficulties. Prediction errors may occur as a result of using static rules, as the rules may not take into account the peculiarities of object behavior that have not been reflected in the statistical data processed during their generation. Hence, it is necessary to define adaptive synthesis of monitoring object models, where the rules are applied at each step of the synthesis. To define the rules, we can use the context Context(t k ), which is specified, based on the current state of the object and the data formed as a result of processing the values of its parameters collected by monitoring systems.
Thus, the task of adaptive synthesis of the observed object models, which consist of providing of transition: G t k Context(t k ) → G t k+1 , can be formulated as follows. It is necessary to determine the state of the monitoring object at the time point t k+1 under the condition of its operation at time t k in context Context(t k ). The state of the monitoring object at a certain point in time is determined by the state of its model elements- We propose a solution to the problem of adaptive deductive synthesis of monitoring objects, by defining the context at each step of the synthesis, based on the object parameter values coming from the monitoring systems, and applying policies that allow for a given context to determine the transition rules used in the synthesis.

Review of Related Works
Currently, the research and development of knowledge graphs (KG) as models for complex technical objects are performed in various subject areas [5][6][7][8][9]. The models of monitoring objects, based on KG, and methods for their building in case of telecommunication network monitoring, are considered in [10][11][12].
Solutions for predicting the state of complex objects using knowledge graph models are also presented in a number of papers. For example, the problem of price trend prediction, based on KG and machine learning, was considered in [13]. Further, event prediction that is based on the analysis of the evolutionary knowledge of the event ontology is described in [14]. The variety of subject areas that are "fit" to solve the prediction tasks based on KG demonstrates the effectiveness of this technology in solving separate problems of prediction [13][14][15] and providing recommendations [16][17][18][19][20][21]. However, existing solutions are poorly applicable in regards to solving forecasting problems and providing recommendations when dealing with complex objects with dynamically changing structures. For these objects, the complexity of building models and predicting their states multiplies; moreover, constant restructuring of models is required, as shown in [4,22]. In [3,23], the authors proposed building models for complex objects with dynamically changing structures, by developing methods for multilevel object model synthesis. This theory has been widely used in practice. However, the models and methods of multilevel synthesis of KGs were neither considered within the scope of the theory itself, nor within the scope of ongoing applied research. The problems in regards to predicting the state of complex objects with dynamic structures were not defined or solved.
The research results, aimed at analyzing the possibilities of using the context in the building models of complex systems, have been reflected in a significant number of works. For example, general approaches to the use of context events in modeling objects are presented in [24][25][26][27]. The listed works demonstrate the effectiveness of systems based on content analysis and adaptation of algorithms depending on context events, in comparison to traditional systems that do not use context data. These systems make it possible to achieve better quality indicators, especially in conditions of a priori uncertainty. The results of these works can be used to solve the problem of adaptive synthesis of the knowledge graph of complex monitoring objects.
In [28], application of the results of the context analysis in the synthesis of object models was proposed-to be carried out using a process control mechanism, using policies and related rules for changing the states and behavior of objects. When developing a method for adaptive synthesis of KGs, it is advisable to use the proposed solutions for context analysis and policy application together.
The current level of modern KG technologies development and RDF storages allows them to be used in modeling of complex technical systems. A number of works are devoted to the study of systems based on KG performance. A comparative analysis of the developed KGs for solving various problems is presented in the framework of the Smart City Service project [29]. This study shows that the use of KG and RDF data warehouses is suitable for big data solutions. Optimization of the KG size and redesign of SPARQL queries are considered the main approaches to ensure the required performance. This study shows how SPARQL query structures and KG size affect system performance. The relationship between SPARQL query design and system performance has also been analyzed in the Berlin SPARQL Test [30]. The information provided in the above works allows us to assert that KG-based systems can be used in fairly large industrial systems.

Conceptual Diagram of Multilevel Adaptive Synthesis
The idea of multilevel adaptive synthesis is that the prediction scheme described in [12] is extended by adding context analysis and the ability to adjust the prediction algorithm at each step. Over time, the state of the object changes, and graph G t k is transformed into graph G t k+T , s k,k+T : G t k → G t k+T . Transformation of G t k into G t k+T might be implemented in one step s k → s k+1 or might require a sequence of transformations s k → s k+1 → · · · → s t k+T−1 → s t k+T . Transformation s k,k+1 consists in the synthesis of G t k+1 based on G t k . The time step of the synthesis is defined as Possible options for restructuring synthesis processes, depending on the context, are determined by the appointment and use of policies. Each policy is associated with a set of rules for transitions from G t k to G t k+T , according to which, the sets of admissible values of nodes and edges of the model are determined, as well as values for nodes and edges from the sets of their admissible values. As a result of applying the rules, transformations s k → s k+1 are performed.
A conceptual diagram of the multilevel adaptive synthesis is shown in Figure 1. According to the conceptual diagram, multilevel adaptive synthesis involves the following steps: 1.
Determining the policies P S and rules P for changing the attributes of the model nodes and edges over time depending on the context.

2.
Definition of the object model at the current time point t k :G t k based on monitoring system data.

3.
Initiation of the model synthesis in one or more steps.

4.
Definition of the context (based on the current state of the monitoring object)-S i .

5.
Based on the context, choosing a policy P S i for rebuilding the object model synthesis process on the current step. 6.
Transformation execution G t k → G t k+1 . The transformation involves defining the values of the attributes of the nodes and edges of the model. 7.
If the target point on the timeline has been reached-t k + T, the task of searching for the predictive model is considered completed and the results of the prediction are recorded to the knowledge graph in the format of time series (the number of elements of the series corresponds to the number of prediction steps). 8.
If the target point on the timeline has not been reached-t k + T, the current time is increased according to the prediction period ∆t and the procedure proceeds with step four-definition of the current context.
The context is understood as external operation conditions of the monitoring object, which affect its state. The context is defined through the set of context events-S = S 1 , S 2 , . . . , S Z , at time point t k the context is determined by the context event S i . The context can be described as the ratio of the current context event S i and the state of monitoring object G t k : To determine the current context event, one must analyze the values of a given set of parameters of the monitoring object, which act as context metrics [27]. For a formal description of the context metrics, an ontological model of the environment of the monitoring object is used A, which is described as follows: where O-the set of the context metrics, Q-the set of the context metrics attributes, D is the set of admissible values for context metrics, C is the set of constraints. Thus, the task of modeling the current situation defined by context can be expressed as follows. Given the specified and formalized knowledge of the monitoring object environment A (O Q D C), it is required to develop a model of the context event S, represented by application context When determining the context event based on the analysis of the monitoring object state at time t k , a three-level gradation for the values of the node and edge attributes is proposed.
The entire range of values for the attributes of nodes and edges is divided into three ranges:

•
Green range (corresponds to the normal state of the object. All the object elements are functioning properly); • Yellow range (corresponds to the boundary state of the object. It is required to pay attention to the functioning of one or more elements); • Red range (faulty state of the object, when it is necessary to urgently take certain actions to return its element or elements to a good state).
This approach allows using a fairly simple algorithm to determine the current context event S i .
The presence of the current context allows rebuilding the synthesis processes of the object models. A policy mechanism is used for rebuilding processes. For the context event S i the policy P S i is defined as follows: where p S i ,j G S i ,t k -the rules for the policy P S i , W-the number of the policy P S i rules, G S i ,t k -a subset of nodes and edges that a context event can change S i (context metrics). Policies define a set of rules that are based on the statistics of the monitoring object's functioning or by expert advice, taking into account the context for which the policy is defined.
At each step of the synthesis, to determine the sets of admissible values of nodes and edges of models based on a set of rules P, the following functions are defined: Using the obtained functional dependencies, the transformation s k → s k+1 is performed.
Thus, the proposed scheme provides the possibility of adaptive synthesis of the processes, of forecasting the state of the observed objects, which makes it possible to solve the forecast problems, taking into account the context determined by their current state.

Adaptive Synthesis Method Description
The adaptive synthesis method is designed to transform the model of the monitoring object G t k , describing an object at a point in time t k , into the object model at the moment of time t k+T -G t k+T . During the synthesis, the policies P S are defined, depending on the context as well as the related rules, according to which the synthesis of the object model is performed.
The following are the input data for the adaptive multilevel deductive synthesis method:

•
The time interval at which the synthesis of the model of the monitoring object is performed [t k ;t k + T]. • Synthesis step-∆t.

•
Model of the monitored object, in which the values of the attributes at the moment t k -G t k . • Policies used for model transformation s k,k+1 :P S .
The output data for the method include the state of the monitoring object and values of its attributes at time t k+T -G t k+T .
A formal description of the steps of the multilevel adaptive synthesis method are given below:

1.
Get the policies used for synthesis: P S : P S 1 , P S 2 , . . . , P S Z , where P S i -the policy related to the context event S i , Z-the number of context events. According to the data received from the monitoring system (step 3), or according to the synthesis results in the previous step (step 8), the definition of the context event S i ⊂ S G t k .

5.
Choose the policy P S i based on the defined context event S i - where P S i S i p S i ,j G S i ,t k -the rules, connected to the policy, W-the number of rules defined for the policy P S i , G S i ,t k -a subset of the attributes of nodes and edges, the state of which can change when a context event S i occurs. 6.
Using the selected rules, determine the set of acceptable values for nodes and edges at step t k+1 : as well as define values for parameters of nodes and edges: 1.
The model of the monitoring object building at the step t k+1 : If t k + 1 ≥ t k + T, then G t k +1 = G t k +T -the required model is built, otherwise, set the value t k = t k + 1 and go back to Step 4. Figure 2 represents a schematic diagram of the adaptive state prediction algorithm for a complex monitoring object using policies. The synthesis of the object model is performed in steps, starting from time t k to the time t k + T with the step ∆t.

Algorithm Description
Diagram description: Step 1. Setting the initial point in time t k , with reference to which the prediction for the future is made.
Step 2. Request the current state of the monitoring object and attribute values of its nodes and edges G t k , G t k atr .
Step 3. Calculate the set of context metrics O p,t k at time point t k . The algorithm for step 3 is shown in Figure 3. The algorithm consists of the following steps: 1.
The context metrics counter is set to zero: i = 0.

2.
The metric of the context O i is calculated; the metrics of the context are determined through the elements of the model of the monitoring object, the influence is on which context is significant, and by the values, of which it is possible to determine the context of the monitoring object functioning.

3.
According to the assigned range of values, the color for the O i context metric is determined: • Normal operation (green range); • Borderline Operations (yellow range); • Abnormal or abnormal operation (red range).

4.
If there are unconsidered metrics of the context (i ≤ p), the counter of the metrics of the context i = i + 1 increases, and a jump to step 2 is performed. Otherwise, it is the end of the algorithm.
Step 4. Determine the context event S i at time t k (based on the results of calculating the context metrics in step 3).
Step 5. Request additional data on node and edge attribute values at the lower levels of the model for the monitored object parameters that fall within the "Red" and "Yellow" value ranges.
Step 6. Policy P S i determination is based on the context event S i that has been defined at step 4.
Step 7. Build the monitored object model G t k +1 . The algorithm for step 7 is shown in Figure 4. The algorithm consists of the following steps: 1.
The counter of the model nodes is set to zero: i = 0.

2.
The range of valid values for the node V L i is calculated. For this, a rule from the policy The value for the node V L i is calculated using the function If there are no considered nodes (i ≤ nodes number), the counter of nodes i = i + 1 increases, and a jump to step 2 is performed. Otherwise, to step 5.

5.
The counter of the edges of the model is set to zero: i = 0. 6.
The range of valid values for the edge E i is calculated. For this, a rule from the policy Calculate the value for the edge E i using the function ψ E H FE t k+1 , E H t k or ψ E R FE t k+1 , E R t k depending on the type of edge E i (vertical or horizontal). 8.
If there are unconsidered edges (i ≤ edges number), the counter of edges i = i + 1 is incremented; go to step 6. Otherwise, it is the end of the algorithm.
Step 8. If time point t k + T has not been reached, proceed to the following step; otherwise, complete the synthesis.
Algorithm 1 of the adaptive state prediction method for a complex monitoring object is given below.

Algorithm 1 Adaptive Prediction of Complex Object State Method
//Init Set t = t k //Set t k -initial current timestamp for prediction algorithm Set G t = getCurrentState(t) //Get initial object state. Description of the function is out of article scope. Set G attr t = getCurrentAttr(t) //Get initial attributes values. Description of the function is out of article scope. //The main prediction cycle Set P = getPolicy(S) //Get policy for the next step processing Set G t+∆T = getTheNextStepModel(P, G t ) //Calculate the object state for the next step Set G attr t+∆T = getTheNextStepAttr P, G attr t ,Ĝ attr t //Calculate the attributes values for the next step Set t = t + ∆T //Go to the next step } End

Computational Complexity of the Adaptive Multilevel Deductive Synthesis Algorithm
The computational complexity of multilevel deductive synthesis is determined by the number of operations or the time required to build the model. The upper time limit T H is defined as The computational complexity of adaptive synthesis is higher than non-adaptive due to the need to determine the current context at each step of the synthesis. The graphs of the dependence of the synthesis time on the number of context events, for models with different numbers of elements, are shown in Figure 5.
The figure shows the dependences for the following synthesis parameters: • Non-adaptive synthesis (S = 0); • Adaptive synthesis, the number of context events S = 1; • Adaptive synthesis, the number of context events S = 4; • Adaptive synthesis, the number of context events S = 25.
The source code for Python scripts designed to assess the complexity of adaptive synthesis is available in the public GitHub repository [31].

The Structure of a Software System for Multilevel Adaptive Synthesis of Object Models
The structure of the developed software system for multilevel adaptive synthesis is shown in Figure 6.
The proposed system consists of the following components. 1.
The monitoring system core components, which include: • Module of monitoring data storage and analysis. • System bus. • External API services.

2.
Knowledge graph, which includes: • SPARQL 1.1 compliant RDF data storage. This component is the key element of the solution holding knowledge graph triples (static and dynamic components), and supporting the functions of adding/removing triples and searching in the RDF storage. The storage also includes a data analytics module. It stores both static and dynamic graph data. • An ontology repository that stores replicas of all ontological models of the knowledge graph. It is based on the standards for data and ontology description: RDF [32], RDFS [33], OWL [34]. • A dynamic REST service that supports API for interaction with external systems, in particular, with the monitoring system core.

3.
Operator IT systems, which provide static data for the model. The following operator IT systems are considered: • IT system for network infrastructure management that provides data on the network topology, network devices, network services, network applications, accessible data, and access rights. • A billing system that provides data on users, their devices, personal accounts, tariffs and payments.
• CRM systems that provide data on the history of operator-user interaction.

4.
The module of prediction using an adaptive multilevel adaptive synthesis algorithm, including: • Context analysis module, which allows define the current context event. • Rules and policies engine, which is used to define policies and rules for each prediction step. • Adaptive prediction engine, which creates prediction nodes in the RDF/XML format and deploys them to the knowledge graph. Figure 6. The structure of the software system for multilevel adaptive synthesis of the knowledge graph of the monitoring object.

Task
In order to validate the proposed method, a telecommunication network (TN) was considered as a complex monitoring object. The network is represented as a hierarchy of network devices-routers that accumulate network traffic from user devices. The devices are either stationary or mobile. Mobile devices can move between the coverage areas of different routers. In case the traffic on a router exceeds a threshold value, an emergency situation on the router is defined. The operator has a task to predict the internet traffic on network routers.

Initial Models of the Monitoring Object
Based on network statistics for routers, stationary, and mobile devices, the rules have been generated in order to assess the traffic. In defining the rules, the following models were used:

•
Model of subscriber devices, describing their state and behavior in terms of hours per day and working/non-working days. • Statistical model of the movement of mobile devices between the coverage areas of routers, in terms of hours per day and working/non-working days. • Static crash model for routers when the aggregate traffic exceeds the limit.
To assess the state of the routers, the following are defined: • Three ranges for the values of the total traffic on the router at a point in time-normal traffic (green zone), increased traffic (yellow zone, when all requests are processed, but there is not enough performance margin), and critical traffic (some or all requests cannot be processed).

•
Three ranges for the number of mobile devices registered on the router at a timenormal number (green zone), increased number (yellow zone, when all requests from devices are processed, but the performance margin is not enough) and critical number (part of requests from devices or all, cannot be processed).

Proposed Solution
In the considered conditions, the use of only rules for subscriber devices by hours and days cannot provide a reliable forecast, since the movement of user devices and, as a consequence, the possible overload of some routers and the occurrence of emergency situations, must be taken into account. When building a network model, congestion, emergency, and other situations are considered as context events. These events are analyzed at each step of the forecast execution; depending on the events, policies are assigned to predict the state of the object.
The context events are suggested to solve the problem are shown in Table 1:

Task Solution
The structure of the fragment of the knowledge graph that provides the solution to the task is shown in Figure 7. For each router at each prediction step, a node in KG tnmo:PredictionNode is specified with the following properties: Thus, the total traffic on the router is determined by adding the traffic from stationary and mobile devices, and it is the value of the total traffic that is analyzed for further color range distribution.
Assumptions and constraints of the experiment: • In order to solve the present task, when calculating the traffic from mobile devicesthe average daily traffic value of an active mobile device is used. This approach simplifies the implementation of the algorithm and, at the same time, it does not interfere with the achievement of the goals of the experiment being carried out.

•
Only daily rules are used to determine traffic fluctuations and the number of connected devices, as fluctuations within a week will differ only within a day value, depending on the working/non-working day. This limitation does not affect the representativeness of the experiment performed.

•
For the rules, it is assumed that the traffic and the number of connected mobile devices are subject to normal distribution and are set for each time interval by their average values and standard deviations.
For the purpose of computer modeling, the network router hierarchy is restricted to the scheme shown in Figure 8. Color classification of network traffic, emergency situations, and number of connected devices are shown in Table 3. The policies described in Table 2 are given in csv format for automated processing as  follows:   POLICY_ID  RULE_ID  ACTION  S1  1  aggregation  S2  1  aggregation  S2  2  collection  S3  1  aggregation  S3  2  overload  S3  3  collection  S4  1  aggregation  S4  2  failure  S4  3  collection  A fragment of the daily traffic fluctuation rules and the number of connected devices  in csv format is given below:   INTERVAL_ID  PARAMETER  MEAN  DEVIATION  00  traffic  1000  25  00  devices  500  12  01  traffic  700  11  01  devices  400  50 To solve the task, a Python program has been developed that calculates the necessary predictive components for the knowledge graph in RDF/XML format. These data are then uploaded to the KG and are available for analysis through SPARQL queries. All data are available in a public repository on GitHub [31].
For purposes of the experiment, all of the context events S 1 -S 4 described in Table 1 were modeled for the lower-level routers ( Figure 8): net: Device_4-net: Device_7. The following SPARQL queries show the results of the experiment (request #1 for normal functioning of the router is listed below. Request #2 for the yellow zone, request #3 for the red zone, and request #4 for router failure are available in the public GitHub repository [31].

Conclusions
The proposed method of multilevel adaptive synthesis of monitoring objects allows solving the class of problems, of predicting the state of complex objects with variable structures, taking into account the context in which the objects are operating. The tasks are solved by using the mechanism of policies that control the model synthesis processes based on the data coming from the objects. The context is understood as the external conditions of the monitoring object functioning, which influence the state of the object. In this case, context analysis occurs at each step of the synthesis, and depending on a specific event in the context, an appropriate policy is selected for synthesis at the next step. This approach allows adapting the state forecasting algorithm, depending on the current context, which ultimately improves the forecast by taking into account additional objective information. The policies used in the method contain a set of rules generated for each context event. To define the context events, we propose using a three-level color gradation of the values of the attributes of nodes and edges, which simplifies the analysis algorithm and does not interfere with the achievement of the synthesis goal.
The presented example of forecasting the incoming traffic and the number of connected user devices for the routers of the TN demonstrated how the context of the network functioning can be considered, and how it can affect the forecast of the state of the network hubs. As a development of this study, it is advisable to consider the possibility of dynamic reconfiguration of the monitoring object, depending on the context of its functioning, in order to avoid situations of its abnormal operation.