Next Article in Journal
Determination of Anthracene Derivatives in Baltic Amber Using SERS
Previous Article in Journal
Machine Learning Model Validated to Predict Outcomes of Liver Transplantation Recipients with Hepatitis C: The Romanian National Transplant Agency Cohort Experience
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Machine Learning Models Using SHapley Additive exPlanation for Fire Risk Assessment Mode and Effects Analysis of Stadiums

1
School of Resource and Environmental Engineering, Wuhan University of Science and Technology, Wuhan 430081, China
2
Hubei Industrial Safety Engineering Technology Research Center, Wuhan 430081, China
*
Author to whom correspondence should be addressed.
Sensors 2023, 23(4), 2151; https://doi.org/10.3390/s23042151
Submission received: 14 January 2023 / Revised: 10 February 2023 / Accepted: 13 February 2023 / Published: 14 February 2023
(This article belongs to the Section Internet of Things)

Abstract

:
Machine learning methods can establish complex nonlinear relationships between input and response variables for stadium fire risk assessment. However, the output of machine learning models is considered very difficult due to their complex “black box” structure, which hinders their application in stadium fire risk assessment. The SHapley Additive exPlanations (SHAP) method makes a local approximation to the predictions of any regression or classification model so as to be faithful and interpretable, and assigns significant values (SHAP value) to each input variable for a given prediction. In this study, we designed an indicator attribute threshold interval to classify and quantify different fire risk category data, and then used a random forest model combined with SHAP strategy in order to establish a stadium fire risk assessment model. The main objective is to analyze the impact analysis of each risk characteristic on four different risk assessment models, so as to find the complex nonlinear relationship between risk characteristics and stadium fire risk. This helps managers to be able to make appropriate fire safety management and smart decisions before an incident occurs and in a targeted manner to reduce the incidence of fires. The experimental results show that the established interpretable random forest model provides 83% accuracy, 86% precision, and 85% recall for the stadium fire risk test dataset. The study also shows that the low level of data makes it difficult to identify the range of decision boundaries for Critical mode and Hazardous mode.

1. Introduction

With emerging information technology innovations [1] such as the Internet of Things (IoT) and Big Data, among others, machine learning is becoming increasingly important in assessing building fire risk and improving risk warning capabilities. Machine learning is relevant to various types of risk assessment, such as community-level building fire prediction (e.g., real estate [2], parking lots [3], public spaces, commercial complexes, and shopping centers [4]), property-level building fire assessment (using assessment metrics such as property damage [5], casualties [6], and incident severity [7,8]), and regional risk analysis [9]. Fire risk assessment of stadiums is one of the hot research topics in the field of fire safety. The tragic Bradford Stadium fire of 11 May 1985, which killed 56 people and seriously burned more than 200, and the fire accident at the Korea Sports Center on 21 December 2017, where the blaze killed 29 people and injured 29 others, caused great personal injuries and property damage in the fire accident. Once a fire accident occurs in a stadium, its fire hazards, evacuation and rescue and fire control difficulties, casualties, and losses are much greater than ordinary buildings. The manifestations of fire hazards in stadiums vary, but the root causes of fires in stadiums can be attributed to the following: (1) large building space, crowded, rapid fire spread, and difficult evacuation; (2) diverse functions and forms, combustible items, large fire loads; (3) new materials, smoke toxicity; (4) high space, conventional fire detectors, and fire extinguishing equipment cannot function effectively. It can be seen that once a fire occurs in a stadium, it will cause huge casualties and property damage, and the fire risk is high, so it is especially necessary to conduct a scientific and reasonable fire risk assessment.
Due to the complex and diverse risk factors of stadiums, the danger is high and the consequences of accidents are serious. The government and fire safety management departments mainly work in the mode of “human sea warfare to carry out inspections, turn-by-turn filtering focus” [10], and rely solely on human experience to determine whether the fire risk level is large, while the ability to proactively detect and advance warning is weak. In order to prevent and reduce the possibility of fire, the stadium fires need to be transferred from after-the-fact “fire rescue” to beforehand “assessment and prevention”, the early detection and prediction of potential fire hazards in the stadium and timely rectification. In many areas, the earliest decisions may be more valuable and support efficient decision-making. However, people may need more time to process information and draw conclusions. Since time is an important factor in risk decision-making, a small delay in the firefighting decision-making process in the event of a fire in a stadium could delay the first emergency response efforts, resulting in huge casualties and property damage. Therefore, the construction of an accurate and efficient fire risk assessment model for stadiums is an urgent scientific problem to be solved.
Using machine learning models, we can speed up the analysis of partial information and make it more objective and effective than human-based subjective analysis in terms of predictive performance. However, complex machine learning models are computationally expensive, and the obtained important input variables do not elaborate on the specific effects of the variables on the predicted individuals, the importance of the input variables in different categories in the classification problem, and the reasons why the input variables lead to a particular risk assessment, and the results are considered difficult to interpret. In addition, SHAP helps to explain various supervised learning models and assign significant values (SHAP value) to each input variable for a particular prediction. They use SHAP-based interpretable machine learning models to better capture the relationships between variables and between variables and specific targets. Although a large number of studies have explored the interpretability of machine learning models in the field of fire risk using game theory and local approximations, no relevant researchers have explored interpretable machine learning models for fire risk assessment in sports stadiums.
To further assist stadiums with fire supervision and management and resource planning, in the context of an IoT fire remote system platform, we use a real database of stadium fire risk and equipment management to obtain interpretable machine learning models. In this paper, an index attribute threshold interval is designed to classify and quantify different fire risk category data, and then a random forest model combined with SHAP strategy is used to establish a stadium fire risk assessment model to analyze the impact analysis of each risk feature on four different risk assessment models, so as to find the complex nonlinear relationship between risk features and stadium fire risk. In addition, risk assessment models for stadium fires are critical for (1) quickly assessing damage or failure of firefighting infrastructure equipment, (2) assessing whether the daily disposition of firefighting personnel management and hazard management is reasonable, and (3) finding key insights into the complex nonlinear behavior of risk characteristics and stadium fire risk. Its main purpose is to enable unit fire management to converge firefighting resources to rectify or eliminate major fire risk hazards in the first place, and to nip more fire hazards in the bud. In summary, the main contributions of this study are:
  • We designed a risk prediction model based on random forest algorithm with SHapley Additive exPlanations strategy and developed a stadium fire risk assessment model. It can effectively identify and visually explain the importance and contribution of various fire risk factors to four different stadium fire risk assessment models.
  • We designed an indicator attribute threshold interval to quantify and grade the fire risk assessment indicators.
