A Bayesian Network under Strict Chain Model for Computing Flow Risks in Smart City

Risk management is a key factor for smart city running. +ere are many risk events in a strict process like transportation management of a smart city or a medical surgery in a smart hospital, and every stepmay lead to one kind of risk or more. In view of the fact that the occurrence of the flow risks follows the sequence formed by each process step, this paper presents a Bayesian network under strict chain (BN_SC) to model this situation. In this model, the probabilistic reasoning formula is given according to the sequence of process steps, and the probabilities given by the model can do risk factor analysis to support the system to find an effective way to improve the process like machine manufacturing or a medical surgery. Finally, an example is analyzed based on the information given by doctors according to the situation of LC in their hospital located in Sichuan Province of China, which shows the effectiveness and rationality of the proposed BN_SC model.


Introduction
Machine learning has applications in various fields for smart city running, such as machinery manufacturing, especially in probability evaluation [1][2][3]. Bayesian learning as a machine learning method can estimate the probabilities of risk occurrence like medical risk events in the medical process [4][5][6][7]. One or more of which will lead to the occurrence of other risk events, for example, in laparoscopic cholecystectomy, trocar puncture may cause intestinal injury, which often leads to infection.
In this kind of situation, the correlations of events can be quantified in a Bayesian network [8,9]. However, the occurrence of risk events connected with the medical process, for example, LC must follow the surgical steps that construct a strict chain for the Bayesian net to follow. Existing quantitative research rarely studies on models for this special feature. According to this situation, we present a Bayesian network under strict chain (BN_SC) model for the first time. In this model, the probabilistic reasoning formula according to the sequence of surgical steps processes the logical inference for the probability of each risk subjected to the strict chain constructed by the surgical steps of LC. BN_SC model can calculate the probabilities of risk flow more effectively than the traditional Bayesian network. e remainder of the paper is organized as follows. Section 2 will review the research about the Bayesian network and we will illustrate the process of LC with a directed acyclic graph in Section 3. In Section 4, the BN_SC model will be proposed, including the logical inference of the risks events and the formula to compute the probabilities of risks in LC. Finally, an example is analyzed based on the information given by doctors according to the situation of laparoscopic cholecystectomy in their hospital, which shows the effectiveness and rationality of the BN_SC in Section 5.

Related Works
Previous studies have comprehensively expounded the concept and related properties of Bayesian networks. Tuyls and Maes pointed out that a Bayesian network is a directed acyclic graph, which consists of a set of random variables. e meaning from node X to node Y is that node X has a direct influence on node Y [10]. e main feature of the Bayesian network is that it shows the interdependent relationship between variables. Koller and Friedman et al., Meinshausen and Btihlmann, and Wainwright and Jordan pointed out that the graph connected by undirected edges between variables is an undirected graph known as Markov network [11][12][13]. ese graphs produce undirected graph models, which are more suitable for analyzing the similarity and related behavior between variables. Ghahramani, Heckerman et al., and Neapolitan pointed out that a graph connected by a directed edge of variables is a "directed graph," and a directed graph without a cycle is a "directed acyclic graph" (DAG) [14][15][16]. Directed acyclic graphs are usually based on the concept of family order. For example, in A⟶B⟶C, A is the parent node of B, C is the child node of B, A and B are the ancestors of C, and B and C are the descendants of A. is ranking clearly expresses causality, and these figures produce a class of models called Bayesian networks. Andersson et al., Gillispie and Perlman, and Pearl have pointed out that some directed acyclic graphs have twoway edges, which are suitable for situations where some variables interact with each other [17][18][19]. ey represent a class of Markov equivalent directed acyclic graphs.
Bayesian network is widely used in risk evaluation research. Ronald et al. show that chains of events can lead to increased or critical emissions of volatile organic compounds by assessing risks based on the Bayesian network [20]. Bhattacharjee applied a Bayesian model that can handle death data analysis without stratifying in the presence of competing risks [21]. Sanchez et al. develop a general framework and a method to estimate the impact of project management maturity on project performance by using Bayesian networks to formalize project management experts' knowledge [22]. Masmoudi et al. used a discrete Bayesian network with a latent variable to model the payment default of loan subscribers [23]. Punyamurthula and Badurdeen represented operational risks of production line and their causal relationships based on Bayesian Belief Networks [24].

