Simulating Forest Fire Spread with Cellular Automation Driven by a LSTM Based Speed Model

: The simulation of forest ﬁre spread is a key problem for the management of ﬁre, and Cellular Automata (CA) has been used to simulate the complex mechanism of the ﬁre spread for a long time. The simulation of CA is driven by the rate of ﬁre spread (ROS), which is hard to estimate, because some input parameters of the current ROS model cannot be provided with a high precision, so the CA approach has not been well applied yet in the forest ﬁre management system to date. The forest ﬁre spread simulation model LSTM-CA using CA with LSTM is proposed in this paper. Based on the interaction between wind and ﬁre, S-LSTM is proposed, which takes full advantage of the time dependency of the ROS. The ROS estimated by the S-LSTM is satisfactory, even though the input parameters are not perfect. Fifteen kinds of ROS models with the same structure are trained for different cases of slope direction and wind direction, and the model with the closest case is selected to drive the transmission between the adjacent cells. In order to simulate the actual spread of forest ﬁre, the LSTM-based models are trained based on the data captured, and three correction rules are added to the CA model. Finally, the prediction accuracy of forest ﬁre spread is veriﬁed though the KAPPA coefﬁcient, Hausdorff distance, and horizontal comparison experiments based on remote sensing images of wildﬁres. The LSTM-CA model has good practicality in simulating the spread of forest ﬁres.


Introduction
Forest fire is a global natural disaster [1]. In recent years, the frequent occurrence of forest fires has been caused by global warming, the annual increase in the amount of combustible materials, and the difficulty controlling fire source [2,3]. There are many complex factors influencing the spread of forest fires [4,5]. Accurate simulation [6][7][8][9][10] of forest fire spread can effectively reduce casualties and property losses [11]. The rate of fire spread (ROS) model is one of the important measures for conducting the simulation of forest fire spread, including physical and quasi-physical models and empirical and quasi-empirical models. The Rothermel [12] and Wang Zhengfei [13] models are the most common methods for simulating the spread of forest fire. These two methods belong to the ROS model, whose parameters are optimized experimentally. Their practicality is generally not ideal. Taking the equation of Rothermel model as an example, its structure is complicated, and too many inputs are needed, so its application is restricted. The Wang Zhengfei model can be applicable to slope s below 60 • . the ROS can effectively improve the accuracy of ROS prediction. The method of predicting ROS by exploring the interaction between wind and fire needs to be investigated.
In this article, simulated methods of forest fire spread are studied with the accurate prediction of ROS and excellent performance of the propagation methods. The LSTM approach is used to predict ROS, and CA is used as the fire spread model. The previous wind speed and ROS are used as input into the LSTM to predict the ROS in the future. The S-LSTM model is designed according to the powerful interaction between wind and fire. The wind speed and the ROS are the inputs into the S-LSTM. At the same time, many models with the same structure are trained with the sampled data captured in different cases. LSTM-CA is designed to simulate the forest fire spread. Three correction rules, cosine correction, vegetation correction, and slope correction, are used to improve the simulation accuracy of the S-LSTM. In the end, three random wildfires are selected to validate the feasibility of the LSTM-CA model. The flowchart for simulating forest fire spread based on CA with LSTM as shown in Figure 1. The rest of this paper is organized as follows. The ROS model based on an LSTM network (S-LSTM) is presented in Section 2. Section 3 designs the model of CA for the forest fire spread, and the correction rules are described in detail. Section 4 presents the methods of data collection and preprocessing. In Section 5, the experimental verification and experimental analysis are carried out by using data of three wildfires from remote sensing. Section 6 discusses the results and some prospects for future work.