The rest of this paper is organized as follows. Section 2 describes the work related to risk assessment and forecasting. Section 3 describes the framework and details of the interpretable machine learning approach, i.e., the stadium fire risk prediction method based on interpretable random forests. The application of the method to the stadium fire risk dataset and the equipment management dataset and the discussion of the interpretability analysis of the findings are presented in detail in Section 4. The limitations of this study are presented in Section 5. Finally, Section 6 discusses significant findings from the current study.

2. Related Work

Most of the existing work on fire risk assessment and prediction addresses forest land, forest fires and urban–forest boundaries, such as in China [11], Portugal [12], and Canada [13]. They use different methods such as random forests [11], general circulation models [13], and artificial neural networks [12], aiming to support the allocation of fire protection, fire prevention, and plant restoration resources to areas with the highest fire risk. The characteristics used for forest fires, such as soil type, topography, humidity, and rainfall, are very different from those typically used in urban fire assessment and prediction (e.g., combustibility of building materials, fire performance, and type of property use).

2.1. Application and Research Status of Forest Fire

Meriame [14] developed five new hybrid machine learning algorithms combining frequency ratios with multilayer perceptron, logistic regression, categorical regression tree, support vector machine, and random forest for mapping deep forest fire susceptibility in northern Morocco. Tuyen [15] proposed four new integrated models combining locally weighted learning (LWL) algorithms with cascaded generalization (CG), bagging, decorate, and dagging integrated learning techniques to predict fire sensitivity in a spatially explicit manner. The results show that the CG-LWL and bagging-LWL models with AUC = 0.993 are the best trained. Integrating models to improve the predictive accuracy of forest fire sensitivity can save time and costs in firefighting efforts. However, despite the good performance and obvious advantages of these excellent models for forest fire prediction, they are not applicable to building fire prediction or stadium fire prediction studies.

2.2. Application and Research Status of Urban Building Fire

Static risk assessment. Wei [16] proposed a rapid fire assessment method based on fuzzy mathematics and support vector machines to obtain index values as well as sample data for fire risk scoring by fuzzy comprehensive evaluation, and a support vector machine fire risk assessment model trained on the sample data was used for stadium fire risk assessment to verify the feasibility of the assessment. Lau [17] assessed the fire risk of each building and determined its risk level by determining the weights of individual indicators through hierarchical analysis, and the results were validated using a support vector machine model. This method is a deterministic assessment method with a complex mathematical model, high risk assessment cost, long calculation time consumption, and inability to realize dynamic assessment, which is mainly applicable to the fire risk assessment needs of special buildings and difficult to be promoted on a large scale.
Dynamic risk assessment. Some scholars have focused on “dynamic” needs. Liu [18] proposed a cross-regional transfer learning approach to identify fire hazards framework in communities (e.g., parking lots, public spaces, and shopping centers). The recognition performance was improved by classifying community fire hazards into nine classes, and the overall accuracy, accuracy, recall, F1 score, and AUC were improved by 12%, 15%, 16%, 15%, and 15%, respectively. Firebird [19] is a model for predicting building fire risk in Atlanta. It uses fire event data (time, location, and cause of fire), commercial property structure data, property fire risk inspection data, and predicted fire risk scores between 0 and 1 for the building industry. The results were evaluated as the best performance of the random forest (RF) model with an AUC value of 0.8246.

3. Methodology

3.1. Data Collection and Preprocessing

Due to various reasons such as failure of IoT sensing devices (e.g., intermittent loss of sensor connections), human negligence, and technical problems with IoT remote monitoring systems and cloud servers, data collection conditions are not perfect and may result in noisy data containing missing, redundant, and erroneous data. Obviously, information extracted from noisy data (i.e., unreliable data) can be wrong and therefore lead to day-to-day management decisions that are likely to be irrational. In addition, the unit measures of various fire risk hazard characteristics in the collected data are not uniform, which is not conducive to the construction of classification prediction models. Therefore, all the above issues must be addressed in the preprocessing stage by applying various preprocessing operations such as data cleaning, data transformation, and other data enhancement methods.
In order to quantify and grade the prediction results, we designed quantifiable threshold intervals and thresholds to quantify and grade the indicators (data conversion). Specifically, Table 1 demonstrates an example of equipment management fire risk indicators. If the collected data are missing more than 30% of the set threshold, they are complemented using the interpolation method (data cleaning). For discrete features, such as fire host failure ratio, the mean interpolation method is used to complement the median of the features. For category features, such as spray control cabinet status, smoke control cabinet status, and other indicators, they are quantified according to design thresholds and supplemented with discrete feature types. The mean interpolation and plural interpolation are mainly used to fill in the rest of the data predictions based on this feature to eliminate noise and correct inconsistencies.
In this paper, we collected 176 stadium fire risk datasets and 289 equipment management datasets. For the experiments, the datasets we used are divided into two folders: training set (70%) and testing set (30%) (See Table 2), which are used to train and validate the validity and accuracy of the models. Meanwhile, Appendix A and Appendix B present the data types and values of the two data sets mentioned above.

3.2. Comparison and Selection of Machine Learning Algorithms

Machine learning algorithms are not one-size-fits-all, and no scientific validation is given as to which algorithm is more suitable for stadium fire risk prediction; multidimensional experimental studies on multiple classification algorithms and model testing methods are needed. According to Table 3, it can be seen that the random forest algorithm outperforms other machine learning methods in every performance index, so random forest is chosen as the experimental model in this paper. To further improve the performance of the model, we fine-tune and optimize the model parameters in order to configure the simulation environment parameters that are most suitable for the stadium fire risk dataset. The optimal simulation environment parameter setting is n_estimators = 2000, min_samples_split = 5, min_samples_leaf = 1, max_features = sqrt, max_depth = 10, bootstrap = True.

