<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>ISE</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Performance Evaluation of Fire and Smoke Detection with Object based DNN Algorithm</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Jisang Moon</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Seongjin Lee</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Dept. of AI Convergence Engineering Gyeongsang National University</institution>
          ,
          <addr-line>Jinjusi</addr-line>
          ,
          <country country="KR">Korea</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Dept. of Aerospace and Software Engineering Gyeongsang National University</institution>
          ,
          <addr-line>Jinjusi</addr-line>
          ,
          <country country="KR">Korea</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2022</year>
      </pub-date>
      <volume>1</volume>
      <fpage>6</fpage>
      <lpage>9</lpage>
      <abstract>
        <p>The consequence of forest fire is so great that we need to prevent it from happening with all of our resources. However, the time and human resources required to cover all the forest is very high. In this paper, we use object based Deep Learning detection algorithm, YOLOV5, to address the issue of detecting forest fire and smoke. We collected 13,924 images of forest fire and smoke and manually labeled them. We used YOLOV5n to learn the features. We solved overfitting problem via mosaic data augmentation, non-transfer learning, and hyperparameter evolution. YOLOV5n shows that mAP 0.5 is about 14.1% higher than the oficial YOLOV5n model.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;YOLOV5</kwd>
        <kwd>Fire and Smoke Detection</kwd>
        <kwd>Data Augmentation</kwd>
        <kwd>Non-Transfer Learning</kwd>
        <kwd>Hyperparameter Tuning</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
    </sec>
    <sec id="sec-2">
      <title>2. RELATED WORK</title>
      <p>
        The scale of damage done by a forest fire depends greatly Lee et al [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] said the occurrence of forest fires in