The Forest Fire Spread Model Based on LSTM The Structure of the ROS Model
In the process of forest fire spread, the ROS is changed because of the wind and other factors. Predicting the ROS with fewer and easier-to-measure data is an important aspect of fire fighting.
The wind speed and the ROS change with time, and LSTM is a good method for predicting and analyzing time series. The one-dimensional matrices composed of the wind speed and the ROS are used as the input of normal LSTM. The structure of an LSTM is shown in Figure 2.
In Figure 2, x t is the input at time t of the normal LSTM, h t is the output at time t, and the input and output are the wind speed and the ROS, respectively. The wind plays an important role in the forest fire spread, at the same time, the fire will affect the local wind speed. From this result, the S-LSTM model is designed. In the structure of S-LSTM, the wind speed is used to control the forget gate and the ROS is used to control the input gate. In order to improve the fitting ability of the model, two LSTM units were set at each moment. The same unit of S-LSTM is used to record the changes in wind speed and the ROS. The structure of the S-LSTM model is shown in Figure 3. In Figure 3, V t W and V t F are the wind speed and the ROS at time t. h t W , h t F are the prediction of the wind speed and the ROS at time t. C t−1 and C t are the cell state at time t − 1 and t, σ is the sigmoid function [41], tanh is the hyperbolic tangent function [42]. These two functions are used as activation functions to solve problems that cannot be solved by linear models.
The wind speed and the ROS are used as input to S-LSTM, respectively. In Equations (1)-(4), the forget gate is used to detect the change in external wind speed and control the forget gate of the current unit state. According to the predicted output of the last unit state, the input gate controls the extent to which information is input to the unit. In the output gate, two control functions of output were set that can output the wind speed and the ROS speed, respectively. The models of normal LSTM and S-LSTM are compared in Section 5.1.

of 23
Input Gate: Update Cell State: Output Gate:

The Simulation of Forest Fire Spread Based on CA
In Section 2, the ROS models are designed. In this section, fire spread is simulated by using CA with S-LSTM.

The Simulated Logic Structure of Forest Fire Spread
The CA model includes cell space, cell states, the type of neighborhood, and transformational rules. The scene of a fire is divided into cells, and physical quantities take on a finite set of values at each cell. Cells evolve according to a set of transition rules and the states of the adjacent cells in discrete time.

The State Definition of CA
The type of Moore neighborhood ( Figure 4) is chosen to simulate two-dimensional fire spread. The (i, j) denotes the cells at row i and column j in the whole-cell space. In the natural environment, the temperature of combustibles is lower than the ignition point. The temperature of combustible materials is raised to its ignition point due to external environmental factors. Then the combustible material begins to burn and transmit energy to its surroundings [43]. The cell states are classified into three types as follows.
State 1: the unburned state; State 2: the early burn state, but the cell cannot spread to surrounding cells; State 3: the completely burned state, whose cell can spread to surrounding cells.
When the forest fire spread is simulated by CA, the state of cells at time t is calculated according to the total area and the burned area of cell at the time t [44].
In Equation (5), the value range of A t ij is 0 ≤ A t ij ≤ 1. A t ij = 0 , 0 < A t ij < 1, and A t ij = 1 represent the cells in state 1, 2, and 3, respectively, at time t.

The Simulation Model Structure of LSTM-CA
Based on the fire spread data collected in the experimental area, a fire spread model using CA with S-LSTM is proposed. The framework of the LSTM-CA model is shown in Figure 5. Where W t−1 , F t−1 are the wind speed and the ROS at time t − 1. The ROS F t at time t is calculated from the S-LSTM. After cosine correction, existing vegetation canopy cover correction and slope direction correction are performed, and whether the state of the central cell changes depends on the effect of the surrounding cells on it. When the fire spreads between cells, the appropriate S-LSTM model is selected according to the slope, slope direction, wind speed, and wind direction.

State Transformational Rules and Correction Methods
CA has the ability to simulate the spatiotemporal evolution of complex systems, because the state transformational rules are determined by the current state of the cell and its adjacent cells. There are errors between the structured laboratory environment and the real environment. In the actual environment, the slope direction also determines the spread direction of the fire, and the fuel kind at each location is also different. Each cell is given the parameter of slope direction and existing vegetation coverage. The predicted results of S-LSTM are corrected.

Transformational Rules
Rule 1 states that a cell that is non-combustible will never burn. Rule 2 states that if a cell is in state 2 at time t, it will becomes state 3 at time t + 1 , but it cannot spread to its surrounding cells. Rule 3 states that if a cell is in state 3 at time t, the fire can spread to