3.3. SHapley Additive exPlanations (SHAP) Approach

SHAP is based on an approach subject to cooperative game theory [20], which centers on the introduction of Shapley values to construct an additive explanatory model that facilitates the interpretation of the performance of machine learning models or deep learning models, i.e., Shapley values [21] measure the marginal contribution of each input variable in the overall cooperation. This approach falls under the category of additive feature attribution, and a surprising property in this category is the existence of a single unique solution that has three desirable properties: local accuracy, missingness, and consistency.
Property 1 (local accuracy): When approximating the original model f for a particular input x local accuracy [22] requires that the explanatory model g at least match the output of f for the simplified input   x . Equation (1) is explained in Figure 1, where ϕ 0 , ϕ 1 , ϕ 2 , and ϕ 3 increase the predicted value of g(), while ϕ 4 decreases the predicted value of g().
f ( x ) = g ( x ) = ϕ 0 + i = 1 M ϕ i x i
The explanation model g ( x ) matches the original model f ( x ) when x = h x ( x ) , where ϕ 0 = f ( h x ( 0 ) ) represents the model output with all simplified inputs toggled off.
Property 2 (missingness): The missing features in the original input are not important.
x i = 0 ϕ i = 0
Missingness constrains features where x i = 0 to have no attributed impact.
Property 3 (consistency): Consistency means that even if we change a model so that a feature has a greater impact on the model, the attributes assigned to that feature are not reduced [22].
F x ( z ) f x ( z \ i ) f x ( z ) f x ( z \ i )
for all inputs z′∈{0,1}, then ϕ i (f′, x) ≥ ϕ i (f, x).
One drawback of the above elaborated properties 1, 2, and 3 is that other additive feature attribution methods are unknown [23], although for estimating Shapley worth, classical methods are familiar and knowable. Therefore, we introduce other methods to solve this nuisance, and the only possible model for Equation (4) to satisfy these properties is
ϕ i ( f , x ) =   z x | z | ! ( M | z | 1 ) ! M ! [ f x ( z ) f x ( z \ i ) ]
where | z | is the number of nonzero entries in z , and z x represents all z vectors where the nonzero entries are a subset of the nonzero entries in   x . Lundberg and Lee [24] suggested a solution to Equation (4) where f x ( z ) = f ( h x ( z ) ) = E [ f ( z ) z S ] and S is the set of nonzero indices in z’, known as SHAP values.
Contrary to the existing interpretation of significant features in machine learning models, SHAP has the advantage of identifying whether the contribution of each input feature is positive or negative. In addition, SHAP can construct explanatory models that provide good explanations for both local and global models. SHAP values can be approximated by various methods, such as Deep SHAP, Kernel SHAP, and Tree SHAP. This study uses the Tree SHAP method, which is a tree-based machine learning model such as random forest (RF), decision tree, and gradient boosted tree (AdaBoost, CatBoost, LightGBM and XGBoost).

3.4. Approach for Interpretable Machine Learning

To ensure the quality of the experimental results, in this study we propose an interpretable machine learning model architecture that consists of three phases. Figure 2 illustrates the methodology for identifying the important variables of the stadium fire risk assessment model and the equipment management risk assessment model. In the data preprocessing phase, the quality of the dataset is assessed based on the percentage of missing values and it is preprocessed to become a clean dataset (data cleaning). Then, because the unit measures of various fire risk hazard characteristics are not uniform, quantifiable threshold intervals are designed to classify and quantify various fire risk factors (data conversion). In the modeling phase, an experimental comparison study was conducted with six machine learning algorithms, using different metrics to measure the performance of the models, and the best performing model was decided. Finally, a random forest model with SHAP strategy is combined in the assessment phase in order to build a stadium fire risk assessment model. The impact analysis of each risk factor on different risk assessment models is analyzed according to interpretable plots (including feature important plot, force plot, dependence plot and summary plot). Section 3.1 to Section 3.3 describe in more detail the data preprocessing, the comparison and selection of machine learning models, and the introduction of SHapley Additive exPlanations strategy to build a stadium fire risk prediction model.

4. Experimental Results and Discussion

4.1. Experimental Environment

We used a computer to implement and test the configuration of our proposed idea. This computer is a personal computer using the Windows operating system, as shown in Table 4.

4.2. Identification of Importance Factors for Fire Risk Assessment Modes of Stadiums