Process of LC
Laparoscopic surgery is a new method of minimally invasive surgery, which is the inevitable trend of the future development of surgical methods. Cholecystectomy is one of the most common abdominal operations, which is usually performed in laparoscopic surgery in developed countries. For example, 90% of cholecystectomy in the United States is performed by laparoscopy. Laparoscopic cholecystectomy is regarded as the "gold standard" for surgical treatment of cholelithiasis [25,26].
Laparoscopic cholecystectomy is divided into five steps, which include trocar puncture (into the abdomen), separation of adhesion, anatomy bile triangle, dissection of gallbladder bed, and removal and suture of gallbladder. In the surgery, intestinal injury may be caused by trocar puncture, bile duct injury may be caused by separation of adhesion, anatomy of bile triangle, and dissection of gallbladder, and vascular injury may be caused by removal and suture of gallbladder. Moreover, the three kinds of injuries may lead to infection and massive hemorrhage, which can eventually lead to death. In order to describe the risk probability in LC surgery more succinctly, Table 1 shows the mathematical symbols in this paper.
According to analysis, we can get the directed acyclic graph of LC operation as shown in Figure 1. Figure 1 describes the specific process how the LC works. We can build a special model by following the logic derived from the strict chain. As shown in the figure, the risk of R 2 happened in the process of Step 2. Moreover, the occurrence of R 1 means the failure of Step 1, which means the surgery cannot be performed and R 2 cannot occur. e five surgery steps formed a chain above the Bayesian network of risks in the surgery. e occurrence of each risk needs to follow the order of the steps in the chain strictly. is changes the rule of the traditional inference of Bayesian network. To solve the problem, we present a new model in Section 4.

Bayesian Network under Strict Chain (BN_SC)
According to the analysis in Section 2, we build a Bayesian network to model the LC process. Different from the traditional Bayesian network, in many medical procedures, the risk Bayesian network is developed under the surgical process such as the Bayesian network of LC surgery in Section 2, and the surgical process is characterized by the fact that the next step can only be taken after the previous step surgical procedure is successful. So those medical steps construct a strict process chain naturally such as S 1 to S 5 of LC, and more importantly, the Bayesian network of surgery risks should follow the steps of the chain model. According to this characteristic, this paper proposes Bayesian network under strict chain model. Under BN_SC model, if j � i + 1, then surgical step j can only begin after surgical Step i completes successfully. e formula for calculating the probability of the risk occurrence of the event j is as follows: Here, P(D i ) means the probability of the surgical Step i completed successfully. is paper assumed that only when the surgical Step i causes the risk i will lead to the unsuccessful surgery, and some other unexpected factors such as power outages are not under consideration. So, P(D i ) and P(R j ) form complementary relationship, that is, P(R j ) � 1 − P(D i ). In laparoscopic surgery, the patient is bound to have the first surgical step after entering the procedure, so the first surgical step is bound to occur here, that is, P(S 1 ) � 1.
erefore, the probability of intestinal injury risk P(R 1 ) caused by the first surgical procedure can be represented as follows: 2 Complexity e probability of bile duct injury risk P(R 2 ) caused by multiple surgical procedures S 2 , S 3 , and S 4 can be represented as follows: Moreover, the probability of incision tear risk P(R 3 ) can be represented as follows: According to the DAG of LC, three risks can lead to the risk of infection R 4 and the risk of massive hemorrhage R 5 . However, this conditional probability cannot be calculated by statistics. It can only be quantitatively judged based on the experience accumulated by doctors in completed cases. In order to get this judgement value, two sets of comparison matrices are given by doctors who are allowed to score 1-9. e numbers 3, 5, 7, and 9 correspond to the verbal judgments "moderately more dominant," "strongly more dominant," "very strongly more dominant," and "extremely more dominant" (with 2, 4, 6, and 8 for compromise between the previous values). We are permitted to interpolate values between the integers, if desired, or use numbers from an actual ratio scale of measurement. is scale is mathematically derived from stimulus-response theory and has been extended through the use of structuring and decomposition to assume arbitrarily large values as necessary. Firstly, for risk R 4 , we use pairwise comparison to research which risk R 1 , R 2 , R 3 is more likely to cause R 4 . After entering scores given by doctors into matrix, the contribution ratio of three kinds of risk R 1 , R 2 , R 3 to R 4 is obtained by calculating the eigenvector, and the contribution ratio of R 1 , R 2 , R 3 can be represented as w 1 , w 2 , w 3 :