Cosine Correction for the Result of S-LSTM
To minimize errors caused by laboratory experiments, the cosine similarity [45][46][47][48] is used to evaluate the similarity between the model and the actual parameters. The wind direction and slope values of the model form the vector (α w1 , α s1 ), and the actual values of wind direction and slope form the vector (α w2 , α s2 ). The formula for calculating the cosine similarity is shown in Equation (6).
In the fire spread, slope is one of the most variable parameters. Therefore, the difference in slope is used to measure the increase or decrease of the cosine correction. If the slope of the model is higher than the actual slope, the calculation method is shown in Equation (7); If the model slope is lower than the actual slope, the calculation method is shown in Equation (8).

Correction Rules of Vegetation
The ROS is different at different combustible loads [50,51]. The fuel is divided into three types-forest, shrub, and meadow-and each type has a different EVC. The ROS increases and then decreases with the increase of vegetation thickness. Therefore, according to this characteristic, each kind of fuel is mapped to the sine function from 0 • to 180 • .
For example, the conversion formula of the EVC parameter is shown in Equation (9).
where the value of EVC after mapping is evc_t. If the cells cannot burn, the regulation factor is −1, which means that the cells will not be received and pass to the fire to spread. The algorithm of correction factors for different types and different vegetation coverage is as follows: In Equation (10), E c , E n is the EVC of the central cell and the adjacent cell after mapping. The ROS is affected by the fuel load. According to the empirical model, the vegetation adjustment factor for the spread of fuel in the forest fire is designed. The value range of K evc is [0, 2]. The value range of E c , E n is [0, 1), and vegetation factors will reduce the ROS. When the value is 1, vegetation factors have no effect on the ROS. When the value is in the range of (1, 2], vegetation factors promote the ROS.

Correction Rules of Slope Direction
With the slope, the slope direction determines whether it is an up-slope or down-slope, so the slope direction plays a very important role in fire spread. The main direction vector −→ v and of fire spread is calculated by the wind vector −→ v wind and slope vector −→ v slope , as shown in Equation (11).
Wind direction is defined as the direction of wind blowing in meteorology, and wind direction and slope direction are based on normal north. When the slope direction and wind direction are the same as the fire spread direction, both of them have a restraining effect on the fire spread, so the opposite direction of the wind and slope are used to calculate the main direction of fire spread.
The Min-Max Normalization method is used for the summation vector because the wind speed and the slope have different units. The slope and wind speed are normalized to (0, 10). Equation (12) is used to calculate wind vector and slope vector, v ws indicates the normalized value of wind speed or slope, and −→ v u denotes the unit vector of the calculated wind direction and slope direction. The unit vector in the main direction of the spread is calculated by Equation (13).
In Equation (14), v is the ROS, which is predicted by the S-LSTM network.
−→ v and is the −→ vec and calculated by Equation (13). After the main direction is calculated, the unit vector of the spread direction from the surrounding cells to the central cell is also calculated. The unit vector ( S) from the surrounding cells to the central cell is shown in Figure 6. Details are shown in Table 1. The calculation method of the slope direction factor is shown in Equation (15): In this study, the vector sum of the slope direction and wind direction is used to analyze the impact of the fire spread. In the CA, the vector sum composed of adjacent cells and central cells is established to calculate the effect of fire spread in different directions.

Establishment of Forest Fire Spread Model
If the cell is in the cumulative state at time t, it will become to completely burn state based on the state of itself and its adjacent cells.
In Equation (16), V represents the ROS from adjacent cell to the central cell, V c is the prediction of the S-LSTM model after cosine correction, K evc is the vegetation influence factor, and K slope is the influence factor of the slope direction.
In this study, the real area of the unit cell grid is 30 × 30 m 2 . Understanding how to calculate the combustion area of CA has become an important way of reducing the spread error. In the current research, the spread of forest fire has been verified and recognized by elliptical spread theory. A method to calculate the combustion area of cells is proposed. The unit grid cells continue to be divided into 1000 × 1000 squares. By calculating the number of squares, the area of cells is calculated. The spread method between cells is shown in Figure 7. In Equation (5), S (i,j) is calculated as shown in Equation (17); a represents the adjacent cell, b represents the sub-adjacent cell.