The experimental database of stadium fire risk consists of 176 samples, of which 29, 68, 43, and 36 samples are distributed in Ideal Safety mode, Safety mode, Critical mode, and Hazardous mode (Table 5 presents the classification of stadium fire risk assessment modes). Based on the available statistics of causal factors [25], the assessment model of stadium fire risk was predicted using five input variables: building inherent safety (BIS), safety personnel management (SPM), fire protection base data (FPBD), equipment management (EM), and hidden danger management (HDM).
As shown in Figure 3, the accuracy of the RF model selected in this study is 100% and 83% for the training and test sets, respectively. Accuracy is the fraction of samples correctly predicted by the classifier. Note that the sensitivity of the RF model to the training and test sets was not evaluated in the current study, and the selection of the best machine learning model for the stadium fire risk assessment model and the equipment management risk assessment model was not discussed. The scope of our study is limited to the interpretation of machine learning models using SHAP. The performance of the model is analyzed by means of a confusion matrix that displays a table of observed versus predicted risk assessment modes. In the table, the diagonal elements indicate the predicted correct evaluation model. Other performance metrics evaluated by the model are precision and recall. The percentage of predicted risk assessment modes correctly classified by the model is the accuracy (fifth row of the confusion matrix, Figure 3). The actual risk assessment model correctly established by the machine learning model is recall. As shown in Figure 3, the model has high accuracy and recall in identifying Hazardous mode.
The effect of input variables on the prediction of RF models for stadium fire risk assessment models can be further explored by SHAP. The global importance factors of the five input variables are shown in Figure 4. The average of the absolute Shapley values for each feature in the global importance estimation data is shown. The input variables are ranked by importance, that is, the higher the average SHAP value, the more important the variables are. In addition, Figure 4 shows the importance of each input variable for the four risk assessment modes of Ideal Safety mode, Safety mode, Critical mode, and Hazardous mode; thus, the figure provides additional insight into the prediction of fire risk assessment modes for stadiums that have not yet been explored. The current study has not only global outputs but also individual categories (Ideal Safety, Safety, Critical, Hazardous). According to the global output, hidden danger management (HDM) is the least important and equipment management (EM) is the most important.
Figure 5 shows the prediction plots of the input variables for Safety mode. The SHAP value enables the decomposition of the Safety mode prediction into the sum of the effects of each input variable. The predicted and observed assessment mode is Safety mode. Figure 5 shows the actual contribution of these factors to Safety mode. In Figure 5, the blue arrows indicate the variables that affect the predictions of the other evaluation modes, and the red arrows indicate the variables that push the predictions to Safety mode. The base value is the proportion of samples that belong to a specific category. For example, the base value in Figure 5 corresponds to the proportion of samples in Safety mode in the overall sample (i.e., 68/176). In other words, the base value is the probability of predicting Safety mode when there is no information about the input variables. Safety mode predictions with probability values higher than 0.3492 may lead to a tendency to shift to assessment modes with a higher probability of fire risk occurrence (e.g., Hazardous mode). However, the predicted probability of Safety mode is 0.74, which indicates a high probability of Safety mode, i.e., the stadium is in a stable and safe condition. In Figure 5, the Safety mode prediction is contributed by the values EM and FPBD. The variable FPBD (SHAP value of 0.8387) is the most important factor that pushes the RF machine learning model prediction to predict Safety mode.
The range and distribution of the influence of the input variables on the stadium fire risk assessment model can be shown by summary plots (Figure 6). Each point on the fluctuation graph in Figure 6 is a Shapley value for the input variable and an instance. The y-axis is sorted by the input variables from top to bottom in importance, and each point is colored by the value of the input variable, from low (blue) to high (red). The position on the x-axis is determined by the Shapley value. Overlap points represent the distribution of points in the dataset, i.e., it indicates the range contained in the values. Figure 6a–d represent Ideal Safety mode, Safety mode, Critical mode, and Hazardous mode, respectively, where equipment management (EM) is the most important factor in determining the fire risk assessment of stadiums. Figure 6b shows that the higher the EM value is, the larger its SHAP value is and the greater its effect on Safety mode. SPM, FPBD, and BIS are the next key factors, and an increase in the value of all three leads to an increase in Safety mode potential. However, although hidden hazard management (HDM) is the least significant, it tends to reduce the possibility of safety mode as its value increases. On the other hand, low values of EM, SPM, and FPBD increased the probability of correlation between SHAP and predicted Critical mode as well as Hazardous mode (Figure 6c,d). For Critical mode or Hazardous mode, low values of EM, SPM, FPBD, and BIS tend to increase the probability of Critical mode or Hazardous mode (convergence toward the risky unstable state). However, similar to Safety mode, a higher HDM value reduces the likelihood of Critical mode and Hazardous mode. Furthermore, Figure 6a shows that high values of EM, SPM, FPBD, and BIS tend to increase the likelihood of Ideal Safety mode, which is the same as Safety mode. Note that, in contrast to Safety mode, high values of HDM tend to increase the likelihood of Ideal Safety mode. As shown in Figure 6a,b, the variation of HDM determines that the assessment mode is Ideal Safety mode, Safety mode. This variable has a significant difference on Ideal Safety mode, Safety mode. It is important to note that it is often difficult to identify Critical mode and Hazardous mode, and an extensive database is needed to determine the decision boundaries between Critical mode and Hazardous mode and with other assessment modes. The insights in Figure 6 help domain experts plan experimental studies and help establish Critical mode and Hazardous mode boundaries or closed form solutions.
Figure 7 shows the SHAP dependence of Safety mode, where the SHAP value varies with the input variables. Although the SHAP values shown in Figure 6 and Figure 7 are the same, Figure 7 shows the marginal effects of one or both input variables on the predicted outcomes of the RF machine learning model and can show whether the relationship between the risk assessment model and the input variables is linear, monotonic, or more complex. In Figure 7b, the effect of SPM is shown as the EM is varied from 60 to 90. Red values indicate high values of the variable EM, while blue indicates low values. When the SPM is higher than 60, the SHAP value of EM is positive. For the high values of SPM and EM, the SHAP values are extremely high. That is, high values of SPM and EM lead to a higher probability of Safety mode. For EM values above 70 and SPM greater than 60, there is a clear trend of EM and SPM on Safety mode prediction.

4.3. Identification of Importance Factors for Equipment Management Assessment Modes