on the time between identification of the fire and ini- Korea is higher in seasons other than summer, with
tial response to mitigate the fire. The faster the report an increase in frequency in winter in the north due to
is propagated to the authorities, the higher the chances diferences in plant growth periods. Human misfire
to contain the fire from spreading the whole forest. Al- is the primary cause, but the diversity of causes is
though the main cause of the fire is from the mountain increasing, particularly arson. The frequency of forest
trackers, many of the cases are from the unidentified ifres is increasing, and the damage is greater due to the
sources. The surveillance area is so wide that the au- accumulation of forest resources. Large forest fires are
thorities cannot aford the cost to monitor the area. The increasing in the West Coast area, with no safe zone in
research community have come up with methods to de- the country.
tect fire with CCTVs, infrared cameras, IoT fire detection
sensors. Behind such methods is image processing tech- Seo et al [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] proposed fire detection algorithm
niques. These techniques show alarm delays and high exploiting image information. They changed the RGB to
false alarm rates. In this paper, we exploit object based HSV channel to distinguish and identify flames. Since
Deep Learning Detection method, YOLOV5n, to address their method is color dependent, it shows vulnerability
the issue of detecting forest fire and smoke. We collected in objects with red color. They avoided detecting
13,924 images of fire and smoke and manually labeled the wrong object by setting the threshold high to ignore the
images. Then, we used YOLOV5n to learn the features. small contours. The obvious issue with the approach
To solve the overfitting problem, we adopted Mosaic is that it cannot detect small fires or the fire in early stage.
augmentation [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], non-transfer learning [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], and
hyperparameter evolution [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. Overfitting was solved, and
mAP 0.5 is about 14.1% higher than the oficial YOLOV5n
model.
      </p>
      <p>
        Lim et al [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] makes use of CCTV to detect fire. They
used CCTV to capture the image and CNN to detect
the fire. They used horizontal and vertical flipping, and
cropping to prevent the overfitting. They show 90% of
test accuracy but with unstable false alarm rate.
used other sensors and integrated information with
databases and models to reduce false alarms. Each
node was equipped with multiple sensors to detect fire
incidents. Overall, sensor networks are the best solution
for accurate and reliable forest fire detection.
      </p>
      <p>Precision is a performance metric commonly used in
machine learning and information retrieval to evaluate</p>
      <p>
        Lee et al [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] discusses the development of a wildfire de- the accuracy of a model’s positive predictions. It is
tection system utilizing unmanned aerial vehicles (UAVs). defined as the ratio of true positive predictions to the
The system uses deep convolutional neural networks to total number of positive predictions made by the model.
detect wildfires in aerial still photographs. The evaluation The precision can be expressed mathematically as
of the system shows that GoogLeNet and the modified follows:
VGG13 achieved high accuracies. The system can be used
for early detection of wildfires and is capable of detecting Precision = TP / (TP + FP)
ifres on both ground and onboard UAV systems using a
mobile GPU.
      </p>
      <sec id="sec-2-1">
        <title>3.3. RECALL</title>
        <p>images with high precision and recall.</p>
      </sec>
      <sec id="sec-2-2">
        <title>3.2. PRECISION</title>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. METRIC</title>
      <p>3.1. LOSS
Loss is an evaluation metric used in deep learning
models to measure the diference between the predicted
output and the actual output of the model. YOLOv5
has three diferent loss functions that are used during
training to optimize the model parameters and improve
its performance. These losses are:</p>
      <p>1. Objectness loss: This loss function measures the
diference between the predicted and ground truth
objectness scores. The objectness score is a measure of
how confident the model is that there is an object in
a particular location in the image. The objectness loss
penalizes the model for incorrect objectness predictions
and encourages it to correctly identify objects in the
image.</p>
      <p>2. Classification loss: This loss function measures
the diference between the predicted and ground
truth class probabilities. YOLOv5 can detect multiple
objects in a single image, and the classification loss
is used to classify each of the detected objects. The
classification loss penalizes the model for incorrect class
predictions and encourages it to correctly classify objects.</p>
      <p>3. Localization loss: This loss function measures
the diference between the predicted and ground truth
bounding box coordinates. The bounding box is a
rectangle that surrounds an object in the image, and
the localization loss penalizes the model for incorrect
bounding box predictions and encourages it to accurately
locate objects in the image.</p>
      <p>By optimizing these three losses during training,
YOLOv5 can accurately detect and classify objects in
Recall is a metric that measures the ability of a machine
learning model to correctly identify all relevant instances
of a class. It is calculated as the ratio of true positives to
the sum of true positives and false negatives, as shown
below:
Recall = TP / (TP + FN)</p>
      <sec id="sec-3-1">
        <title>3.4. PR-curve</title>
        <p>The PR (Precision-Recall) curve is a graphical
representation of the precision and recall of a deep learning model
for diferent decision thresholds. Precision is the
proportion of true positive predictions among all positive
predictions made by the model, and recall is the
proportion of true positive predictions among all actual positive
cases. The PR curve is created by plotting precision on
the y-axis and recall on the x-axis for diferent decision
thresholds, and a high AUC-PR indicates good model
performance in identifying positive cases while minimizing
false positives. The PR curve is often used to evaluate
the performance of binary classification models.
3.5. MAP
MAP (Mean Average Precision) is an evaluation metric
for object detection models that combines precision and
recall to measure the overall performance of a model at
detecting objects of diferent classes in an image. The
AP (Average Precision) for a particular class is calculated
by plotting the precision-recall curve for that class and
calculating the area under the curve, which is then
averaged across all classes to get the MAP. A high MAP
score indicates good performance in detecting objects
of diferent classes in the image, while a low MAP score
indicates poor performance. MAP is a useful evaluation
metric because it takes into account the precision and
recall of each class separately and combines them into a
single score.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. PROPOSED SCHEME</title>
      <p>of learning with non-transfer learning and adopting
hyperparameter evolution. It shows that the results are
stabilized compared to the Figure. 1(a) and 1(b). It also
shows that overfitting is reduced.</p>
      <p>
        Although we have managed to collect over 22,000 labels
to learn, it is still not enough to learn all the various
scenarios. There is also an issue of dificulties in detecting
small objects in YOLOV5. To provide remedy to the issue,
we used Mosaic augmentation [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Mosaic
Augmentation is one of the image augmentation techniques, which
makes four images into one image. It also has advantage
of working well with small batch size. The size of each
image is chosen at random and the images are cropped
while making a mosaic to fit into the dimension.
      </p>
      <sec id="sec-4-1">
        <title>4.2. Transfer Learning vs Non Transfer</title>
      </sec>
      <sec id="sec-4-2">
        <title>Learning</title>
        <p>
          Transfer Learning [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ] allows you to quickly reach high
accuracy based on pretrained features and applying those
weights to the given dataset. Although YOLOV5 provides
pretrained model based on COCO dataset, the dataset
does not include forest fire and smokes. When there
are similarities in the pretrained dataset and the target
dataset, the transfer learning approach could result in
high accuracy but when there is little or no similarities
then, it results in relearning of the dataset from the
beginning losing all of its merits. Figure. 1(a) and Figure.
1(b) show the comparison between adopting the transfer
learning and without the transfer learning. Although
the val/box_loss and val/obj_loss is slightly increased, the
overall result shows that adopting non-transfer learning
is better than adopting the transfer learning.
        </p>
      </sec>
      <sec id="sec-4-3">
        <title>4.3. Hyperparameter Evolution</title>
        <p>
          Hyperparameter Evolution [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ] is a method of optimizing
Hyperparameters using Genetic Algorithm. In this work,
mutations that generate new ofspring are used based
on the best combination of parents of all previous
generations. Generation is conducted 300 times, 10 epochs
at a time. Figure. 1(c) shows the result of 200 epochs
        </p>
        <sec id="sec-4-3-1">
          <title>Class</title>
          <p>All</p>
          <p>Fire
Smoke
All</p>
          <p>Fire
Smoke</p>
        </sec>
        <sec id="sec-4-3-2">
          <title>Image</title>
          <p>2,268
2,268
2,268</p>
        </sec>
        <sec id="sec-4-3-3">
          <title>Recall</title>
          <p>0.513
0.670
0.356</p>
        </sec>
        <sec id="sec-4-3-4">
          <title>Evolution Index</title>
          <p>
            Instances Precision
5,932 0.570
4,281 0.595
1,651 0.545
mAP 0.5 mAP 0.5:0.95
0.532 0.259
0.674 0.377
0.389 0.142
In this paper, a deep learning model, YOLOV5n was used
for fire and smoke detection. YOLOV5n typically have
overfitting issue, and we applied three techniques to
address the issue. We exploit Data Augmentation [
            <xref ref-type="bibr" rid="ref1">1</xref>
            ],
NonTransfer Learning [
            <xref ref-type="bibr" rid="ref2">2</xref>
            ], and Hyperparameter Evolution [
            <xref ref-type="bibr" rid="ref3">3</xref>
            ].
We compared the performance of the oficial YOLOV5n
model that uses coco dataset and our model. The
result shows that mAP averaged over IOU thresholds in
[0.5:0.05:0.95] in the proposed model is about 7.5% lower
than the oficial model, but it is about 14.1% higher for
mAP 0.5. We find that the mAP of the smoke class is low.
The reason behind the low score is that the number of
labels for the smoke is about 1/3 of the fire labels. For
the future work, we need to acquire smoke datasets and
work on improving the mAP score for smoke objects
using various data augment methods.
          </p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>6. ACKNOWLEDGEMENT</title>
      <p>This study was carried out with the support of ‘R&amp;D
Program for Forest Science Technology (Project No.
2021344A00-2223-CD01)’ provided by Korea Forest
Service(Korea Forestry Promotion Institute).</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>A.</given-names>
            <surname>Bochkovskiy</surname>
          </string-name>
          , C.-Y. Wang, H.
          <string-name>
            <surname>-Y. M. Liao</surname>
          </string-name>
          ,
          <article-title>Yolov4: Optimal speed and accuracy of object detection</article-title>
          , arXiv preprint arXiv:
          <year>2004</year>
          .
          <volume>10934</volume>
          (
          <year>2020</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>H.</given-names>
            <surname>Tercan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Guajardo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Heinisch</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Thiele</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Hopmann</surname>
          </string-name>
          , T. Meisen,
          <article-title>Transfer-learning: Bridging the gap between real and simulation data for machine learning in injection molding</article-title>
          ,
          <source>Procedia Cirp</source>
          <volume>72</volume>
          (
          <year>2018</year>
          )
          <fpage>185</fpage>
          -
          <lpage>190</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <issue>YOLOv5</issue>
          ,
          <string-name>
            <surname>Hyperparameter</surname>
            <given-names>evolution</given-names>
          </string-name>
          ,
          <year>2020</year>
          . URL: https://github.com/ultralytics/yolov5/issues/607.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>S.-Y.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.-P.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <article-title>Analysis of forest fire occurrence in korea</article-title>
          ,
          <source>Fire Science and Engineering</source>
          <volume>20</volume>
          (
          <year>2006</year>
          )
          <fpage>54</fpage>
          -
          <lpage>63</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>M.-S.</given-names>
            <surname>Seo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C. H.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <article-title>A forest fire detection algorithm using image information</article-title>
          ,
          <source>Journal of the Institute of Convergence Signal Processing</source>
          <volume>20</volume>
          (
          <year>2019</year>
          )
          <fpage>159</fpage>
          -
          <lpage>164</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>J.</given-names>
            <surname>Yim</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Park</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Kim</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.-T.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <article-title>Deep learning based cctv fire detection system</article-title>
          ,
          <source>in: Proceedings of the Korean Society of Broadcast Engineers Conference, The Korean Institute of Broadcast and Media Engineers</source>
          ,
          <year>2017</year>
          , pp.
          <fpage>139</fpage>
          -
          <lpage>141</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>A. A.</given-names>
            <surname>Alkhatib</surname>
          </string-name>
          ,
          <article-title>A review on forest fire detection techniques</article-title>
          ,
          <source>International Journal of Distributed Sensor Networks</source>
          <volume>10</volume>
          (
          <year>2014</year>
          )
          <fpage>597368</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>W.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Kim</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.-T.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.-W.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Choi</surname>
          </string-name>
          ,
          <article-title>Deep neural networks for wild fire detection with unmanned aerial vehicle</article-title>
          ,
          <source>in: 2017 IEEE international conference on consumer electronics (ICCE)</source>
          , IEEE,
          <year>2017</year>
          , pp.
          <fpage>252</fpage>
          -
          <lpage>253</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>