The Experimental Design
The surface fuel is selected from Maoer mountain, Harbin, Heilongjiang Province, China, 45 • 24 N, 127 • 39 E. At present, the forest landscape of the Maoershan is composed of natural secondary forests dominated by precious broad-leaved forest, poplar-birch forest, oak forest, and artificial forests such as Korean pine, larch, and Pinus sylvestris var.
In Figure 4, Moor-type CA is designed according to the two factors that have the greatest impact on fire spread, slope and wind, and fire spread experiments were conducted on this basis. Suppose the fire spreads in the direction According to the different slopes, the three fire spreading scenarios, uphill, downhill, and flat slope, are studied separately. Therefore, 15 kinds of fire spread experiments were designed, as shown in Figure 8. Because the combustibles are collected from Maor Mountain with the maximum slope of 15 • , the middle value 8 • is selected to facilitate the correction w.r.t. the slope in the stage of simulation using the trained model. In fact, the selected slope has little effect on the model, because the ROS model (S-LSTM) mainly considers the interaction between fire and wind, and the correction in the simulation can eliminate the error from slope selection here. Figure 9 shows the experimental scene that is captured by an infrared camera, and the detailed experimental parameters are shown in Table 2.

Calculating the ROS
The ROS is calculated by the distance and time between the fire points on the two adjacent infrared images [52]. The angle between the camera and the combustion bed causes rectangles in space to become irregular shapes in the image. The perspective transformation [53][54][55] transforms the original image into an Orthographic projection image in which the corresponding actual distances between points in the image can be solved. Four calibration points with temperatures higher than the surrounding ones are placed on the same surface of the rectangular combustion bed, which is used to calculate the perspective transformation matrix of the image.
The perspective transformation matrix is calculated through the calibration points in Figure 10a, which are used for perspective transformation in the fire spread. Figure 10b shows the image after perspective transformation. Then, the noise in the image is removed by the median filter. After preprocessing, the fire line at each moment is obtained, and the actual spread distance can be calculated. The fire line is depicted in Figure 10c.
Fire 2022, 5,13 In Equation (18), X, Y, Z represent the geospatial coordinates of the four points. x, y are pixel coordinates of infrared image, and z is depth scaling factor. a 3 × 3 perspective transformation matrix can be obtained by the four pixel coordinates and geographic coordinates. X , Y is the pixel coordinate of the image after the perspective transformation.

The ROS Prediction of S-LSTM Compared with Normal LSTM
The design of the LSTM and S-LSTM was presented in Section 2, and wind speed and the ROS are input into the LSTM for the ROS prediction. In the S-LSTM model, wind speed influences the change of the ROS through the forget gate. The ROS at the moment t + 1 is predicted according to t − 4, t − 3, t − 2, t − 1, and t. Seventy percent of the experimental data in each group form the training set, twenty percent form the validation set, and ten percent form the test set. In order to ensure that the predictions of the LSTM and S-LSTM are comparable, the same hyper-parameters are used. Before training models, multiple groups of hyper-parameters are set. The optimal set of models' hyper-parameters is shown in Table 3. In order to obtain a reliable and stable model, cross validation is adopted. Cross validation is a method to estimate the general ability of models in the field of statistics and machine learning. Cross validation can solve the problem of over-fitting and underfitting. The training set is divided into five sample sets, and the model is trained five times. During each training, one of the data sets is used as a test set, and the other four are used as training sets. The 5-fold cross-validation method is shown in Figure 11. The performance of models can be judged by the loss curve. The training loss and validation loss curves of LSTM and S-LSTM model for 15 kinds of experiments are shown in Figure 12. From Figure 12, it is concluded that neither LSTM nor S-LSTM models produce over-fitting or under-fitting. For the same training set and validation set, the convergence speed and loss value of S-LSTM model are lower than that of the normal LSTM model.  Table 2, respectively.
Mean-Square Error (MSE) [56][57][58][59] is a measure that reflects the difference between the prediction and real values. It is used to evaluate the prediction performance of normal LSTM and S-LSTM.
Fifteen groups of fire spread experiments are limited by the experimental site, and the number of data collected is different. In Equation (20), n is 10% of the total experimental data in each group.ŷ i is the predicted ROS, and y i is the true ROS. The MSE of the two LSTM structures in 15 types of fire spread is shown in Figure 13.   Table 2, respectively.
In this paper, the same S-LSTM model is applied to the training and prediction of 15 fire spread experiments. S-LSTM only reflects the interaction between wind and fire, and other factors affecting the fire spread are not considered. In addition, there are some errors in the process of data collection. The above causes inconsistent model predictions for 15 types of fire spread data, and even the error of the two groups of data is slightly higher than normal LSTM.