In Section 4.2 we describe that equipment management (EM) is the most important factor to measure the fire risk of stadiums and has a tendency to contribute to their increased fire risk. In order to further investigate the variables affecting stadium fire risk, we will therefore explore the influence of the input variables of equipment management on them, thus indirectly explaining the relationship between the input variables of equipment management on stadium fire risk. An experimental database consisting of 130 ideal safety models, 72 safety models, 54 critical models, and 33 hazard models was used in this study.
As shown in Figure 8, the RF model has an accuracy of 96% for the training set and 84% for the test set. Figure 9 shows the important factors that identify the input variables when the equipment management has the various evaluation modes. FPL is the most important factor in equipment management, followed by FWTL, FFHS, and Smoke_CCS. In addition, Figure 9 also shows that the importance of the input variables varies according to the different risk assessment models.
Figure 10 shows the prediction plots of the input variables for Ideal Safety mode. Although the baseline value is 0.4888, the RF model predicts an Ideal Safety mode probability of 0.11 (lower than the baseline value). The individual contributions of each input variable are also shown in Figure 10, where FFHS = 1, Smoke_CCS = 1, Spray_CCS = 1, FSR_IR = 1, and FDO_IR = 1 are the factors driving the value up.
Figure 11 shows the effect of the distribution of input variables on the various risk assessment models. The results show that an increase in the fire pool level (FPL) leads to higher SHAP values and their associated probabilities for the Ideal Safety mode. The variable FPL has the most significant effect on the risk assessment model beyond the critical model. Figure 11 also shows the importance of various input variables for different risk assessment models. FFHS is most important for the critical mode, and high values of FFHS reduce the sensitivity of the critical mode. FDO/IR and FAC/IR have less impact on Ideal Safety mode and Safety mode. FHP_CCS, SR, and FAC/IR have less impact on the Hazardous mode. As expected, Smoke_CCS severely affects the Hazardous mode.
Figure 12 shows the SHAP dependence diagram of the Ideal Safety model of the equipment management database as a function of various input variables estimated using the machine learning model. Ignoring the colors in Figure 12a, SHAP is positive when the FFHS value is greater than 70, which indicates that the probability of the Ideal Safety mode increases as the FFHS value exceeds 70. Additionally, the associated SHAP values and Ideal Safety mode probabilities increase when the FR is greater than 70 and the FPL is greater than 80 (Figure 12b). As shown in Figure 12c,d, there is no clear pattern in SHAP values as SR and FAC/IR change. Similar conclusions apply to nrWaterPressure, WPFH, and Smoke_CCS.

4.4. Comparison with Other Study

This section shows the performance of the proposed model compared with studies related to fire risk identification and prediction using machine learning or deep learning methods. Table 6 shows the performance tests of the model proposed in this study as well as the results obtained from existing studies. Refs. [26,27] deep learning approach (Detectron2) and a new special convolutional neural network (Improved YOLOv3) to build detection platforms or systems for high accuracy and fast detection and recognition of forest fire image recognition (both day and night), respectively. The scope of this paper refers to fire risk assessment and prediction, and does not include image recognition and detection techniques. However, since the use of machine vision images acquired by fire detection cameras as input features is a trend and background for our future research, and since Detectron2 and Improved YOLOv3 methods have achieved good model performance in fire detection and recognition, they can be used as desired implementations of the concept. In addition to the two mentioned above, this performance test shows that the proposed model outperforms existing fire risk assessment and prediction studies, with our top model performing at 83% accuracy, 85% recall, and 86% precision. Therefore, the proposed prediction model in this study is acceptable in terms of risk prediction.

5. Limitations

This study also encountered some limitations. First, there is scarcity in the dataset. Although the data are of low order of magnitude and barely meet the minimum requirements of the experimental model, the amount of data in Critical mode and Hazardous mode is still scarce. Therefore, we need to collect an extensive database that will help domain experts to plan experimental studies to determine decision boundaries or establish closed form solutions for Critical mode and Hazardous mode and other assessment modes (Section 4.3). Second, the dataset is relatively homogeneous. The fusion of a large amount of other types of data (e.g., fire images, time series data) may improve the performance of the model. In the experimental study, we only considered one response variable, stadium fire risk, which obviously affected the usefulness of the model. The application value of the method would be greater if more accurate data on property damage, casualties, social impact, and other indicators could be integrated into the prediction model. In addition, the data categories are unbalanced. The experimental dataset used in this paper did not consider the problem of category imbalance, and we should explore ways to solve the label imbalance, while paying attention to overfitting and underfitting, to maximize the validity and accuracy of the model. Therefore, potential improvements need to be further investigated and planned for in our future work.
In future work, as researchers acquire an overwhelming amount of data, a single machine learning approach can no longer handle it effectively. Therefore, we need some measures to reduce operational efficiency and time cost. Ensemble learning is very popular in recent research on fire risk assessment and prediction. In contrast to a single machine learning approach, it is an integration of several different weak classifiers to form a strong classifier. The classification result is decided jointly by multiple classifiers voting to reduce the impact of individual classifier errors thus improving classification accuracy and stability. For example, Zhang [33] proposed a recurrent LSTM neural network (R-LSTM-NN) for predicting fire hazard values in smart cities, and the proposed model detected fire outbreaks with 98.4% accuracy and a minimum error rate of 0.14%.Ying [34] proposed a forest fire prediction model based on integrated extreme gradient boosting algorithm and random forest algorithm to predict the frequency of forest fires and fire burning area. Prediction performance better than that of single learning methods such as support vector machines, random forests, artificial neural networks, deep learning, decision trees, and extreme gradient boosting was obtained, demonstrating the superiority and high generalization capability of the algorithm, which provides an important technique for forest firefighting decisions in terms of fire resource allocation and strategies.

6. Conclusions

In this study, relying on the IoT remote fire monitoring system platform to collect IoT monitoring data features, we are committed to designing a quantifiable threshold interval to quantify and grade the indicators of different data types to obtain two quantified datasets. In the experiments, the data samples were divided into two folders: training set (70%) and test set (30%) to construct interpretable machine learning models. We combined the random forest model of SHAP strategy to establish the stadium fire risk assessment model and analyzed the impact analysis of each risk feature on four different risk assessment models, so as to find the complex nonlinear relationship between risk features and stadium fire risk. The experimental study showed that for stadium fire risk, the developed interpretable random forest model provided 83% accuracy, 86% precision, and 85% recall for the stadium fire risk test dataset. In addition, EM was the key factor in determining the risk assessment model, followed by SPM, FPBD, and BIS. An increase in EM leads to an increase in the likelihood of Safety mode, while an increase in the values of SPM, FPBD, and BIS will increase the Safety mode trend. Hidden danger management (HDM) is the least important, but an increase in its value decreases the likelihood of Safety mode. The experimental results also show that the low data magnitude leads to difficulties in identifying the decision boundary ranges of Critical mode and Hazardous mode. Finally, a cloud platform based on Chinese IoT Big Data to obtain a broader sense of stadium fire data is applied for future research of this machine learning approach.

Author Contributions

