A fire scene escape-rescue joint system based on deep reinforcement learning
The escape-rescue system combined with Q-learning and LSTM algorithms through deep reinforcement learning solves the problem of unreasonable escape and rescue path planning at the fire scene, achieves efficient and reliable fire scene rescue, improves the survival rate and reduces the degree of damage. .
Patent Information
- Application Number
- CN202110961650.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-20
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-08-20
AI Technical Summary
The unreasonable planning of escape and rescue paths at the fire scene resulted in people losing their lives in the fire. It is difficult for existing technology to effectively assist escape and provide real-time information.
Adopting a joint escape-rescue system based on deep reinforcement learning, combined with Q-learning reinforcement learning algorithm and LSTM algorithm, through wireless signal transmission module and real-time fire monitoring, real-time communication between the escape suit and the fire control room is realized, providing the best Escape route planning and guidance.
It improves the survival rate at the fire scene and reduces the degree of personnel damage. The Q-Learning algorithm has real-time adaptability, the LSTM algorithm has small errors, and the predicted rescue route is highly consistent with the actual situation. The combination of the two achieves an efficient and reliable rescue mission. .
Smart Images

Figure CN113639755B
Abstract
Description
Technical Field
[0001] The present invention relates to a fire scene escape-rescue joint system based on deep reinforcement learning. Background Art
[0002] In recent years, various disasters and accidents have occurred frequently, and many problems that are difficult to detect in daily life, such as unreasonable design of escape routes and lack of sufficient emergency facilities, may become hidden dangers when disasters occur. Therefore, people are eager to use crowd simulation technology to simulate the scene when a disaster occurs, discover these potential problems in advance, and make timely improvements.
[0003] Fire is the most common and widespread form of disaster. According to preliminary statistics in 2020, a total of 252,000 fires occurred across the country, killing 1,183 people and causing direct property losses of 4.009 billion yuan, which seriously threatened the country's public security and hindered social development. Surveys show that when a fire occurs, many people are not killed by the fire, but are suffocated or suffocated to death due to unreasonable rescue path planning during rescue, which wastes a lot of time. Therefore, a joint escape-rescue system that assists firefighters in escaping and provides rescuers with information about people inside the fire is very important. Summary of the invention
[0004] Based on the above research background, after in-depth analysis of the two key technologies of reinforcement learning and path planning, a joint escape-rescue system is implemented from four aspects: character modeling, building modeling, selecting appropriate reinforcement learning algorithms, and seeking the best path plan for specific fire scenarios. The specific technical solutions are as follows:
[0005] A fire scene escape-rescue joint system based on deep reinforcement learning, including escape jackets installed near the fire hydrant box of key fire safety units and a fire control room installed on the fire rescue vehicle;
[0006] The escape jacket is equipped with a low-power wireless signal transmission module for communicating with the outside world in harsh environments, and is embedded with a building escape route map, an indoor positioning system, and an escape path planning algorithm based on Q-learning reinforcement learning;
[0007] The fire control room is equipped with an information receiving module and an escape path guidance algorithm based on real-time fire conditions and LSTM;
[0008] Once a fire occurs, when the on-site personnel pick up the escape jacket and move quickly, the wireless signal transmission module of the escape jacket automatically starts to guide the personnel to evacuate, and communicates with the fire control room and fire rescue vehicles in real time.
[0009] Therefore, the aforementioned fire scene escape-rescue joint system based on deep reinforcement learning includes two core algorithms, one is an escape path planning algorithm based on Q-learning reinforcement learning, and the other is an escape path guidance algorithm based on real-time fire conditions and LSTM.
[0010] Among them, based on the Q-learning reinforcement learning escape path planning algorithm, when designing a fire rescue path based on reinforcement learning, it is first necessary to clarify the input and output of the system, that is, the system demand analysis. According to the definition of the specific fire scene, when using the system, the input and output are defined as follows:
[0011] Input: Fire initial position parameters;
[0012] Output: rescue matrix.
[0013] In the rescue activities, rescuers will inevitably encounter complex and chaotic fire environments. In this case, it is difficult to process environmental information. In order to reduce this difficulty, environmental information is divided into internal environmental information and external environmental information. In the early training process for the agent, a fixed internal environmental information will be provided to the agent for learning. The role of external environmental information is mainly to set up a suitable reward and punishment system to encourage the agent to obtain the maximum reward value during the exploration process, which is the so-called "reward maximization". After generating a strategy, the external environmental information will feed back the accumulated reward value to the agent. After receiving this feedback signal, the agent's internal environmental information will process and generate new information to provide to the emotional learning system of the internal environmental information. In this way, the emotional learning system of the agent will become more and more perfect, so that rescuers can make the best decision and plan the best path plan.
[0014] The detailed design of the reinforcement learning system for path planning in a fire environment is as follows:
[0015] 1) The rescuers first obtain the external environment information of the building where the fire occurred. This information defines the external framework of a function, which can help the rescue planning path to achieve the best results;
[0016] 2) The rescuers pass the obtained external environment information and internal environment information to the escape path planning algorithm based on Q-learning reinforcement learning, so as to set the initial position parameters of the fire and realize the optimal path planning scheme for the rescuers;
[0017] 3) The rescuers hand over the observation conclusions of the environmental information to the mechanism within the emotional system, interpret the analysis results into result recommendations, and feed them back to the strategy selection algorithm of the reinforcement learning system to obtain the optimal path strategy.
[0018] In the Q-Learning algorithm learning process, the agent's goal is to reach the state with the highest reward value, so when the agent reaches the target area, it will not return. This type of goal is called an "absorption goal". According to the theory of Q-Learning algorithm learning, each area is abstracted as a state, and the action is to choose which area to enter, and the state diagram and immediate reward value are organized into the reward matrix.
[0019] After obtaining such a reward matrix, a similar matrix "Q" will be added to the agent's brain as a reference table of reward values obtained from exploration. The rows of the matrix represent the area where the agent is currently located, and its columns represent the area that the agent will choose to enter next. Initially, the agent did not learn any knowledge, and the matrix Q was initialized to 0. In different fire situations, the states involved are also unknown. If the rescuers do not know how many areas (states) are involved, then the matrix Q may start with only 1 element. Similarly, if the rescuers find new areas (states) in the process of understanding, then more rows and columns can be added to the matrix Q accordingly. At the same time, at the fire scene, the fire will gradually spread, and the channel conditions between areas will also change accordingly. At this time, you only need to change the corresponding reward value to update the matrix Q.
[0020] The exploration actions in each scene area will add experience to the Agent's "brain" and also update the matrix Q. The Q matrix is trained through the following process:
[0021] (1) Initialize the warehouse environment and various parameters (maximum number of training cycles, fire initial location parameter γ, instant reward function R and evaluation matrix Q);
[0022] (2) Randomly select an initial state s. If s=s*, then this cycle ends and a new starting state is selected.
[0023] (3) Randomly select an action a from all possible actions in the current state s, and each action has the same probability of being selected;
[0024] (4) Select action a in the current state s and proceed to the next state s';
[0025] (5) Update the Q matrix using the Q-learning update rule formula;
[0026] (6) Set the next state to the current state, s = s'. If s does not reach the target state, go to step 3.
[0027] (7) If the algorithm has not reached the maximum number of training cycles, jump to step 2 to reselect the state to enter the next cycle, otherwise end the training. At this time, the matrix Q with successful training and convergence is obtained.
[0028] The agent uses the above 7 steps to learn from experience. Think of each environment as a learning process. In this process, the agent will explore the surrounding environment in depth, while receiving immediate rewards until it reaches the target state. These trainings are all for optimizing the Q matrix (the "brain" of the agent), and the optimization of the Q matrix continues to improve as our training scenarios increase. When the optimization of the Q matrix reaches a certain level, the agent can reach the target area in the fastest route during the exploration process, without the problem of going in and out of the same room.
[0029] The training of the matrix Q also includes training the agent using Python in PyCharm; during training, it is set as the fire initial position parameter, which ranges from 0 to 0.9. If γ is close to 0, it means that the agent is far away from the fire location, and the agent will tend to receive an immediate reward value. If γ is closer to 0.9, it means that the agent is close to the fire point. At this time, the agent will consider more weights and choose to delay the reward. During the simulation process, different parameter γ values are input to represent the distance relationship between the rescue personnel on each floor and the initial position of the fire on that floor.
[0030] The escape path guidance algorithm based on real-time fire conditions and LSTM is implemented through a fixed priori content. The key is to construct a cost function in the exploration process, that is, a heuristic function. The path-finding steps of the constructed algorithm are:
[0031] S1. Store the starting point O in the "open list" and wait for the system to check. The data of the points used form a database and can be stored as a priori results;
[0032] S2. Explore the points Q that can be reached around point O, put point Q into the "open list", and name point O as the mother point;
[0033] S3. Find and transfer point O in the "open list" and transfer point O to the "traveled list". That is to say, once you walk out of a fire evacuation or escape location, you cannot return to that point because the system has already assumed that point to be a disturbance point or interference point.
[0034] S4. Find all the points R that can be reached around point Q: If point R has a place in the "safe list", the next step is to compare the cost of passing through point R and whether to pass through point R by calculation, and determine whether to pass through point R based on the cost; once the rescuer enters the safety list, it means that it can enter the next floor from this location;
[0035] S5. Repeat steps S2 to S4 until the target point P is found. The target point is a dynamic point. In the dynamic point design, all exit points are set on the first floor. That is to say, the rescue cannot be achieved by jumping from the second or third floor. The only way to escape is to plan a path to the first floor.
[0036] The aforementioned fire scene escape-rescue joint system based on deep reinforcement learning, the escape path guidance algorithm based on real-time fire conditions and LSTM, also includes a fire rescue judgment program, which directly inputs numbers within a given range to determine whether the rescue can be successful based on the historical database, and performs optimal path planning more intuitively and quickly.
[0037] Beneficial effects of the method of the present invention:
[0038] The joint system of the present invention combines the advantages of "online learning" based on the Q-Learning algorithm and the evacuation guidance algorithm based on real-time fire conditions and LSTM algorithm to learn from the historical database, realizing the combination of self-rescue at the fire scene and search and rescue by fire rescue personnel, effectively improving the survival rate, and minimizing the degree of harm to personnel at the fire scene. It can be seen from the experimental results that the Q-Learning algorithm has real-time response capabilities; the LSTM algorithm process is completed in collaboration with various sensors at the fire scene to detect the real-time fire conditions, with small errors, and the predicted rescue route is more consistent with the actual data, which is more reliable. The combination of the two can complete the rescue mission more efficiently and reliably. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 This is a simplified model diagram of a floor of the present invention;
[0040] Figure 2 A simplified model schematic diagram of the present invention with a reward value marked;
[0041] Figure 3 It is the flow chart of matrix Q training of the present invention;
[0042] Figure 4 The fourth floor rescue matrix of the present invention;
[0043] Figure 5 The third floor rescue matrix of the present invention;
[0044] Figure 6The second floor rescue matrix of the present invention;
[0045] Figure 7 The first floor rescue matrix of the present invention;
[0046] Figure 8 This is a rescue path prediction error analysis diagram of the present invention;
[0047] Fig. 9 It is a schematic diagram of the interface of the fire rescue determination program of the present invention. DETAILED DESCRIPTION
[0048] The technical solution of the present invention will be described clearly and completely below in conjunction with the embodiment diagram. Obviously, the described embodiment is only a part of the embodiment of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. The specific embodiments are as follows:
[0049] Example 1
[0050] This embodiment is a fire scene escape-rescue joint system based on deep reinforcement learning, which includes an escape jacket installed near the fire hydrant box of a key fire safety unit and a fire rescue vehicle with a fire control room; the escape jacket is equipped with a low-power wireless signal transmission module for communicating with the outside world in harsh environments, and is implanted with a building escape route map, an indoor positioning system, and an escape path planning algorithm based on Q-learning reinforcement learning; the fire control room is equipped with an information receiving module and an escape path guidance algorithm based on real-time fire conditions and LSTM. Once a fire occurs, when the on-site personnel pick up the escape jacket and move quickly, the line signal transmission module of the escape jacket automatically starts to guide the personnel to evacuate, and communicates with the fire control room and the fire rescue vehicle in real time.
[0051] Therefore, the fire scene escape-rescue joint system based on deep reinforcement learning described in this embodiment includes two core algorithms, one is an escape path planning algorithm based on Q-learning reinforcement learning, and the other is an escape path guidance algorithm based on real-time fire conditions and LSTM.
[0052] 1. Escape path planning algorithm based on Q-learning reinforcement learning
[0053] When designing a fire rescue path based on reinforcement learning, we first need to clarify the input and output of the system, that is, the system requirements analysis. According to the definition of the specific fire scenario, when using the system, the input and output are defined as follows:
[0054] Input: Fire initial position parameters;
[0055] Output: rescue matrix.
[0056] In the rescue activities, rescuers will inevitably encounter complex and chaotic fire environments. In this case, it is difficult to process environmental information. In order to reduce this difficulty, environmental information is divided into internal environmental information and external environmental information. In the early training process for the agent, a fixed internal environmental information will be provided to the agent for learning. The role of external environmental information is mainly to set up a suitable reward and punishment system to encourage the agent to obtain the maximum reward value during the exploration process, which is the so-called "reward maximization". After generating a strategy, the external environmental information will feed back the accumulated reward value to the agent. After receiving this feedback signal, the agent's internal environmental information will process and generate new information to provide to the emotional learning system of the internal environmental information. In this way, the emotional learning system of the agent will become more and more perfect, so that rescuers can make the best decision and plan the best path plan.
[0057] After this division, the internal environment and the external environment complement each other, greatly improving the accuracy of rescue personnel in processing information, and can also transform multi-dimensional environmental information into two-dimensional environmental information. Under the cooperation of the internal and external environments, the agent continuously learns and improves the system, finds the best path, and provides the best decision for rescue personnel.
[0058] In this embodiment, considering the analysis of requirements, the integrity of the code, and the stability of the input, the reinforcement learning system for path planning in a fire environment is designed in detail as follows:
[0059] 1) The rescuers first obtain the external environment information of the building where the fire occurred. This information defines the external framework of a function, which can help the rescue planning path to achieve the best results;
[0060] 2) The rescuers pass the obtained external environment information and internal environment information to the escape path planning algorithm based on Q-learning reinforcement learning, so as to set the initial position parameters of the fire and realize the optimal path planning scheme for the rescuers;
[0061] 3) The rescuers hand over the observation conclusions of the environmental information to the mechanism within the emotional system, interpret the analysis results into result recommendations, and feed them back to the strategy selection algorithm of the reinforcement learning system to obtain the optimal path strategy.
[0062] For example, in a Q-Learing algorithm building model, each floor consists of 5 fire areas and 1 safety area (2 safety passages). In the design process, 6 circles are used to represent the 6 areas, and lines with one-way arrows are used to represent the passages between the areas. The building model is abstractly simplified as follows: Figure 1The model shown. Area 0 is connected to area 4, area 1 is connected to area 3, area 2 is connected to area 3, area 3 is connected to area 4, area 4 is connected to area 5, and area 5 is connected to area 1.
[0063] Because the victims may be trapped in any area on a floor, the rescuers will randomly enter any area (that is, put the Agent into any area), and then start the action from that area until they walk out of the floor (that is, area 5 on each floor is the target area). The passages between areas are bidirectional, so each circle representing a different area is connected by two one-way arrows. The designed reward system is that if you reach area 5 (that is, the safe passage) by taking action, you can get an immediate reward value of 10, and if you pass through the passages between different areas, you can get a reward value of 0. Use a dotted line to represent a reward value of 10, and a solid line to represent a reward value of 0, and mark the corresponding reward values in the simplified model diagram to get a new model diagram that can represent the reward system, as shown below: Figure 2 shown.
[0064] In the Q-Learning algorithm learning process, the agent's goal is to reach the state with the highest reward value, so when the agent reaches the target area, it will not return. Targets like this are called "absorption targets". According to the theory of Q-Learning algorithm learning, each area is abstracted as a state, and the action is to choose which area to enter. The state diagram and the immediate reward value are organized into the reward value diagram, that is, the reward matrix R: (When there is no channel connection between the two regional states, the number -1 is used to represent the action that cannot be selected)
[0065]
[0066] After obtaining such a reward matrix R, we will add a similar matrix "Q" to the agent's brain as a reference table of reward values obtained from exploration. The rows of the matrix represent the area where the agent is currently located, and its columns represent the area that the agent will choose to enter next. Initially, the agent did not learn any knowledge, and the matrix Q was initialized to 0. In different fire situations, the states involved are also unknown. If the rescuers do not know how many areas (states) are involved, then the matrix Q may start with only 1 element. Similarly, if the rescuers find new areas (states) in the process of understanding, then we can add more rows and columns to the matrix Q accordingly. At the same time, at the fire scene, the fire will gradually spread, and the channel conditions between areas will also change accordingly. At this time, we only need to change the corresponding reward value to update the matrix Q.
[0067] The exploration actions in each scene area will add experience to the Agent's "brain" and also update the matrix Q. The Q matrix is trained through the following process: Figure 3 As shown:
[0068] (1) Initialize the warehouse environment and various parameters (maximum number of training cycles, fire initial location parameter γ, instant reward function R and evaluation matrix Q);
[0069] (2) Randomly select an initial state s. If s=s*, then this cycle ends and a new starting state is selected.
[0070] (3) Randomly select an action a from all possible actions in the current state s, and each action has the same probability of being selected;
[0071] (4) Select action a in the current state s and proceed to the next state s';
[0072] (5) Update the Q matrix using the Q-learning update rule formula;
[0073] (6) Set the next state to the current state, s = s'. If s does not reach the target state, go to step 3.
[0074] (7) If the algorithm has not reached the maximum number of training cycles, jump to step 2 to reselect the state to enter the next cycle, otherwise end the training. At this time, the matrix Q with successful training and convergence is obtained.
[0075] The agent uses the above 7 steps to learn from experience. Each environment can be compared to a learning and training process. In this process, the agent will deeply explore the surrounding environment and receive immediate rewards until it reaches the target state. These trainings are all for optimizing the Q matrix (the "brain" of the agent), and the optimization degree of the Q matrix is continuously improved with the increase of training scenarios. When the optimization degree of the Q matrix reaches a certain level, the agent can reach the target area in the fastest route during the exploration process, without the problem of going in and out of the same room.
[0076] Training the matrix Q also includes training the agent in Python in PyCharm; during training, it is set as the fire initial position parameter, which ranges from 0 to 0.9. If γ is close to 0, it means that the agent is far away from the fire, and the agent will tend to receive an immediate reward. If γ is closer to 0.9, it means that the agent is close to the fire, and the agent will consider more weights and choose to delay the reward. During the simulation process, different parameter γ values are input to represent the distance between the rescuers on each floor and the initial position of the fire on that floor.
[0077] In this embodiment, the fire initial position parameters of the fourth floor, third floor, second floor, and first floor are set to 0.6, 0.8, 0.5, and 0.2 respectively. Then run the program to obtain the rescue matrix Q of each floor, such as Figures 4 to 7 As shown in the figure. When the four rescue matrices Q have reached their optimal state, it means that our Agent has successfully obtained the best path to transfer from an arbitrary state to the target state in the process of exploration and learning. Rescuers can use the rescue matrix Q obtained by simulation to obtain the best path from different areas to the safe area.
[0078] The following will give an example for each floor to illustrate how to select the optimal decision through the rescue matrix Q and plan the best rescue path for rescuers.
[0079] The first scenario assumes that rescuers find a living being in Area 3 on the 4th floor and then initiate a rescue operation. Figure 4 and Figure 5 It can be seen that when the rescuers started the rescue operation from area 3, the maximum Q value that could be selected was 15. At this time, there were two maximum Q values, which means that the rescuers had two optimal actions to choose from. When choosing to enter area 4, the maximum Q value was found to be 25, and then they directly chose to enter area 5 to reach the safe passage. The best path choice at this time was 3-4-5. When choosing to enter area 1, the maximum Q value was also found to be 25, and they could also directly choose to enter area 5 to reach the safe passage. The best path choice at this time was 3-1-5. The cumulative reward values of these two options are equal, both 40, so the rescuers have two optimal path choices to lead the survivors from area 3 to area 5.
[0080] The second scenario assumes that rescuers find a living being in Area 2 on the 3rd floor and then initiate a rescue operation. Figure 6It can be seen that when the rescuers started the rescue operation from area 2, the maximum Q value that could be selected was 32. At this time, there was only one maximum Q value, which means that the rescuers had only one optimal action to choose, that is, to enter area 3. When entering area 3, the maximum Q value was found to be 40. At this time, there were two maximum Q values, which means that the rescuers had two optimal actions to choose from. When choosing to enter area 4, the maximum Q value was found to be 50, and then directly choose to enter area 5 to reach the safe passage. At this time, the best path choice was 2-3-4-5. When choosing to enter area 1, the maximum Q value was also found to be 50, and you could also directly choose to enter area 5 to reach the safe passage. At this time, the best path choice was 2-3-1-5. The cumulative reward values of these two options are equal, both 122, so the rescuers on the third floor also have two optimal path choices to lead the survivors from area 2 to area 5.
[0081] The third scenario assumes that rescuers find a living being in Area 0 on the second floor. Figure 7 As shown in the figure, when the rescuers start the rescue operation from area 0, the maximum Q value that can be selected is 10. At this time, there is only one maximum Q value, which means that the rescuers can only choose one optimal action, that is, to enter area 4. When entering area 4, it is found that there is only one maximum Q value of 20, and then choose to enter area 5 and reach the safe area. At this time, there is only one optimal path decision, which is 0-4-5, and the cumulative reward value is 30.
[0082] The fourth scenario assumes that rescuers find life in area 4 on the first floor. Figure 7 As shown in the figure, when the rescuers start the rescue operation from area 4, the maximum Q value that can be selected is 12.5. At this time, there is only one maximum Q value, and the rescuers can directly choose to enter area 5 and reach the safe area. The optimal path decision in this case is the simplest, and its solution is 4-5, with a cumulative reward value of 12.5.
[0083] 2. Escape Path Guidance Algorithm Based on Real-time Fire Situation and LSTM
[0084] The research on the escape path guidance algorithm based on real-time fire conditions and LSTM has similarities with other reinforcement learning algorithms. From the analysis in the previous part of this embodiment, it can be seen that the escape path planning algorithm based on Q-learning reinforcement learning requires prior knowledge. Therefore, the escape path guidance algorithm based on real-time fire conditions and LSTM also requires a fixed prior content to implement the algorithm. In terms of requirements, there are certain differences between the two. The requirements of the escape path guidance algorithm based on real-time fire conditions and LSTM mainly include the following:
[0085] 1. Rescuers obtain an optimal path map based on historical data. The historical data is trained based on big data using the LSTM algorithm and input into the Agent’s deep reinforcement learning system processor.
[0086] 2. The strategy selection algorithm will filter out useless decisions for the deep reinforcement learning system based on the results obtained by inputting different fire point values.
[0087] 3. The system uses the LSTM algorithm to provide the optimal strategy obtained from the analysis to the Agent, and then tells the rescue personnel what action to choose at the next moment based on the optimal strategy, while accumulating emotional information and reward information for the system.
[0088] 4. The system can make decisions on the best path based on the specific location of the fire and the location of the rescuers.
[0089] Before accumulating data for the LSTM algorithm, a certain database and training model are needed for accumulation. Generally speaking, this is mainly accomplished through the design of a certain fire rescue strategy, and the data is saved as structured data. The model trained with structured data can be used directly.
[0090] The process of using the LSTM algorithm to train the system is the basic process of deep reinforcement learning. Combining the LSTM deep learning algorithm with the reinforcement learning method can solve the problem that the LSTM algorithm is only applicable to static road networks, and enable the system to have the ability to self-update. Make full use of historical prior data on rescue paths to improve the response capabilities of rescue personnel in different fire environments. The LSTM deep learning algorithm is an algorithm suitable for direct search in static building maps. Its characteristic is that its exploration algorithm is heuristic. The cost between points is evaluated during the exploration process. This is the basic idea of the LSTM algorithm. Therefore, the key is to construct a cost function (heuristic function) in the exploration process.
[0091] The escape path guidance algorithm based on real-time fire conditions and LSTM described in this embodiment has the following path-finding steps:
[0092] S1. Store the starting point O in the "open list" and wait for the system to check. The data of the points used form a database and can be stored as a priori results;
[0093] S2. Explore the points Q that can be reached around point O, put point Q into the "open list", and name point O as the mother point;
[0094] S3. Find and transfer point O in the "open list" and transfer point O to the "traveled list". That is to say, once you walk out of a fire evacuation or escape location, you cannot return to that point because the system has already assumed that point to be a disturbance point or interference point.
[0095] S4. Find all the points R that can be reached around point Q: If point R has a place in the "safe list", the next step is to compare the cost of passing through point R and whether to pass through point R by calculation, and determine whether to pass through point R based on the cost; once the rescuer enters the safety list, it means that it can enter the next floor from this location;
[0096] S5. Repeat steps S2 to S4 until the target point P is found. The target point is a dynamic point. In the dynamic point design, all exit points are set on the first floor. That is to say, the rescue cannot be achieved by jumping from the second or third floor. The only way to escape is to plan a path to the first floor.
[0097] The LSTM deep reinforcement learning system has certain requirements for rescuers. It requires rescuers to have a sufficient understanding of the fire environment. That is to say, when planning a path, rescuers must know the current location and the destination location. The heuristic function is the core tool in the LSTM deep reinforcement learning system. Rescuers use it to make appropriate exploration behaviors during the path planning process. The heuristic function in the LSTM algorithm usually refers to the cost function between points. These points generally refer to the current location, the destination location, and the starting location.
[0098] In actual fire situations, the heuristic function can be designed flexibly. In general, the most basic design is adopted to generate the heuristic function by evaluating the distance between different points. However, in the chaotic and complex fire environment model, the actions of rescuers facing the fire are chosen as the reference factor of the evaluation criteria. The design of the heuristic function is closely related to the speed and accuracy of completing the task, so in practical applications, the heuristic function must be designed flexibly.
[0099] During the training process, in order to make the training results more reliable, the data is shuffled ten times and trained ten times respectively. After the training is completed, a Figure 8 The path prediction error analysis diagram is shown.
[0100] As can be seen from the figure, the LSTM algorithm has a small error under a given path, and the predicted rescue route is highly consistent with the actual data. The planning results can not only guide rescuers to avoid fires, but also provide the best path planning solution for rescuing life. Compared with several other algorithms, the LSTM algorithm is superior in both speed and effect, and can meet the basic needs of rescuers to rescue life in a fire environment.
[0101] The fire scene escape-rescue joint system based on deep reinforcement learning described in this embodiment has designed an interface of a "fire rescue determination program" on the basis that the system has trained and learned given historical data to form a priori database, such as Fig. 9 As shown, by directly inputting numbers within a given range to determine whether the rescue can be successful based on the historical database, the best path planning can be performed more intuitively and quickly. When selecting the starting position for rescue, you can enter any integer from 1 to 12. When selecting the exit to go downstairs on each floor, you can enter eight integers from 1 to 8. When choosing whether to go downstairs, you can enter 0 (no) or 1 (yes).
[0102] During the experimental simulation, three groups of data were randomly input: "6, 8, 1, 4, 1, 3, 1, 4", "12, 3, 1, 6, 1, 4, 1, 8", "4, 2, 1, 6, 1, 8, 1, 4", and "8, 2, 1, 5, 1, 4, 1, 7", and the judgment results were obtained respectively:
[0103] When the data set "6, 8, 1, 4, 1, 3, 1, 4" is input, the rescue is determined to be successful;
[0104] When the data set "12, 3, 1, 6, 1, 4, 1, 8" is input, the rescue is judged to have failed;
[0105] When the data set "4, 2, 1, 6, 1, 8, 1, 4" is input, the rescue is considered successful;
[0106] When the data set "8, 2, 1, 5, 1, 4, 1, 7" is entered, the rescue is determined to have failed.
[0107] That is, when different groups of values are input, two judgment results, "rescue successful" and "rescue failed", will be displayed. Displaying "rescue successful" means that the best path plan has been planned at this time and can be taken by rescue personnel. Of course, we don't want to see the display of "rescue failed". At this time, we only need to change the values to try to find a value group that shows "rescue successful". We can re-plan the best path for our rescue personnel in a short time. The judgment results obtained by entering different groups of values are not the results we created, but are obtained through the judgment of the trained prior database. Therefore, the judgment results are reliable. The reliability index is Figure 8 It has been reflected in the results. Judging from the error results, it meets the rescue requirements.
[0108] In general, the combined system of the present invention combines the advantages of "online learning" based on the Q-Learning algorithm and the evacuation guidance algorithm based on real-time fire conditions and LSTM algorithm to learn from historical databases, realizing the combination of self-rescue at the fire scene and search and rescue by fire rescue personnel, effectively improving the survival rate, and minimizing the degree of harm to personnel at the fire scene. It can be seen from the experimental results that the Q-Learning algorithm has real-time response capabilities, and the LSTM algorithm process is completed by combining various sensors at the fire scene to detect the real-time fire situation in collaboration, with small errors, and the predicted rescue route is more consistent with the actual data, which is more reliable. The combination of the two can complete the rescue mission more efficiently and reliably.
[0109] It is obvious to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential features of the present invention. Therefore, the embodiments should be regarded as exemplary and non-restrictive from any point of view. In addition, it should be understood that although this specification is described in accordance with the implementation mode, it does not include only one technical solution. This narrative mode of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole, and the technical solutions in the embodiments can also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.
Claims
1. A fire scene escape-rescue joint system based on deep reinforcement learning, characterized by: Includes life jackets and a fire control room installed on a fire rescue vehicle; The escape jacket is provided with a wireless signal transmission module for communicating with the outside world, and is implanted with a building escape route map, an indoor positioning system, and an escape path planning algorithm based on Q-learning reinforcement learning; The fire control room is provided with an information receiving module and an escape path guidance algorithm based on real-time fire conditions and LSTM is implanted; When a fire occurs and the on-site personnel pick up the escape jacket and move quickly, the wireless signal transmission module of the escape jacket automatically starts to guide the personnel to evacuate and communicate with the fire control room in real time; The Q-learning-based reinforcement learning escape path planning algorithm is used to implement a reinforcement learning system for path planning in a fire environment, the input of the system is the initial position parameters of the fire, and the output is a rescue matrix; The reinforcement learning system for path planning in a fire environment is designed to divide the environmental information of a building into internal environmental information and external environmental information. The internal environmental information is the environmental information of each floor of the building, and the external environmental information is to set up a suitable reward and punishment system. The implementation process of the reinforcement learning system for path planning in a fire environment is as follows: 1) First, obtain the external environment information of the building where the fire occurred; 2) passing both the external environment information and the internal environment information to the escape path planning algorithm based on Q-learning reinforcement learning to form an environmental information observation conclusion; 3) The environmental information observation conclusions are handed over to the emotional system for analysis, and then the analysis results are parsed into result suggestions and fed back to the strategy selection algorithm of the reinforcement learning system to obtain the optimal path strategy; The escape path guidance algorithm based on real-time fire conditions and LSTM is implemented through fixed prior content, and the path-finding steps of the algorithm are: S1. Store the starting point O in the start list and wait for the system to check. The data of the points used form a database and are stored as a priori results. S2. Explore the points Q that can be reached around point O, put point Q into the open list, and name point O as the mother point; S3. Find point O in the open list and transfer it to the walked list; S4. Find all points R around point Q that can be reached by point Q: If point R is in the safe list, the next step is to compare the cost of passing through point R and determine whether to pass through point R based on the cost. S5. Repeat steps S2 to S4 until the target point P is found. The target point is a dynamic point. In the dynamic point design, all exit points are set on the first floor, that is, escape can only be performed by planning the path to the first floor; The reinforcement learning system for path planning in a fire environment abstracts each area of the building as a state, takes the area selected for entry as an action, organizes the state diagram and the immediate reward value into a reward matrix, and the agent's goal is to reach the state with the highest reward value; The reinforcement learning system for path planning in a fire environment, after obtaining the reward matrix, adds a similar matrix Q in the agent's brain as a reference table of reward values; the rows of the matrix represent the area where the agent is currently located, and the columns represent the area that the agent chooses to enter next; when the channel conditions between areas change with the spread of the fire, the corresponding reward values are changed to update the matrix Q; The training process of the matrix Q is as follows: (1) Initializing the building environment and various parameters; the parameters include the maximum number of training cycles, the fire initial location parameter γ, the instant reward function R and the evaluation matrix Q; (2) Randomly select an initial state s. If s=s*, the cycle ends and a new starting state is selected. (3) Randomly select an action a from all possible actions in the current state s, and each action has the same probability of being selected; (4) Select action a in the current state s and enter the next state s'; (5) Update the matrix Q using the Q-learning update rule formula; (6) Set the next state to the current state, s = s'. If s does not reach the target state, go to step 3. (7) If the algorithm has not reached the maximum number of training cycles, it jumps to step 2 to reselect the state and enter the next cycle. Otherwise, the training is terminated and the matrix Q with successful training and convergence is obtained. The training of the matrix Q also includes training the Agent using Python language in PyCharm; During training, the fire initial position parameter γ is set to a range of 0 to 0.
9. By inputting different parameter γ values, the distance between the rescue personnel on each floor and the initial position of the fire on each floor is represented. The escape path guidance algorithm based on real-time fire conditions and LSTM also includes a fire rescue determination program, which determines whether the rescue can be successful based on the historical database by directly inputting numbers within a given range, and quickly performs optimal path planning.
Citation Information
Patent Citations
Path planning Q-learning initial method of mobile robot
CN102819264A
Intelligent building fire guiding escape information distribution system and handset APP thereof
CN106571003A
Escape rescue method based on building modeling and personnel mobile positioning
CN108259625A
Memory association reinforcement learning-based embedded real-time underwater robot intelligent decision-making method
CN108762281A
Path re-planning method, device and system based on emergency fire incidents in buildings
CN109655068A