The Study Areas
The remote sensing image data of forest fires were collected from LANDFIRE [60], MTBS and other websites. The data were used to analyze the applicability of LSTM-CA and ELM-CA. The information on three wildfires is shown in Figure 14. According to the model input requirements, the slope, slope direction, vegetation type, vegetation height, vegetation coverage, and elevation files were downloaded. The resolution of the remote sensing image was 30 m. This ensures that the pre-fire vegetation parameter of each fire is persuasive. The COON wildfire broke out on 1 August 2015. It was the first wildfire of the simulation object. This fire was located 36.5 km southwest of Reading City, California. The burned area is about 24.23 km 2 and the altitude of the selected region is about 65-910 m. The monthly average temperature was 18.5 • C, the average humidity was 52%, and the monthly precipitation was 50.04 mm.
The PONY wildfire broke out on 7 June 2016. It is the second wildfire of the simulation object. It was located 17.54 km southwest of Camp Hapi, California. The burned area is about 12.6 km 2 , and the altitude of the selected region is about 236 to 1668 m. The monthly average temperature was 15.82 • C, the monthly average humidity was 55.18%, and the monthly precipitation is 12.12 mm.
The ROSE CREEK wildfire broke out on 3 September 2018. It was the third wildfire of the simulation object. The fire was located 67.4 km west of Chautto, Montana. The burned area was about 4.57 km 2 , and the altitude of the selected region is about 887 to 1026 m. The monthly average temperature was 18.06 • C, the monthly average humidity was 46.17%, and the monthly precipitation was 5.28 mm.
The COFFEE COMPLEX wildfire broke out on 2 August 2014, located 41.9 km northeast of Waverville, California. This wildfire is used to train the ELM. The 7000 sample points from the burned area and the 7000 sample points from the unburn area are selected as the training data of ELM. The burned area was about 25.9 km 2 , and the altitude is about 974 to 2346 m. The average monthly temperature was 23.97 • C, the average humidity was 37.27%, and the monthly precipitation was 8.32 mm.

The Results of LSTM-CA and ELM-CA
The first step in simulating the spread of forest fire is to analyze the topography and environment of the burning area. Secondly, the main direction of fire spread is determined, and the appropriate S-LSTM model is selected. Then, the results of the S-LSTM model are modified according to the correction rules proposed in Section 3. According to the transition rules, the cell state is transformed and the forest fire spread simulation is completed.
In order to verify the effectiveness of the model, this paper sets up two comparative experiments: the first experiment compares the simulation results with the actual results, and the second experiment compares the results of LSTM-CA and ELM-CA. ELM-CA [61] trains the ELM model by collecting information about combustion and unburned areas and recording wind speed in the event of a fire. The probability is predicted by the action of elm and wind. Fourteen thousand samples were randomly selected from the COFFEE COMPLEX fire. The burnt point is marked as 1, and the unburned point is marked as 0. Each cell has corresponding slope, aspect, vegetation elevation, vegetation cover, vegetation type, and elevation information as input to the ELM model.
In Figures 15-17, the simulation results of LSTM-CA and ELM-CA for the same three wildfires are shown. The curves of different colors represent the actual fire areas of three wildfires, and the red area represents the LSTM-CA and ELM-CA simulations. There is a lack of burning time data when collecting the fire information from LANDFIRE and other websites. In this study, fire information was imported into Farsite for simulation, and the burning time of the three wildfires was obtained. COON, PONY, and ROSE COREAK simulated times were 128 h, 150 h, and 80 h, respectively. When simulating three wildfires, the interval of each iteration was 1 h, so the simulation of three wildfires was iterated 128 times, 150 times, and 80 times, respectively.