Y.Z. and X.J. designed this research and collected the dataset for the experiment. Y.W. presented the logical conception of the original draft. Furthermore, Y.L. developed the proposed methodology. X.F. wrote this manuscript and made the original draft. Y.L. and X.F. analyzed the data to show the validity of this paper and performed all the research steps. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported by the special project of safety production of Hubei emergency management department (Grant number: KJZX201907011), the Youth project of Hubei Natural Science Foundation (Grant number: 2018CFB186) and the National Natural Science Foundation of China (Grant number: 51874213).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

This study thanks Y.Z. for collecting the experimental dataset. In addition, X.F. wrote and produced the manuscript as well as analyzed the data to demonstrate the validity of this paper and performed all research steps.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

Table A1. Description of attributes from Stadium Fire Risk Dataset.
Table A1. Description of attributes from Stadium Fire Risk Dataset.
Attribute NameDescriptionData Type and Value
Fire risk of stadiums: Nominal-Ideal safety mode, Safety mode, Critical mode, Hazardous mode
BISBuilding inherent safetyNumerical
SPMSafety personnel managementNumerical
FPBDFire protection base dataNumerical
EMEquipment managementNumerical
HDMHidden danger managementNumerical

Appendix B

Table A2. Description of attributes from equipment management database.
Table A2. Description of attributes from equipment management database.
Attribute NameDescriptionData Type and Value
Equipment management: Nominal-Ideal safety mode, Safety mode, Critical mode, Hazardous mode
FFHSFire fighting host statusNominal-Normal, no data, offline duration (≤24 h), offline duration (>24 h)
FRFire host failure ratioNumerical-%
SRFire host shielding ratioNumerical-%
FAC/IRIntegrity rate of fire alarm controllerNumerical-%
Spray_CCSSpray control cabinet statusNominal-Automatic/
manual/offline/disconnected
nrWaterPressureNormal rate of water pressure at the end of sprinkler systemNumerical-%
WPFHWorst point fire hydrant water pressureNumerical- MPa
FHP_CCSFire hydrant pump control cabinet statusNominal-Automatic/
manual/offline/disconnected
FDO_IRFire door operating integrity ratioNumerical-%
FSR_IRFire shutter running integrity ratioNumerical-%
Smoke_CCSSmoke control cabinet statusNominal-Automatic/
manual/offline/disconnected
FWTLFire water tank levelNumerical- mm
FPLFire pool levelNumerical- mm

