<!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 />
    <article-meta>
      <title-group>
        <article-title>Fire Patrol Path Planning Based on Improved Ant Colony Algorithm</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Xingchao Zhang</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Tao Tao</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Huiyi Zhang</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>School of Computer Science &amp; Technology, Anhui University of Technology</institution>
          ,
          <addr-line>Ma'anshan 243032</addr-line>
          ,
          <country country="CN">China</country>
        </aff>
      </contrib-group>
      <fpage>314</fpage>
      <lpage>318</lpage>
      <abstract>
        <p>With the rapid development of social economy and science and technology, fire hazards in all walks of life emerge in an endless stream, and the difficulty of fire prevention and control is gradually increasing. Aiming at the problem of fire patrol path planning, based on the classic ant colony algorithm, an adaptive improved ant colony algorithm is proposed to solve the problems of slow convergence and low efficiency of the classical ant colony algorithm. Matlab simulation experiments show that the ant colony algorithm can improve the efficiency of the algorithm while ensuring the found of the optimal path after adaptively changing the pheromone volatile factor and differentially processing the pheromone constant.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;ant colony algorithm</kwd>
        <kwd>route plan</kwd>
        <kwd>pheromone</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>1. Introduction1</p>
    </sec>
    <sec id="sec-2">
      <title>2. Fire Patrol Route Planning</title>
    </sec>
    <sec id="sec-3">
      <title>2.1. Problem Modeling</title>
      <p>The problem of fire inspection path planning can be described as: a fire truck starts from the fire
station to check whether the fire hydrants and fire extinguishers in each building are in normal operation.
After completing the inspection task, it returns to the fire station. The distance between the fire station
and each inspection target is known. And formulating a reasonable inspection route can enable the
inspectors to complete the task smoothly and quickly. The fire inspection path planning problem is
described as: an undirected graph G (V, E), where V is the set of all inspection targets, and E is the set
of edges between the targets.</p>
    </sec>
    <sec id="sec-4">
      <title>2.2. Traditional Ant Colony Algorithm</title>
      <p>Ant colony algorithm is a probabilistic algorithm used to find optimal paths. Marco Dorigo proposed
the algorithm in his doctoral dissertation in 1992 and was inspired by the behavior of ants to find paths
in their search for food[6]. It was originally designed to solve the traveling salesman problem and was
later applied to various aspects of the optimization problem domain[7].</p>
      <p>The basic principle of the ant algorithm is that in the process of foraging, an ant can release a
substance called " pheromone " on the path of its travels. And the pheromone itself will continue to
volatilize over time. In the process of searching for food, ants choose the direction of movement
according to the concentration of pheromone and finally reach the food site. The core functions of the
traditional ant colony algorithm are the state transition probability function and pheromone update
function. The state transition probability indicates that ants always tend to move in the direction of high
pheromone concentration when choosing a path. The pheromone update can be understood as the
pheromone concentration on the path from i to j at a certain time is equal to the remaining pheromone
concentration after volatilization at the previous time, plus the sum of the pheromone concentrations
released by all ants on this path in the previous period.</p>
      <p>•</p>
      <p>
        State transition probability formula
(
        <xref ref-type="bibr" rid="ref1">1</xref>
        )
(2)
(3)
(4)

=
∑∈
 ( ) ∗
      </p>
      <p>()
0
 ( ) ∗ 
()</p>
      <p>∈ 
other</p>
      <p>Among them: 
1</p>
      <p>have not been visited.</p>
      <p>•</p>
      <p>Pheromone update formula</p>
      <p>is the probability of the kth ant from i to j at time t; α is the pheromone factor;
β the heuristic function factor;  (t) is the pheromone concentration from i to j at time t; 
() =
is the reciprocal of the path distance between two points i, j; 
is the set of nodes that
 ( + 1 ) =  ( ) ∗ (1 −  ) + ∆ ,
0 &lt;  &lt; 1
from i to j at time t; ∆
from i to j. The update method is as follows.</p>
      <p>Among them: ρ is the pheromone volatilization factor; 
( ) is the pheromone concentration
is the pheromone increment, that is, the sum of the pheromone left by m ants</p>
      <p>∆
Δτ ikj =  LK
= ∆
 Q



, (i, j) ∈ω</p>
      <p>k
0,</p>
      <p>other
Among them: Q is the pheromone constant; L
k is the total path length traversed by the kth ant;
ω k is the path traveled by the kth ant in this iteration.</p>
    </sec>
    <sec id="sec-5">
      <title>2.3. Improved Ant Colony Algorithm</title>
      <p>At present, the traditional ant colony algorithm exists some problems such as slow convergence
speed and easy falling into local optimum. The methods of algorithm improvement are mainly improved
from the aspects of the structure of the algorithm, the optimization of the parameters of the algorithm,
the way of pheromone initialization, and the rules of pheromone update. For example, Chen et al[8]
increased the randomness of the search by integrating the chaotic disturbance factor in the ant colony
algorithm; Yuan et al[9] combined simulated annealing algorithm and traditional ant colony algorithm
for path planning; Xu et al[10] improved the traditional ant colony algorithm by changing the state
transition probability and path selection strategy.
• Improve how pheromones are updated</p>
      <p>Pheromone renewal is a process of simulating the accumulation and volatilization of ant pheromones
