Forest fire danger spatio-temporal prediction method and system based on double attention DA-ConvLSTM
By using the dual-attention ConvLSTM model, adaptive weight allocation of multi-source data and dynamic enhancement of key spatiotemporal information are achieved, which solves the problem of insufficient multi-source data fusion and spatiotemporal information enhancement in forest fire risk prediction, and improves prediction accuracy and interpretability.
Patent Information
- Application Number
- CN202611375184.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-07
- Publication Date
- 2026-11-27
AI Technical Summary
Existing forest fire risk prediction methods lack the ability to model the spatiotemporal coupling relationship of multi-source data, cannot adaptively identify key driving factors, have weak model interpretability, and are insufficient in the identification of high fire risk levels.
A forest fire risk spatiotemporal prediction method based on dual attention ConvLSTM is adopted. By introducing channel attention mechanism and spatiotemporal attention mechanism, the weights of multi-source data are adaptively allocated, key spatiotemporal information is dynamically enhanced, and an end-to-end spatiotemporal coupling modeling framework is constructed.
It improves the dynamic prediction capability of fire risk, enhances the identification ability of key driving factors and the identification accuracy of high fire risk areas. The model has good interpretability and significantly improves prediction accuracy.
Smart Images

Figure CN123179126A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of forest fire monitoring and intelligent prediction technology, specifically to a spatiotemporal prediction method and system for forest fire risk based on dual-attention ConvLSTM. Background Technology
[0002] Forest fires are a type of natural disaster that is sudden and highly destructive. Their occurrence is closely related to a variety of factors, including meteorological conditions, topographic features, vegetation types, and human activities. Accurately predicting forest fire risk levels is of great significance for fire prevention and resource allocation.
[0003] Traditional forest fire risk prediction methods mostly rely on statistical or empirical models, such as logistic regression and random forests. Although they can characterize the relationship between fire risk influencing factors and fire occurrence to a certain extent, they generally have the following shortcomings: (1) They lack the ability to model the spatiotemporal coupling relationship of multi-source data and are difficult to reflect the dynamic evolution process of fire risk; (2) They use fixed weights to process input features and cannot adaptively identify key driving factors; (3) The models have weak interpretability and are difficult to reveal the fire risk formation mechanism; (4) They have insufficient accuracy in identifying high fire risk levels and are prone to missed reports and false reports.
[0004] In recent years, spatiotemporal modeling methods based on deep learning have made some progress in remote sensing sequence analysis and forest fire risk prediction. Related technologies attempt to solve the problem of spatiotemporal feature extraction using models such as convolutional neural networks and recurrent neural networks, but they still fail to effectively address the core pain points of the differences in the importance of multi-source features and the dynamic selection of key spatiotemporal information. For example, CN202110792189.2 (A Forest Fire Prediction Method Based on Deep Learning Networks) proposes to combine CNN and ConvLSTM to construct a forest fire prediction model, which realizes the extraction of spatiotemporal information of forest fires and improves the predictive universality by automatically adjusting the weights of influencing factors. However, this technology only achieves simple weight allocation through the hidden layers of the model and does not design a dedicated attention weighting mechanism for multi-source feature channels. It cannot adaptively prioritize core driving factors such as meteorology, vegetation, and topography, has limited ability to identify key features, and does not differentiate and enhance important information in the time and spatial dimensions, making it difficult to accurately capture the spatiotemporal evolution patterns of high fire risk areas. CN202510413164.5 (A Forest Fire Risk Prediction Method and System Based on Machine Learning) extracts the spatiotemporal distribution features of fire risk data based on machine learning and identifies candidate fire risk areas through regional similarity division. However, it only performs simple clustering and matching of spatiotemporal features and does not build an end-to-end spatiotemporal coupling modeling framework. Furthermore, it does not consider the differences in fire risk contribution in different time periods and different spatial regions during feature processing, resulting in poor performance in accurately identifying high fire risk areas. In the field of academic research, Professor Cheng Pengle's research group at Beijing Forestry University proposed the SimFAN network model (a wildfire risk prediction model based on an improved Transformer). The SimAM attention mechanism and the full attention mechanism were introduced to improve the accuracy of global wildfire risk prediction. The attention score also revealed the spatiotemporal correlation of wildfire risk. However, the model is based on the Transformer architecture to implement the attention mechanism, which is not good at capturing the spatiotemporal local features of forest fire risk prediction. Moreover, it only uses a single joint attention mechanism and does not design the channel feature weighting and spatiotemporal attention enhancement in a layered manner. It cannot achieve the two-layer feature optimization of "multi-source factor screening - key spatiotemporal enhancement". At the same time, the model is designed for global-scale wildfire prediction and is not very adaptable to the fine identification of high fire risk at the regional scale.
[0005] Furthermore, existing deep learning-based forest fire risk prediction methods all share common shortcomings: they either only achieve single-dimensional attention feature enhancement or simply fuse channel, temporal, and spatial attention without designing a targeted dual-attention hierarchical optimization architecture based on the formation mechanism of forest fire risk. This makes it difficult for the model to simultaneously achieve accurate screening of multi-source features and dynamic enhancement of key spatiotemporal information. Therefore, there is an urgent need for a forest fire risk prediction method that can simultaneously achieve multi-source data fusion, key feature screening, and spatiotemporal dynamic modeling, addressing the industry pain points of insufficient targeted feature weighting and inadequate spatiotemporal information enhancement in existing technologies.
[0006] In summary, existing deep learning-based forest fire risk prediction methods share common shortcomings: Firstly, early methods did not explicitly introduce attention mechanisms into the model architecture, making it impossible to differentiate weight allocation for multi-source input features. Secondly, while some methods have begun to incorporate attention mechanisms, they either only achieve single-dimensional attention feature enhancement or simply parallel or fuse channel attention, temporal attention, and spatial attention, failing to design a hierarchical optimization architecture that "first filters key driving factors, then strengthens key spatiotemporal information" based on the formation mechanism and prediction requirements of forest fire risk. This makes it difficult for the model to simultaneously achieve accurate screening of multi-source features and dynamic enhancement of key spatiotemporal information. Therefore, there is an urgent need for a forest fire risk prediction method that can simultaneously achieve multi-source data fusion, adaptive identification of key driving factors, and dynamic enhancement of key spatiotemporal information to address the core pain points of existing technologies, such as lack of targeted feature weighting and insufficient spatiotemporal information enhancement. Summary of the Invention
[0007] To address the shortcomings of existing technologies, this invention proposes a spatiotemporal prediction method and system for forest fire risk based on dual-attention DA-ConvLSTM. This method integrates multi-source remote sensing data with a deep learning model to improve the accuracy of fire risk prediction and enhance the model's ability to identify key driving factors and its interpretability.
[0008] To achieve the above objectives, the following technical solution is adopted: In a first aspect, the present invention provides a spatiotemporal prediction method for forest fire risk based on dual-attention ConvLSTM, comprising the following steps: Acquire multi-source data for the target area, including fire point remote sensing data, meteorological data, vegetation data, topographic data, and human activity data; The multi-source data is preprocessed, including missing value imputation, outlier removal and data standardization, and the target region is divided into several regular spatial grids, with each spatial grid serving as an independent sample unit. Based on a sliding time window, the multi-source data of each preprocessed spatial grid is constructed into a spatiotemporal sequence sample of a three-dimensional tensor data structure. The three-dimensional tensor data structure includes a time series dimension, a spatial grid row dimension, a spatial grid column dimension, and a feature channel dimension. The spatiotemporal sequence samples are input into the ConvLSTM model, and the spatial structure features and temporal series dependencies are extracted through the convolutional gating mechanism of ConvLSTM to obtain intermediate feature representations. A channel attention mechanism is introduced to adaptively weight each feature channel of the intermediate feature representation to obtain the channel-weighted feature; A spatiotemporal attention mechanism is introduced into the channel-weighted features to dynamically allocate weights in the time and space dimensions, resulting in spatiotemporally enhanced features. The spatiotemporally enhanced features are input into the classification layer, which outputs the forest fire risk level or probability of occurrence for each spatial grid. The prediction results of each grid are then mapped to the spatial grid of the target area to generate a spatial distribution map of forest fire risk.
[0009] Furthermore, the feature channels of the multi-source data include meteorological factors, vegetation factors, topographic factors, and human activity factors. The meteorological factors include temperature, humidity, precipitation, and wind speed. The vegetation factors include the normalized vegetation index. The topographic factors include slope and aspect. The human activity factors include distance from roads and distance from settlements.
[0010] Furthermore, the fire point remote sensing data is used to extract historical fire point distribution information and serve as a source of labeled data for model training, while the meteorological data, vegetation data, terrain data, and human activity data serve as driving feature data for model input.
[0011] Furthermore, the sliding time window has a length of 4 to 8 time steps, and the spatial grid size is 1 km × 1 km.
[0012] Furthermore, the specific rules for the data preprocessing are as follows: Missing values are imputed as follows: linear interpolation is used to impute missing values in the time dimension, and neighborhood mean is used to impute missing values in the spatial dimension. Outlier removal method: using statistical constraints Identify outliers and truncate or remove values that exceed the specified range. The data standardization method is as follows: according to Subtract the mean from each feature data point and then divide by its standard deviation. These are the original eigenvalues. These are the standardized eigenvalues. The characteristic mean, The characteristic standard deviation is denoted as .
[0013] Furthermore, the process by which the ConvLSTM model extracts spatiotemporal features through a convolutional gating mechanism is as follows: The input features at each time step in the three-dimensional tensor data structure are convolved with the hidden state at the previous time step. Then, information is selected and transmitted through an input gate, a forget gate, and an output gate to update the cell state and the hidden state. The input gate controls the inflow of current input information, the forget gate controls the retention of the cell state at the previous time step, and the output gate controls the output of the current cell state to the hidden state. The hidden state is output as the intermediate feature representation, which is used to characterize the spatiotemporal features of the current time step that integrate spatial structure information and temporal series dependencies.
[0014] Furthermore, the specific implementation process of the channel attention mechanism is as follows: Global pooling is used to compress the intermediate features globally, and the spatial dimension information of each feature channel is aggregated into a global response value. The global response value is processed sequentially through a first fully connected layer, a ReLU activation function, a second fully connected layer, and a Sigmoid activation function to calculate the attention weights for each feature channel. The attention weights of each feature channel are multiplied with the corresponding intermediate features channel by channel to achieve feature recalibration and output the channel-weighted features.
[0015] Furthermore, the spatiotemporal attention mechanism comprises two parts: temporal attention weighting and spatial attention enhancement. The specific implementation process is as follows: In the time dimension, the importance weight of each moment within the sliding time window is calculated, and the weight of each moment is normalized by the Softmax function. The normalized weight is multiplied by the channel attention-weighted feature of the corresponding moment to realize time feature weighting and output the time-weighted feature. In the spatial dimension, a 3×3 convolution operation is performed on the time-weighted features, and a spatial attention mask is generated by the Sigmoid activation function. The spatial attention mask is then multiplied element-wise with the time-weighted features to achieve spatial feature enhancement, and the spatiotemporally enhanced features are output.
[0016] Furthermore, the classification layer is a Softmax classification layer, which maps the spatiotemporally enhanced features through a fully connected layer and then processes them through the Softmax function to output the fire risk level probability of each spatial grid. The model training uses the cross-entropy loss function, the optimizer is the Adam optimizer, the learning rate is set to 0.001, and the batch size is set to 32.
[0017] Secondly, the present invention also provides a forest fire risk spatiotemporal prediction system based on dual-attention ConvLSTM, comprising: The data acquisition module is used to acquire multi-source data of the target area, including fire point remote sensing data, meteorological data, vegetation data, terrain data and human activity data; The data preprocessing module is used to preprocess the multi-source data, including missing value imputation, outlier removal and data standardization, and to divide the target area into several regular spatial grids, with each spatial grid serving as an independent sample unit. The spatiotemporal sample construction module is used to construct a spatiotemporal sequence sample of a three-dimensional tensor data structure from the multi-source data of each preprocessed spatial grid based on a sliding time window. The three-dimensional tensor data structure includes a time series dimension, a spatial grid row dimension, a spatial grid column dimension, and a feature channel dimension. The ConvLSTM feature extraction module is used to input the spatiotemporal sequence samples into the ConvLSTM model, and extract spatial structure features and temporal series dependencies through the convolutional gating mechanism of ConvLSTM to obtain intermediate feature representations. The channel attention weighting module is used to introduce a channel attention mechanism into the intermediate feature representation, and to adaptively weight different feature channels to obtain channel-weighted features. The spatiotemporal attention enhancement module is used to introduce a spatiotemporal attention mechanism into the weighted features of the channel, and to dynamically allocate weights in the time and space dimensions to obtain spatiotemporally enhanced features. The prediction output module is used to input the spatiotemporally enhanced features into the classification layer, output the forest fire risk level or probability of occurrence for each spatial grid, and map the prediction results of each grid to the spatial grid of the target area to generate a spatial distribution map of forest fire risk.
[0018] Compared with the prior art, the present invention has the following beneficial effects: (1) Deep collaborative modeling of spatial and temporal information is realized, which improves the dynamic prediction capability of fire risk. This invention uses the convolutional gating mechanism of the ConvLSTM model to capture the temporal series dependency while extracting spatial structural features, so that the model can simultaneously perceive the spatial distribution pattern and temporal evolution trend of fire risk, overcoming the defect of traditional methods that process spatiotemporal features separately.
[0019] (2) The adaptive weight allocation of multi-source factors is achieved through the channel attention mechanism, which improves the identification ability of key driving factors. This invention introduces an attention mechanism in the channel dimension for the intermediate features output by ConvLSTM. Through global pooling and weight learning, the importance weights of each feature channel (meteorology, vegetation, topography, human activities, etc.) are automatically calculated, so that the model can dynamically adjust the degree of attention to each input factor according to environmental changes. This solves the problem that the existing technology uses fixed weights for all features and cannot adaptively identify key factors.
[0020] (3) By strengthening key time and space information through a spatiotemporal attention mechanism, the identification accuracy of high fire risk areas is significantly improved. Based on channel weighted features, this invention further introduces a spatiotemporal attention mechanism: temporal attention enables the model to automatically focus on key time periods with high fire risk or drastic environmental changes, while spatial attention enables the model to automatically focus on high-risk spatial areas. The two together achieve an accurate response to "when and where the fire risk is highest", effectively solving the problem of insufficient identification accuracy of existing technologies in high fire risk areas.
[0021] (4) The model has good interpretability and can reveal the mechanism of action of fire risk driving factors. In this invention, the channel attention weight can directly reflect the degree of contribution of each input feature to the prediction result, and the spatiotemporal attention weight can directly reflect the degree of influence of each time and each spatial region on the prediction result, making the model decision-making process transparent and traceable, which helps fire risk early warning personnel to understand the key factors and spatiotemporal evolution of fire risk formation.
[0022] (5) The prediction accuracy is significantly better than existing methods. Experimental verification shows that compared with existing forest fire risk prediction methods, the present invention improves the F1 score by 8% to 12%, improves the recall rate of high fire risk identification by no less than 10%, and improves the AUC value by about 0.05 to 0.1, demonstrating good prediction performance and application value.
[0023] It should be understood that the description in the Summary of the Invention is not intended to limit the key or essential features of the embodiments of the present invention, nor is it intended to restrict the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0024] The above and other features, advantages, and aspects of the various embodiments of the present invention will become more apparent from the accompanying drawings and the following detailed description. The drawings are provided for a better understanding of the invention and are not intended to limit the scope of the invention. In the drawings, the same or similar reference numerals denote the same or similar elements, wherein: Figure 1 This is a flowchart of a forest fire risk spatiotemporal prediction method based on dual attention ConvLSTM according to an embodiment of the present invention; Figure 2 This is a general flowchart of an embodiment of the present invention; Figure 3 This is a structural diagram of the dual-attention DA-ConvLSTM model according to an embodiment of the present invention; Figure 4 This is a schematic diagram of the structure of a forest fire risk spatiotemporal prediction system based on dual attention ConvLSTM according to an embodiment of the present invention; Figure 5 This is a schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present invention. Detailed Implementation
[0025] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0026] Furthermore, the term "and / or" in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.
[0027] Example 1: Figure 1 This is a flowchart of a forest fire risk spatiotemporal prediction method based on dual attention ConvLSTM according to an embodiment of the present invention; Figure 2 This is a general flowchart of an embodiment of the present invention. Figure 1 and Figure 2 As shown, the method includes the following steps: S1: Acquire multi-source data of the target area, including fire point remote sensing data, meteorological data, vegetation data, terrain data and human activity data; In step S1, multi-source data of the target area is acquired, including fire point remote sensing data, meteorological data, vegetation data, topographic data, and human activity data.
[0028] Target area: The geographical area for which forest fire risk prediction is to be performed, which is the spatial boundary for subsequent spatial grid division and prediction result mapping.
[0029] Multi-source data includes fire point remote sensing data, meteorological data (temperature, humidity, precipitation, wind speed), vegetation data (Normalized Difference Vegetation Index (NDVI), topographic data (slope, aspect), and human activity data (distance from roads, distance from settlements). Each data source spatially covers the entire target area and temporally covers a specific historical period.
[0030] Among them, fire point remote sensing data is used to extract historical fire point distribution information and serve as the source of labeled data for model training, while meteorological data, vegetation data, topographic data, and human activity data serve as driving feature data for model input.
[0031] S2: Preprocess the multi-source data, including missing value imputation, outlier removal and data standardization, and divide the target region into several regular spatial grids, with each spatial grid serving as an independent sample unit; Step S2 is used to preprocess the multi-source data collected in step S1, including missing value imputation, outlier removal, spatial resampling, unified grid division, and data standardization.
[0032] S2.1 Data Preprocessing and Standardization Constraints: (1) Handling missing values Time dimension: linear interpolation; Spatial dimension: Neighborhood mean filling.
[0033] (2) Outlier handling Outlier removal method: using statistical constraints Outliers are identified, and values that exceed the specified range are truncated or removed.
[0034] (3) Standardization process The data standardization method is as follows: according to Subtract the mean from each feature data point and then divide by its standard deviation. These are the original eigenvalues. These are the standardized eigenvalues. , These are the statistical mean and standard deviation of a certain feature channel across all samples, respectively.
[0035] S2.2, Target Area Division: (1) Target area grid division and data organization The target area is divided into a regular spatial grid: the target area is divided into several rectangular units of uniform size (preferably 1km × 1km per grid), denoted as:
[0036] in, These represent the number of rows and columns of the spatial grid, respectively. Each grid cell serves as an independent sample unit for subsequent feature extraction and fire risk prediction.
[0037] Constructing a time series dataset:
[0038] in, It is a time series collection, representing the entire time range covered by the entire dataset; This is the first time point, representing the starting moment of the time series; This is the second time point; The Nth time point represents the end (current latest) moment of the time sequence; N is the total number of time steps. For example, if the time resolution is set to a monthly or weekly scale, with a preference for the monthly scale, then N represents the total number of months.
[0039] (2) Construction of multi-source features (key engineering details) For each grid and time Construct multi-channel feature vectors:
[0040] At time t, the spatial grid The feature vector at a given point (time t, row i, column j) defines the value (of length C) at that point in the tensor (time t, row i, column j), representing all the input information of a specific sample unit within the target region at time t. arrive These represent different driving factors, such as temperature (T), humidity (RH), NDVI, etc., listed in Table 1.
[0041] Furthermore, the feature channels of the multi-source data include meteorological factors, vegetation factors, topographic factors, and human activity factors. The meteorological factors include temperature, humidity, precipitation, and wind speed; the vegetation factors include NDVI (Normalized Difference Vegetation Index), used to characterize vegetation cover and growth status, indirectly reflecting surface fuel conditions; the topographic factors include slope and aspect; and the human activity factors include distance from roads and distance from settlements. Specifically, the definitions of each channel are shown in Table 1 below: Table 1
[0042] Total feature dimension (total number of feature channels): C = 8~12.
[0043] In practical applications, feature dimensions and types can be adjusted based on available data sources.
[0044] S3: Based on a sliding time window, the multi-source data of each preprocessed spatial grid is constructed into a spatiotemporal sequence sample of a three-dimensional tensor data structure. The three-dimensional tensor data structure includes a time series dimension, a spatial grid row dimension, a spatial grid column dimension, and a feature channel dimension. Step S3 is used to construct spatiotemporal sequence samples. This is one of the key innovations of this invention.
[0045] Model input is constructed using a sliding time window:
[0046] For the first A spatiotemporal sequence sample is a subsequence that is slidably extracted from the original time series data, containing data from T consecutive time steps; The current moment; The feature tensor for the first time step within the window, i.e. the feature tensor at the start time of the window (t-T+1), contains the data of all spatial grids and all feature channels at that time. This represents the feature at the second time step within the window, i.e., the feature tensor at the second moment within the window. The feature of the last time step within the window is the feature tensor at the current time t, which is also the data at the end of the window.
[0047] A sliding time window is a time interval that slides along the time axis with a fixed step size, used to divide time series data into multiple subsequence samples. The length of the sliding time window is the same as the length of the time series. , indicating 4 to 8 time steps, preferred .
[0048] Input tensor:
[0049] tensor This indicates that the data at each time point contains... spatial grid This data structure is a three-dimensional tensor of each feature channel. For example... It is itself a three-dimensional tensor of H×W×C, and the data at all times are stacked in the time dimension to form a complete four-dimensional tensor.
[0050] S4: Input the spatiotemporal sequence samples into the ConvLSTM model, and extract the spatial structure features and temporal series dependencies through the convolutional gating mechanism of ConvLSTM to obtain intermediate feature representations; like Figure 3The diagram shown is a structural diagram of the dual-attention DA-ConvLSTM model according to an embodiment of the present invention. The ConvLSTM model extracts spatiotemporal features through a convolutional gating mechanism as follows: The input features at each time step in the three-dimensional tensor data structure are convolved with the hidden state at the previous time step. Information is then selected and transmitted through an input gate, a forget gate, and an output gate to update the cell state and hidden state. The input gate controls the inflow of current input information, the forget gate controls the retention of the cell state from the previous time step, and the output gate controls the output from the current cell state to the hidden state. The hidden state serves as the intermediate feature representation output, used to characterize the spatiotemporal features at the current time step that integrate spatial structural information and temporal series dependencies. Specifically, the cell state is updated in the following manner. and hidden state :
[0051]
[0052]
[0053]
[0054]
[0055]
[0056] Where * represents convolution operation; ⊙ represents Hadamard product, which is element-wise multiplication; , , Let be the gated output values of the input gate, forget gate, and output gate at time t; Candidate cell state; The cell state at time t-1 (the previous time step) (also known as the memory cell); This represents the updated cell state. This represents the hidden state at time t-1 (the previous time step); This is the updated hidden state. The intermediate feature is represented as the output; , , , These are the input gate, forget gate, output gate, and candidate cell state corresponding to the input feature convolution weights (i.e., convolution kernels), which act on the input features at the current time step. These weights are learned through backpropagation during model training; , , , These are the input gate, forget gate, output gate, and hidden state convolution weights (i.e., convolution kernels) corresponding to the candidate cell states, respectively, which are applied to the hidden state at the previous time step. They also learn this through training. : Sigmoid activation function, used to map the gate value to the (0,1) interval. tanh: Hyperbolic tangent activation function, used to map the candidate cell state to the (-1,1) interval.
[0057] The input gate controls the input information (candidate cell state) at the current moment. How much is written to the cell state? . The value range is (0,1). The closer the value is to 1, the more important the current input information is and the more it should be written into memory.
[0058] The forget gate controls the cell state at the previous moment. How much information is retained up to the present moment? The value range is (0,1). The closer the value is to 1, the more historical memory should be retained. The closer the value is to 0, the more historical memory should be forgotten.
[0059] The output gate controls the current cell state. How much information is output to the hidden state? . The range of its value is (0,1).
[0060] The hidden state is a representation vector output by a ConvLSTM unit, carrying the spatiotemporal feature information extracted up to the previous time step. In ConvLSTM, the hidden state maintains a three-dimensional tensor structure (including channel and spatial dimensions), rather than the one-dimensional vector of a traditional LSTM. At t=1 (i.e., the first time step). It is typically initialized as an all-zero tensor.
[0061] Cell states are the long-term memory carriers within ConvLSTM, responsible for transmitting and accumulating historical information over time. Unlike hidden states, cell states primarily circulate within the cell and are not directly output externally; their updates are jointly regulated by the input gate and the forget gate. At t=1, It is also initialized as an all-zero tensor.
[0062] Candidate cell state, or candidate memory unit. It is based on the input at the current time. Hidden state from the previous moment The calculated candidate new information is mapped to the (-1, 1) interval using the tanh activation function. Whether the candidate cell state is written into the cell state is determined by the input gate. control.
[0063] It serves both as the output (intermediate feature representation) at the current time step and as one of the inputs at the next time step (t+1) in the recursive calculation.
[0064] Hidden state of the last time step (or some aggregation of the hidden states at all time steps), as the intermediate feature representation F of the ConvLSTM model output, denoted as .
[0065] S5: Introduce a channel attention mechanism to adaptively weight each feature channel of the intermediate feature representation to obtain the channel-weighted feature; In step S5, the specific implementation process of the channel attention mechanism is as follows: Global pooling is used to compress the intermediate features globally, aggregating the spatial dimension information of each feature channel into a global response value; the global response value is processed sequentially through a first fully connected layer, a ReLU activation function, a second fully connected layer, and a Sigmoid activation function to calculate the attention weights of each feature channel; the attention weights of each feature channel are multiplied channel-by-channel with the corresponding intermediate features to achieve feature recalibration, outputting the channel-weighted features. The channel attention mechanism, as a key innovation of this invention, is as follows: (1) Global information compression:
[0066] : The feature value of the c-th channel located at spatial position (i,j) in the intermediate feature F; The global response value (scalar) of the c-th feature channel after global pooling compression is obtained by... The average is obtained over the entire spatial dimension (H×W).
[0067] (2) Weight calculation:
[0068] : The attention weight (scalar) of the c-th feature channel, with a value range of (0,1), represents the importance of this channel in forest fire risk prediction. , The weight matrices of the two fully connected layers in the channel attention mechanism. The dimension is (C / r)×C. The dimension is C×(C / r), where r is the reduction ratio. δ (ReLU function): modifies the linear unit activation function, mapping negative numbers to 0.
[0069] (3) Feature recalibration:
[0070] in, The c-th channel features after channel attention recalibration, i.e., the channel-weighted features.
[0071] The feature map set formed after all channels are recalibrated , This serves as the input for the spatiotemporal attention mechanism in step S6.
[0072] S6: Introduce a spatiotemporal attention mechanism to the weighted features of the channel, and dynamically allocate weights in the time and space dimensions to obtain spatiotemporally enhanced features; In step S6, the spatiotemporal attention mechanism comprises two parts: temporal attention weighting and spatial attention enhancement. The specific implementation process is as follows: In the temporal dimension, the importance weights of each moment within the sliding time window are calculated. The weights of each moment are normalized using the Softmax function. The normalized weights are multiplied by the channel attention-weighted features of the corresponding moment to achieve temporal feature weighting, and the temporally weighted features are output. In the spatial dimension, a 3×3 convolution operation is performed on the temporally weighted features. A spatial attention mask is generated using the Sigmoid activation function. The spatial attention mask is multiplied element-wise by the temporally weighted features to achieve spatial feature enhancement, and the spatiotemporally enhanced features are output. The spatiotemporal attention mechanism, as the core innovation of this invention, is as follows: (1) Time attention:
[0073] The time attention weight (scalar) at time t, with a range of (0,1), represents the importance of that time point within the entire time window and is obtained by normalization using the Softmax function; Let the unnormalized attention score be at time t. is the index of the sliding time window, and T is the length of the sliding time window.
[0074] The feature slice at time t after channel attention weighting (i.e. (The slice corresponding to the t-th time step).
[0075] The channel-weighted feature representation output in step S5 For each time t, take Corresponding channel-weighted feature slices Multiply by the time attention weight We obtain the time-weighted features at time t. :
[0076] The feature set of all times after time weighting , which serves as the input to the spatial attention module.
[0077] (3) Spatial attention:
[0078] Spatial attention mask (two-dimensional matrix of size H×W), each element has a value range of (0,1) and represents the importance of the corresponding spatial location. : 3×3 convolution operation, used to generate spatial attention mask.
[0079] (4) Joint enhancement:
[0080] in, Features enhanced by spatiotemporal joint enhancement, followed by spatial attention masking. Features after time weighting The final feature obtained after element-wise multiplication (Hadamard product).
[0081] S7: Input the spatiotemporally enhanced features into the classification layer, output the forest fire risk level or probability of occurrence for each spatial grid, and map the prediction results of each grid to the spatial grid of the target area to generate a spatial distribution map of forest fire risk.
[0082] Fire risk prediction output layer: In step S7, the classification layer is a Softmax classification layer; the formula for calculating the forest fire risk level or probability of occurrence for each spatial grid is as follows:
[0083] Where is the classification weight matrix, For bias terms, These are features enhanced by spatiotemporal integration.
[0084] Model training and optimization: (1) Loss function: Cross-entropy loss is used:
[0085] (2) Optimizer: Adam; (3) Learning rate: 0.001; (4) Batch size: 32.
[0086] Technical effectiveness verification: Compared with existing methods: F1 score improved by 8%–12%; high fire risk identification recall improved by ≥10%; AUC improved by approximately 0.05–0.1.
[0087] Example 2: Figure 4 This is a schematic diagram of the structure of a forest fire risk spatiotemporal prediction system based on dual-attention ConvLSTM according to an embodiment of the present invention. Figure 4 As shown, a forest fire risk spatiotemporal prediction system based on dual-attention ConvLSTM includes: The data acquisition module 210 is used to acquire multi-source data of the target area, including fire point remote sensing data, meteorological data, vegetation data, terrain data and human activity data; The data preprocessing module 220 is used to preprocess the multi-source data, including missing value imputation, outlier removal and data standardization, and to divide the target area into several regular spatial grids, with each spatial grid serving as an independent sample unit. The spatiotemporal sample construction module 230 is used to construct a spatiotemporal sequence sample of a three-dimensional tensor data structure from the multi-source data of each preprocessed spatial grid based on a sliding time window. The three-dimensional tensor data structure includes a time series dimension, a spatial grid row dimension, a spatial grid column dimension, and a feature channel dimension. ConvLSTM feature extraction module 240 is used to input the spatiotemporal sequence samples into the ConvLSTM model, and extract spatial structure features and temporal series dependencies through the convolutional gating mechanism of ConvLSTM to obtain intermediate feature representations; The channel attention weighting module 250 is used to introduce a channel attention mechanism into the intermediate feature representation, and to adaptively weight different feature channels to obtain channel-weighted features. The spatiotemporal attention enhancement module 260 is used to introduce a spatiotemporal attention mechanism into the channel-weighted features, and to dynamically allocate weights in the time and space dimensions to obtain spatiotemporally enhanced features. The prediction output module 270 is used to input the spatiotemporally enhanced features into the classification layer, output the forest fire risk level or probability of occurrence for each spatial grid, and map the prediction results of each grid to the spatial grid of the target area to generate a spatial distribution map of forest fire risk.
[0088] The forest fire risk spatiotemporal prediction system based on dual attention ConvLSTM provided in this embodiment of the invention can execute the forest fire risk spatiotemporal prediction method based on dual attention ConvLSTM provided in any of the embodiments of the invention above. It has the corresponding functions and beneficial effects of executing the method. For detailed process, please refer to the relevant operations of the forest fire risk spatiotemporal prediction method based on dual attention ConvLSTM in the foregoing embodiments, which will not be repeated here.
[0089] Example 3: Figure 5 This is a schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present invention. The electronic device 10 is intended to represent various forms of digital computers, and may also represent various forms of mobile devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the invention described and / or claimed herein.
[0090] like Figure 5 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded into the RAM 13 from storage unit 18. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0091] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0092] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, central processing unit (CPU), graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any suitable processor, controller, microcontroller, etc. Processor 11 executes a forest fire risk spatiotemporal prediction method based on dual-attention ConvLSTM described above.
[0093] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0094] The above embodiments are merely illustrative examples and are not intended to limit the implementation. Those skilled in the art will recognize that various variations or modifications can be made based on the above description. It is neither necessary nor possible to exhaustively list all possible implementations. However, obvious variations or modifications derived therefrom are still within the scope of protection of this invention.
[0095] The above description is only a preferred embodiment of the present invention and is used only to explain the present invention. It is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
[0096] It should also be noted that, in the embodiments of this application, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0097] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined in the embodiments of this application may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown in this application, but is to be accorded the widest scope consistent with the principles and novel features disclosed in the embodiments of this application.
Claims
1. A spatiotemporal prediction method for forest fire risk based on dual-attention ConvLSTM, characterized in that, Includes the following steps: Acquire multi-source data for the target area, including fire point remote sensing data, meteorological data, vegetation data, topographic data, and human activity data; The multi-source data is preprocessed, including missing value imputation, outlier removal and data standardization, and the target region is divided into several regular spatial grids, with each spatial grid serving as an independent sample unit. Based on a sliding time window, the multi-source data of each preprocessed spatial grid is constructed into a spatiotemporal sequence sample of a three-dimensional tensor data structure. The three-dimensional tensor data structure includes a time series dimension, a spatial grid row dimension, a spatial grid column dimension, and a feature channel dimension. The spatiotemporal sequence samples are input into the ConvLSTM model, and the spatial structure features and temporal series dependencies are extracted through the convolutional gating mechanism of ConvLSTM to obtain intermediate feature representations. A channel attention mechanism is introduced to adaptively weight each feature channel of the intermediate feature representation to obtain the channel-weighted feature; A spatiotemporal attention mechanism is introduced into the channel-weighted features to dynamically allocate weights in the time and space dimensions, resulting in spatiotemporally enhanced features. The spatiotemporally enhanced features are input into the classification layer, which outputs the forest fire risk level or probability of occurrence for each spatial grid. The prediction results of each grid are then mapped to the spatial grid of the target area to generate a spatial distribution map of forest fire risk.
2. The forest fire risk spatiotemporal prediction method based on dual-attention ConvLSTM according to claim 1, characterized in that, The feature channels of the multi-source data include meteorological factors, vegetation factors, topographic factors, and human activity factors. The meteorological factors include temperature, humidity, precipitation, and wind speed. The vegetation factors include the normalized vegetation index. The topographic factors include slope and aspect. The human activity factors include distance from roads and distance from settlements.
3. The forest fire risk spatiotemporal prediction method based on dual-attention ConvLSTM according to claim 1 or 2, characterized in that, The fire point remote sensing data is used to extract historical fire point distribution information and serve as the source of labeled data for model training. The meteorological data, vegetation data, terrain data, and human activity data serve as driving feature data for model input.
4. The forest fire risk spatiotemporal prediction method based on dual-attention ConvLSTM according to claim 1, characterized in that, The sliding time window has a length of 4 to 8 time steps, and the spatial grid size is 1 km × 1 km.
5. The forest fire risk spatiotemporal prediction method based on dual-attention ConvLSTM according to claim 1, characterized in that, The specific rules for data preprocessing are as follows: Missing values are imputed as follows: linear interpolation is used to impute missing values in the time dimension, and neighborhood mean is used to impute missing values in the spatial dimension. Outlier removal method: using statistical constraints Identify outliers and truncate or remove values that exceed the specified range. The data standardization method is as follows: according to Subtract the mean from each feature data point and then divide by its standard deviation. These are the original eigenvalues. These are the standardized eigenvalues. The characteristic mean, The characteristic standard deviation is denoted as .
6. The forest fire risk spatiotemporal prediction method based on dual-attention ConvLSTM according to claim 1, characterized in that, The process by which the ConvLSTM model extracts spatiotemporal features through a convolutional gating mechanism is as follows: The input features at each time step in the three-dimensional tensor data structure are convolved with the hidden state at the previous time step. Then, information is selected and transmitted through an input gate, a forget gate, and an output gate to update the cell state and the hidden state. The input gate controls the inflow of current input information, the forget gate controls the retention of the cell state at the previous time step, and the output gate controls the output of the current cell state to the hidden state. The hidden state is output as the intermediate feature representation, which is used to characterize the spatiotemporal features of the current time step that integrate spatial structure information and temporal series dependencies.
7. The forest fire risk spatiotemporal prediction method based on dual-attention ConvLSTM according to claim 1, characterized in that, The specific implementation process of the channel attention mechanism is as follows: Global pooling is used to compress the intermediate features globally, and the spatial dimension information of each feature channel is aggregated into a global response value. The global response value is processed sequentially through a first fully connected layer, a ReLU activation function, a second fully connected layer, and a Sigmoid activation function to calculate the attention weights for each feature channel. The attention weights of each feature channel are multiplied with the corresponding intermediate features channel by channel to achieve feature recalibration and output the channel-weighted features.
8. The forest fire risk spatiotemporal prediction method based on dual-attention ConvLSTM according to claim 1, characterized in that, The spatiotemporal attention mechanism comprises two parts: temporal attention weighting and spatial attention enhancement. The specific implementation process is as follows: In the time dimension, the importance weight of each moment within the sliding time window is calculated, and the weight of each moment is normalized by the Softmax function. The normalized weight is multiplied by the channel attention-weighted feature of the corresponding moment to realize time feature weighting and output the time-weighted feature. In the spatial dimension, a 3×3 convolution operation is performed on the time-weighted features, and a spatial attention mask is generated by the Sigmoid activation function. The spatial attention mask is then multiplied element-wise with the time-weighted features to achieve spatial feature enhancement, and the spatiotemporally enhanced features are output.
9. The forest fire risk spatiotemporal prediction method based on dual-attention ConvLSTM according to claim 1, characterized in that, The classification layer is a Softmax classification layer. The features after spatiotemporal enhancement are mapped through a fully connected layer and then processed by the Softmax function to output the fire risk level probability of each spatial grid. The model training uses the cross-entropy loss function, the optimizer is the Adam optimizer, the learning rate is set to 0.001, and the batch size is set to 32.
10. A spatiotemporal prediction system for forest fire risk based on dual-attention ConvLSTM, characterized in that, include: The data acquisition module is used to acquire multi-source data of the target area, including fire point remote sensing data, meteorological data, vegetation data, terrain data and human activity data; The data preprocessing module is used to preprocess the multi-source data, including missing value imputation, outlier removal and data standardization, and to divide the target area into several regular spatial grids, with each spatial grid serving as an independent sample unit. The spatiotemporal sample construction module is used to construct a spatiotemporal sequence sample of a three-dimensional tensor data structure from the multi-source data of each preprocessed spatial grid based on a sliding time window. The three-dimensional tensor data structure includes a time series dimension, a spatial grid row dimension, a spatial grid column dimension, and a feature channel dimension. The ConvLSTM feature extraction module is used to input the spatiotemporal sequence samples into the ConvLSTM model, and extract spatial structure features and temporal series dependencies through the convolutional gating mechanism of ConvLSTM to obtain intermediate feature representations. The channel attention weighting module is used to introduce a channel attention mechanism into the intermediate feature representation, and to adaptively weight different feature channels to obtain channel-weighted features. The spatiotemporal attention enhancement module is used to introduce a spatiotemporal attention mechanism into the weighted features of the channel, and to dynamically allocate weights in the time and space dimensions to obtain spatiotemporally enhanced features. The prediction output module is used to input the spatiotemporally enhanced features into the classification layer, output the forest fire risk level or probability of occurrence for each spatial grid, and map the prediction results of each grid to the spatial grid of the target area to generate a spatial distribution map of forest fire risk.
Citation Information
Patent Citations
Forest fire prediction method based on deep learning network
CN113553764A
Forest fire risk prediction method and system based on machine learning
CN119942711A
