A method for large-scale urban emergency supplies distribution based on deep reinforcement learning
The emergency material distribution model is constructed through deep reinforcement learning methods, which solves the problem of high complexity of material distribution in large-scale disasters, achieves efficient and fair distribution of emergency materials, and improves disaster emergency response speed and distribution efficiency.
Patent Information
- Application Number
- CN202210257857.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-14
- Publication Date
- 2024-09-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing technology is difficult to achieve rapid, effective and fair distribution of emergency supplies in large-scale urban disasters and emergencies. Traditional operations optimization algorithms are difficult to solve when faced with highly complex material distribution problems, resulting in low disaster relief efficiency and post-disaster reconstruction. Progress is affected.
Using a method based on deep reinforcement learning, we build an emergency material distribution scenario model, define the objective optimization function of multiple evaluation indicators, build a Markov decision-making process, and use the DQN algorithm to train the deep reinforcement learning model to generate the optimal material distribution strategy to ensure Equity and efficiency in material distribution.
It achieves reasonable and fair distribution of emergency supplies in large-scale disaster scenarios, improves disaster emergency response speed, reduces losses caused by disasters, and significantly improves solution efficiency.
Smart Images

Figure CN114693089B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of emergency material distribution for sudden incidents, and specifically is a large-scale urban emergency material distribution method based on deep reinforcement learning. Background Art
[0002] In recent years, disasters have occurred frequently in the world. Large-scale urban disasters and emergencies often cause an extreme shortage of emergency supplies. Disasters not only cause huge casualties, but also survivors in the disaster-stricken areas will face a severe post-disaster environment. In the early stages of a disaster, emergency supplies will be extremely scarce because the emergency supplies pre-placed in the disaster-stricken areas and transportation channels such as roads may be destroyed by the disaster, which will cause an extremely unbalanced supply and demand of emergency supplies in the early stages of the disaster. At this stage, unreasonable distribution of supplies will not only reduce the efficiency of disaster relief, but also affect the post-disaster reconstruction and economic recovery progress of the disaster area. Therefore, it is crucial to quickly, effectively and reasonably distribute limited emergency supplies to protect the lives and property of the victims in the disaster-stricken areas.
[0003] Different from ordinary resource allocation, emergency material allocation not only considers the transportation cost of materials, but also emphasizes the role of resource allocation in alleviating the suffering of disaster victims and ensuring the right of each disaster victim to receive fair treatment. Since the allocation of emergency materials is a multi-period allocation problem that requires more evaluation indicators, it has high requirements for the performance of the solution. After a disaster occurs, emergency response must be carried out quickly and emergency materials must be reasonably allocated in the shortest time to minimize the damage caused by the disaster. Therefore, while ensuring the effectiveness of the emergency material allocation method, it is also crucial to consider the efficiency of the method.
[0004] Most of the existing allocation methods for emergency material distribution in large-scale urban disasters and emergencies cannot achieve a good balance between achieving reasonable allocation and quickly generating strategies. Most allocation methods use traditional operations optimization algorithms to solve material allocation strategies, but traditional methods are difficult to solve when faced with large-scale and highly complex emergency material distribution problems. Therefore, there is still a lack of effective solutions to the emergency material distribution problem in large-scale urban disasters and emergencies. Summary of the invention
[0005] In view of the problems existing in the prior art, the present invention provides a large-scale urban emergency material distribution method based on deep reinforcement learning. This method can efficiently formulate material distribution strategies when emergency materials are limited, minimize the suffering of disaster victims, ensure the fairness of resource distribution, and minimize logistics costs. The technical solution of the present invention is as follows:
[0006] A large-scale urban emergency material distribution method based on deep reinforcement learning, characterized by comprising the following steps:
[0007] Step 1: Model the disaster-stricken areas and construct emergency material distribution scenarios to generate the initial state S1 of each disaster-stricken area = (S 1,1 ,S 2,1 ,...,S |N|,1 ) and the demand for emergency supplies per unit time in each disaster-stricken area D = {D1, D2, D3, ..., D N}, and establish a task model for emergency material distribution;
[0008] Step 2: Based on the three evaluation indicators of effectiveness, efficiency and fairness of emergency material distribution, define the joint objective optimization function of emergency material distribution for multiple disaster-stricken areas;
[0009] Step 3: Construct a Markov decision process for emergency material distribution and build a deep reinforcement learning model with the emergency response center as the intelligent agent;
[0010] Step 4: The emergency response center distributes multiple rounds of emergency supplies to each disaster-stricken area, obtains multiple rounds of emergency supplies distribution samples, and uses the samples as input to train the deep reinforcement learning model;
[0011] Step 5. The trained deep reinforcement learning model can take the state of the disaster-stricken area as input and output the optimal emergency material allocation strategy facing this state. The decision-making strategy includes the amount of materials allocated to each disaster-stricken area.
[0012] Preferably, the objective function expression of the weighted total cost of resource allocation in step 2 is as follows:
[0013]
[0014] Among them, c i represents the unit material transportation cost of disaster area i, a i,t represents the number of units of materials received by the disaster-stricken area i at time t, Γ(S i,t ) represents the deprivation cost incurred by the disaster victims due to the continuous lack of emergency supplies, Φ(S i,T+1 ) represents the fair penalty cost of emergency material distribution, ξ1,ξ2,ξ3 represent the weights of the three costs, ξ1,ξ2,ξ3∈[0,1] and ξ1+ξ2+ξ3=1, the objective optimization function satisfies the following constraints: Constraint 1, within a single decision cycle, the materials allocated to each disaster-stricken area shall not exceed the material capacity of the emergency response center; Constraint 2, the quantity of materials allocated to each disaster-stricken area shall be an integer multiple of the unit material; Constraint 3, the next state of the disaster-stricken area is equal to the sum of the current state and the material demand of the disaster-stricken area minus the quantity of materials allocated to the disaster-stricken area in the current decision cycle.
[0015] Furthermore, the deprivation cost Γ(S i,t ) is as follows:
[0016]
[0017] Among them, a and b are deprivation coefficients, L represents the time span of a decision cycle, S i,t Represents the state of disaster-stricken area i at decision cycle t.
[0018] Furthermore, the fair penalty cost Φ(S i,T+1 ) is as follows:
[0019]
[0020] Where a and b are deprivation coefficients, L represents the time span of a decision cycle, S i,T+1 It represents the next expected state of the disaster-affected area i at the end of the last decision cycle.
[0021] Preferably, the construction process of the Markov decision process in step three is specifically as follows: determining the state space, action space, reward function and state transition equation; modeling the emergency material distribution model in multiple disaster-stricken areas into a Markov decision process, that is, at the beginning of each decision cycle, the agent observes the current environmental state, and then adopts different distribution strategies to distribute emergency materials according to the current environmental state; according to the adopted strategy, the agent will receive a reward from environmental feedback, and the environment will transfer to the next state according to the action taken by the agent.
[0022] Preferably, the training method of the deep reinforcement learning model in step 4 is as follows: the agent uses the DQN reinforcement learning framework to perform sampling by randomly executing actions, and the samples are represented as (S t ,A t ,r t ,S t+1 ), the DQN algorithm uses two neural networks for training, namely the current network and the target network. The current network calculates Q(S) based on the state and action in the sample. t ,A t ), the target network is calculated Then calculate the loss function: And perform gradient descent to update the parameters of the current network. Through cyclic iteration, the current network is constantly approaching the target network, and the deep reinforcement learning model is continuously updated. The update formula is: Where α is the learning rate, γ is the discount factor, and r t For state S t Take action At The reward value obtained, S t is the environmental state in decision cycle t, S t+1 is the environmental state at decision cycle t+1, A t is the action taken by the agent at decision cycle t, A t+1 is the action taken by the agent at decision cycle t+1.
[0023] Compared with the prior art, the present invention has the following beneficial technical effects:
[0024] The large-scale urban emergency material distribution method based on deep reinforcement learning provided by the present invention first models the state information of the disaster-stricken area under the disaster scenario, uses logistics costs to reduce the degree of suffering caused by the lack of materials for the victims, and uses the fairness of emergency material distribution as an evaluation indicator. The present invention uses deep reinforcement learning to solve the emergency material distribution model, and uses the advantages of deep reinforcement learning to adapt to large-scale emergency material distribution needs and optimize complex emergency material distribution objective functions. Therefore, the method described in the present invention, while realizing the reasonable and fair distribution of emergency materials in large-scale urban disasters and emergency scenarios, also has a high solution efficiency, improves the disaster emergency response speed, and minimizes the losses caused by disasters. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a scene diagram of emergency material distribution in multiple disaster-stricken areas for large-scale urban disasters and emergencies of the present invention;
[0026] Figure 2 It is a deep reinforcement learning network architecture diagram of the present invention.
[0027] Figure 3 This is an experimental result diagram of the DQN algorithm used in the present invention between the number of training times and rewards for emergency material distribution problems of different scales.
[0028] Figure 4 This is a comparison chart of the solution time of the DQN algorithm used in the present invention, the Q-learning algorithm, the EA algorithm, and the GA algorithm.
[0029] Figure 5 This is a comparison chart of the solution effects of the DQN algorithm used in the present invention, the Q-learning algorithm, the EA algorithm, and the GA algorithm. DETAILED DESCRIPTION
[0030] The present invention will be further described in detail below in conjunction with the accompanying drawings in specific embodiments.
[0031] Figure 1This is a scene diagram of emergency material distribution based on deep reinforcement learning in an embodiment of the present invention. This scene is a point-to-point network with an emergency response center and several disaster-stricken areas. The local response center distributes emergency materials raised by inventory or donations to each disaster-stricken area based on the material needs and status of each disaster-stricken area, and updates the status of each disaster-stricken area and uses it as a basis for the next decision cycle of emergency material distribution until all decision cycles are completed. The method specifically includes the following steps:
[0032] Step S1, by evaluating the disaster situation in the disaster area, determine the initial state of the disaster area S1 = (S 1,1 ,S 2,1 ,...,S |N|,1 ) and the demand for emergency supplies D = {D1, D2, D3, ..., D N}, determine the number of emergency supplies C that can be distributed within a single decision cycle of the emergency response center and the unit material transportation cost C = {c1,c2,...,c N}, construct a multi-disaster area emergency material distribution model, the purpose of this model is to achieve fair, effective and rapid resource allocation by minimizing the weighted total cost of emergency material distribution, alleviate the suffering of disaster victims caused by the lack of emergency materials and unfair resource distribution, and reduce the losses caused by disasters. The function expression of the weighted total cost of emergency material distribution is:
[0033]
[0034] Among them, c i represents the unit material transportation cost of disaster area i, a i,t represents the number of units of materials received by the disaster-stricken area i at time t, ξ1,ξ2,ξ3 represent the weights of the three costs, ξ1,ξ2,ξ3∈[0,1] and ξ1+ξ2+ξ3=1, Γ(S i,t ) represents the deprivation cost of the victims in the disaster area due to the continuous lack of emergency supplies, and its function expression can be expressed as follows:
[0035]
[0036] Among them, a and b are deprivation coefficients, L represents the time span of a decision cycle, S i,t represents the state of the disaster-affected area i at decision cycle t. Φ(S i,T+1 ) represents the fair penalty cost of emergency material distribution, and its function expression can be expressed as follows:
[0037]
[0038] Among them, S i,T+1represents the next expected state of the disaster-affected area i at the end of the last decision cycle.
[0039] The emergency material allocation model for multiple disaster-stricken areas meets the following constraints: Constraint 1: In a single decision cycle, the materials allocated to each disaster-stricken area shall not exceed the material capacity of the emergency response center; Constraint 2: The quantity of materials allocated to each disaster-stricken area should be an integer multiple of the unit material; Constraint 3: The next state of the disaster-stricken area is equal to the sum of the current state and the material demand of the disaster-stricken area minus the quantity of materials allocated to the disaster-stricken area in the current decision cycle.
[0040] Step S2, modeling the emergency material distribution model in multiple disaster-affected areas as a Markov decision process and describing it;
[0041] In the problem of emergency material distribution in multiple disaster-stricken areas, the state of each disaster-stricken area represents the degree of shortage of emergency materials for the victims. The higher the shortage, the greater the state value. In this problem, the action is represented by the amount of materials allocated to each disaster-stricken area by the emergency response center in a single decision cycle. In this problem, considering that different rewards need to be considered at different decision stages, the reward function can be expressed as follows:
[0042]
[0043] Where t represents the decision cycle and T represents the total number of decision cycles.
[0044] Step S3, training using the DQN algorithm;
[0045] DQN is a deep reinforcement learning algorithm. By combining deep learning, DQN can better adapt to the learning of complex problems compared to traditional reinforcement learning. According to the established environment, the initial state of the disaster area can be input into the DQN network for training. The DQN algorithm uses the ∈-greedy strategy to balance exploration and utilization. Considering the high complexity of the emergency material distribution model in multiple disaster areas, a large amount of exploration is required to obtain samples for training at the beginning of training. As the number of training times gradually increases, it is necessary to reduce random exploration to accelerate model convergence. Therefore, the present invention uses nonlinear ∈, and its function expression is as follows:
[0046]
[0047] Among them, N e represents the total number of training rounds, and k represents the current number of training rounds.
[0048] DQN training process reference Figure 2 The DQN algorithm needs to initialize two identical neural networks, namely the Q network and the target Q network. The parameters of the two neural networks are θ and The Q network selects and executes actions using the ∈-greedy strategy based on the state of the environment, as shown below:
[0049]
[0050] When the action is completed, the state of the environment will change and return the reward value. At this time, a sample (S t ,A t ,r t ,S t+1 ), the DQN algorithm stores this sample in the experience replay pool for subsequent algorithm training.
[0051] After a period of sampling, when the experience replay pool is full of samples, the DQN algorithm randomly selects a certain amount of samples from the experience replay pool and updates the network parameters through gradient descent. First, the Q network passes through the current state S in the sample t and the action A taken t Q value q θ (S t ,A t ), the target Q network calculates the maximum Q value that can be obtained by taking action in the next state through the next state in the sample The Q network uses a loss function to guide the update of its parameters θ, and the loss function is expressed as:
[0052]
[0053] Where γ represents the discount factor.
[0054] By continuously iterating and minimizing the loss function, the Q network and the target Q network parameters are gradually approached. The update formula of the Q network can be expressed as:
[0055]
[0056] Where α represents the learning rate.
[0057] Step 4: The DQN algorithm outputs the emergency material distribution strategy;
[0058] After completing the training, the DQN algorithm can generate an emergency material distribution strategy for each decision cycle based on the initial environment input.
[0059] In order to verify the feasibility and effectiveness of the method, the present invention is further described in detail below with reference to examples.
[0060] Figure 3The training effect of the DQN algorithm in different scale disaster-affected area scenarios can be seen. It can be seen that in the early stage of training, due to a large number of random explorations, the solution effect of the DQN algorithm has normal fluctuations. As the exploration rate ∈ gradually decreases, the algorithm effect gradually stabilizes. The results show that the DQN algorithm can converge to the optimal emergency material distribution strategy in different scale scenarios.
[0061] Figure 4 and Figure 5 The comparison diagrams of the calculation time and solution effect of the DQN algorithm and the Q-learning algorithm, the greedy algorithm GA and the exact algorithm EA respectively show that the DQN algorithm has a shorter solution time and a similar solution effect than the exact algorithm and the Q-learning algorithm, and when the scale of the scene increases, both the EA and the Q-learning algorithms will have problems that cannot be solved. Therefore, it can be seen from the experimental results that the large-scale urban emergency material distribution method based on DQN proposed in the present invention can improve the disaster emergency response speed and realize reasonable and fair emergency material distribution.
Claims
1. A method for emergency material distribution based on deep reinforcement learning, characterized in that: The following steps are involved: Step 1: Model the disaster-stricken areas and construct emergency material distribution scenarios to generate the initial state S1 of each disaster-stricken area = (S 1,1 ,S 2,1 ,...,S |N|,1 ) and the demand for emergency supplies per unit time in each disaster-stricken area D = {D1, D2, D3, ..., D |N| }, and establish a task model for emergency material distribution; Step 2: Based on the three evaluation indicators of effectiveness, efficiency and fairness of emergency material distribution, define the joint objective optimization function P of emergency material distribution for multiple disaster-stricken areas: Among them, c i represents the unit material transportation cost of disaster area i, a i,t represents the number of units of materials received by the disaster-stricken area i at time t, Γ(S i,t ) represents the deprivation cost incurred by the victims in the disaster area due to the continuous lack of emergency supplies, Φ(S i,T+1 ) represents the fair penalty cost of emergency material distribution, ξ1,ξ2,ξ3 represent the weights of the three costs, ξ1,ξ2,ξ3∈[0,1] and ξ1+ξ2+ξ3=1, the objective optimization function satisfies the following constraints: Constraint 1: In a single decision cycle, the materials allocated to each disaster-stricken area shall not exceed the material capacity of the emergency response center; Constraint 2: The quantity of materials allocated to each disaster-stricken area shall be an integer multiple of the unit material; Constraint 3: The next state of the disaster-stricken area is equal to the sum of the current state and the material demand of the disaster-stricken area minus the quantity of materials allocated to the disaster-stricken area in the current decision cycle; The deprivation cost Γ(S i,t ) is calculated as follows: Among them, a and b are deprivation coefficients, L represents the time span of a decision cycle, S i,t represents the state of disaster-affected area i at decision cycle t; Fair penalty cost Φ(S i,T+1 ) is calculated as follows: Where a and b are deprivation coefficients, L represents the time span of a decision cycle, S i,T+1 represents the next expected state of the disaster-affected area i at the end of the last decision cycle; Step 3: Construct a Markov decision process for emergency material distribution and build a deep reinforcement learning model with the emergency response center as the intelligent agent; Step 4: The emergency response center distributes multiple rounds of emergency supplies to each disaster-stricken area, obtains multiple rounds of emergency supplies distribution samples, and uses the samples as input to train the deep reinforcement learning model; Step 5. The trained deep reinforcement learning model can take the state of the disaster-stricken area as input and output the optimal emergency material allocation strategy facing this state. The decision-making strategy includes the amount of materials allocated to each disaster-stricken area.
2. The emergency material distribution method based on deep reinforcement learning according to claim 1 is characterized in that: The construction process of the Markov decision process in step three is specifically as follows: determine the state space, action space, reward function and state transition equation; model the emergency material distribution model in multiple disaster-stricken areas into a Markov decision process, that is, at the beginning of each decision cycle, the agent observes the current environmental state, and then adopts different distribution strategies to distribute emergency materials according to the current environmental state; according to the adopted strategy, the agent will receive rewards from environmental feedback, and the environment will transfer to the next state according to the action taken by the agent.
3. The emergency material distribution method based on deep reinforcement learning according to claim 1 is characterized in that: The training method of the deep reinforcement learning model in step 4 is as follows: the agent uses the DQN reinforcement learning framework to sample by randomly executing actions, and the samples are represented as (S t ,A t ,r t ,S t+1 ), the DQN algorithm uses two neural networks for training, namely the current network and the target network. The current network calculates Q(S) based on the state and action in the sample. t ,A t ), the target network is calculated Then calculate the loss function: And perform gradient descent to update the parameters of the current network. Through cyclic iteration, the current network is constantly approaching the target network, and the deep reinforcement learning model is continuously updated. The update formula is: Where α is the learning rate, γ is the discount factor, and r t For state S t Take action A t The reward value obtained, S t is the environmental state in decision cycle t, S t+1 is the environmental state at decision cycle t+1, A t is the action taken by the agent at decision cycle t, A t+1 is the action taken by the agent at decision cycle t+1.