(5)
By the same token, the contribution ratio of R 1 , R 2 , R 3 to R 5 can be represented as w 4 , w 5 , w 6 : In addition, by comparing the risk of massive bleeding and the risk of infection leading to death, the weight of risk R 4 , R 5 can be obtained, which can be represented by C 0 , C 1 : en, the final weight C 2 , C 3 , C 4 of R 1 , R 2 , R 3 can be obtained by the following formula: Based on the above formula, we can use P(D 1 ), P(D 2 ), P(D 3 ), P(D 4 ), P(D 5 ) to express the probability of death. According to the following formula, we

Symbols
Descriptions S 1 Trocar puncture (into the abdomen) happened S 2 Separation of adhesion happened S 3 Anatomy of bile triangle happened S 4 Dissection of gallbladder bed happened S 5 Removal and suture of gallbladder happened Trocar puncture (into the abdomen) has done successfully D 2 Separation of adhesion has done successfully D 3 Anatomy of bile triangle has done successfully D 4 Dissection of gallbladder bed has done successfully D 5 Removal and suture of gallbladder has done successfully R 1 Intestinal injury R 2 Bile duct injury R 3 Vascular injury R 4 Infection R 5 Massive hemorrhage R 6 Death Strict chain Complexity analyze the relations between each surgery step and death risk:

Application: Validating Our BN_SC Model
To further illustrate the calculation process of proposed method, we implement the BN_SC model to a hospital in Sichuan Province of China. According to the existing laparoscopic cholecystectomy records of surgical cases, the hospital counted 1166 cases in the past year. e statistical results demonstrate the success ratios of trocar puncture, separation of adhesion, anatomy of bile triangle, dissection of gallbladder bed, and removal and suture of gallbladder were 0.990, 0.970, 0.873, 0.830, and 0.821. e probability of intestinal injury is 0.010 according to formula (2), and the probability of bile duct injury and vascular injury is 0.294 and 0.125 according to formula (3).
In addition, information about death, infection, and massive bleeding involves the privacy of patients, so doctors can only judge the relationship between them based on experience instead of providing specific values. According to the method given in Section 3, we asked the attending physician of laparoscopic cholecystectomy operation to give the subjective evaluation as follows: ree surgical risk comparison matrices for infection are described as follows: (12) By finding the eigenvector of the matrix, the weight is obtained: ree surgical risk comparison matrices for massive hemorrhage are described as follows: (14) By finding the eigenvector of the matrix, the weight is obtained: e surgical risk comparison matrices for death are described as follows: (16) By finding the eigenvector of the matrix, the weight is obtained: We can obtain C 2 , C 3 , C 4 by formulas (8)- (10): According to the analysis, the death risk of laparoscopic cholecystectomy surgery in a hospital in Sichuan can be obtained as follows: e BN_SC model is more effective than the traditional Bayesian model in reducing the computations of the particular conditional probabilities, because some of the conditional probabilities can be replaced by the probabilities of ex-step.
Sensitivity analysis for the quantitative relationships between the success rates of each laparoscopic cholecystectomy surgery step and the probability of death are as follows from Figure 2 to Figure 11: rough the above experimental results, it can be observed that the most effective way to reduce the risk of death is to improve the success rate of dissection of gallbladder, and the second is to improve the success rate of anatomical   6 Complexity bile triangle. In addition, the least efficient way to reduce the risk of death is to improve the success rate of trocar puncture surgery. ese conclusions have certain guiding significance for the improvement of laparoscopic surgery of a hospital in Sichuan.

Conclusion
As a crucial factor of running smart city, risk flow management need to calculate accurately. Our BN_SC model modeled a special situation for risks flow in Bayesian net, which logical inference has to follow a strict chain. is is to describe surge process especially LC in this paper. e BN_SC computed the probabilities of risks in LC by Bayesian inference follow the particular process. Our model is a special Bayesian model for the specific system, limiting to the structure of the process, but can reduce computations in the suitable situations by the formula we presented. e application of the BN_SC has proved its rationality and practicality.
e method also has a way to combine the judgments and data of several hospitals to representative group judgments to deal with the weights of risks. Our model can be applied in other probabilities inference problems that have a strict chain to follow; for example, stock prices follow a timeline or story events follow a plotline.

Data Availability
e data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest
e authors declare that they have no conflicts of interest.