Forest fire detection and positioning method and system based on high-point monitoring video
By integrating the multi-scale feature extraction network of video spatial features and temporal features, combined with the optical flow method and video three-dimensional grid technology, the problem of detection and positioning accuracy of forest fire smoke in complex backgrounds and severe weather is solved, achieving efficient and accurate Forest fire monitoring, suitable for all-weather and long-distance small target detection.
Patent Information
- Application Number
- CN202410055348.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-15
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-01-15
AI Technical Summary
The existing technology has poor forest fire smoke extraction and positioning accuracy and low efficiency under complex backgrounds and harsh weather conditions, and it is difficult to achieve efficient monitoring at night, especially the detection effect of long-distance small targets is poor.
Using a multi-scale and multi-dimensional feature extraction network that integrates video spatial features and temporal features, combined with optical flow method and video three-dimensional grid technology, an all-weather forest fire database and a joint smoke diffusion model are established to achieve high-precision detection and positioning of smoke and flames. .
It improves the efficiency of high-precision detection and positioning of forest fire smoke under complex backgrounds and severe weather conditions. It is suitable for day and night monitoring, enhances the detection ability of long-distance small targets, and achieves more accurate three-dimensional spatial positioning.
Smart Images

Figure CN117876874B
Abstract
Description
Technical Field
[0001] A forest fire detection and positioning method and system based on high-point monitoring videos are used for accurate detection of early forest fires based on high-point monitoring videos, belonging to the technical field of forest fire detection and positioning. Background Art
[0002] Forest is a precious natural resource, and the forest ecosystem is one of the important ecosystems on the earth. It plays an irreplaceable role and has a significant impact on human survival and development, biodiversity, maintaining and improving the ecological environment, and addressing global climate warming.
[0003] Among the many forest natural disasters, forest fires are the most destructive to forest ecosystems. Forest fires destroy forest structure, affect the living environment of wild animals and plants, cause soil erosion, and then trigger other natural disasters such as mudslides. Forest fires have the characteristics of long burning time, large burning area, fast spread speed, and great degree of destruction. They not only destroy forestry resources, but also cause great harm to the national economy, human life safety and ecological environment. Therefore, effective monitoring and positioning of forest fires and timely detection of forest fires play an important role in rescue and firefighting work and reducing the losses caused by forest fires.
[0004] At present, with the continuous development of high-point video surveillance technology, computer vision technology and artificial intelligence technology, the use of high-point video surveillance to monitor forest fires has become one of the important means of forest fire prevention. The fire monitoring method of the high-point video surveillance system has unique advantages such as strong timeliness, stability and reliability, and flexible and diverse information, and occupies an important position in forest fire detection. Prevention is the main focus, effectively controlling the fire from the source to prevent it from happening or preventing it from becoming a disaster after it occurs, and achieving "early detection, early prevention, early disposal, and early extinguishing" is an effective way to improve forest fire prevention. In recent years, with the successful application of artificial intelligence technologies represented by big data, machine learning, and deep learning in speech recognition, computer vision, recommendation systems and other fields, artificial intelligence has made great progress in algorithms, models, and architectures. Artificial intelligence technologies represented by deep learning have also provided new ideas for forest fire identification. As the core component of the high-point video surveillance system for forest fires, the forest fire identification algorithm has received widespread attention from researchers in recent years. Moreover, compared with traditional computer vision methods, deep learning algorithms avoid artificial complexity and can learn complex representations from a large number of image data sets.
[0005] In addition, since it is difficult to directly observe the fire source in the early stage of forest fires, the large amount of smoke produced by smoldering objects such as dead branches and leaves in the forest is the main feature of the early stage of fires. The technology of early warning of forest fires by detecting smoke through high-point monitoring video images is a hot topic of current research. However, the existing technology has the following technical problems:
[0006] 1. Due to the complex background, early forest fires are prone to poor forest fire smoke extraction and positioning accuracy and low efficiency;
[0007] 2. In bad weather conditions, especially in fog and haze, its performance will be impaired, resulting in poor positioning accuracy and low efficiency;
[0008] 3. Current forest fire detection methods have poor detection effects on small targets at long distances;
[0009] 4. Current forest fire detection methods are mostly targeted at daytime scenes and cannot achieve efficient and real-time monitoring under nighttime conditions. Summary of the invention
[0010] In response to the above-mentioned research problems, the purpose of the present invention is to provide a forest fire detection and positioning method and system based on high-point monitoring video, so as to solve the problem that the prior art is prone to poor accuracy and low efficiency in forest fire smoke extraction and positioning for early forest fires under complex backgrounds.
[0011] In order to achieve the above object, the present invention adopts the following technical solution:
[0012] A forest fire detection and positioning method based on high-point monitoring video includes the following steps:
[0013] Step 1: Construct a forest fire detection dataset based on the acquired high-point monitoring video, and train the constructed multi-scale and multi-dimensional feature extraction network that integrates video spatial features and temporal features to identify the detection frames of smoke and flames in the high-point monitoring video to be identified, and finally obtain the detection frames of smoke objects and flame objects and the center two-dimensional pixel coordinates of the flame objects in each frame image;
[0014] Step 2: accurately locate the forest fire driven by the video stereo grid based on the detection frames of the smoke object and the flame object and the central two-dimensional pixel coordinates of the flame object in each frame image.
[0015] Furthermore, the multi-scale and multi-dimensional feature extraction network that integrates video spatial features and temporal features constructed in step 1 includes an input layer, a Focus module, a first Conv module, a global-local feature extraction module, a second Conv module, a deep-shallow feature extraction module, a third Conv module, a temporal neural unit, a fourth Conv module, a pooling module, a depth and receptive field enhancement module and an output layer that are connected in sequence, wherein the first Conv module, the second Conv module, the third Conv module and the fourth Conv module are respectively convolution modules composed of Conv2d, BN layer and SI LU that are connected in sequence.
[0016] Further, the global-local feature extraction module includes a local feature extraction module and a global feature extraction module respectively connected to the first Conv module, a 3×3 convolution layer that receives the outputs of the local feature extraction module and the global feature extraction module and performs an addition operation, and a 1×1 convolution layer sequentially connected to the 3×3 convolution layer, wherein the local feature extraction module includes a 3×3 convolution layer and a 1×1 convolution layer that respectively perform convolution processing on the input feature map, a batch normalization layer respectively connected to the 3×3 convolution layer and the 1×1 convolution layer, and the results of the outputs of the two batch normalization layers are added to obtain local features. The global feature extraction module includes sequentially performing size transformation, linearization operation and projection layer mapping operation on the input feature map to obtain feature maps Q, feature maps K and feature maps V, and then performing multiplication operation on the results obtained after depth normalization processing of the feature maps Q and K, and the result obtained after the multiplication operation is multiplied with the feature map V, and then the size transformation is performed and each pixel point of the transformed feature map is equivalent to several pixels in the original input image, and finally the global feature is obtained;
[0017] The deep-shallow feature extraction module includes a fifth Conv module connected to the second Conv module, two 3×3 convolutional layers with a step size of 1, a 3×3 convolutional layer with a step size of 2, and a 3×3 convolutional layer with a step size of 5, which are respectively connected to the fifth Conv module in sequence, and the two 3×3 convolutional layers with a step size of 5 are multiplied by the output results of the fifth Conv module respectively, and then the results obtained by the multiplication operation are added to the output result of the fifth Conv module, and the results obtained by the two addition operations are connected in series to obtain the output result, wherein the fifth Conv module is a convolutional module composed of a Conv2d, a BN layer, and a SI LU connected in sequence;
[0018] The time series neural unit receives the hidden layer state vector a at time t-1 after activation output by the third Conv module t -1 and the vector x at time t t , and respectively t-1 and x t With V ah and V xh Perform a multiplication operation, and then add the two multiplication results to b h Perform the addition operation to obtain the hidden layer state h t , and then the hidden layer state is processed by the hyperbolic tangent function tanh to obtain the hidden layer state vector a at time t after activation t And output, at the same time a t With V ao Perform a multiplication operation, and the result of the multiplication operation is the same as b o Perform the addition operation to obtain the state vector c of the output node t , ct After softmax calculation, it is converted into an output label vector Among them, V xh Represents the weight matrix from K input nodes to N hidden nodes, V ah It represents the weight matrix connecting N hidden nodes at time t-1 to N hidden nodes at time t, b h represents the hidden layer weight matrix before activation, b o Represents the weight matrix of the activated hidden layer, V ao Represents the weight matrix from the activated input node to the hidden node.
[0019] Further, the specific steps of step 1 are:
[0020] Step 1.1: Based on the acquired high-point monitoring video, an all-weather forest fire database based on the forest fire classification system is established through "rough annotation-rendering-training-feedback-fine-tuning-enhancement". The specific steps are as follows:
[0021] Step 1.11, manually analyze the characteristic expressions of smoke and fire in the forest fire scene in the high-point monitoring video, and preliminarily establish a rough annotation database through manual annotation, where the features include color features, shape features and texture features. Color refers to the analysis of its corresponding color histogram, color set, color moment and color aggregation vector. The shape is obtained by using the boundary feature method, Fourier shape descriptor method, shape geometric parameter method and finite element method. The texture is obtained by using the gray level co-occurrence matrix, energy spectrum function, random field model, autoregressive texture model and wavelet transform analysis;
[0022] Step 1.12, artificially analyze the feature heterogeneity caused by different types of interference in the forest fire scene in the high-point monitoring video, and render the data in the coarse annotation database in a diversified manner. The different types refer to the classification of forest fire scenes in the high-point monitoring video into coniferous forest fire, mixed coniferous and broad-leaved forest fire and broad-leaved forest fire according to different types of forest land; the classification into surface fire, crown fire and underground fire according to different locations of fire starting points; the classification into forest fire warning, general forest fire, major forest fire and extremely large forest fire according to different affected forest areas; the classification into daytime forest fire and nighttime forest fire according to different times of occurrence of forest fire; the feature heterogeneity includes light intensity, scale difference, smoke concentration, and smoke-like and fire-like objects;
[0023] Step 1.13: Use the neural network model to learn the knowledge of the coarsely labeled database, detect unlabeled data and feedback the misclassification, fine-tune the data, and enhance the data through the Albumentation tool; after enhancement, if the requirements are met, a forest fire detection dataset with diversified features is obtained, otherwise, go to step 1.11 and execute again;
[0024] Step 1.2: Train a multi-scale and multi-dimensional feature extraction network based on the forest fire detection dataset, and input the high-point monitoring video to be identified into the trained multi-scale and multi-dimensional feature extraction network to obtain the smoke and flame object detection frames, and at the same time calculate the two-dimensional pixel coordinates of the vertices of the flame detection frame, and calculate the center two-dimensional pixel coordinates of the detection frame based on the two-dimensional pixel coordinates of the vertices of the flame, and finally obtain the detection frames of the smoke object and the flame object, as well as the center two-dimensional pixel coordinates of the flame object.
[0025] Further, the specific steps of step 2 are:
[0026] Step 2.1: Establish different preliminary fire point location methods based on the diffusion characteristics of different forest fire smoke and flames. The specific steps are as follows:
[0027] Step 2.11, using the optical flow method to analyze the diffusion characteristics of smoke and flames in the forest fire detection data set, that is, by calculating the histogram of optical flow intensity and optical flow direction angle, the diffusion model of forest fire smoke and flames is divided into triangular diffusion model, diffuse diffusion model and radiation diffusion model;
[0028] The formula for optical flow intensity and optical flow direction angle is:
[0029] L(i,j)=u(i,j)2+(i,j)
[0030]
[0031] Among them, L(i,j) represents the intensity of optical flow, α(i,j) represents the direction angle of optical flow, u(i,j) and v(i,j) represent the horizontal and vertical optical flow vectors at the pixel point (i,j), respectively. If both the intensity of optical flow and the direction angle of optical flow are concentratedly distributed, it is a triangular diffusion model, if they are irregularly distributed, it is a diffuse diffusion model, and if they are uniformly distributed, it is a radiation diffusion model.
[0032] Step 2.12, for different diffusion models, establish different preliminary ignition point positioning methods, including a boundary-centerline characteristic line positioning method for a triangular diffusion model, a centroid shift positioning method for a diffuse diffusion model, and a discrete seed point positioning method for a radiation diffusion model;
[0033] Step 2.2: A forest fire location method combining the forest fire smoke diffusion model and the video stereo grid is proposed. The specific steps are as follows:
[0034] Step 2.21, for different diffusion models, simulate and establish different simulation motion models, and map the diffusion of smoke and flames in the real world to the digital three-dimensional model from the aspects of diffusion speed and direction, diffusion mode, and spatial topological relationship constraints, that is, through mathematical calculation combined with image processing technology, obtain the diffusion speed and direction of the simulation motion model, and then combine the diffusion mode and spatial topological relationship constraints of different diffusion models to map the smoke and flames of the forest fire in the real world to the digital three-dimensional model;
[0035] Step 2.22, based on the geographic space topological relationship analysis method, analyze the spatial topological relationship of adjacency, association and inclusion of smoke, flames and the forest structure itself in the digital three-dimensional model, and perform a spatial topological semantic description thereof;
[0036] Step 2.23, according to the high-point monitoring camera parameters, perform camera calibration and distortion correction. Under the premise of the detection frame constraints of the smoke object and the flame object, use the Bwboundaries edge extraction function to extract the boundaries of the smoke object and the flame object, and then combine the smoke centerline to obtain the diffusion model and different fire point preliminary positioning methods to achieve preliminary positioning of the smoke object in the two-dimensional image space. At the same time, preliminary positioning is performed based on the two-dimensional coordinates of the center point of the flame object. The camera parameters include the pitch angle, yaw angle and camera height of the camera. The smoke centerline is calculated after extracting the smoke edge and determining the smoke diffusion movement trend. The midpoint of all edge points of the forest fire smoke is calculated, and the slope of the midpoint and the direction of smoke movement are formed into a straight line. The smoke edge point is then separated into two left and right fitting edges, that is, the final straight line is the center line of the smoke.
[0037] Step 2.24, using the imaging mechanism of the high-point monitoring camera from three-dimensional space to two-dimensional plane, combined with the digital elevation model, the image coordinate system is converted to obtain the position information in the camera and world coordinate systems, and a reference point is set in the physical space. The coordinate inverse calculation model of the pixel-image-camera-world coordinate system is established through the reference coordinates, and the preliminary positioning of the smoke object and the flame object obtained by combining the constraints of the spatial topological semantic description and the preliminary positioning is realized to realize the three-dimensional spatial positioning of the smoke and flame objects of the forest fire;
[0038] Step 2.25: Based on the three-dimensional spatial positioning of forest fire smoke objects and flame objects, establish a mapping of the latitude, longitude, and altitude of the smoke objects and flame objects to the three-dimensional grid position code, that is, realize the correspondence and mutual conversion between video pixel coordinates and three-dimensional position codes, and after the conversion, accurately locate the forest fire driven by the video three-dimensional grid.
[0039] A forest fire detection and positioning system based on high-point monitoring video includes the following steps:
[0040] Network construction and detection module: A forest fire detection dataset is constructed based on the acquired high-point monitoring videos, and a multi-scale and multi-dimensional feature extraction network that integrates video spatial features and temporal features is trained to identify the detection frames of smoke and flames in the high-point monitoring videos to be identified. Finally, the detection frames of smoke objects and flame objects and the center two-dimensional pixel coordinates of flame objects in each frame image are obtained;
[0041] Forest fire precise positioning module: Precisely locate forest fires driven by video stereo grid based on the detection frames of smoke objects and flame objects and the central two-dimensional pixel coordinates of flame objects in each frame image.
[0042] Furthermore, the multi-scale and multi-dimensional feature extraction network that integrates video spatial features and temporal features constructed in the network construction and detection module includes an input layer, a Focus module, a first Conv module, a global-local feature extraction module, a second Conv module, a deep-shallow feature extraction module, a third Conv module, a temporal neural unit, a fourth Conv module, a pooling module, a depth and receptive field enhancement module and an output layer that are connected in sequence, wherein the first Conv module, the second Conv module, the third Conv module and the fourth Conv module are respectively convolution modules composed of Conv2d, BN layer and SI LU that are connected in sequence.
[0043] Further, the global-local feature extraction module includes a local feature extraction module and a global feature extraction module respectively connected to the first Conv module, a 3×3 convolution layer that receives the outputs of the local feature extraction module and the global feature extraction module and performs an addition operation, and a 1×1 convolution layer sequentially connected to the 3×3 convolution layer, wherein the local feature extraction module includes a 3×3 convolution layer and a 1×1 convolution layer that respectively perform convolution processing on the input feature map, a batch normalization layer respectively connected to the 3×3 convolution layer and the 1×1 convolution layer, and the results of the outputs of the two batch normalization layers are added to obtain local features. The global feature extraction module includes sequentially performing size transformation, linearization operation and projection layer mapping operation on the input feature map to obtain feature maps Q, feature maps K and feature maps V, and then performing multiplication operation on the results obtained after depth normalization processing of the feature maps Q and K, and the result obtained after the multiplication operation is multiplied with the feature map V, and then the size transformation is performed and each pixel point of the transformed feature map is equivalent to several pixels in the original input image, and finally the global feature is obtained;
[0044] The deep-shallow feature extraction module includes a fifth Conv module connected to the second Conv module, two 3×3 convolutional layers with a step size of 1, a 3×3 convolutional layer with a step size of 2, and a 3×3 convolutional layer with a step size of 5, which are respectively connected to the fifth Conv module in sequence, and the two 3×3 convolutional layers with a step size of 5 are multiplied by the output results of the fifth Conv module respectively, and then the results obtained by the multiplication operation are added to the output result of the fifth Conv module, and the results obtained by the two addition operations are connected in series to obtain the output result, wherein the fifth Conv module is a convolutional module composed of a Conv2d, a BN layer, and a SI LU connected in sequence;
[0045] The time series neural unit receives the hidden layer state vector a at time t-1 after activation output by the third Conv module t -1 and the vector x at time t t , and respectively t-1 and x t With V ah and V xh Perform a multiplication operation, and then add the two multiplication results to b h Perform the addition operation to obtain the hidden layer state h t , and then the hidden layer state is processed by the hyperbolic tangent function tanh to obtain the hidden layer state vector a at time t after activation t And output, at the same time a t With V ao Perform a multiplication operation, and the result of the multiplication operation is the same as b o Perform the addition operation to obtain the state vector c of the output node t , c t After softmax calculation, it is converted into an output label vector Among them, V xh Represents the weight matrix from K input nodes to N hidden nodes, V ah It represents the weight matrix connecting N hidden nodes at time t-1 to N hidden nodes at time t, b h represents the hidden layer weight matrix before activation, b o Represents the weight matrix of the activated hidden layer, V ao Represents the weight matrix from the activated input node to the hidden node.
[0046] Furthermore, the specific implementation steps of the network construction and detection module are:
[0047] Step 1.1: Based on the acquired high-point monitoring video, an all-weather forest fire database based on the forest fire classification system is established through "rough annotation-rendering-training-feedback-fine-tuning-enhancement". The specific steps are as follows:
[0048] Step 1.11, manually analyze the characteristic expressions of smoke and fire in the forest fire scene in the high-point monitoring video, and preliminarily establish a rough annotation database through manual annotation, where the features include color features, shape features and texture features. Color refers to the analysis of its corresponding color histogram, color set, color moment and color aggregation vector. The shape is obtained by using the boundary feature method, Fourier shape descriptor method, shape geometric parameter method and finite element method. The texture is obtained by using the gray level co-occurrence matrix, energy spectrum function, random field model, autoregressive texture model and wavelet transform analysis;
[0049] Step 1.12, artificially analyze the feature heterogeneity caused by different types of interference in the forest fire scene in the high-point monitoring video, and render the data in the coarse annotation database in a diversified manner. The different types refer to the classification of forest fire scenes in the high-point monitoring video into coniferous forest fire, mixed coniferous and broad-leaved forest fire and broad-leaved forest fire according to different types of forest land; the classification into surface fire, crown fire and underground fire according to different locations of fire starting points; the classification into forest fire warning, general forest fire, major forest fire and extremely large forest fire according to different affected forest areas; the classification into daytime forest fire and nighttime forest fire according to different times of occurrence of forest fire; the feature heterogeneity includes light intensity, scale difference, smoke concentration, and smoke-like and fire-like objects;
[0050] Step 1.13: Use the neural network model to learn the knowledge of the coarsely labeled database, detect unlabeled data and feedback the misclassification, fine-tune the data, and enhance the data through the Albumentation tool; after enhancement, if the requirements are met, a forest fire detection dataset with diversified features is obtained, otherwise, go to step 1.11 and execute again;
[0051] Step 1.2: Train a multi-scale and multi-dimensional feature extraction network based on the forest fire detection dataset, and input the high-point monitoring video to be identified into the trained multi-scale and multi-dimensional feature extraction network to obtain the smoke and flame object detection frames, and at the same time calculate the two-dimensional pixel coordinates of the vertices of the flame detection frame, and calculate the center two-dimensional pixel coordinates of the detection frame based on the two-dimensional pixel coordinates of the vertices of the flame, and finally obtain the detection frames of the smoke object and the flame object, as well as the center two-dimensional pixel coordinates of the flame object.
[0052] Furthermore, the specific implementation steps of the forest fire precise positioning module are:
[0053] Step 2.1: Establish different preliminary fire point location methods based on the diffusion characteristics of different forest fire smoke and flames. The specific steps are as follows:
[0054] Step 2.11, using the optical flow method to analyze the diffusion characteristics of smoke and flames in the forest fire detection data set, that is, by calculating the histogram of optical flow intensity and optical flow direction angle, the diffusion model of forest fire smoke and flames is divided into triangular diffusion model, diffuse diffusion model and radiation diffusion model;
[0055] The formula for optical flow intensity and optical flow direction angle is:
[0056] L(i,j)=u(i,j)+(i,j)
[0057]
[0058] Among them, L(i,j) represents the intensity of optical flow, a(i,j) represents the direction angle of optical flow, u(i,j) and v(i,j) represent the horizontal and vertical optical flow vectors at the pixel point (i,j), respectively. If both the intensity of optical flow and the direction angle of optical flow are concentratedly distributed, it is a triangular diffusion model, if they are irregularly distributed, it is a diffuse diffusion model, and if they are uniformly distributed, it is a radiation diffusion model.
[0059] Step 2.12, for different diffusion models, establish different preliminary ignition point positioning methods, including a boundary-centerline characteristic line positioning method for a triangular diffusion model, a centroid shift positioning method for a diffuse diffusion model, and a discrete seed point positioning method for a radiation diffusion model;
[0060] Step 2.2: A forest fire location method combining the forest fire smoke diffusion model and the video stereo grid is proposed. The specific steps are as follows:
[0061] Step 2.21, for different diffusion models, simulate and establish different simulation motion models, and map the diffusion of smoke and flames in the real world to the digital three-dimensional model from the aspects of diffusion speed and direction, diffusion mode, and spatial topological relationship constraints, that is, through mathematical calculation combined with image processing technology, obtain the diffusion speed and direction of the simulation motion model, and then combine the diffusion mode and spatial topological relationship constraints of different diffusion models to map the smoke and flames of the forest fire in the real world to the digital three-dimensional model;
[0062] Step 2.22, based on the geographic space topological relationship analysis method, analyze the spatial topological relationship of adjacency, association and inclusion of smoke, flames and the forest structure itself in the digital three-dimensional model, and perform a spatial topological semantic description thereof;
[0063] Step 2.23, according to the high-point monitoring camera parameters, perform camera calibration and distortion correction. Under the premise of the detection frame constraints of the smoke object and the flame object, use the Bwboundaries edge extraction function to extract the boundaries of the smoke object and the flame object, and then combine the smoke centerline to obtain the diffusion model and different fire point preliminary positioning methods to achieve preliminary positioning of the smoke object in the two-dimensional image space. At the same time, preliminary positioning is performed based on the two-dimensional coordinates of the center point of the flame object. The camera parameters include the pitch angle, yaw angle and camera height of the camera. The smoke centerline is calculated after extracting the smoke edge and determining the smoke diffusion movement trend. The midpoint of all edge points of the forest fire smoke is calculated, and the slope of the midpoint and the direction of smoke movement are formed into a straight line. The smoke edge point is then separated into two left and right fitting edges, that is, the final straight line is the center line of the smoke.
[0064] Step 2.24, using the imaging mechanism of the high-point monitoring camera from three-dimensional space to two-dimensional plane, combined with the digital elevation model, the image coordinate system is converted to obtain the position information in the camera and world coordinate systems, and a reference point is set in the physical space. The coordinate inverse calculation model of the pixel-image-camera-world coordinate system is established through the reference coordinates, and the preliminary positioning of the smoke object and the flame object obtained by combining the constraints of the spatial topological semantic description and the preliminary positioning is realized to realize the three-dimensional spatial positioning of the smoke and flame objects of the forest fire;
[0065] Step 2.25: Based on the three-dimensional spatial positioning of forest fire smoke objects and flame objects, establish a mapping of the latitude, longitude, and altitude of the smoke objects and flame objects to the three-dimensional grid position code, that is, realize the correspondence and mutual conversion between video pixel coordinates and three-dimensional position codes, and after the conversion, accurately locate the forest fire driven by the video three-dimensional grid.
[0066] Compared with the prior art, the present invention has the following beneficial effects:
[0067] 1. The present invention fully considers the dimensional differences and scale change characteristics of forest fire smoke from the three dimensions of depth, width and resolution, and establishes a target recognition network model that combines multi-dimensional feature extraction and multi-scale feature fusion to achieve high-precision detection of early forest fire smoke under complex interference conditions, which is specifically embodied in the following aspects:
[0068] (1) The establishment of an all-weather forest fire database (i.e., forest fire detection dataset) based on the forest fire classification system is based on a cyclic iterative optimization mechanism of "rough labeling-rendering-training-feedback-fine-tuning-enhancement". Compared with other methods, this method uses a mechanism to express the feature heterogeneity of interference factors in the scene when establishing a forest fire disaster object extraction database, and fully considers the different representations of smoke and flame objects in daytime and nighttime scenes, thereby enhancing the universality of the prediction model generated based on this database. At the same time, the cyclic iterative optimization mechanism can be used to establish a large-scale forest fire disaster information detection database with all-weather scenes and diversified features.
[0069] (2) The establishment of a multimodal target detection network model that integrates multi-dimensional and multi-scale features (i.e., a multi-scale and multi-dimensional feature extraction network that integrates video spatial features and temporal features) is the core algorithm for accurate forest fire identification driven by video data. The core of this technology is to comprehensively consider global and local, deep and shallow, and video temporal features to realize a multi-scene and multi-dimensional multi-modal information extraction method for forest fire smoke and flame objects. The technical model is established from the aspects of video global and local, deep and shallow, and video temporal, including a global-local feature extraction module, a deep-shallow feature extraction module, and a temporal neural unit to construct a target detection network model that integrates multi-dimensional and multi-scale features. Compared with other methods, this method comprehensively obtains the multimodal features of forest fire smoke and flame objects in the video, and realizes the visibility of smoke objects and flame objects in complex forest fire scenes. A comprehensive exploration of significant representations can significantly describe disaster objects when forest fires occur, and quickly and accurately detect smoke objects and flame objects. Among them, the model proposed in this case achieved improved accuracy on the original and enhanced datasets, exceeding the advanced SOTA. For the Yar, FD, DFAN and ADSF original datasets, the average accuracy was improved by 1.25%, 1.95%, 2% and 1.5%, respectively. In comparison with the enhanced versions of these datasets, the model in this case always outperformed the SOTA, with accuracy improvements of 0.7, 1.97%, 1.42% and 1.53%, respectively. The proposed model excels in both performance and resource efficiency. It achieves high frame rates of 22.0 and 72.5FPS on CPU and GPU, respectively, using only 7.2 million learning parameters, making it very suitable for real-time deployment on edge devices.
[0070] Second, the present invention analyzes the spatial topological relationship between the geographical location and the camera posture, considers the diffusion characteristics of early forest fire smoke, constructs a forest fire point positioning method that combines smoke diffusion characteristics and video stereo grids, breaks through the limitations of terrain conditions and visibility of observation points, and realizes the precise positioning of early forest fire points in video images, which is specifically embodied in the following aspects:
[0071] (1) According to the type of smoke and flame diffusion model, a preliminary positioning method suitable for different situations is formulated, and different smoke and flame diffusion models are developed to adapt to various terrain and climatic conditions. For example, different models are designed according to the influence of variables such as wind speed, humidity, and temperature;
[0072] (2) A method for precise three-dimensional spatial positioning based on a video stereo grid combined with a smoke and flame diffusion model. That is, a high-precision three-dimensional spatial model is constructed using video stereo grid technology to more accurately simulate and analyze the diffusion of fire smoke and flames, and the smoke and flame diffusion model is combined with stereo grid technology to achieve more accurate three-dimensional positioning. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] Figure 1 The overall idea diagram of the present invention;
[0074] Figure 2 Logical relationship diagram in the present invention;
[0075] Figure 3 A schematic diagram of the accurate positioning of forest fires driven by a video stereo grid based on the detection frames of smoke objects and flame objects and the center two-dimensional pixel coordinates of the flame objects in each frame image in the present invention;
[0076] Figure 4 A schematic diagram of the structure of a multi-scale and multi-dimensional feature extraction network that integrates video spatial features and temporal features in the present invention, wherein the Focus module performs a slice operation on the image, inputs the original 640×640×3 image into the Focus module, and uses a slice operation to first convert it into a 320×320×12 feature map, the Conv module is a convolution module composed of Conv2d (i.e., a two-dimensional convolution layer), a BN layer (i.e., a batch normalization layer) and SI LU (i.e., an activation function), SSP is a pooling module, and C3 is a depth and receptive field enhancement module;
[0077] Figure 5 A schematic diagram of the structure of the global-local feature extraction module in the present invention, wherein D, d respectively represent the depth before and after the transformation, H, h respectively represent the height before and after the transformation, W represents the width, N represents the batch size, that is, the number of images in a batch, Depth Norm represents the depth normalization processing, Reshape is used to transform the size of the image, Liner represents the linearization operation, Projection represents the projection layer mapping, Scale represents that each pixel point of the feature map of this layer is equivalent to several pixels points in the original input image, Conv1×1 represents a convolution kernel of size 1×1, Conv3×3 represents a convolution kernel of size 3×3, and Batch Norm represents batch normalization;
[0078] Figure 6 A schematic diagram of the structure of the deep-shallow feature extraction module in the present invention, wherein C represents the number of channels, H represents the height, W represents the width, BN represents batch normalization, ReLU is a commonly used activation function for deep learning, s represents the step size, and Concate represents the tandem connection to achieve multi-feature extraction fusion;
[0079] Figure 7 Schematic diagram of the structure of the sequential neural unit in the present invention, wherein the number of input nodes of the recurrent neural network is K, the number of hidden layer nodes is N, and the number of output nodes is L. For time t, assuming that the input vector is x t , the hidden layer state is h t , after the transformation of the activation function and the fully connected layer, the output is obtained through the softmax function, V xh represents the weight matrix of K input nodes and N hidden nodes, V ah It represents the weight matrix connecting N hidden nodes at time (t-1) to N hidden nodes at time t, a t is the activated hidden layer state vector, c t is the state vector of the output node, which is converted into the output label vector after softmax calculation
[0080] Figure 8 An example diagram of the application of the boundary-centerline feature line positioning method in the present invention;
[0081] Fig. 9 An example diagram of the application of the centroid shifting method in the present invention;
[0082] Fig.10 An example diagram of the application of the discrete seed point method in the present invention. DETAILED DESCRIPTION
[0083] The present invention will be further described below in conjunction with the accompanying drawings and specific implementation methods.
[0084] Aiming at the demand for automatic detection and positioning of early forest fires, and addressing the problems of poor accuracy and low efficiency in forest fire smoke extraction and positioning under complex background conditions, this paper proposes to design an efficient forest fire smoke recognition algorithm that combines multi-dimensional feature extraction and multi-scale feature fusion, and proposes a method for accurately locating forest fire points based on video stereo grids based on the characteristics of forest fire smoke diffusion, so as to achieve accurate identification and positioning of early forest fires, and support forest fire emergency response and disaster relief.
[0085] like Figure 1 , 2As shown, it includes: 1) constructing a forest fire detection dataset based on the acquired high-point monitoring video, and training the constructed multi-scale and multi-dimensional feature extraction network that integrates video spatial features and temporal features to identify the detection frames of smoke and flames in the high-point monitoring video to be identified, and finally obtaining the detection frames of smoke objects and flame objects and the center two-dimensional pixel coordinates of the flame objects in each frame image; 2) accurately positioning the forest fire driven by the video stereo grid based on the detection frames of smoke objects and flame objects and the center two-dimensional pixel coordinates of the flame objects in each frame image. In the dataset construction stage, various complex background conditions are fully considered: the visual similarity between forest fire smoke and other objects such as clouds and fog, small targets at early and long distances, different lighting conditions and weather conditions, dynamic backgrounds, etc. In the forest fire smoke feature analysis stage, the triangular diffusion characteristics, movement direction and speed characteristics of forest fire smoke are fully considered and analyzed. In the forest fire smoke recognition stage under complex background conditions, considering that the high-point monitoring video is shot at a certain distance, the existing target detection network needs to improve its detection accuracy for small targets at a long distance, and it is easy to misidentify clouds and fog as fire smoke. To address the above problems, a multi-scale and multi-dimensional feature extraction network was constructed. In the forest fire precise positioning stage, the forest fire point positioning based on infrared images is affected by the season and climate, and the single-point and double-point forest fire positioning methods have low accuracy. A forest fire detection and positioning method based on high-point monitoring video is proposed to improve the positioning accuracy of forest fire points.
[0086] The background of forest fire video data is complex, and high-point monitoring videos are affected by clouds, rain, fog, lighting, etc., resulting in serious interference to the characteristics of early forest fire smoke. Therefore, how to reveal the dimensional differences, scale changes and other characteristics of early forest fire smoke in video images to achieve high-precision recognition of forest fire smoke is a key issue. This case fully considers the dimensional differences and scale change characteristics of forest fire smoke from the three dimensions of depth, width, and resolution, and establishes a target recognition network model that combines multi-dimensional feature extraction and multi-scale feature fusion to achieve high-precision detection of early forest fire smoke under complex interference conditions. That is, a forest fire detection dataset is constructed based on the acquired high-point monitoring videos, and the constructed multi-scale and multi-dimensional feature extraction network that integrates video spatial features and temporal features is trained to identify the detection frames of smoke and flames in the high-point monitoring videos to be identified, and finally obtains the detection frames of smoke objects and flame objects and the central two-dimensional pixel coordinates of flame objects in each frame image. The specific steps are:
[0087] Step 1.1: Based on the acquired high-point monitoring video, an all-weather forest fire database based on the forest fire classification system is established through "rough annotation-rendering-training-feedback-fine-tuning-enhancement". The specific steps are as follows:
[0088] Step 1.11, manually analyze the characteristic expressions of smoke and fire in the forest fire scene in the high-point monitoring video, and preliminarily establish a rough annotation database through manual annotation, where the features include color features, shape features and texture features. Color refers to the analysis of its corresponding color histogram, color set, color moment and color aggregation vector. The shape is obtained by using the boundary feature method, Fourier shape descriptor method, shape geometric parameter method and finite element method. The texture is obtained by using the gray level co-occurrence matrix, energy spectrum function, random field model, autoregressive texture model and wavelet transform analysis;
[0089] Step 1.12, artificially analyze the feature heterogeneity caused by different types of interference in the forest fire scene in the high-point monitoring video, and render the data in the coarse annotation database in a diversified manner. The different types refer to the classification of forest fire scenes in the high-point monitoring video into coniferous forest fire, mixed coniferous and broad-leaved forest fire and broad-leaved forest fire according to different types of forest land; the classification into surface fire, crown fire and underground fire according to different locations of fire starting points; the classification into forest fire warning, general forest fire, major forest fire and extremely large forest fire according to different affected forest areas; the classification into daytime forest fire and nighttime forest fire according to different times of occurrence of forest fire; the feature heterogeneity includes light intensity, scale difference, smoke concentration, and smoke-like and fire-like objects;
[0090] Step 1.13: Use the neural network model to learn the knowledge of the coarsely labeled database, detect unlabeled data and feedback the misclassification, fine-tune the data, and enhance the data through the Albumentation tool; after enhancement, if the requirements are met, a forest fire detection dataset with diversified features is obtained, otherwise, go to step 1.11 and execute again;
[0091] Step 1.2: Train a multi-scale and multi-dimensional feature extraction network based on the forest fire detection dataset, and input the high-point monitoring video to be identified into the trained multi-scale and multi-dimensional feature extraction network to obtain the smoke and flame object detection frames, and at the same time calculate the two-dimensional pixel coordinates of the vertices of the flame detection frame, and calculate the center two-dimensional pixel coordinates of the detection frame based on the two-dimensional pixel coordinates of the vertices of the flame, and finally obtain the detection frames of the smoke object and the flame object, as well as the center two-dimensional pixel coordinates of the flame object.
[0092] like Figure 4As shown, the constructed multi-scale and multi-dimensional feature extraction network integrating video spatial features and temporal features includes an input layer, a Focus module, a first Conv module, a global-local feature extraction module, a second Conv module, a deep-shallow feature extraction module, a third Conv module, a temporal neural unit, a fourth Conv module, a pooling module, a depth and receptive field enhancement module and an output layer, wherein the first Conv module, the second Conv module, the third Conv module and the fourth Conv module are respectively convolution modules composed of Conv2d, BN layer and SI LU connected in sequence.
[0093] like Figure 5 As shown, the global-local feature extraction module includes a local feature extraction module and a global feature extraction module respectively connected to the first Conv module, a 3×3 convolution layer that receives the outputs of the local feature extraction module and the global feature extraction module and performs an addition operation, and a 1×1 convolution layer sequentially connected to the 3×3 convolution layer, wherein the local feature extraction module includes a 3×3 convolution layer and a 1×1 convolution layer that respectively perform convolution processing on the input feature map, a batch normalization layer respectively connected to the 3×3 convolution layer and the 1×1 convolution layer, and the results of the outputs of the two batch normalization layers are added to obtain local features. The global feature extraction module includes sequentially performing size transformation, linearization operation and projection layer mapping operation on the input feature map to obtain feature maps Q, feature maps K and feature maps V, and then performing multiplication operation on the results obtained after depth normalization processing of the feature maps Q and K, and the result obtained after the multiplication operation is multiplied with the feature map V, and then the size transformation is performed and each pixel point of the transformed feature map is equivalent to several pixels in the original input image, and finally the global feature is obtained;
[0094] like Figure 6 As shown, the deep-shallow feature extraction module includes a fifth Conv module connected to the second Conv module, two 3×3 convolutional layers with a step size of 1, a 3×3 convolutional layer with a step size of 2, and a 3×3 convolutional layer with a step size of 5, which are respectively connected to the fifth Conv module in sequence, and the two 3×3 convolutional layers with a step size of 5 are multiplied by the output result of the fifth Conv module respectively, and then the result obtained by the multiplication operation is added to the output result of the fifth Conv module, and the results obtained by the two addition operations are connected in series to obtain the output result, wherein the fifth Conv module is a convolutional module composed of Conv2d, BN layer and SILU connected in sequence;
[0095] like Figure 7 As shown, the time series neural unit receives the hidden layer state vector at-1 at the time after activation output by the third Conv module. 1 and time vector xt, and respectively at-1 and xt and Va h and Vx h Perform a multiplication operation, and then add the two multiplication results to b h The hidden layer state ht is obtained by adding the hidden layer state, and then the hidden layer state is processed by the hyperbolic tangent function tanh to obtain the hidden layer state vector at the time t after activation and output it. o Perform a multiplication operation, and add the result of the multiplication operation to bo to obtain the state vector ct of the output node. After softmax calculation, ct is converted into the output label vector Among them, Vx h Represents the weight matrix from K input nodes to N hidden nodes, Va h It represents the weight matrix connecting N hidden nodes at time t-1 to N hidden nodes at time t, b h represents the hidden layer weight matrix before activation, b o Represents the weight matrix of the activated hidden layer, Va o Represents the weight matrix from the activated input node to the hidden node.
[0096] Ultimately, we achieved efficient recognition of early-stage forest fires under complex background conditions, while simultaneously acquiring relevant information about smoke objects and flame objects, ultimately obtaining a comprehensive description of the early-stage forest fire conditions.
[0097] The accuracy of forest fire positioning based on single-point or dual-point mobile shooting is low, and the positioning of forest fire points in infrared images is affected by season and climate. Therefore, how to explore the spatial topological relationship between the geographical location and the camera posture, and construct a three-dimensional grid of surveillance videos to improve the accuracy of forest fire positioning is a key issue. By analyzing the spatial topological relationship between the geographical location and the camera posture, and considering the diffusion characteristics of early forest fire smoke, a forest fire positioning method that combines smoke diffusion characteristics and video three-dimensional grids is constructed, breaking through the limitations of terrain conditions and visibility of observation points, and realizing the precise positioning of early forest fire points in video images. That is, based on the detection boxes of smoke objects and flame objects and the central two-dimensional pixel coordinates of the flame objects in each frame image, the video three-dimensional grid is driven to accurately locate forest fires. Such as Figure 3 As shown, the specific steps are:
[0098] Step 2.1: Establish different preliminary fire point location methods based on the diffusion characteristics of different forest fire smoke and flames. The specific steps are as follows:
[0099] Step 2.11, using the optical flow method to analyze the diffusion characteristics of smoke and flames in the forest fire detection data set, that is, by calculating the histogram of optical flow intensity and optical flow direction angle, the diffusion model of forest fire smoke and flames is divided into triangular diffusion model, diffuse diffusion model and radiation diffusion model;
[0100] The formula for optical flow intensity and optical flow direction angle is:
[0101] L(i,j)=u(i,j)2+v(i,j)
[0102]
[0103] Among them, L(i,j) represents the intensity of optical flow, α(i,j) represents the direction angle of optical flow, u(i,j) and v(i,j) represent the horizontal and vertical optical flow vectors at the pixel point (i,j), respectively. If both the intensity of optical flow and the direction angle of optical flow are concentratedly distributed, it is a triangular diffusion model, if they are irregularly distributed, it is a diffuse diffusion model, and if they are uniformly distributed, it is a radiation diffusion model.
[0104] Step 2.12: For different diffusion models, different methods for initial positioning of the fire point are established, including the boundary-centerline characteristic line positioning method for the triangular diffusion model, the centroid shift positioning method for the diffuse diffusion model, and the discrete seed point positioning method for the radiation diffusion model. Figure 8-10 As shown;
[0105] Step 2.2: A forest fire location method combining the forest fire smoke diffusion model and the video stereo grid is proposed. The specific steps are as follows:
[0106] Step 2.21, for different diffusion models, simulate and establish different simulation motion models, and map the diffusion of smoke and flames in the real world to the digital three-dimensional model from the aspects of diffusion speed and direction, diffusion mode, and spatial topological relationship constraints, that is, through mathematical calculation combined with image processing technology, obtain the diffusion speed and direction of the simulation motion model, and then combine the diffusion mode and spatial topological relationship constraints of different diffusion models to map the smoke and flames of the forest fire in the real world to the digital three-dimensional model;
[0107] Step 2.22, based on the geographic space topological relationship analysis method, analyze the spatial topological relationship of adjacency, association and inclusion of smoke, flames and the forest structure itself in the digital three-dimensional model, and perform a spatial topological semantic description thereof;
[0108] Step 2.23, according to the high-point monitoring camera parameters (high-point monitoring camera parameters include pitch angle, yaw angle, camera height and other information), perform camera calibration and distortion correction, under the premise of the detection frame constraints of the smoke object and the flame object, use the Bwboundaries edge extraction function to extract the boundaries of the smoke object and the flame object, and then combine the smoke centerline to obtain the diffusion model and different fire point preliminary positioning methods to achieve preliminary positioning of the smoke object in the two-dimensional image space, and at the same time perform preliminary positioning based on the two-dimensional coordinates of the center point of the flame object, wherein the camera parameters include the pitch angle, yaw angle and camera height of the camera, wherein the smoke centerline is calculated after extracting the smoke edge and determining the smoke diffusion movement trend, the midpoint of all edge points of the forest fire smoke is calculated, the slope of the midpoint and the direction of smoke movement is formed into a straight line, and then the smoke edge point is separated into two left and right fitting edges, that is, the final straight line is the center line of the smoke;
[0109] Step 2.24, using the imaging mechanism of the high-point monitoring camera from three-dimensional space to two-dimensional plane, combined with the digital elevation model, the image coordinate system is converted to obtain the position information in the camera and world coordinate systems, and a reference point is set in the physical space. The coordinate inverse calculation model of the pixel-image-camera-world coordinate system is established through the reference coordinates, and the preliminary positioning of the smoke object and the flame object obtained by combining the constraints of the spatial topological semantic description and the preliminary positioning is realized to realize the three-dimensional spatial positioning of the smoke and flame objects of the forest fire;
[0110] Step 2.25: Based on the three-dimensional spatial positioning of forest fire smoke objects and flame objects, establish a mapping of the longitude, latitude and altitude of smoke objects and flame objects to the three-dimensional grid position code, that is, realize the correspondence and mutual conversion between video pixel coordinates and three-dimensional position codes (after the mapping is completed, the longitude, latitude and elevation information can be converted into a video three-dimensional grid code that can be recognized by high-point monitoring equipment and easy to store). After the conversion, the forest fire driven by the video three-dimensional grid is accurately positioned.
[0111] In summary, the present invention can be applied to complex backgrounds and severe weather conditions, and can also be used for early forest fires, etc., to improve the accuracy and efficiency of forest fire smoke extraction and positioning; it is also suitable for long-distance small target detection with good detection effect; the present invention can not only measure daytime scenes, but also achieve efficient and real-time monitoring under night conditions.
[0112] In order to further improve the detection and positioning stability of the system, the system also combines the real-time monitoring data set of the surrounding environment (wind speed, temperature, wind direction, humidity, air pressure, etc.), and uses these parameters to dynamically adjust the model parameters in real time to achieve the best monitoring and positioning effect, and timely update the three-dimensional visualization effect of forest fires in the system. Specifically:
[0113] Real-time data integration: Real-time monitoring of environmental data (such as wind speed, humidity, etc.) and adjustment of model parameters based on this data to improve the accuracy of fire detection.
[0114] Dynamic tracking and analysis: By real-time tracking of the dynamic changes of smoke and flames, the three-dimensional grid is dynamically adjusted to achieve continuous and accurate positioning of the fire source.
[0115] Visualization and decision support: Provides an intuitive three-dimensional visualization interface to help decision makers quickly understand the development of the fire and develop effective response strategies.
[0116] The above are only representative embodiments of the present invention in many specific application scopes, and do not constitute any limitation on the protection scope of the present invention. Any technical solutions formed by transformation or equivalent replacement fall within the protection scope of the present invention.
Claims
1. A forest fire detection and location method based on high-point monitoring video, characterized in that: The steps include: Step 1: Construct a forest fire detection dataset based on the acquired high-point monitoring video, and train the constructed multi-scale and multi-dimensional feature extraction network that integrates video spatial features and temporal features to identify the detection frames of smoke and flames in the high-point monitoring video to be identified, and finally obtain the detection frames of smoke objects and flame objects and the center two-dimensional pixel coordinates of the flame objects in each frame image; Step 2: accurately locate the forest fire driven by the video stereo grid based on the detection frames of the smoke object and the flame object and the center two-dimensional pixel coordinates of the flame object in each frame image; The multi-scale and multi-dimensional feature extraction network for integrating video spatial features and temporal features constructed in step 1 comprises an input layer, a Focus module, a first Conv module, a global-local feature extraction module, a second Conv module, a deep-shallow feature extraction module, a third Conv module, a temporal neural unit, a fourth Conv module, a pooling module, a depth and receptive field enhancement module and an output layer connected in sequence, wherein the first Conv module, the second Conv module, the third Conv module and the fourth Conv module are respectively convolution modules composed of Conv2d, BN layer and SILU connected in sequence; The global-local feature extraction module includes a local feature extraction module and a global feature extraction module respectively connected to the first Conv module, a 3×3 convolution layer that receives the outputs of the local feature extraction module and the global feature extraction module and performs an addition operation, and a 1×1 convolution layer sequentially connected to the 3×3 convolution layer, wherein the local feature extraction module includes a 3×3 convolution layer and a 1×1 convolution layer that respectively perform convolution processing on the input feature map, a batch normalization layer respectively connected to the 3×3 convolution layer and the 1×1 convolution layer, and the results of the outputs of the two batch normalization layers are added to obtain local features. The global feature extraction module includes sequentially performing size transformation, linearization operation and projection layer mapping operation on the input feature map to obtain feature map Q, feature map K and feature map V, and then performing multiplication operation on the results obtained after depth normalization processing of feature map Q and feature map K respectively, and the result obtained after the multiplication operation is multiplied with the feature map V, and then the size transformation is performed and each pixel point of the transformed feature map is equivalent to several pixels in the original input image, and finally the global feature is obtained; The deep-shallow feature extraction module includes a fifth Conv module connected to the second Conv module, two 3×3 convolutional layers with a step size of 1, a 3×3 convolutional layer with a step size of 2, and a 3×3 convolutional layer with a step size of 5, which are respectively connected to the fifth Conv module in sequence, and the two 3×3 convolutional layers with a step size of 5 are respectively multiplied by the output result of the fifth Conv module, and then the result obtained by the multiplication operation is added to the output result of the fifth Conv module, and the results obtained by the two addition operations are connected in series to obtain the output result, wherein the fifth Conv module is a convolutional module composed of a Conv2d, a BN layer, and a SILU connected in sequence; The time series neural unit receives the hidden layer state vector a at time t-1 after activation output by the third Conv module t-1 and the vector x at time t t , and respectively t-1 and x t With V ah and V xh Perform a multiplication operation, and then add the two multiplication results to b h Perform the addition operation to obtain the hidden layer state h t , and then the hidden layer state is processed by the hyperbolic tangent function tanh to obtain the hidden layer state vector a at time t after activation t And output, at the same time a t With V ao Perform a multiplication operation, and the result of the multiplication operation is the same as b o Perform the addition operation to obtain the state vector c of the output node t , c t After softmax calculation, it is converted into an output label vector Among them, V xh Represents the weight matrix from K input nodes to N hidden nodes, V ah It represents the weight matrix connecting N hidden nodes at time t-1 to N hidden nodes at time t, b h represents the hidden layer weight matrix before activation, b o Represents the weight matrix of the activated hidden layer, V ao Represents the weight matrix from the activated input node to the hidden node; The specific steps of step 2 are: Step 2.1: Establish different preliminary fire point location methods based on the diffusion characteristics of different forest fire smoke and flames. The specific steps are as follows: Step 2.11, using the optical flow method to analyze the diffusion characteristics of smoke and flames in the forest fire detection data set, that is, by calculating the histogram of optical flow intensity and optical flow direction angle, the diffusion model of forest fire smoke and flames is divided into triangular diffusion model, diffuse diffusion model and radiation diffusion model; The formula for optical flow intensity and optical flow direction angle is: L(i,j)=u(i,j) 2 +v(i,j) 2 Among them, L(i,j) represents the intensity of optical flow, α(i,j) represents the direction angle of optical flow, u(i,j) and v(i,j) represent the horizontal and vertical optical flow vectors at the pixel point (i,j), respectively. If both the intensity of optical flow and the direction angle of optical flow are concentratedly distributed, it is a triangular diffusion model, if they are irregularly distributed, it is a diffuse diffusion model, and if they are uniformly distributed, it is a radiation diffusion model. Step 2.12, for different diffusion models, establish different preliminary ignition point positioning methods, including a boundary-centerline characteristic line positioning method for a triangular diffusion model, a centroid shift positioning method for a diffuse diffusion model, and a discrete seed point positioning method for a radiation diffusion model; Step 2.2: A forest fire location method combining the forest fire smoke diffusion model and the video stereo grid is proposed. The specific steps are as follows: Step 2.21, for different diffusion models, simulate and establish different simulation motion models, and map the diffusion of smoke and flames in the real world to the digital three-dimensional model from the aspects of diffusion speed and direction, diffusion mode, and spatial topological relationship constraints, that is, through mathematical calculation combined with image processing technology, obtain the diffusion speed and direction of the simulation motion model, and then combine the diffusion mode and spatial topological relationship constraints of different diffusion models to map the smoke and flames of the forest fire in the real world to the digital three-dimensional model; Step 2.22, based on the geographic space topological relationship analysis method, analyze the spatial topological relationship of adjacency, association and inclusion of smoke, flames and the forest structure itself in the digital three-dimensional model, and perform a spatial topological semantic description thereof; Step 2.23, according to the high-point monitoring camera parameters, perform camera calibration and distortion correction. Under the premise of the detection frame constraints of the smoke object and the flame object, use the Bwboundaries edge extraction function to extract the boundaries of the smoke object and the flame object, and then combine the smoke centerline to obtain the diffusion model and different fire point preliminary positioning methods to achieve preliminary positioning of the smoke object in the two-dimensional image space. At the same time, preliminary positioning is performed based on the two-dimensional coordinates of the center point of the flame object. The camera parameters include the camera's pitch angle, yaw angle and camera height. The smoke centerline is calculated after extracting the smoke edge and determining the smoke diffusion movement trend. The midpoint of all edge points of the forest fire smoke is calculated, and the slope of the midpoint and the direction of smoke movement are formed into a straight line. The smoke edge point is then separated into two left and right fitting edges, that is, the final straight line is the center line of the smoke. Step 2.24, using the imaging mechanism of the high-point monitoring camera from three-dimensional space to two-dimensional plane, combined with the digital elevation model, the image coordinate system is converted to obtain the position information in the camera and world coordinate systems, and a reference point is set in the physical space. The coordinate inverse calculation model of the pixel-image-camera-world coordinate system is established through the reference coordinates, and the preliminary positioning of the smoke object and the flame object obtained by combining the constraints of the spatial topological semantic description and the preliminary positioning is realized to realize the three-dimensional spatial positioning of the smoke and flame objects of the forest fire; Step 2.25: Based on the three-dimensional spatial positioning of forest fire smoke objects and flame objects, establish a mapping of the latitude, longitude, and altitude of the smoke objects and flame objects to the three-dimensional grid position code, that is, realize the correspondence and mutual conversion between video pixel coordinates and three-dimensional position codes, and after the conversion, accurately locate the forest fire driven by the video three-dimensional grid.
2. A forest fire detection and location method based on high-point monitoring video according to claim 1, characterized in that: The specific steps of step 1 are: Step 1.1: Based on the acquired high-point monitoring video, an all-weather forest fire database based on the forest fire classification system is established through "rough annotation-rendering-training-feedback-fine-tuning-enhancement". The specific steps are as follows: Step 1.11, manually analyze the characteristic expressions of smoke and fire in the forest fire scene in the high-point monitoring video, and preliminarily establish a rough annotation database through manual annotation, where the features include color features, shape features and texture features. Color refers to the analysis of its corresponding color histogram, color set, color moment and color aggregation vector. The shape is obtained by using the boundary feature method, Fourier shape descriptor method, shape geometric parameter method and finite element method. The texture is obtained by using the gray level co-occurrence matrix, energy spectrum function, random field model, autoregressive texture model and wavelet transform analysis; Step 1.12, artificially analyze the feature heterogeneity caused by different types of interference in the forest fire scene in the high-point monitoring video, and render the data in the coarse annotation database in a diversified manner. The different types refer to the classification of forest fire scenes in the high-point monitoring video into coniferous forest fire, mixed coniferous and broad-leaved forest fire and broad-leaved forest fire according to different types of forest land; the classification into surface fire, crown fire and underground fire according to different locations of fire starting points; the classification into forest fire warning, general forest fire, major forest fire and extremely large forest fire according to different affected forest areas; the classification into daytime forest fire and nighttime forest fire according to different times of occurrence of forest fire; the feature heterogeneity includes light intensity, scale difference, smoke concentration, and smoke-like and fire-like objects; Step 1.13: Use the neural network model to learn the knowledge of the coarsely labeled database, detect unlabeled data and feedback the misclassification, fine-tune the data, and enhance the data through the Albumentations tool; after enhancement, if the requirements are met, a forest fire detection dataset with diversified features is obtained, otherwise, go to step 1.11 and execute again; Step 1.2: Train a multi-scale and multi-dimensional feature extraction network based on the forest fire detection dataset, and input the high-point monitoring video to be identified into the trained multi-scale and multi-dimensional feature extraction network to obtain the smoke and flame object detection frames, and at the same time calculate the two-dimensional pixel coordinates of the vertices of the flame detection frame, and calculate the center two-dimensional pixel coordinates of the detection frame based on the two-dimensional pixel coordinates of the vertices of the flame, and finally obtain the detection frames of the smoke object and the flame object, as well as the center two-dimensional pixel coordinates of the flame object.
3. A forest fire detection and positioning system based on high-point monitoring video, characterized in that: The steps include: Network construction and detection module: A forest fire detection dataset is constructed based on the acquired high-point monitoring videos, and a multi-scale and multi-dimensional feature extraction network that integrates video spatial features and temporal features is trained to identify the detection frames of smoke and flames in the high-point monitoring videos to be identified. Finally, the detection frames of smoke objects and flame objects and the center two-dimensional pixel coordinates of flame objects in each frame image are obtained; Forest fire precise positioning module: Precisely locate forest fires driven by video stereo grid based on the detection frames of smoke objects and flame objects and the central two-dimensional pixel coordinates of flame objects in each frame image; The multi-scale and multi-dimensional feature extraction network integrating video spatial features and temporal features constructed in the network construction and detection module includes an input layer, a Focus module, a first Conv module, a global-local feature extraction module, a second Conv module, a deep-shallow feature extraction module, a third Conv module, a temporal neural unit, a fourth Conv module, a pooling module, a depth and receptive field enhancement module and an output layer connected in sequence, wherein the first Conv module, the second Conv module, the third Conv module and the fourth Conv module are respectively convolution modules composed of Conv2d, BN layer and SILU connected in sequence; The global-local feature extraction module includes a local feature extraction module and a global feature extraction module respectively connected to the first Conv module, a 3×3 convolution layer that receives the outputs of the local feature extraction module and the global feature extraction module and performs an addition operation, and a 1×1 convolution layer sequentially connected to the 3×3 convolution layer, wherein the local feature extraction module includes a 3×3 convolution layer and a 1×1 convolution layer that respectively perform convolution processing on the input feature map, a batch normalization layer respectively connected to the 3×3 convolution layer and the 1×1 convolution layer, and the results of the outputs of the two batch normalization layers are added to obtain local features. The global feature extraction module includes sequentially performing size transformation, linearization operation and projection layer mapping operation on the input feature map to obtain feature map Q, feature map K and feature map V, and then performing multiplication operation on the results obtained after depth normalization processing of feature map Q and feature map K respectively, and the result obtained after the multiplication operation is multiplied with the feature map V, and then the size transformation is performed and each pixel point of the transformed feature map is equivalent to several pixels in the original input image, and finally the global feature is obtained; The deep-shallow feature extraction module includes a fifth Conv module connected to the second Conv module, two 3×3 convolutional layers with a step size of 1, a 3×3 convolutional layer with a step size of 2, and a 3×3 convolutional layer with a step size of 5, which are respectively connected to the fifth Conv module in sequence, and the two 3×3 convolutional layers with a step size of 5 are respectively multiplied by the output result of the fifth Conv module, and then the result obtained by the multiplication operation is added to the output result of the fifth Conv module, and the results obtained by the two addition operations are connected in series to obtain the output result, wherein the fifth Conv module is a convolutional module composed of a Conv2d, a BN layer, and a SILU connected in sequence; The time series neural unit receives the hidden layer state vector a at time t-1 after activation output by the third Conv module t-1 and the vector x at time t t , and respectively t-1 and x t With V ah and V xh Perform a multiplication operation, and then add the two multiplication results to b h Perform the addition operation to obtain the hidden layer state h t , and then the hidden layer state is processed by the hyperbolic tangent function tanh to obtain the hidden layer state vector a at time t after activation t And output, at the same time a t With V ao Perform a multiplication operation, and the result of the multiplication operation is the same as b o Perform the addition operation to obtain the state vector c of the output node t , c t After softmax calculation, it is converted into an output label vector Among them, V xh Represents the weight matrix from K input nodes to N hidden nodes, V ah It represents the weight matrix connecting N hidden nodes at time t-1 to N hidden nodes at time t, b h represents the hidden layer weight matrix before activation, b o Represents the weight matrix of the activated hidden layer, V ao Represents the weight matrix from the activated input node to the hidden node; The specific implementation steps of the forest fire accurate positioning module are: Step 2.1: Establish different preliminary fire point location methods based on the diffusion characteristics of different forest fire smoke and flames. The specific steps are as follows: Step 2.11, using the optical flow method to analyze the diffusion characteristics of smoke and flames in the forest fire detection data set, that is, by calculating the histogram of optical flow intensity and optical flow direction angle, the diffusion model of forest fire smoke and flames is divided into triangular diffusion model, diffuse diffusion model and radiation diffusion model; The formula for optical flow intensity and optical flow direction angle is: L(i,j)=u(i,j) 2 +v(i,j) 2 Among them, L(i,j) represents the intensity of optical flow, α(i,j) represents the direction angle of optical flow, u(i,j) and v(i,j) represent the horizontal and vertical optical flow vectors at the pixel point (i,j), respectively. If both the intensity of optical flow and the direction angle of optical flow are concentratedly distributed, it is a triangular diffusion model, if they are irregularly distributed, it is a diffuse diffusion model, and if they are uniformly distributed, it is a radiation diffusion model. Step 2.12, for different diffusion models, establish different preliminary ignition point positioning methods, including a boundary-centerline characteristic line positioning method for a triangular diffusion model, a centroid shift positioning method for a diffuse diffusion model, and a discrete seed point positioning method for a radiation diffusion model; Step 2.2: A forest fire location method combining the forest fire smoke diffusion model and the video stereo grid is proposed. The specific steps are as follows: Step 2.21, for different diffusion models, simulate and establish different simulation motion models, and map the diffusion of smoke and flames in the real world to the digital three-dimensional model from the aspects of diffusion speed and direction, diffusion mode, and spatial topological relationship constraints, that is, through mathematical calculation combined with image processing technology, obtain the diffusion speed and direction of the simulation motion model, and then combine the diffusion mode and spatial topological relationship constraints of different diffusion models to map the smoke and flames of the forest fire in the real world to the digital three-dimensional model; Step 2.22, based on the geographic space topological relationship analysis method, analyze the spatial topological relationship of adjacency, association and inclusion of smoke, flames and the forest structure itself in the digital three-dimensional model, and perform a spatial topological semantic description thereof; Step 2.23, according to the high-point monitoring camera parameters, perform camera calibration and distortion correction. Under the premise of the detection frame constraints of the smoke object and the flame object, use the Bwboundaries edge extraction function to extract the boundaries of the smoke object and the flame object, and then combine the smoke centerline to obtain the diffusion model and different fire point preliminary positioning methods to achieve preliminary positioning of the smoke object in the two-dimensional image space. At the same time, preliminary positioning is performed based on the two-dimensional coordinates of the center point of the flame object. The camera parameters include the camera's pitch angle, yaw angle and camera height. The smoke centerline is calculated after extracting the smoke edge and determining the smoke diffusion movement trend. The midpoint of all edge points of the forest fire smoke is calculated, and the slope of the midpoint and the direction of smoke movement are formed into a straight line. The smoke edge point is then separated into two left and right fitting edges, that is, the final straight line is the center line of the smoke. Step 2.24, using the imaging mechanism of the high-point monitoring camera from three-dimensional space to two-dimensional plane, combined with the digital elevation model, the image coordinate system is converted to obtain the position information in the camera and world coordinate systems, and a reference point is set in the physical space. The coordinate inverse calculation model of the pixel-image-camera-world coordinate system is established through the reference coordinates, and the preliminary positioning of the smoke object and the flame object obtained by combining the constraints of the spatial topological semantic description and the preliminary positioning is realized to realize the three-dimensional spatial positioning of the smoke and flame objects of the forest fire; Step 2.25: Based on the three-dimensional spatial positioning of forest fire smoke objects and flame objects, establish a mapping of the latitude, longitude, and altitude of the smoke objects and flame objects to the three-dimensional grid position code, that is, realize the correspondence and mutual conversion between video pixel coordinates and three-dimensional position codes, and after the conversion, accurately locate the forest fire driven by the video three-dimensional grid.
4. A forest fire detection and positioning system based on high-point monitoring video according to claim 3, characterized in that: The specific implementation steps of the network construction and detection module are: Step 1.1: Based on the acquired high-point monitoring video, an all-weather forest fire database based on the forest fire classification system is established through "rough annotation-rendering-training-feedback-fine-tuning-enhancement". The specific steps are as follows: Step 1.11, manually analyze the characteristic expressions of smoke and fire in the forest fire scene in the high-point monitoring video, and preliminarily establish a rough annotation database through manual annotation, where the features include color features, shape features and texture features. Color refers to the analysis of its corresponding color histogram, color set, color moment and color aggregation vector. The shape is obtained by using the boundary feature method, Fourier shape descriptor method, shape geometric parameter method and finite element method. The texture is obtained by using the gray level co-occurrence matrix, energy spectrum function, random field model, autoregressive texture model and wavelet transform analysis; Step 1.12, artificially analyze the feature heterogeneity caused by different types of interference in the forest fire scene in the high-point monitoring video, and render the data in the coarse annotation database in a diversified manner. The different types refer to the classification of forest fire scenes in the high-point monitoring video into coniferous forest fire, mixed coniferous and broad-leaved forest fire and broad-leaved forest fire according to different types of forest land; the classification into surface fire, crown fire and underground fire according to different locations of fire starting points; the classification into forest fire warning, general forest fire, major forest fire and extremely large forest fire according to different affected forest areas; the classification into daytime forest fire and nighttime forest fire according to different times of occurrence of forest fire; the feature heterogeneity includes light intensity, scale difference, smoke concentration, and smoke-like and fire-like objects; Step 1.13: Use the neural network model to learn the knowledge of the coarsely labeled database, detect unlabeled data and feedback the misclassification, fine-tune the data, and enhance the data through the Albumentations tool; after enhancement, if the requirements are met, a forest fire detection dataset with diversified features is obtained, otherwise, go to step 1.11 and execute again; Step 1.2: Train a multi-scale and multi-dimensional feature extraction network based on the forest fire detection dataset, and input the high-point monitoring video to be identified into the trained multi-scale and multi-dimensional feature extraction network to obtain the smoke and flame object detection frames, and at the same time calculate the two-dimensional pixel coordinates of the vertices of the flame detection frame, and calculate the center two-dimensional pixel coordinates of the detection frame based on the two-dimensional pixel coordinates of the vertices of the flame, and finally obtain the detection frames of the smoke object and the flame object, as well as the center two-dimensional pixel coordinates of the flame object.
Citation Information
Cited By
Active flame identification and positioning method, system and equipment
CN119723342A