The Accuracy Analysis of Simulated Wildfire
In order to compare the accuracy of the ELM-CA model and the LSTM-CA model, confusion matrix [62][63][64][65] and Hausdorff distance [66] were selected as two evaluation methods [67]. The confusion matrix is a specific matrix used to visualize the performance of models. There are two ways to evaluate the model based on the confusion matrix: one is the KAPPA coefficient [68] and the other is the commission and omission error. Hausdorff distance can effectively characterize the similarity of the edge contour between objects.
(1) The confusion matrix analysis of LSTM-CA and ELM-CA In the real burned results and simulated results, the pixels in the image can be divided into two categories: the burned pixels and the unburned pixels. According to the confusion matrix, the following four sample concepts are established: the simulated burning area is the real burning area (true positive). The simulated burned area is the real unburned area (false positive). The simulated unburned area is the real burning area (false negative). The simulated unburned area is the real unburned area (true negative). Tables 4 and 5 show the percentages of three types of fires simulated by LSTM-CA and ELM-CA.  Commission error is the percentage of the classification results that are misclassified, and omission error is the percentage of the classification results missing the real results. The formula is shown in Equation (21).
In Equation (21), C e is the commission error and O e is the omission error. The commission error and omission error of the LSTM-CA and ELM-CA for the three wildfires are shown in Figure 18. 15 Figure 18. The commission error and omission error for three wildfires simulated by models LSTM-CA and ELM-CA. (a) represents the commission error simulated by the two models. (b) represents the omission error simulated by the two models.
From Figure 18, for three randomly selected wildfires, there are different simulation performances for two models. The commission error of the PONY and COON wildfires simulated by LSTM-CA are higher than those of ELM-CA, especially the misclassification error of PONY, which reaches 15.2%, but the omission errors of these two fires simulated by LSTM-CA are lower than those of ELM-CA.
KAPPA coefficient is used to evaluate the consistency [69,70] between the simulated results and the real burned results.
Fire 2022, 5, 13 P 0 is observed consistency, and P e is expected consistency. K is the KAPPA coefficient. According to Equation (22), the results are obtained as shown in Tables 6 and 7.  Tables 6 and 7, it can be seen that the observation consistency, expected consistency, and KAPPA coefficient of LSTM-CA in the three wildfire simulations are better than ELM-CA.
In Figure 18, the KAPPA coefficients of LSTM-CA and ELM-CA are greater than 0.61, and the results are highly consistent. Analyzing a single fire shows that the LSTM-CA simulation results of the COON and ROSE CREEK wildfire are almost completely consistent with the results. The simulation results of the PONY wildfire are also highly consistent with the real results, and among the results of the three wildfires simulations by ELM-CA, only the ROSE CREEK wildfire just reached the almost consistent level, and the other two wildfires are only at a high level of consistency. Compared with ELM-CA, the accuracy of the LSTM-CA model is improved by 16.8%, 16.8%, and 5.9% in the analysis of the three wildfires, PONY, COON, and ROSE CREEK.
(2) The Hausdorff distance analysis of LSTM-CA and ELM-CA Hausdorff distance can effectively characterize the similarity of edge contours between objects and quantify the matching degree of edge contours. The Hausdorff distance is used to analyze the contour of predict results and real results. The The Hausdorff distance between the simulation results and the actual combustion zone calculated by Equation (23) is as follows.
In Figure 19, the Hausdorff distances of the three wildfires simulated by LSTM-CA are all smaller than those of the simulation results of ELM-CA. Therefore, the contours of the LSTM-CA simulation results for the three wildfires are more similar to the real results.