References

  1. Cheng, X.Q.; Jin, X.L.; Wang, Y.Z.; Guo, J.F.; Zhang, T.Y.; Li, G.-J. Survey on big data system and analytic technology. Ruan Jian Xue Bao/J. Softw. 2014, 25, 1889–1908. [Google Scholar]
  2. Iban, M.C. An explainable model for the mass appraisal of residences: The application of tree-based Machine Learning algorithms and interpretation of value determinants. Habitat Int. 2022, 128, 102660. [Google Scholar] [CrossRef]
  3. Bamonte, P.; Felicetti, R. Fire Scenario and Structural Behaviour in Underground Parking Garages. J. Struct. Fire Eng. 2012, 3, 199–214. [Google Scholar] [CrossRef]
  4. Liu, F.; Zhao, S.; Weng, M.; Liu, Y. Fire risk assessment for large-scale commercial buildings based on structure entropy weight method. Saf. Sci. 2017, 94, 26–40. [Google Scholar] [CrossRef]
  5. Surya, L. Risk Analysis Model That Uses Machine Learning to Predict the Likelihood of a Fire Occurring at A Given Property. Int. J. Creat. Res. Thoughts 2017, 5, 2320–2882. [Google Scholar]
  6. Anderson-Bell, J.; Schillaci, C.; Lipani, A. Predicting non-residential building fire risk using geospatial information and convolutional neural networks. Remote Sens. Appl. Soc. Environ. 2021, 21, 100470. [Google Scholar] [CrossRef]
  7. Wang, N.; Xu, Y.; Wang, S. Interpretable boosting tree ensemble method for multisource building fire loss prediction. Reliab. Eng. Syst. Saf. 2022, 225, 108587. [Google Scholar] [CrossRef]
  8. Sarkar, S.; Pramanik, A.; Maiti, J.; Reniers, G. Predicting and analyzing injury severity: A machine learning-based approach using class-imbalanced proactive and reactive data. Saf. Sci. 2020, 125, 104616. [Google Scholar] [CrossRef]
  9. Chuvieco, E.; Aguado, I.; Yebra, M.; Nieto, H.; Salas, J.; Martín, M.P.; Vilar, L.; Martínez, J.; Martín, S.; Ibarra, P. Development of a framework for fire risk assessment using remote sensing and geographic information system technologies. Ecol. Model. 2010, 221, 46–58. [Google Scholar] [CrossRef]
  10. Wang, S.H.; Wang, W.C.; Wang, K.C.; Shih, S.Y. Applying building information modeling to support fire safety management. Autom. Constr. 2015, 59, 158–167. [Google Scholar] [CrossRef]
  11. Hou, X.; Ming, J.; Qin, R.; Zhu, J. Analysis of the Fire Risk in Wildland-Urban Interface with Random Forest Model. Sci. Silvae Sin. 2019, 55, 194–200. [Google Scholar]
  12. Vasconcelos, M.J.P.D.; Silva, S.; Tome, M.; Alvim, M.; Pereira, J.M.C. Spatial prediction of fire ignition probabilities: Comparing logistic regression and neural networks. Photogramm. Eng. Remote Sens. 2001, 67, 73–81. [Google Scholar]
  13. Wotton, B.M.; Nock, C.A.; Flannigan, M.D. Forest fire occurrence and climate change in Canada. Int. J. Wildland Fire 2010, 19, 253–271. [Google Scholar] [CrossRef]
  14. Mohajane, M.; Costache, R.; Karimi, F.; Pham, Q.B.; Essahlaoui, A.; Nguyen, H.; Laneve, G.; Oudija, F. Application of remote sensing and machine learning algorithms for forest fire mapping in a Mediterranean area—ScienceDirect. Ecol. Indic. 2021, 129, 107869. [Google Scholar] [CrossRef]
  15. Tuyen, T.T.; Jaafari, A.; Yen HP, H.; Nguyen-Thoi, T.; Van Phong, T.; Nguyen, H.D.; Van Le, H.; Phuong, T.T.M.; Nguyen, S.H.; Prakash, I. Mapping forest fire susceptibility using spatially explicit ensemble models based on the locally weighted learning algorithm—ScienceDirect. Ecol. Inform. 2021, 63, 101292. [Google Scholar] [CrossRef]
  16. Wei, Y.Y.; Zhang, J.Y.; Wang, J. Research on Building Fire Risk Fast Assessment Method Based on Fuzzy comprehensive evaluation and SVM. Procedia Eng. 2018, 211, 1141–1150. [Google Scholar] [CrossRef]
  17. Lau, C.K.; Lai, K.K.; Lee, Y.P.; Du, J. Fire risk assessment with scoring system, using the support vector machine approach. Fire Saf. J. 2015, 78, 188–195. [Google Scholar] [CrossRef]
  18. Liu, Z.-G.; Li, X.-Y.; Jomaas, G. Identifying community fire hazards from citizen communication by applying transfer learning and machine learning techniques. Fire Technol. 2021, 57, 2809–2838. [Google Scholar] [CrossRef]
  19. Madaio, M.; Chen, S.-T.; Haimson, O.L.; Zhang, W.; Cheng, X.; Hinds-Aldrich, M.; Chau, D.H.; Dilkina, B. Firebird: Predicting fire risk and prioritizing fire inspections in Atlanta. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, 13–17 August 2016; pp. 185–194. [Google Scholar]
  20. Palar, P.S.; Zuhal, L.R.; Shimoyama, K. Enhancing the explainability of regression-based polynomial chaos expansion by Shapley additive explanations. Reliab. Eng. Syst. Saf. 2023, 232, 109045. [Google Scholar] [CrossRef]
  21. Ui, T. A Shapley Value Representation of Potential Games. Games Econ. Behav. 2000, 31, 121–135. [Google Scholar] [CrossRef]
  22. Vega García, M.; Aznarte, J.L. Shapley additive explanations for NO2 forecasting. Ecol. Inform. 2020, 56, 101039. [Google Scholar] [CrossRef]
  23. Wang, S.C.; Qian, Y.; Leung, L.R.; Zhang, Y. Identifying Key Drivers of Wildfires in the Contiguous US Using Machine Learning and Game Theory Interpretation. Earth’s Future 2021, 9, e2020EF001910. [Google Scholar] [CrossRef] [PubMed]
  24. Lundberg, S.M.; Lee, S.-I. A unified approach to interpreting model predictions. Adv. Neural Inf. Process. Syst. 2017, 30. [Google Scholar]
  25. Lu, Y.; Fan, X.; Zhao, Z.; Jiang, X. Dynamic Fire Risk Classification Prediction of Stadiums: Multi-Dimensional Machine Learning Analysis Based on Intelligent Perception. Appl. Sci. 2022, 12, 6607. [Google Scholar] [CrossRef]
  26. Abdusalomov, A.B.; Islam, B.M.S.; Nasimov, R.; Mukhiddinov, M.; Whangbo, T.K. An Improved Forest Fire Detection Method Based on the Detectron2 Model and a Deep Learning Approach. Sensors 2023, 23, 1512. [Google Scholar] [CrossRef]
  27. Abdusalomov, A.; Baratov, N.; Kutlimuratov, A.; Whangbo, T.K. An Improvement of the Fire Detection and Classification Method Using YOLOv3 for Surveillance Systems. Sensors 2021, 21, 6519. [Google Scholar] [CrossRef]
  28. Kim, D.H. A study on the development of a fire site risk prediction model based on initial information using big data analysis. J. Soc. Disaster Inf. 2021, 17, 245–253. [Google Scholar]
  29. Poh, C.Q.; Ubeynarayana, C.U.; Goh, Y.M. Safety leading indicators for construction sites: A machine learning approach. Autom. Constr. 2018, 93, 375–386. [Google Scholar] [CrossRef]
  30. Gholizadeh, P.; Esmaeili, B.; Memarian, B. Evaluating the performance of machine learning algorithms on construction accidents: An application of ROC curves. In Construction Research Congress 2018; ASCE: New Orleans, LA, USA, 2018. [Google Scholar]
  31. Zhu, R.; Hu, X.; Hou, J.; Li, X. Application of machine learning techniques for predicting the consequences of construction accidents in China. Process Saf. Environ. Prot. 2021, 145, 293–302. [Google Scholar] [CrossRef]
  32. Wang, Q.; Zhang, J.; Guo, B.; Hao, Z.; Zhou, Y.; Sun, J.; Yu, Z.; Zheng, Y. CityGuard: Citywide fire risk forecasting using a machine learning approach. Proc. ACM Interact. Mob. Wearable Ubiquitous Technol. 2019, 3, 1–21. [Google Scholar] [CrossRef]
  33. Yz, A.; Pg, A.; Cbs, B.; Bam, C. Big data and artificial intelligence based early risk warning system of fire hazard for smart cities. Sustain. Energy Technol. Assess. 2021, 45, 100986. [Google Scholar]
  34. Xie, Y.; Peng, M. Forest fire forecasting using ensemble learning approaches. Neural Comput. Appl. 2019, 31, 4541–4550. [Google Scholar] [CrossRef]
