Automatic Forest Fire Detection Based - On A Machine Learning and Image - Analysis Pipeline
Automatic Forest Fire Detection Based - On A Machine Learning and Image - Analysis Pipeline
1 Introduction
In southern Europe, and more specifically in the Mediterranean basin, the forest
fires are a top concern as the summer approaches. In fact, the risk period of
forest fires has been increasing in Portugal [1], regardless of the year season,
as a result of climate change fueled by global warming [2]. The consequences
c Springer Nature Switzerland AG 2019
Á. Rocha et al. (Eds.): WorldCIST'19 2019, AISC 931, pp. 240–251, 2019.
https://doi.org/10.1007/978-3-030-16184-2_24
Automatic Forest Fire Detection Based on a Machine Learning 241
Most of the systems presented in Table 1 detect both fire flames and the
presence of smoke, however, some do not address nocturnal scenarios. All the
systems exhibit high precision (above 90%) which proves the ability of the DCNN
in the detection of forest fires. It is noted that all systems only mention the
adoption of a large dataset. They do not perform any analysis of the image set,
in order to understand what types of situations are used and which ones should
be added in order to make the dataset more comprehensive. Given that the
systems presented used different datasets, it is not fair to compare their relative
precision. Still, the best results in terms of accuracy were obtained in [6], which
is based on the DCNN Inception-V3. However, the dataset used does not address
several forest scenarios, small fires and night scenarios.
of a set of color indexes. A method for flame detection based on image process-
ing is shown in [10]. Here, flame detection is achieved by manipulating RGB
and YCrCb color spaces. The algorithm consists of seven rules to be applied
sequentially. Another method is proposed in [11] which seeks to improve the
accuracy of flames detection through fixed surveillance cameras. The system
uses two parallel image streams, one for the detection of the flame and the other
for confirmation of the results. The analysis of the HSI, YCbCr and RGB color
spaces of dynamic textures and spatial-temporal frequency are used in the first
stream, while in the second stream a Background Subtraction algorithm is used
to detect and trace moving objects.
Smoke Detection: A method for smoke detection based on color and motion
analysis is presented in [12]. This system provides rapid detection in daytime
scenarios and is designed to allow multi-camera signal processing without large
computational complexities. The detection process involves signal preprocess-
ing, feature extraction and classification. In [13] a method is proposed based on
the segmentation of zones with movement, extraction of characteristics of the
smoke and, finally, a classifier. For the segmentation of motion zones, the Visual
Background extractor method is used. Next, the detection is based on certain
characteristics, such as the high frequency energy based on the wave transfor-
mation, the consistency and the direction of the smoke movement. Finally, in
[14], an approach is proposed to detect smoke through static surveillance cam-
eras. The Support Vector Machine classification template is used based on the
previously obtained data. They perform a preprocessing to reduce the noise and
to divide the image into small blocks. The idea is to determine the suspected
regions of smoke based on the detection of color and slow movements and, finally,
to analyze the regions through a co-occurrence matrix. The co-occurrence matrix
is aimed at detecting three characteristics that are representative of the presence
of smoke, such as contrast, energy and correlation.
each system uses a different dataset, it is not fair to directly compare their pre-
cision, but other features such as their cost of implementation or the quality of
applied techniques can be evaluated. Daytime flame detection systems [9–11], in
general, have a lower implementation cost than those that perform smoke detec-
tion [12–14]. This is because the process of identifying the smoke characteristics
is usually more complex than simply applying color rules, as is the case in some
systems [9,10] in the detection of flames.
Regarding the quality of the used dataset, that is, if it is vast and varied
in terms of situations, the [9,12,14] systems are the ones that best meet these
requirements.
and fires with several dimensions, among other features. In order to keep track of
all these variants, a metadata set of information was created, containing all the
characteristics associated to each image. Table 4 depicts the variables and asso-
ciated values considered in the collected metadata information. The advantage
of using this metadata is the possibility of performing various tests depending on
the desired characteristics. With this, one could verify, to what extent, a certain
characteristic negatively influences the performance of the classifier.
Variables Values
Mode Day; Night
Flames 0; 1
Smoke 0; 1
Clouds 0; 1
Fog 0; 1
Human elements 0; 1
Terrestrial surface type 0 (other); 1 (forest)
Vegetation color 0 (other); 1 (green)
Fire stage None; Initial; Advanced
The images have mainly, but not exclusively, an aerial perspective and were
taken away from the area of interest. Due to the adoption of this research crite-
rion, the images available for the collection were more restricted. In addition, it
was a concern to collect as many images as possible with initial fire, both for day
and night scenarios, since the main purpose is that the system is able to detect
small spots of fire. None of the images used were submitted to any preprocessing,
and therefore they possess their original varied resolutions.
Begin
Image
Yes Estimation of
Feature Flames
Images
Extraction detected
area
No
Image just
End Alert
with smoke
Feature Extraction
Inception-V3
as the input basis for the next classification module. All DCNNs have a descriptor
extraction layer and a classification layer at the end of their network. However, it
is possible to disassociate the classification layer in order to test various learning
algorithms, to find the best solution. Briefly, this module extracts from each
image a numerical vector of features. Two different images will originate two
different vectors. To acquire a numerical representation of the images, they are
fed to the DCNN Inception-V3, which in this case will discard the classification
layer and consider only the output of the penultimate layer of the network.
This layer returns a vector with 2048 descriptive values of each image (cf. base
extracted features) (Fig. 3).
Fire !
Logistic
Regression
No Fire !
3.4 Classification
The classification module follows the descriptor extraction module, receiving as
input the 2048 descriptors of each image. The goal is now to obtain a binary
response, whether or not there is a fire in the image, provided the descriptors
supplied as input to the classifier. The classifier model was tuned by a training
stage. Generically speaking, the training followed a supervised learning model by
using a set of input images, for which, the output associated class (of each image)
was known (cf. training set). After testing several classifiers, it was concluded
Automatic Forest Fire Detection Based on a Machine Learning 247
that the Logistic Regression (LR) model offered the better performance for our
purpose. However, since the set of images has both daytime and nighttime situ-
ations, and taking into account the significant differences between them, it was
decided to use separated classifiers for day and night images.
4 Evaluation
With respect to the classification task of the system, two different evaluations
are carried out. On the one hand we intend to analyze the performance of the
classification model when trained with the whole set of images. On the other
hand, a second evaluation is carried out to study the influence of each character-
istic on the classification task, with the help of metadata. Finally, the system’s
ability to correctly detect flaming areas is analyzed.
Through the tests performed with the metadata variables, it was verified
that, for daily scenarios, FP situations are especially due to the presence of fog.
FN situations, however, occur mainly in cases of very small initial fires. During
the night, it has been proven that artificial lighting contributes to the increase
in the number of FP cases.
Automatic Forest Fire Detection Based on a Machine Learning 249
Considering that the CAFE approach was used to detect the flaming zones, the
tests performed attempted to compare the CAFE solution, that is, the PLT
component followed by the application of the FFDI block, versus the use of
FFDI only (FFDI [9] approach). The images used come from 4 daytime scenarios
with different characteristics, as shown in the Table 6, which allows to evaluate
the CAFE approach in different situations. The detailed methodology used is
described in a previous work [15].
Table 7. CAFE versus FDDI approach in daily scenarios (TP and FP results)
5 Conclusion
The results obtained after tests with the metadata, clarify that the presence
of fog during the day, and of artificial illumination lights at night, are the char-
acteristics with greater responsibility for the occurrence of false positives by the
classification model. They further clarify that detecting small fire spots on an
image is a challenging task and requires a more voluminous training set.
The estimation of the area of the flames is the last step to be applied in
this process of detection of forest fires. The proposal used, the CAFE, is an
improvement of an index used in the detection of flames, the great difference
being translated into a smaller number of false positives detected.
References
1. Gabinete do Secretário de Estado das Florestas e do Desenvolvimento Rural,
Despacho n.o 9081-E/2017 de 13 de Outubro, Portugal (2017)
2. de Rigo, D., Libertá, G., Houston Durrant, T., Artés Vivancos, T., San-Miguel-
Ayanz, J.: Forest fire danger extremes in Europe under climate change: variability
and uncertainty, Luxembourg (2017)
3. EUFOFINET: Project Detection Synthesis of Good Practices, Zvolen
4. Li, M., Xu, W., Xu, K.E., Fan, J., Hou, D.: Review of fire detection technologies
based on video image. J. Theor. Appl. Inf. Technol. 49(2), 700–707 (2013)
5. Alkhatib, A.A.A.: A review on forest fire detection techniques. Int. J. Distrib. Sens.
Netw. 10(3), 597368 (2014)
6. Huttner, V., Steffens, C.R., da Costa Botelho, S.S.: First response fire combat: deep
leaning based visible fire detection. In: 2017 Latin American Robotics Symposium
(LARS) and 2017 Brazilian Symposium on Robotics (SBR), pp. 1–6 (2017)
7. Sharma, J., Granmo, O., Goodwin, M., Fidje, J.T.: Deep convolutional neural net-
works for fire detection in images. In: Engineering Applications of Neural Networks,
vol. 744, pp. 183–193. Springer International Publishing (2017)
8. Lee, W., Kim, S., Lee, Y.-T., Lee, H.-W., Choi, M.: Deep neural networks for wild
fire detection with unmanned aerial vehicle. In: 2017 IEEE International Confer-
ence on Consumer Electronics (ICCE), vol. 10132 LNCS, pp. 252–253 (2017)
9. Cruz, H., Eckert, M., Meneses, J., Martı́nez, J.-F.: Efficient forest fire detection
index for application in unmanned aerial systems (UASs). Sensors 16(6), 893
(2016)
10. Vipin, V.: Image processing based forest fire detection. Int. J. Emerg. Technol.
Adv. Eng. 2(2), 87–95 (2012)
11. Gomes, P., Santana, P., Barata, J.: A vision-based approach to fire detection. Int.
J. Adv. Rob. Syst. 11, 1–12 (2014)
12. Sedlak, V., Stopjakova, V., Brenkus, J.: A real-time method for smoke detection in
monitored forest areas. In: International Conference on Applied Electronics (AE),
pp. 1–6 (2017)
Automatic Forest Fire Detection Based on a Machine Learning 251
13. Cai, M., Lu, X., Wu, X., Feng, Y.: Intelligent video analysis-based forest fires
smoke detection algorithms. In: 2016 12th International Conference on Natural
Computation, Fuzzy Systems and Knowledge Discovery (ICNC-FSKD), pp. 1504–
1508 (2016)
14. Luu-Duc, H., Vo, D.T., Do-Hong, T.: Wildfire smoke detection based on co-
occurrence matrix and dynamic feature. In: International Conference on Advanced
Technologies for Communications (ATC), pp. 277–281 (2016)
15. Alves, J., Soares, C., Torres, J., Sobral, P., Moreira, R.S.: Color algorithm for flame
exposure (CAFE). In: 2018 13th Iberian Conference on Information Systems and
Technologies (CISTI), pp. 1–7 (2018)