Discussion
In the normal LSTM model, the wind speed and the ROS are simultaneously input to the input gate, output gate, and forget gate of the LSTM unit. The interaction between wind and fire is reflected through the network connection in the LSTM unit. In the S-LSTM model, wind speed controls the forget gate of the LSTM, and the interaction between wind and fire is more intense. The interaction between wind and fire is not only reflected by the neural network connection, which is more suitable for the fire spread in the actual environment; in addition, from the training loss and validation loss curves, as well as the MSE analysis of the test set, it can be concluded that S-LSTM has faster convergence performance and better fitting performance.
The superior performance of the model cannot be analyzed by the commission error and omission error; it is obvious that the LSTM-CA model has a significant advantage over the ELM-CA based on the KAPPA coefficient and the Hausdorff distance. This is because the slope direction is taken into account in the LSTM-CA, and the interaction between wind and fire is taken into account in the S-LSTM. However, the results differ based on whether it is the S-LSTM prediction for the 15 kinds experiments or the LSTM-CA and ELM-CA simulations for the three wildfires. This can be caused by the following.
For the S-LSTM, there are some errors in the data of the hand-held anemometer when it collects wind speed data. In addition, there is a difference between the fire line extracted from the infrared image and the actual fire line.
For the ELM-CA, (1) fire points are sampled from the burning area and the unburned area of the same fire. The sampled points are only collected after the end of a fire, so the data are not enough to train the ELM well. When the fire training model is applied to simulate the spread of another fire, the related properties of the fire area change, which reduces the prediction accuracy of the model. (2) When the state transition probability of a cell is higher than a random probability threshold, the cell can burn.
For the LSTM-CA, (1) the training data set comes from the laboratory experiments, and there are differences between laboratory experiments and real wildfires, so the trained model performs differently for the different real fires. (2) The cosine correction, vegetation correction, and slope correction of fire velocity cannot be completely consistent with the real value.
In addition, due to the distance between the weather station used to measure meteorological factors and the fire line, as well as the fact that the fire spread process can be influenced by human-made factors, rainfall, and other factors, there are some differences between the simulated results and the actual burning contours.

Conclusions
In order to quickly design risk management and effectively implement fire suppression policies, accurate prediction of the fire spread process is an important measure. Two ROS models are presented in this paper: the normal LSTM with a one-dimensional matrix consisting of wind speed and ROS as inputs, and the S-LSTM with wind speed and ROS as inputs. The performance of the S-LSTM model for predicting the ROS is verified by two methods. The first is to analyze the training loss and validation loss curves: the S-LSTM is reduced to the lowest value within 500 training cycles for 15 kinds of experiments, with better convergence speed and validation loss values than the normal LSTM. The second is to analyze the mean square error of the model's predicted values for the test set: in the analysis of the 15 test sets, 2/3 of the mean squared errors were less than 1 and the other maximum mean squared errors were 2.73. The LSTM-CA model combining the S-LSTM and the CA was used to simulate forest fire spread, and three correction methods were designed based on vegetation, slope, and slope direction. The LSTM-CA model was shown to have a higher accuracy and was feasible in simulating forest fire spread by simulating and analyzing three real wildfires in the United States with the ELM-CA model. Based on the analysis of the KAPPA coefficients, there is a high consistency between the simulated and actual result of the LSTM-CA model, and the simulated results of the two fire can achieve almost complete consistency, while the simulated accuracy also reaches high consistency, in the fire whose simulated result was poor. In the analysis of Hausdorff distance, the ROSE CREEK wildfire was only 8.48 and the contours of the simulated results were similar to the actual results, the accuracy of the other two fires was acceptable. Due to the presence of errors, the commission errors of the LSTM-CA model are unsatisfactory compared with the ELM-CA model.
In addition, the process of forest fire spread is very complex, and the ROS is influenced by many factors, and the influence of various factors on fire spread needs to be studied in depth in future research.