Figure 1. SHAP attributes.
Figure 1. SHAP attributes.
Sensors 23 02151 g001
Figure 2. The key process using SHAP for an interpretable machine learning model.
Figure 2. The key process using SHAP for an interpretable machine learning model.
Sensors 23 02151 g002
Figure 3. Confusion matrix of an RF classifier model for the fire risk database of stadium: (a) training set and (b) test set (IS: Ideal Safety, S: Safety, C: Critical, and H: Hazardous).
Figure 3. Confusion matrix of an RF classifier model for the fire risk database of stadium: (a) training set and (b) test set (IS: Ideal Safety, S: Safety, C: Critical, and H: Hazardous).
Sensors 23 02151 g003
Figure 4. Importance factor of each input variable for fire risk database of stadiums.
Figure 4. Importance factor of each input variable for fire risk database of stadiums.
Sensors 23 02151 g004
Figure 5. Explanation of the Safety mode.
Figure 5. Explanation of the Safety mode.
Sensors 23 02151 g005
Figure 6. Summary plots for various assessment mode of fire risk.
Figure 6. Summary plots for various assessment mode of fire risk.
Sensors 23 02151 g006
Figure 7. SHAP dependency plots for Safety mode of the fire risk database of stadiums.
Figure 7. SHAP dependency plots for Safety mode of the fire risk database of stadiums.
Sensors 23 02151 g007
Figure 8. Confusion matrix of an RF classifier model for the equipment management database: (a) training set and (b) test set.
Figure 8. Confusion matrix of an RF classifier model for the equipment management database: (a) training set and (b) test set.
Sensors 23 02151 g008
Figure 9. Importance factor of each input variable for the equipment management database.
Figure 9. Importance factor of each input variable for the equipment management database.
Sensors 23 02151 g009
Figure 10. Explanation of the Ideal Safety mode.
Figure 10. Explanation of the Ideal Safety mode.
Sensors 23 02151 g010
Figure 11. Summary plots for various mode of equipment management database.
Figure 11. Summary plots for various mode of equipment management database.
Sensors 23 02151 g011
Figure 12. SHAP dependency plots for Ideal Safety mode of the equipment management database.
Figure 12. SHAP dependency plots for Ideal Safety mode of the equipment management database.
Sensors 23 02151 g012aSensors 23 02151 g012b
Table 1. Examples of fire risk indicators for equipment management.
Table 1. Examples of fire risk indicators for equipment management.
Response VariableInput FeaturesLevel I
[90–100]
Level II
[80–90)
Level III
[70–80)
Level IV
[60–70)
Level V
(<60)
Equipment managementFire host statusNormalNo dataOffline time ≤ 24 hOffline time > 24 h
Spray control cabinet statusAutomaticManualOfflineDisconnected
Integrity rate of fire alarm controller100%[95%, 100%)[90%, 95%)[80%, 90%)<80%
Failure ratio0%(0%, 5%](5%, 10%](10%, 20%]>20%
Shielding ratio0%(0%, 5%](5%, 10%](10%, 20%]>20%
Smoke control cabinet statusAutomaticManualOfflineDisconnected
Worst point fire hydrant water pressure≥0.05 MPa <0.05 MPa
Fire water tank level[0, 50 mm)[50 mm, 100 mm)>100 mm
Fire pool level[0, 50 mm)[50 mm, 100 mm)>100 mm
Table 2. Distribution of stadium fire risk data and equipment management data.
Table 2. Distribution of stadium fire risk data and equipment management data.
DatasetTraining SetTesting SetTotal
Stadium fire risk12353176
Equipment management20287289
Table 3. Using stadium fire risk datasets for model fitting and selection of optimal models.
Table 3. Using stadium fire risk datasets for model fitting and selection of optimal models.
Machine Learning AlgorithmsWeighted Performance Metrics
AccuracyPrecisionRecallF1-Score
Naive Bayes0.490.650.490.46
K-nearest neighbors0.750.740.750.74
Decision tree0.740.740.740.73
AdaBoost0.620.610.620.58
Light GBM0.810.810.800.80
Random forest0.830.860.850.82
Table 4. Windows desktop specifications used for the experiments.
Table 4. Windows desktop specifications used for the experiments.
HardwareDetailed Specifications
ProcessorIntel Core i7-10750H 260 GHz
GPUNVIDIA Quadro T2000,
Memory16 GB DDR4
MotherboardSDK0L77769 WIN
Storage1024 GB M.2, 4 TB Hard Drive
Operating systemWindows 12 Pro
PowerLGC 5B10W13958
Table 5. Classification of fire risk assessment modes of stadiums.
Table 5. Classification of fire risk assessment modes of stadiums.
Risk Assessment ModeRisk ValueAttribute Requirements
Hidden Dangers
Frequency
Fire
Frequency
Casualties/Property Losses
Ideal Safety mode[90–100]Extremely lowExtremely lowNo/No
Safety mode[80–90)LowLowNo/Minor
Critical mode[70–80)MediumMediumPartial/Large
Hazardous mode[60–70)HighHighPartial/Major
Table 6. Comparison of the performance achieved by the proposed model with existing research.
Table 6. Comparison of the performance achieved by the proposed model with existing research.
AlgorithmAccuracyRecallF1-ScorePrecision
Detectron2 [26]99.4%95.5%99.3%
Improved YOLOv3 [27]99.2%99.5%98.1%
Deep neural network [28]75.1%
SVM [29]78.0%
AdaBoost [30]71.0%69.0%
Logistic regression [31]80.3%78.3%
Neural networks [32]72.5%55.8%40.0%76.3%
Our method (random forest)83.0%85.0%82.0%86.0%
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Lu, Y.; Fan, X.; Zhang, Y.; Wang, Y.; Jiang, X. Machine Learning Models Using SHapley Additive exPlanation for Fire Risk Assessment Mode and Effects Analysis of Stadiums. Sensors 2023, 23, 2151. https://doi.org/10.3390/s23042151

AMA Style

Lu Y, Fan X, Zhang Y, Wang Y, Jiang X. Machine Learning Models Using SHapley Additive exPlanation for Fire Risk Assessment Mode and Effects Analysis of Stadiums. Sensors. 2023; 23(4):2151. https://doi.org/10.3390/s23042151

Chicago/Turabian Style

Lu, Ying, Xiaopeng Fan, Yi Zhang, Yong Wang, and Xuepeng Jiang. 2023. "Machine Learning Models Using SHapley Additive exPlanation for Fire Risk Assessment Mode and Effects Analysis of Stadiums" Sensors 23, no. 4: 2151. https://doi.org/10.3390/s23042151

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop