Fire risk assessment method, system, terminal equipment and medium
By constructing a fire risk structural equation model and a dynamic Bayesian network, combined with knowledge graph display, it solves the problems of high manual participation and low assessment accuracy in fire risk assessment models in the existing technology, and achieves efficient and accurate quantitative assessment of fire risk. .
Patent Information
- Application Number
- CN202210333809.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-31
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-03-31
AI Technical Summary
Existing fire risk assessment models have high manual participation, low assessment accuracy and limited application scenarios, and cannot accurately represent the interaction between indicators at the same level or across levels.
Construct a fire risk structural equation model, determine the fire evolution trend probability through a dynamic Bayesian network, and use the knowledge graph to display the model output results to obtain path coefficients, reducing the difficulty of subsequent model tuning and improving assessment accuracy.
It achieves efficient quantitative fire risk assessment, improves the accuracy and intuitiveness of the assessment, can more accurately reflect the relationship between characteristic variables, and reduces manual participation.
Smart Images

Figure CN114819525B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data management, and in particular to a fire risk assessment method, system, terminal equipment and computer-readable storage medium. Background Art
[0002] The existing fire risk assessment models are mainly evaluated through fuzzy comprehensive evaluation method, hierarchical analysis method, commercial power method and other methods, but these methods cannot characterize the mutual influence relationship between indicators at the same level or across levels; and the existing assessment models mainly rely on experts to score characteristic variables; in addition, the conditional probability of the existing Bayesian network model is mainly set through hierarchical analysis method or expert experience, which is not accurate enough.
[0003] In summary, the existing fire risk assessment models have high human participation, low assessment accuracy and limited application scenarios. Summary of the invention
[0004] The main purpose of the present invention is to provide a fire risk assessment method, system, terminal device and computer-readable storage medium, aiming to improve the assessment efficiency when performing risk assessment on dynamic fires.
[0005] The fire risk assessment method comprises the following steps:
[0006] Constructing a fire risk structural equation model, training the fire risk structural equation model to obtain model output parameters, displaying the model output parameters through a knowledge graph, and obtaining path coefficients in the model output parameters;
[0007] Acquire dynamic fire development influencing parameters, and determine the probability of fire evolution trend through a dynamic Bayesian network based on the dynamic fire development influencing parameters and the path coefficient;
[0008] A dynamic fire assessment network is obtained based on the fire evolution trend probability, a preset dynamic fire assessment index system and preset expert knowledge, so as to perform a quantitative risk assessment on the fire through the dynamic fire assessment network.
[0009] Optionally, the step of displaying the model output parameters through a knowledge graph includes:
[0010] Constructing the ontology in the knowledge graph and the relationship between the ontology according to the preset fire risk characteristic variables, the intermediate variables corresponding to the fire risk characteristic variables and the preset fire parameters;
[0011] The model output parameters are displayed through a knowledge graph based on the ontology and the relationship between the ontologies.
[0012] Optionally, the step of determining the dynamic fire development influencing parameter and obtaining the probability of the fire evolution trend through a dynamic Bayesian network based on the dynamic fire development influencing parameter and the path coefficient includes:
[0013] Determining dynamic fire development influencing parameters, and determining the conditional probability of the dynamic fire development influencing parameters according to the path coefficient;
[0014] Based on the fire development stage main framework of the dynamic fire development influencing parameters and the conditional probability, the fire evolution trend probability is obtained through a dynamic Bayesian network.
[0015] Optionally, the step of constructing a fire risk structural equation model includes:
[0016] A fire risk structural equation model is constructed based on the fire risk characteristic variables.
[0017] Optionally, after the step of constructing the fire risk structural equation model and before the step of training the fire risk structural equation model to obtain model output parameters, the method further includes:
[0018] Import preset multi-source heterogeneous data into the fire risk structural equation model to score the fire risk characteristic variables according to the multi-source heterogeneous data, wherein the multi-source heterogeneous data includes: numerical values, pictures, videos, excel, pdf and word.
[0019] Optionally, after the step of obtaining a dynamic fire assessment network based on the fire evolution trend probability, a preset dynamic fire assessment index system and preset expert knowledge, the step further includes:
[0020] The dynamic fire assessment network is evaluated by using preset test data, and the evaluated dynamic fire assessment network is displayed through a knowledge graph.
[0021] Optionally, the step of training the fire risk structural equation model to obtain model output parameters includes:
[0022] Model identification, model estimation and model evaluation are performed on the disaster risk structural equation model to obtain model output parameters to complete the training of the fire risk structural equation model.
[0023] To achieve the above object, the present invention further provides a fire risk assessment system, the fire risk assessment system comprising:
[0024] An acquisition module is used to construct a fire risk structural equation model, train the fire risk structural equation model to obtain model output parameters, display the model output parameters through a knowledge graph, and obtain path coefficients in the model output parameters;
[0025] A determination module, used to obtain dynamic fire development influencing parameters, and determine the probability of fire evolution trend through a dynamic Bayesian network based on the dynamic fire development influencing parameters and the path coefficient;
[0026] The obtaining module is used to obtain a dynamic fire assessment network based on the fire evolution trend probability, a preset dynamic fire assessment index system and preset expert knowledge, so as to perform a quantitative risk assessment on the fire through the dynamic fire assessment network.
[0027] Wherein, each functional module of the fire risk assessment system of the present invention implements the steps of the fire risk assessment method described above when running.
[0028] To achieve the above-mentioned purpose, the present invention also provides a terminal device, which includes: a memory, a processor, and a fire risk assessment program stored in the memory and executable on the processor, wherein the fire risk assessment program implements the steps of the fire risk assessment method as described above when executed by the processor.
[0029] In addition, to achieve the above objectives, the present invention also proposes a computer-readable storage medium, on which a fire risk assessment program is stored, and when the fire risk assessment program is executed by a processor, the steps of the fire risk assessment method as described above are implemented.
[0030] In addition, to achieve the above object, the present invention also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the fire risk assessment method described above are implemented.
[0031] The present invention provides a fire risk assessment, system, terminal equipment, computer-readable storage medium and computer program product, which construct a fire risk structural equation model, train the fire risk structural equation model to obtain model output parameters, display the model output parameters through a knowledge graph, and obtain path coefficients in the model output parameters; obtain dynamic fire development influencing parameters, and determine the probability of fire evolution trend through a dynamic Bayesian network based on the dynamic fire development influencing parameters and the path coefficients; obtain a dynamic fire assessment network based on the fire evolution trend probability, a preset dynamic fire assessment indicator system and preset expert knowledge, so as to perform a quantitative risk assessment on fire through the dynamic fire assessment network.
[0032] In the present invention, a fire risk structural equation model is constructed, and the conditional probability of each dynamic fire development influencing parameter is determined based on the path coefficient output by the fire risk structural equation model, so as to obtain the probability of fire evolution trend through a dynamic Bayesian network based on the conditional probability and the dynamic fire development influencing parameter, and finally obtain a dynamic fire assessment network. Therefore, the present invention uses a knowledge graph to display the analysis results of the structural equation model, enriches the display effect, and can more intuitively see the influence relationship between characteristic variables; the path coefficient of the fire risk structural equation model is used to support the conditional probability of the dynamic Bayesian network, which can more accurately reflect the relationship between characteristic variables and reduce the difficulty of subsequent model tuning. Furthermore, the present invention realizes efficient quantitative assessment of fire risk. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 A schematic diagram of the structure of the hardware operating environment involved in the embodiment of the present invention;
[0034] Figure 2 A schematic diagram of a flow chart of an embodiment of a fire risk assessment method of the present invention;
[0035] Figure 3 A schematic diagram of a fire risk assessment model architecture of an embodiment of a fire risk assessment method of the present invention;
[0036] Figure 4 It is a schematic diagram of the output results of the structural equation model of an embodiment of the fire risk assessment method of the present invention;
[0037] Figure 5 A schematic diagram of a knowledge graph of the output results of the structural equation model of an embodiment of the fire risk assessment method of the present invention;
[0038] Figure 5-1 It is a partial schematic diagram of the knowledge graph of the output results of the structural equation model of an embodiment of the fire risk assessment method of the present invention;
[0039] Figure 5-2 A schematic diagram showing a local simulation of a knowledge graph output result of a structural equation model according to an embodiment of a fire risk assessment method of the present invention;
[0040] Figure 6 It is a schematic diagram of the main framework of the fire development stage of an embodiment of the fire risk assessment method of the present invention;
[0041] Figure 7 A schematic diagram of a dynamic fire assessment index system of an embodiment of a fire risk assessment method of the present invention;
[0042] Figure 8 A schematic diagram of a dynamic fire assessment network of an embodiment of a fire risk assessment method of the present invention;
[0043] Figure 8-1 A partial schematic diagram of a dynamic fire assessment network of an embodiment of a fire risk assessment method of the present invention;
[0044] Fig. 9 A schematic diagram of dynamic fire assessment network conditional probability of an embodiment of a fire risk assessment method of the present invention;
[0045] Fig.10 A schematic diagram of a structural equation model of an embodiment of a fire risk assessment method of the present invention;
[0046] Fig.11 A schematic diagram of a structural equation model training of an embodiment of a fire risk assessment method of the present invention;
[0047] Fig.12 A schematic diagram of a structural equation model training code diagram of an embodiment of a fire risk assessment method of the present invention;
[0048] Fig.13 A schematic diagram of test data of a dynamic fire assessment network of an embodiment of a fire risk assessment method of the present invention;
[0049] Fig.14 A schematic diagram of test results of a dynamic fire assessment network according to an embodiment of a fire risk assessment method of the present invention;
[0050] Fig.15 A schematic diagram of fire factor nodes of a dynamic fire assessment network according to an embodiment of a fire risk assessment method of the present invention;
[0051] Fig.16 A schematic diagram of the relationship between fire factors of a dynamic fire assessment network according to an embodiment of a fire risk assessment method of the present invention;
[0052] Fig.17 A schematic diagram of the relationship between fire factor nodes of a dynamic fire assessment network according to an embodiment of a fire risk assessment method of the present invention;
[0053] Fig.18 This is an overall schematic diagram of a dynamic fire assessment network import knowledge graph display platform according to an embodiment of a fire risk assessment method of the present invention;
[0054] Figure 18-1 It is a partial first schematic diagram of a dynamic fire assessment network imported into a knowledge graph display platform according to an embodiment of a fire risk assessment method of the present invention;
[0055] Figure 18-2 A partial second schematic diagram of a dynamic fire assessment network imported into a knowledge graph display platform according to an embodiment of a fire risk assessment method of the present invention;
[0056] Fig.19Schematic diagram of functional modules of a fire risk assessment system according to an embodiment of the present invention.
[0057] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0058] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0059] like Figure 1 As shown, Figure 1 It is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention.
[0060] It should be noted that the terminal device in the embodiment of the present invention may be a terminal device for implementing data extraction from multiple types of data sources, and the terminal device may specifically be a smart phone, a personal computer, a server, and the like.
[0061] like Figure 1 As shown, the device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or it may be a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0062] Those skilled in the art will understand that Figure 1 The device structure shown in the figure does not constitute a limitation of the device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0063] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a fire risk assessment program. The operating system is a program that manages and controls the hardware and software resources of the device and supports the operation of the fire risk assessment program and other software or programs. Figure 1In the device shown, the user interface 1003 is mainly used for data communication with the client; the network interface 1004 is mainly used for establishing a communication connection with the server; and the processor 1001 can be used to call the fire risk assessment program stored in the memory 1005 and perform the following operations:
[0064] Constructing a fire risk structural equation model, training the fire risk structural equation model to obtain model output parameters, displaying the model output parameters through a knowledge graph, and obtaining path coefficients in the model output parameters;
[0065] Acquire dynamic fire development influencing parameters, and determine the probability of fire evolution trend through a dynamic Bayesian network based on the dynamic fire development influencing parameters and the path coefficient;
[0066] A dynamic fire assessment network is obtained based on the fire evolution trend probability, a preset dynamic fire assessment index system and preset expert knowledge, so as to perform a quantitative risk assessment on the fire through the dynamic fire assessment network.
[0067] Furthermore, the processor 1001 may also be used to call a fire risk assessment program stored in the memory 1005, and perform the following operations:
[0068] Constructing the ontology in the knowledge graph and the relationship between the ontology according to the preset fire risk characteristic variables, the intermediate variables corresponding to the fire risk characteristic variables and the preset fire parameters;
[0069] The model output parameters are displayed through a knowledge graph based on the ontology and the relationship between the ontologies.
[0070] Furthermore, the processor 1001 may also be used to call a fire risk assessment program stored in the memory 1005, and perform the following operations:
[0071] Determining dynamic fire development influencing parameters, and determining the conditional probability of the dynamic fire development influencing parameters according to the path coefficient;
[0072] Based on the fire development stage main framework of the dynamic fire development influencing parameters and the conditional probability, the fire evolution trend probability is obtained through a dynamic Bayesian network.
[0073] Furthermore, the processor 1001 may also be used to call a fire risk assessment program stored in the memory 1005, and perform the following operations:
[0074] A fire risk structural equation model is constructed based on the fire risk characteristic variables.
[0075] Further, after the step of constructing the fire risk structural equation model and before the step of training the fire risk structural equation model to obtain model output parameters, the processor 1001 may also be used to call the fire risk assessment program stored in the memory 1005, and further perform the following operations:
[0076] Import preset multi-source heterogeneous data into the fire risk structural equation model to score the fire risk characteristic variables according to the multi-source heterogeneous data, wherein the multi-source heterogeneous data includes: numerical values, pictures, videos, excel, pdf and word.
[0077] Further, after the step of obtaining a dynamic fire assessment network based on the fire evolution trend probability, the preset dynamic fire assessment index system and the preset expert knowledge, the processor 1001 may also be used to call the fire risk assessment program stored in the memory 1005, and further perform the following operations:
[0078] The dynamic fire assessment network is evaluated by using preset test data, and the evaluated dynamic fire assessment network is displayed through a knowledge graph.
[0079] Furthermore, the processor 1001 may also be used to call a fire risk assessment program stored in the memory 1005, and perform the following operations:
[0080] Model identification, model estimation and model evaluation are performed on the disaster risk structural equation model to obtain model output parameters to complete the training of the fire risk structural equation model.
[0081] Reference Figure 2 , Figure 2 It is a flowchart of the first embodiment of the fire risk assessment method of the present invention.
[0082] In this embodiment, an embodiment of a fire risk assessment method is provided. It should be noted that although a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in a different order than that shown here.
[0083] In this embodiment, a fire risk assessment model architecture is constructed, such as Figure 3As shown, the fire risk assessment model architecture includes a structural equation model and a dynamic Bayesian network model. The model architecture is the modeling idea of the model. In this embodiment, the modeling idea includes three parts: input data, calculation logic, and output results. When constructing the structural equation model, 45 basic characteristic variables and 8 intermediate characteristic variables are input as characteristic variables, and then the mutual influence between the characteristic variables and the influence of each characteristic variable on casualties, number of fires and property losses are obtained based on the calculation logic of the structural equation model. At the same time, the conditional probability between each characteristic variable obtained according to the structural equation model is input into the dynamic Bayesian network model, and then the probability of fire occurrence is finally output through the 93 characteristic variables in the dynamic Bayesian network model.
[0084] Step S10, constructing a fire risk structural equation model, training the fire risk structural equation model to obtain model output parameters, displaying the model output parameters through a knowledge graph, and obtaining path coefficients in the model output parameters;
[0085] The terminal device first constructs a fire risk structural equation model, further trains the fire risk structural equation model, and obtains the model output results. In order to increase the degree of visualization, the model output results are displayed through a knowledge graph, and the path coefficient is obtained from the model output parameters to determine the conditional probability of the dynamic Bayesian network based on the path coefficient.
[0086] Specifically, for example, Figure 4 As shown, in Figure 4 The output results of the structural equation model are displayed in a table. Among them, the independent variable represents the "cause" of a pair of relationships, and the dependent variable represents the "effect" of a pair of relationships. Each variable can be both a cause (effect) and the effect (cause) of another pair of relationships. For example, in the relationship of "building fire protection distance - firewall / door / valve", the influence of building fire protection distance on firewall / door / valve is 0; in the relationship of "fire protection fund investment - firewall / door / valve", the influence coefficient of fire protection fund investment on firewall / door / valve is 0.9, indicating that the more fire protection fund investment, the higher the safety of firewall / door / valve; in the relationship of "fire safety common sense education - electrical appliance failure hidden danger", the influence coefficient of fire safety common sense education on electrical appliance failure hidden danger is -0.9, indicating that the more fire safety education, the fewer electrical appliance failure hidden dangers.
[0087] Furthermore, in the above step S10, “displaying the model output parameters through a knowledge graph” may include:
[0088] Step S101, constructing an ontology in a knowledge graph and the relationship between the ontologies according to preset fire risk characteristic variables, intermediate variables corresponding to the fire risk characteristic variables and preset fire parameters;
[0089] Step S102, obtaining knowledge graph data based on the ontology and the relationship between the ontologies, and displaying the model output parameters through a knowledge graph based on the knowledge graph data.
[0090] It should be noted that in this embodiment, the professional knowledge graph display tool deepFinder is used to display the results of the structural equation model. The deepFinder tool supports the import of multiple knowledge graphs and supports the import of multivariate heterogeneous data. The construction of the knowledge graph is divided into three steps, namely, building the ontology, building the relationship, and importing the data.
[0091] Specifically, for example, an ontology is constructed that includes original feature variables, intermediate variables corresponding to the original feature variables, and preset fire parameters, wherein the preset fire parameters include: number of fires, casualties, and property losses; the relationship between the nodes of the knowledge graph based on the structural equation model is relatively simple, and in this embodiment, the relationship between the nodes is a causal relationship, that is, "leading to", and then, the ontology and the relationship together constitute the knowledge graph data; finally, the model output parameters are displayed through the knowledge graph based on the knowledge graph data, and the knowledge graph of the structural equation model is as follows Figure 5 As shown, in order to show the model conclusion more clearly, the knowledge graph is used to simulate the display Figure 4 The output of the structural equation model in Figure 5-1 for Figure 5 In order to more clearly show the conclusion of the knowledge graph model, the knowledge graph is simulated and displayed, such as Figure 5-2 As shown, in the relationship between "building fire protection distance - firewall / door / valve", the influence of building fire protection distance on firewall / door / valve is 0; in the relationship between "fire protection fund investment - firewall / door / valve", the influence coefficient of fire protection fund investment on firewall / door / valve is 0.9, indicating that the more fire protection fund investment, the higher the safety of firewall / door / valve; in the relationship between "fire safety common sense education - hidden dangers of electrical appliance failure", the influence coefficient of fire safety common sense education on hidden dangers of electrical appliance failure is -0.9, indicating that the more fire safety education, the fewer hidden dangers of electrical appliance failure.
[0092] Furthermore, the fire risk assessment method further includes:
[0093] Step S20, determining a dynamic fire development influencing parameter, and obtaining a fire evolution trend probability through a dynamic Bayesian network based on the state of the dynamic fire development influencing parameter and the path coefficient;
[0094] The terminal equipment needs to combine business expert knowledge and fire protection expertise in advance to determine the different stages of fire dynamic evolution and its dynamic fire development influencing parameters, and combine the path coefficients in the model output parameters of the fire risk structural equation model to determine the probability of fire evolution trend through a dynamic Bayesian network.
[0095] Furthermore, in the above step S20, "determining dynamic fire development influencing parameters, and obtaining the probability of fire evolution trend through a dynamic Bayesian network based on the dynamic fire development influencing parameters and the path coefficient" may include:
[0096] Step S201, determining a dynamic fire development influencing parameter, and determining a conditional probability of the dynamic fire development influencing parameter according to the path coefficient;
[0097] Step S202, based on the fire development stage main framework of the dynamic fire development influencing parameters and the conditional probability, the probability of the fire evolution trend is obtained through a dynamic Bayesian network.
[0098] Combining the knowledge of business experts and fire protection expertise, the different stages of the dynamic evolution of fire and their influencing factors are determined to determine the dynamic fire development influencing parameters including ignition, fire growth, fire spread and smoke propagation, spread to adjacent buildings, fire-induced evacuation of personnel, property loss and other parameters. The conditional probability of each dynamic fire development influencing parameter is determined based on the path coefficient output by the fire risk structural equation model. At the same time, a fire development framework containing each dynamic fire development influencing parameter is constructed. According to the fire development framework and the conditional probability of each dynamic fire development influencing parameter, the probability of fire evolution trend is obtained through a dynamic Bayesian network.
[0099] Specifically, for example, after determining the dynamic fire development influencing parameters including fire onset, fire growth, fire spread and smoke propagation, spread to adjacent buildings, evacuation of personnel due to fire, and property loss, the main framework of the fire development stage is constructed through continuous iteration, such as Figure 6 As shown, the arrows represent the main influencing parameters of each stage, and the direction points from "cause" to "effect", so as to further determine the probability of fire evolution trend based on the main framework of the fire development stage.
[0100] It should be noted that, in this embodiment, the conditional probability of the dynamic Bayesian network is determined by the path coefficient in the model output parameter of the fire risk structural equation model. Compared with the method of setting the conditional probability by hierarchical analysis or expert experience in the prior art, the present invention uses the path coefficient of the structural equation to support the conditional probability of the dynamic Bayesian network, which can more accurately reflect the relationship between the characteristic variables and reduce the difficulty of subsequent model tuning.
[0101] Step S30, obtaining a dynamic fire assessment network based on the fire evolution trend probability, a preset dynamic fire assessment index system and preset expert knowledge, so as to perform a quantitative risk assessment on the fire through the dynamic fire assessment network.
[0102] It should be noted that, in this embodiment, before constructing a dynamic fire assessment network based on the dynamic fire assessment index system, it is necessary to pre-construct a dynamic fire assessment index system, such as Figure 7 As shown in Figure 2, the dynamic fire assessment index system includes a large number of basic characteristic variables and intermediate characteristic variables related to fire development. The dynamic fire assessment index system is constructed based on the basic characteristic variables, intermediate characteristic variables and the relationship between each characteristic variable. The obtained dynamic fire assessment network is as follows: Figure 8 shown.
[0103] Specifically, for example, Figure 8-1 As shown in the figure, the dynamic fire assessment network is designed by taking the A32 (fire effectiveness) node as an example. Figure 8-1 The conditional probability of node A32 (firefighting effectiveness) is as follows: Fig. 9 As shown in the figure, A26 has two states, high represents a large number of fire fighting forces, and low represents a good quality of fire fighting forces; similarly, the corresponding meanings of A40 and A32 nodes can be obtained. P(A32 / A26,A40) represents the probability of A32 node occurring when A26 and A40 occur at the same time. For the probability of P(A32 / A26,A40) in each row in the table, the sum of the probabilities is 1.
[0104] In this embodiment, the terminal device first constructs a fire risk structural equation model, further trains the fire risk structural equation model, and obtains the model output results. In order to increase the degree of visualization, the model output results are displayed through a knowledge graph, and the path coefficients are obtained from the model output parameters. Combining business expert knowledge and fire protection expertise, the different stages of the dynamic evolution of the fire and their influencing factors are determined to determine the dynamic fire development influencing parameters including parameters such as ignition, fire growth, fire spread and smoke transmission, spread to adjacent buildings, fire-induced evacuation of personnel, and property loss, and the conditional probability of each dynamic fire development influencing parameter is determined according to the path coefficient output by the fire risk structural equation model, and a fire development framework including each dynamic fire development influencing parameter is constructed at the same time. According to the fire development framework and the conditional probability of each dynamic fire development influencing parameter, the probability of fire evolution trend is obtained through a dynamic Bayesian network. Based on the probability of fire evolution trend, the dynamic fire assessment index system and the preset expert knowledge, a dynamic fire assessment network is obtained to perform a risk quantitative assessment of fire through the dynamic fire assessment network.
[0105] In the present invention, multi-source heterogeneous data is used to score fire risk characteristic variables, and a fire risk structural equation model is constructed based on the fire risk characteristic variables. At the same time, the conditional probability of each dynamic fire development influencing parameter is determined based on the path coefficient output by the fire risk structural equation model, so as to obtain the probability of fire evolution trend through a dynamic Bayesian network based on the conditional probability and the dynamic fire development influencing parameter, and finally obtain a dynamic fire assessment network. Therefore, the present invention can establish a more comprehensive numerical information library of characteristic variables based on multi-source heterogeneous data, and improve the accuracy of model evaluation results; use knowledge graphs to display the analysis results of the structural equation model, enrich the display effect, and can more intuitively see the influence relationship between characteristic variables; use the path coefficient of the fire risk structural equation model to support the conditional probability of the dynamic Bayesian network, which can more accurately reflect the relationship between characteristic variables and reduce the difficulty of subsequent model tuning. Furthermore, the present invention realizes efficient quantitative assessment of fire risk.
[0106] Furthermore, based on the first embodiment of the fire risk assessment method of the present invention, a second embodiment of the fire risk assessment method is proposed.
[0107] In this embodiment, in the above step S10, “building a fire risk structural equation model” may include:
[0108] Step S103: constructing a fire risk structural equation model based on the fire risk characteristic variables.
[0109] It should be noted that in this embodiment, a fire risk structural equation model is constructed based on fire risk characteristic variables by consulting experts and reviewing documents. In the fire risk structural equation model, the relationship between the fire risk characteristic variables and the intermediate characteristic variables, the relationship between the fire risk characteristic variables and their impact on the number of fires, casualties, and economic losses are displayed.
[0110] Specifically, for example, Fig.10 As shown, after determining the fire risk characteristic variables and intermediate characteristic variables, the terminal device will obtain the mutual influence between the characteristic variables and the influence of each characteristic variable on casualties, number of fires and property losses based on the fire risk characteristic variables and intermediate characteristic variables, and complete the construction of the fire risk structural equation model.
[0111] In addition, in this embodiment, the calculation logic of the core algorithm of the structural equation model is:
[0112] x=Λx·ξ+δ
[0113] y=Λy·η+ε
[0114] Among them, x represents the vector composed of exogenous indicators, y represents the vector composed of endogenous indicators; Λx represents the relationship between exogenous indicators and exogenous latent variables; Λy represents the relationship between endogenous indicators and endogenous latent variables; δ represents the error term of the exogenous indicator x; ε represents the error term of the endogenous indicator y; η represents the endogenous latent variable; ξ represents the exogenous latent variable.
[0115] Furthermore, after the above step S10, "building a fire risk structural equation model", and before "training the fire risk structural equation model to obtain model output parameters", it also includes:
[0116] Step S40, importing preset multi-source heterogeneous data into the fire risk structural equation model to score the fire risk characteristic variables according to the multi-source heterogeneous data, wherein the multi-source heterogeneous data includes: numerical values, pictures, videos, excel, pdf and word.
[0117] It should be noted that, in this embodiment, multivariate heterogeneous data is extracted as one of the basis for scoring characteristic variables, so as to establish a more comprehensive numerical information library of fire risk characteristic variables based on multi-source heterogeneous data, thereby improving the accuracy of model evaluation results.
[0118] Specifically, for example, the multi-source heterogeneous data used in the structural equation model in this embodiment include six types, including numerical data, pictures, videos, excel, pdf and word. For the processing of numerical data, two technologies, data cleaning and feature engineering, are mainly used to incorporate into the structural equation model; for excel data, information is directly extracted and incorporated into the structural equation model; for pictures, pdf, and video data, optical character recognition (OCR) technology is first used to convert the original information into numerical data, and then the numerical data is denoised and feature engineering technology is performed to organize it into standardized and clean data to be incorporated into the structural equation model; for word data, natural semantic processing (NLP) technology is mainly used to extract relevant information for fire accident investigation and incorporate it into the structural equation model.
[0119] Furthermore, in the above step S10, “training the fire risk structural equation model to obtain model output parameters” may include:
[0120] Step S103, performing model identification, model estimation and model evaluation on the fire risk structural equation model to obtain model output parameters, so as to complete the training of the fire risk structural equation model.
[0121] The model training process includes seven steps: model setting, model identification, measurement, parameter estimation, model modification, goodness of fit assessment and model evaluation. Fig.11As shown, in this embodiment, Python3 is used to train the structural equation model. Part of the code of the training process is as follows Fig.12 As shown, after the training is completed, the output results of the structural equation model are obtained.
[0122] Furthermore, after the above step S30, "obtaining a dynamic fire assessment network based on the fire evolution trend probability, a preset dynamic fire assessment index system and preset expert knowledge", it also includes:
[0123] Step S50, evaluating the dynamic fire assessment network through preset test data, and displaying the evaluated dynamic fire assessment network through a knowledge graph.
[0124] After obtaining the dynamic fire assessment network through the probability of fire evolution trend, dynamic fire assessment index system and preset expert knowledge, the dynamic fire assessment network will be further evaluated according to the preset test data to determine whether the dynamic fire assessment network can be applied to actual fire assessment.
[0125] Specifically, for example, in this embodiment, 179 old residential communities in Shenzhen were used to test the model results. Fig.13 As shown in the figure, the test data comes from 179 old residential communities in Shenzhen, and the relevant characteristic variable evaluation scores are manually filled in, and each cell takes a value of 1-10. The above test data is dynamically connected to the first 54 columns of the community feature library to predict the fire probability of the relevant nodes of the dynamic fire assessment network; running the Bayesian network python program can dynamically infer the fire probability of nodes such as fire, fire growth, fire spread and smoke transmission, fire causing evacuation, spread to adjacent buildings, property loss, and casualties. The test results are as follows Fig.14 As shown in the figure, the actual fire cells are [0, 2, 27, 38, 86, 87, 118, 119, 123, 126, 129, 140, 141, 153, 166, 167], while the predicted fire cells are [0, 2, 27, 56, 86, 87, 118, 119, 123, 126, 129, 141, 153, 166, 178]. The correctly predicted fire cells include: [0, 2, 27, 86, 11 8,119,123,126,129,141,153,167], at this time, the precision of this evaluation is 0.8125, the recall rate is 0.8125, the F1 score is 0.8125, and the AUC (an evaluation index for a binary classification model, AUC is the area under the ROC curve) is 0.9225460122699387. It can be seen that the dynamic fire assessment network constructed in this embodiment can accurately predict fires.
[0126] Then, the dynamic fire assessment network after evaluation is displayed through the knowledge graph, including constructing the ontology, building the relationship and importing it into the knowledge graph platform. Fig.15 As shown in the figure, the entity includes fire factor nodes such as power consumption, short circuit hazard, poor contact, leakage hazard and poor contact, and the initial value of the occurrence probability of each node is set to 0.5 by default; the relationship in the fire is relatively simple, which is a simple "cause" relationship, such as Fig.16 As shown in the figure, the relationship of fire factors in the knowledge graph display platform is "causes", and the constructed fire factor relationship is as follows Fig.17 As shown in Figure 1, the relationships between fire factor nodes include: power consumption causes line faults, short circuit hazards cause line faults, and poor contact causes line faults. The dynamic fire assessment network established in the above process is imported into the knowledge graph display platform, as shown in Figure 1. Fig.18 As shown, Fig.18 The overall schematic diagram of importing the dynamic fire assessment network into the knowledge graph display platform is as follows: Figure 18-1 and Figure 18-2 It is a partial schematic diagram. It can be seen that the two figures show that when the probability of the node "combustible material" increases from 0.2 to 0.6, the probability of the node "fire" increases from 0.2 to 0.3. The entire knowledge graph based on the dynamic fire assessment network supports the dynamic assessment of the probability of each node during the development of the fire.
[0127] In this embodiment, a fire risk structural equation model is constructed based on fire risk characteristic variables by consulting experts and reviewing documents. Multivariate heterogeneous data is extracted as one of the scoring bases for characteristic variables, so as to establish a more comprehensive numerical information base of fire risk characteristic variables based on multi-source heterogeneous data, thereby improving the accuracy of model evaluation results. After obtaining a dynamic fire assessment network through the probability of fire evolution trend, dynamic fire assessment index system and preset expert knowledge, the dynamic fire assessment network will be further evaluated according to preset test data to determine whether the dynamic fire assessment network can be applied to actual fire assessment, and the evaluated dynamic fire assessment network will be displayed through a knowledge graph.
[0128] The present invention conducts quantitative assessment of fire risk through model reasoning, which can realize the quantification of risk, meet the requirements for dynamic fire risk assessment, and provide important model support for current fire protection construction.
[0129] In addition, the embodiment of the present invention also provides a fire risk assessment system, referring to Fig.19 , Fig.19 FIG. 1 is a functional module diagram of an embodiment of fire risk assessment of the present invention. Fig.19 As shown, the fire risk assessment system of the present invention comprises:
[0130] An acquisition module is used to construct a fire risk structural equation model, train the fire risk structural equation model to obtain model output parameters, display the model output parameters through a knowledge graph, and obtain path coefficients in the model output parameters;
[0131] A determination module, used to obtain dynamic fire development influencing parameters, and determine the probability of fire evolution trend through a dynamic Bayesian network based on the dynamic fire development influencing parameters and the path coefficient;
[0132] The obtaining module is used to obtain a dynamic fire assessment network based on the fire evolution trend probability, a preset dynamic fire assessment index system and preset expert knowledge, so as to perform a quantitative risk assessment on the fire through the dynamic fire assessment network.
[0133] Furthermore, the acquisition module includes:
[0134] A first construction unit is used to construct an ontology in a knowledge graph and the relationship between the ontologies according to a preset fire risk characteristic variable, an intermediate variable corresponding to the fire risk characteristic variable, and a preset fire parameter;
[0135] A display unit is used to display the model output parameters through a knowledge graph according to the ontology and the relationship between the ontologies.
[0136] Furthermore, the determination module includes:
[0137] A determination unit, used to determine a dynamic fire development influencing parameter, and determine a conditional probability of the dynamic fire development influencing parameter according to the path coefficient;
[0138] The obtaining unit is used to obtain the probability of fire evolution trend through a dynamic Bayesian network based on the fire development stage main framework of the dynamic fire development influencing parameters and the conditional probability.
[0139] Furthermore, the acquisition module further includes:
[0140] The second construction unit is used to construct a fire risk structural equation model based on the fire risk characteristic variables.
[0141] Furthermore, the fire risk assessment system further includes:
[0142] A scoring module is used to import preset multi-source heterogeneous data into the fire risk structural equation model to score the fire risk characteristic variables according to the multi-source heterogeneous data, wherein the multi-source heterogeneous data includes: numerical values, pictures, videos, excel, pdf and word.
[0143] Furthermore, the fire risk assessment system further includes:
[0144] An evaluation unit is used to evaluate the dynamic fire assessment network through preset test data, and to display the evaluated dynamic fire assessment network through a knowledge graph.
[0145] Furthermore, the acquisition module further includes:
[0146] The training module is used to perform model identification, model estimation and model evaluation on the disaster risk structural equation model to obtain model output parameters, so as to complete the training of the fire risk structural equation model.
[0147] The specific implementation of each functional module of the fire risk assessment system of the present invention is basically the same as the various embodiments of the above-mentioned fire risk assessment method, and will not be described in detail here.
[0148] In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a fire risk assessment program is stored. When the fire risk assessment program is executed by a processor, the steps of the fire risk assessment method described above are implemented.
[0149] The various embodiments of the fire risk assessment system and the computer-readable storage medium of the present invention may all refer to the various embodiments of the fire risk assessment method of the present invention, and will not be described in detail here.
[0150] In addition, an embodiment of the present invention further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of the fire risk assessment method as described in any embodiment of the fire risk assessment method are implemented.
[0151] The specific embodiments of the computer program product of the present invention are substantially the same as the embodiments of the fire risk assessment method described above, and are not described in detail herein.
[0152] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0153] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0154] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0155] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A fire risk assessment method, characterized in that: The fire risk assessment method comprises the following steps: Constructing a fire risk structural equation model, training the fire risk structural equation model to obtain model output parameters, displaying the model output parameters through a knowledge graph, and obtaining path coefficients in the model output parameters; Acquire dynamic fire development influencing parameters, and determine the probability of fire evolution trend through a dynamic Bayesian network based on the dynamic fire development influencing parameters and the path coefficient; A dynamic fire assessment network is obtained based on the fire evolution trend probability, a preset dynamic fire assessment index system and preset expert knowledge, so as to perform a quantitative risk assessment on the fire through the dynamic fire assessment network; Before the step of displaying the model output parameters through the knowledge graph, the method further includes: Constructing the ontology in the knowledge graph and the relationship between the ontology according to the preset fire risk characteristic variables, the intermediate variables corresponding to the fire risk characteristic variables and the preset fire parameters; The step of displaying the model output parameters through a knowledge graph includes: Displaying the model output parameters through the knowledge graph according to the ontology and the relationship between the ontology; The step of obtaining the dynamic fire development influencing parameters and obtaining the probability of the fire evolution trend through a dynamic Bayesian network based on the dynamic fire development influencing parameters and the path coefficients includes: Acquiring the dynamic fire development influencing parameter, and determining the conditional probability of the dynamic fire development influencing parameter according to the path coefficient; Based on the fire development stage main framework of the dynamic fire development influencing parameters and the conditional probability, the probability of fire evolution trend is obtained through a dynamic Bayesian network; The steps of constructing the fire risk structural equation model include: Constructing a fire risk structural equation model based on the fire risk characteristic variables; The step of training the fire risk structural equation model to obtain model output parameters includes: Model identification, model estimation and model evaluation are performed on the fire risk structural equation model to obtain model output parameters to complete the training of the fire risk structural equation model.
2. The fire risk assessment method according to claim 1, characterized in that: After the step of constructing the fire risk structural equation model and before the step of training the fire risk structural equation model to obtain model output parameters, the method further includes: Import preset multi-source heterogeneous data into the fire risk structural equation model to score the fire risk characteristic variables according to the multi-source heterogeneous data, wherein the multi-source heterogeneous data includes: numerical values, pictures, videos, excel files, pdf files and word files.
3. The fire risk assessment method according to claim 1, characterized in that: After the step of obtaining a dynamic fire assessment network based on the fire evolution trend probability, a preset dynamic fire assessment index system and preset expert knowledge, the method further includes: The dynamic fire assessment network is evaluated by using preset test data, and the evaluated dynamic fire assessment network is displayed through a knowledge graph.
4. A fire risk assessment system, characterized in that: The fire risk assessment system comprises: An acquisition module is used to construct a fire risk structural equation model, train the fire risk structural equation model to obtain model output parameters, display the model output parameters through a knowledge graph, and obtain path coefficients in the model output parameters; The acquisition module is also used to construct the ontology in the knowledge graph and the relationship between the ontologies according to the preset fire risk characteristic variables, the intermediate variables corresponding to the fire risk characteristic variables and the preset fire parameters; The acquisition module is also used to display the model output parameters through the knowledge graph according to the relationship between the ontology and the ontology; The acquisition module is also used to construct a fire risk structural equation model based on the fire risk characteristic variables; The acquisition module is also used to perform model identification, model estimation and model evaluation on the fire risk structural equation model to obtain model output parameters, so as to complete the training of the fire risk structural equation model; A determination module, used to obtain dynamic fire development influencing parameters, and determine the probability of fire evolution trend through a dynamic Bayesian network based on the dynamic fire development influencing parameters and the path coefficient; The determination module is also used to obtain the dynamic fire development influencing parameters, and determine the conditional probability of the dynamic fire development influencing parameters according to the path coefficient; based on the fire development stage main framework of the dynamic fire development influencing parameters and the conditional probability, the probability of fire evolution trend is obtained through a dynamic Bayesian network; The obtaining module is used to obtain a dynamic fire assessment network based on the fire evolution trend probability, a preset dynamic fire assessment index system and preset expert knowledge, so as to perform a quantitative risk assessment on the fire through the dynamic fire assessment network.
5. A terminal device, characterized in that: The terminal device includes a memory, a processor, and a fire risk assessment program stored in the memory and executable on the processor, wherein the fire risk assessment program implements the steps of the fire risk assessment method according to any one of claims 1 to 3 when executed by the processor.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a fire risk assessment program, which, when executed by a processor, implements the steps of the fire risk assessment method according to any one of claims 1 to 3.