over time in nature. The pheromone update rule of the traditional ant colony algorithm is aimed at the
ants reaching the destination, and the subsequent ants are easily misled by the ants on the worst path
releasing pheromone, which affects the final path planning effect. To better distinguish the pheromone
concentration on the path, the improvement idea based on the traditional ant colony algorithm in this
paper is to increase the pheromone on the optimal path and weaken the pheromone on the worst path in
each iteration, so that the ants can search for the best path. The concentration of pheromone released by
the kth ant on each path is equal. By comparing the total path length traveled by the kth ant with the
optimal path length in each generation, different pheromone enhancement coefficients are used to
distinguish the pheromone constant Q, to improve the optimality of path planning.
τ ij (t +1) =τ ij (t) * (1− p) + Δ*τ ij (5)
(6)
(7)
(8)
（9）
The coefficient ε is:</p>
      <p>m
Δ*τ ij =  Δ*τ k</p>
      <p>k =1 ij
 Q
Δ*τ k (t) = ε i L−k ，If ant k passes i, j
ij
0，other</p>
      <p>ε 1，Lk ≤ Lbs
ε i ε ，Lk &gt; Lbs</p>
      <p> 2</p>
      <p>Among them: ρ is the pheromone volatilization factor; ε i is the pheromone enhancement
coefficient; Lk is the total path length traversed by the kth ant.</p>
      <p>• Adaptive Volatility Coefficient</p>
      <p>The pheromone volatilization factor reflects the disappearance level of pheromone, and conversely
reflects the retention level of pheromone. The value of the pheromone volatilization factor affects the
global search ability and convergence speed of the algorithm. If it is too large, the pheromone volatilizes
too fast, which will easily cause the optimal path to be excluded. If it is too small, the difference in
pheromone content on each path will be small. The pheromone volatility factor of the traditional ant
colony algorithm is a constant, which is not conducive to the search of the optimal value. Therefore, by
adaptively changing the pheromone volatilization factor, if the current optimal path distance is less than
the last one, more pheromone needs to be left for the next generation of ants, and if it is greater than the
last one, more dilution is required to avoid subsequent ants repeat the same mistakes.
 ρ t+1 = ρ t , Lmin (t +1) ≤ Lm（int）

ρ t+1 = 0.75ρ t , Lmin (t +1) &gt; Lm（int）</p>
      <p>Among them: Lmin (t) is the shortest path at time t; Lmin (t + 1) is the shortest path at time t+1.</p>
    </sec>
    <sec id="sec-6">
      <title>2.4. Experimental Simulation and Analysis</title>
      <p>In this paper, the eil51 instance in the TSP international general TSPLIB data set is used to simulate
the fire inspection path planning. Dataset source:
http://elib.zib.de/pub/mptestdata/tsp/tsplib/tsp/eil51.tsp. The parameter values of the ant colony algorithm are different, and the
efficiency of the algorithm is also different. Therefore, after many tests, the appropriate parameter
values are determined as shown in Table 1 below.</p>
      <p>Table 1. Algorithm parameter settings
parameter name
number of ants
heuristic
value
150
3
pheromone factor</p>
      <sec id="sec-6-1">
        <title>Pheromone constant</title>
        <p>pheromone volatile factor</p>
      </sec>
      <sec id="sec-6-2">
        <title>Pheromone Enhancement Coefficient[1，1.5]</title>
      </sec>
      <sec id="sec-6-3">
        <title>The maximum number of iterations 150</title>
        <p>The comparison of the convergence process trajectories between the traditional ant colony algorithm
and the improved ant colony algorithm is shown in Figure 1; The worst path comparison is shown in
Figure 2; after 10 repeated experiments, the experimental results of the algorithm are shown in Table 2.</p>
        <p>(a)
Figure 2: Comparison of the shortest path between the two algorithms
(b)</p>
        <p>Figure 2 shows that the relationship between the optimal path length and iterations of traditional ant
colony algorithm and improved ant colony algorithm, respectively. It can be seen that the lowest point
of the iterative curve of the improved ant colony algorithm is below the lowest point of the iterative
curve of the traditional ant colony algorithm, which indicates that the optimal path length found by the
improved ant colony algorithm is better than the optimal path found by the traditional ant colony
algorithm. After 10 repeated experiments, it can be seen from Table 2 that the improved ant colony
algorithm is slightly better than the traditional algorithm in terms of average path length and average
optimization time, and the optimal path searched is also the shortest. Therefore, the improved ant colony
algorithm is more stable than the traditional algorithm, which can help fire inspection vehicles quickly
find the optimal route and improve work efficiency.</p>
      </sec>
    </sec>
    <sec id="sec-7">
      <title>3. Conclusion</title>
      <p>In this paper, the pheromone constant Q is differentiated based on the traditional ant colony
algorithm, which is very helpful for distinguishing the pheromone concentration on the path. And by
adjusting the pheromone volatile factor adaptively, the blindness caused by the influence of pheromone
is avoided. Applying the improved ant colony algorithm to the fire inspection path planning can find
the optimal inspection path quickly and improve the inspection work efficiency. Although the improved
ant colony algorithm optimizes the pheromone updating method, it does not consider the influence of
state transition probability. The follow-up work is to improve the state transition probability according
to weather conditions and road congestion so that the inspection path planning method is more efficient
and intelligent.</p>
      <p>4. References</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <source>[1] [2] [3] [4] [5] [6] [7] [8] [9]</source>
          [10]
          <string-name>
            <surname>Li</surname>
            <given-names>M</given-names>
          </string-name>
          , Jiang
          <string-name>
            <surname>Z.</surname>
          </string-name>
          <article-title>Research on the construction and development of " smart fire protection " [A].</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <string-name>
            <given-names>China</given-names>
            <surname>Fire Protection Association</surname>
          </string-name>
          .
          <source>2019 China Fire Protection Association Science and Technology Annual Conference Proceedings [C]. China Fire Protection Association: China Fire Protection Association</source>
          ,
          <year>2019</year>
          ,
          <fpage>480</fpage>
          -
          <lpage>483</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <string-name>
            <surname>Shi C.</surname>
          </string-name>
          <article-title>Smart fire protection construction in the new era: connotation, realistic challenges and development path</article-title>
          [J].
          <source>Fire Protection (Electronic Edition)</source>
          ,
          <year>2022</year>
          ,
          <volume>8</volume>
          (
          <issue>03</issue>
          ):
          <fpage>25</fpage>
          -
          <lpage>27</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <string-name>
            <surname>Li</surname>
            <given-names>S</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Xu</surname>
            <given-names>X</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gao Tao</surname>
          </string-name>
          .
          <article-title>Construction and practice of military digital camps [M]</article-title>
          . Beijing: Tsinghua University Press,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          2015
          <string-name>
            <given-names>IEEE</given-names>
            <surname>Advanced Information</surname>
          </string-name>
          <string-name>
            <surname>Technology</surname>
          </string-name>
          ,
          <source>Electronic and Automation Control Conference (IAEAC)</source>
          . IEEE,
          <year>2015</year>
          ,
          <fpage>934</fpage>
          -
          <lpage>938</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          <string-name>
            <surname>Li</surname>
            <given-names>T</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hou</surname>
            <given-names>P</given-names>
          </string-name>
          .
          <article-title>Application of NB-IoT in intelligent fire protection system[C]</article-title>
          .
          <source>2019 International Conference on Virtual Reality and Intelligent Systems (ICVRIS)</source>
          . IEEE,
          <year>2019</year>
          ,
          <fpage>203</fpage>
          -
          <lpage>206</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          <string-name>
            <given-names>Industrial</given-names>
            <surname>Instrumentation and Automation Device</surname>
          </string-name>
          ,
          <year>2019</year>
          (
          <volume>02</volume>
          ):
          <fpage>30</fpage>
          -
          <lpage>32</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          <string-name>
            <surname>Zhao</surname>
            <given-names>L</given-names>
          </string-name>
          .
          <article-title>Indoor evacuation path optimization based on improved ant colony algorithm</article-title>
          [J].
          <source>Fire Science and Technology</source>
          ,
          <year>2021</year>
          ,
          <volume>40</volume>
          (
          <issue>07</issue>
          ):
          <fpage>999</fpage>
          -
          <lpage>1003</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          <string-name>
            <surname>Chen</surname>
            <given-names>J</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Yan</surname>
            <given-names>G</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zhang</surname>
            <given-names>J</given-names>
          </string-name>
          .
          <article-title>Design of police equipment management platform based on improved ant colony algorithm</article-title>
          [J].
          <source>Industrial Control Computer</source>
          ,
          <year>2022</year>
          ,
          <volume>35</volume>
          (
          <issue>04</issue>
          ):
          <fpage>144</fpage>
          -
          <lpage>146</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          <string-name>
            <surname>Yuan</surname>
            <given-names>J</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Li</surname>
            <given-names>S</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wu</surname>
            <given-names>Y</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Jian</surname>
            <given-names>G</given-names>
          </string-name>
          .
          <article-title>Robot path planning method based on simulated annealing ant colony algorithm [J]</article-title>
          .
          <source>Computer Simulation</source>
          ,
          <year>2019</year>
          ,
          <volume>36</volume>
          (
          <issue>10</issue>
          ):
          <fpage>329</fpage>
          -
          <lpage>333</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          <string-name>
            <surname>Xu</surname>
            <given-names>Y</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Li</surname>
            <given-names>K</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zhou</surname>
            <given-names>J</given-names>
          </string-name>
          .
          <article-title>Path planning of drilling rescue vehicles based on improved ant colony algorithm [J]</article-title>
          .
          <source>Computer System Application</source>
          ,
          <year>2022</year>
          ,
          <volume>31</volume>
          (
          <issue>04</issue>
          ):
          <fpage>268</fpage>
          -
          <lpage>272</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>