A 120 emergency command and dispatch method, system and storage medium based on active-active architecture
Through the emergency command and dispatch system based on active-active architecture, data collection and strategic network models are used to optimize emergency vehicle dispatch, which solves the problems of traditional system dispatch delays and single points of failure, and improves the response speed and efficiency of emergency rescue.
Patent Information
- Application Number
- CN202411003836.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-07-25
AI Technical Summary
Traditional emergency dispatch systems rely on manual judgment and static rules, making it difficult to quickly process large amounts of real-time data, resulting in delayed dispatch decisions and being susceptible to single-point failures, affecting the continuity of emergency rescue.
A 120 emergency command and dispatch system based on a dual-active architecture is used to generate optimal dispatch strategies through data collection, feature coding, and emergency command and dispatch strategy network models to optimize emergency vehicle dispatch in real time to ensure system stability and response speed.
It realizes real-time collection and analysis of rescue point needs, emergency vehicle status and road conditions, quickly generates and executes optimal dispatch strategies, shortens the time for emergency vehicles to arrive at the scene, and improves the response speed and overall efficiency of emergency rescue.
Smart Images

Figure CN118552004B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and more specifically, to a 120 emergency command and dispatch system based on a dual-active architecture. Background Art
[0002] When a natural disaster occurs, there are often many rescue points, and many 120 ambulances are needed to go to the rescue points for rescue. Each rescue point will have different numbers of people and different degrees of injuries. Therefore, it is necessary to dispatch the 120 ambulances of the emergency rescue center. Under the constraints of the emergency environment and conditions, the ambulances are sent from the emergency rescue center to each rescue point to transport the rescued personnel to the emergency rescue center for treatment.
[0003] Traditional emergency dispatch systems often rely on manual judgment and static rules, and it is difficult to quickly process large amounts of real-time data, resulting in delayed dispatch decisions. In addition, 120 ambulance dispatch is subject to interference from multiple targets and various types of uncertain information. The dispatch system may interrupt service due to a single point failure, affecting the continuity of emergency rescue and having an adverse effect. Summary of the invention
[0004] The present invention provides a 120 emergency command and dispatch system based on a dual-active architecture to solve the technical problems raised in the above background technology.
[0005] The present invention provides a 120 emergency command and dispatch method based on a dual-active architecture, comprising the following steps:
[0006] Step 101, collecting disaster data of rescue points, emergency vehicle data and road data according to the active-active architecture data collection system, wherein the disaster data of rescue points includes the location information and real-time demand of all rescue points, the emergency vehicle data includes the location and rescue status of the emergency vehicle, and the road data includes the real-time traffic conditions of the road;
[0007] Step 102, firstly encode the disaster data of the rescue point into disaster characteristics, encode the emergency vehicle data into vehicle characteristics, and encode the road data into road characteristics, and then sequentially splice the disaster characteristics, vehicle characteristics and road characteristics into a comprehensive state vector;
[0008] Step 103, constructing an emergency command and dispatch strategy network model, inputting the comprehensive state vector into the emergency command and dispatch strategy network model, and outputting the emergency command and dispatch strategy from the emergency command and dispatch strategy network model; the emergency command and dispatch strategy includes the coordinates of the rescue point to which each ambulance goes and the ratio of the number of people loaded;
[0009] Step 104 is used to provide the coordinates of the rescue point to be headed for and the ratio of the number of people loaded for all ambulances and execute the emergency command and dispatch strategy with the highest probability in the Gaussian distribution corresponding to the mean and standard deviation output in the emergency command and dispatch strategy network model.
[0010] In a preferred embodiment, the emergency command and dispatch strategy network model includes a strategy network and a value network;
[0011] The strategy network includes a first input layer, which outputs a comprehensive state vector to a strategy processing layer, which generates an intermediate state vector and inputs it to a strategy generation layer, which outputs a mean and a standard deviation of each optional emergency command and dispatch strategy, and parameterizes the probability of each action through the mean and the standard deviation of the output emergency command and dispatch strategy;
[0012] The value network includes a second input layer, which outputs a comprehensive state vector to the value processing layer. The value processing layer generates a value vector, which is input to the value generation layer. The value generation layer outputs an estimated value of the current state.
[0013] In a preferred embodiment, the calculation formula of the policy processing layer is:
[0014]
[0015] in, represents the intermediate state vector, represents the weight matrix of the policy processing layer, represents the comprehensive state vector, represents the bias parameter of the policy processing layer, ReLU activation function.
[0016] The calculation formula of the strategy generation layer is:
[0017]
[0018]
[0019] in, represents the mean of the current state, represents the logarithmic standard deviation of the current state, , denote the weight matrices of mean and logarithmic standard deviation, h denotes the intermediate state vector, , They represent the first and second bias parameters of the strategy generation layer respectively.
[0020] In a preferred embodiment, the calculation formula of the value processing layer is:
[0021]
[0022] in, represents the value vector, Represents the weight matrix of the value processing layer, represents the comprehensive state vector, Represents the bias parameters of the value processing layer;
[0023] The calculation formula of the value generation layer is:
[0024]
[0025] in, Indicates in status The estimated value under the state of represents the weight matrix of the value generation layer, represents the value vector, Represents the bias parameter of the value generation layer.
[0026] In a preferred embodiment, the status includes disaster data of the rescue point, emergency vehicle data and road data;
[0027] Action space: The action space is generated by combining the coordinates of the rescue point each ambulance is heading to and the ratio of the number of people loaded;
[0028] An action includes the coordinates of the rescue points and the ratio of the number of people loaded by all the ambulances that can be assigned to the emergency rescue center at the current moment;
[0029] An allocatable ambulance is defined as an ambulance that is not on a return trip and has excess capacity to accommodate patients.
[0030] In a preferred embodiment, the calculation formula of the reward function is as follows:
[0031]
[0032] in, represents the total reward value, Represents the shortest travel distance reward, Represents a cost saving reward, Indicates the safety factor bonus, Indicates a reward for efficient loading;
[0033] The calculation formula for the shortest distance reward is:
[0034]
[0035] in, Represents the shortest travel distance reward, represents the basic driving distance, Indicates the actual distance traveled by the ambulance. Reward weight parameter representing the shortened distance;
[0036] The cost savings bonus is calculated as follows:
[0037]
[0038] in, Represents a cost saving reward, Indicates the actual distance traveled by the ambulance. Indicates the total time of emergency rescue. , denote the first weight parameter and the second weight parameter respectively, a reward weight parameter representing cost savings;
[0039] The calculation formula for the safety factor bonus is:
[0040]
[0041] in, Indicates the safety factor bonus, Indicates the degree of road damage (the lower the better, for example, the value range is 0-1, 0 means intact), Indicates that the adjustment factor is The travel time predicted by the navigation software at that time, Reward weight parameter representing the safety factor;
[0042] The calculation formula for the efficient loading bonus is:
[0043]
[0044] in, Reward for efficient loading, Indicates the maximum load of the ambulance. Indicates the actual load of the ambulance. Parameter representing the reward weight for loading efficiency.
[0045] In a preferred embodiment, the calculation formula of the instant reward function is as follows:
[0046]
[0047] in, Represents the instant total reward of a single decision at the current moment, Indicates the immediate reward of the distance reduction at the current moment, represents the immediate reward of cost savings at the current moment, Indicates the instant reward of the safety factor at the current moment, Indicates the immediate reward for efficient loading at the current moment;
[0048] The calculation formula for the immediate reward of distance reduction is:
[0049]
[0050] in, Indicates the immediate reward of the distance reduction at the current moment, Indicates the actual driving distance of the ambulance at the current moment. represents the expected average driving distance to the next rescue point at the current moment, Reward weight parameter representing the shortened distance;
[0051] The instant bonus for cost savings is calculated as:
[0052]
[0053] in, represents the immediate reward of cost savings at the current moment, represents the expected cost at the current moment, represents the actual cost at the current moment, a reward weight parameter representing cost savings;
[0054] The instant bonus calculation formula for the safety factor is:
[0055]
[0056] in, Indicates the instant reward of the safety factor at the current moment, Indicates the degree of road damage at the current moment. Indicates that the adjustment factor is The travel time predicted by the navigation software at that time, Reward weight parameter representing the safety factor;
[0057] The instant bonus calculation formula for efficient loading is:
[0058]
[0059] in, Indicates the instant reward for efficient loading at the current moment, Indicates the maximum load of the ambulance. Indicates the actual load of the ambulance at the current moment. Parameter representing the reward weight for loading efficiency.
[0060] A 120 emergency command and dispatch system based on a dual-active architecture includes the following modules:
[0061] Active-active data collection module, used to collect disaster data, emergency vehicle data and road data at rescue points;
[0062] Feature encoding and state building module, used to convert the collected raw data into a comprehensive state vector;
[0063] Emergency command and dispatch strategy network model module, used to generate the best dispatch strategy;
[0064] The decision optimization and execution module is used to convert the optimal dispatch strategy output by the emergency command and dispatch strategy network model module into actual operation instructions;
[0065] The system monitoring and active-active management module is used to ensure the stable operation of the entire system, including data flow monitoring, hardware resource management, maintenance of the active-active architecture, and failover of the active-active architecture.
[0066] In a preferred embodiment, the active-active data acquisition module includes a rescue point data acquisition submodule, an emergency vehicle data acquisition submodule, and a road data acquisition submodule;
[0067] Rescue point data collection submodule: used to collect and update the location and demand information of rescue points;
[0068] Ambulance data collection submodule: used to obtain the real-time location and status of the ambulance;
[0069] Road data collection submodule: used to monitor and analyze real-time road traffic conditions, including congestion and closure status;
[0070] The feature encoding and state building module includes a feature encoder and a state vector generator;
[0071] Feature encoder: used to encode rescue point, emergency vehicle, and road data respectively;
[0072] State vector generator: used to sequentially splice disaster features, vehicle features and road features into a comprehensive state vector;
[0073] The emergency command and dispatch strategy network model module includes a strategy network submodule and a value network submodule;
[0074] The policy network submodule is used to predict the optimal dispatch decision for each ambulance, which includes the coordinates of the target rescue point and the recommended loading ratio;
[0075] The value network submodule is used to evaluate the expected effects of different scheduling strategies;
[0076] The decision optimization and execution module includes a policy parser, an instruction issuing system, and execution monitoring;
[0077] Strategy parser: used to parse the mean and standard deviation of the output in the emergency command and dispatch strategy network model, map it to Gaussian distribution, and select the optimal dispatch strategy;
[0078] Instruction issuing system: used to convert the optimal dispatching strategy into specific instructions and send them to the corresponding emergency vehicles for execution;
[0079] Execution monitoring: used to monitor the execution status of scheduling instructions in real time.
[0080] A storage medium stores non-temporary computer-readable instructions. When the non-temporary computer-readable instructions are executed by a computer, the steps in the above-mentioned 120 emergency command and dispatch method based on a dual-active architecture can be executed.
[0081] The beneficial effect of the present invention is that by real-time collection and analysis of rescue point requirements, ambulance status and road conditions, the system can quickly generate and execute the optimal dispatch strategy, shorten the time it takes for ambulances to arrive at the scene, and improve the response speed and overall efficiency of emergency rescue. BRIEF DESCRIPTION OF THE DRAWINGS
[0082] Figure 1 It is a flow chart of the 120 emergency command and dispatch method based on the active-active architecture of the present invention.
[0083] Figure 2 It is a block diagram of the 120 emergency command and dispatch system based on the active-active architecture of the present invention.
[0084] In the figure: 100, active-active data acquisition module; 110, rescue point data acquisition submodule; 120, ambulance data acquisition submodule; 130, road data acquisition submodule; 200, feature encoding and state construction module; 210, feature encoder; 220, state vector generator; 300, emergency command and dispatch strategy network model module; 310, strategy network submodule; 320, value network submodule; 400, decision optimization and execution module; 410, strategy parser; 420, instruction issuance system; 430, execution monitoring; 500, system monitoring and active-active management module. DETAILED DESCRIPTION
[0085] The subject matter described herein will now be discussed with reference to example embodiments. It should be understood that the discussion of these embodiments is only to enable those skilled in the art to better understand and implement the subject matter described herein, and the functions and arrangements of the elements discussed may be changed without departing from the scope of protection of the contents of this specification. Each example may omit, replace or add various processes or components as needed. In addition, the features described relative to some examples may also be combined in other examples.
[0086] like Figure 1 As shown, a 120 emergency command and dispatch method based on a dual-active architecture includes the following steps:
[0087] Step 101, collecting disaster data of rescue points, emergency vehicle data and road data according to the active-active architecture data collection system, wherein the disaster data of rescue points includes the location information and real-time demand of all rescue points, the emergency vehicle data includes the location and rescue status of the emergency vehicle, and the road data includes the real-time traffic conditions of the road;
[0088] The real-time demand of the rescue point indicates the number of people who need to be rescued at the rescue point;
[0089] The disaster data of rescue points can be obtained by rescue workers or volunteers directly reporting the location information of each rescue point and the real-time demand, such as the number of disaster victims, through handheld devices (such as smart phones and walkie-talkies); satellite remote sensing and drone monitoring can also be used to analyze the degree of damage in the disaster-stricken area using satellite images, combined with drone aerial photography, to assess the location of rescue points and the conditions of people in need of rescue; or official disaster data and situation reports of disaster victims can be obtained from the emergency dispatch center.
[0090] The acquisition of emergency vehicle data can be done by transmitting the vehicle location and driving status to the command center in real time through the vehicle-mounted GPS system and wireless network; using mobile communication technology to achieve real-time data transmission, including real-time video monitoring of the vehicle, to more intuitively understand the operation of the emergency vehicle;
[0091] Road data acquisition can obtain real-time information such as road closures, congestion, accidents, etc. from traffic management departments;
[0092] Step 102, firstly encode the disaster data of the rescue point into disaster characteristics, encode the emergency vehicle data into vehicle characteristics, and encode the road data into road characteristics, and then sequentially splice the disaster characteristics, vehicle characteristics and road characteristics into a comprehensive state vector;
[0093] In one embodiment of the present invention, an encoding example is provided:
[0094] Disaster data coding: Disaster data includes the location information of rescue points and real-time demand;
[0095] Assume that rescue points, people who need to be rescued at each rescue point is a continuous value, encoded as a length of Vector ; Assign an urgency index to each rescue point , indicating the urgency of the rescue request, ranging from 1 to 5, with increasing urgency, and encoding it as a length of Vector ;
[0096] Ambulance data coding: Ambulance data includes the location and rescue status of the ambulance;
[0097] Assume that the coordinates of each ambulance are represented by two-dimensional coordinates , assuming there are n ambulances in total, the location information of the ambulance is encoded as a 2n-dimensional vector representation:
[0098] ;
[0099] Current passenger capacity of each emergency vehicle Encoded as a vector of length n:
[0100] ;
[0101] Road data encoding: Road data includes real-time traffic conditions of roads;
[0102] For the main roads connecting the rescue center and each rescue point and between rescue points, a capacity value can be assigned to each road. , reflecting the smoothness of the road, among which Represents the road number, encoded as a vector ;
[0103] The above-mentioned disaster characteristics, vehicle characteristics and road characteristics are arranged in order of category and combined into a single state vector to form a comprehensive state vector:
[0104] .
[0105] Step 103, constructing an emergency command and dispatch strategy network model, inputting the comprehensive state vector into the emergency command and dispatch strategy network model, and outputting the emergency command and dispatch strategy from the emergency command and dispatch strategy network model; the emergency command and dispatch strategy includes the coordinates of the rescue point to which each ambulance goes and the ratio of the number of people loaded;
[0106] The emergency command and dispatch strategy network model includes strategy network and value network;
[0107] The strategy network includes a first input layer, which outputs a comprehensive state vector to a strategy processing layer, which generates an intermediate state vector and inputs it to a strategy generation layer, which outputs a mean and a standard deviation of each optional emergency command and dispatch strategy, and parameterizes the probability of each action through the mean and the standard deviation of the output emergency command and dispatch strategy;
[0108] The calculation formula of the policy processing layer is:
[0109]
[0110] in, represents the intermediate state vector, represents the weight matrix of the policy processing layer, represents the comprehensive state vector, represents the bias parameter of the policy processing layer, ReLU activation function.
[0111] The calculation formula of the strategy generation layer is:
[0112]
[0113]
[0114] in, represents the mean of the current state, represents the logarithmic standard deviation of the current state, , denote the weight matrices of mean and logarithmic standard deviation, h denotes the intermediate state vector, , Respectively represent the first and second bias parameters of the strategy generation layer;
[0115] The value network includes a second input layer, the second input layer outputs a comprehensive state vector to the value processing layer, the value processing layer generates a value vector, the value vector is input to the value generation layer, and the value generation layer outputs an estimated value of the current state;
[0116] The calculation formula of the value processing layer is:
[0117]
[0118] in, represents the value vector, Represents the weight matrix of the value processing layer, represents the comprehensive state vector, Represents the bias parameters of the value processing layer;
[0119] The calculation formula of the value generation layer is:
[0120]
[0121] in, Indicates in status The estimated value under the state of represents the weight matrix of the value generation layer, represents the value vector, Represents the bias parameters of the value generation layer;
[0122] The status includes disaster data of rescue points, emergency vehicle data, and road data;
[0123] Action space: The action space is generated by combining the coordinates of the rescue point each ambulance is heading to and the ratio of the number of people loaded;
[0124] An action includes the coordinates of the rescue points and the ratio of the number of people loaded by all the ambulances that can be assigned to the emergency rescue center at the current moment;
[0125] An allocable ambulance is defined as an ambulance that is not on a return trip and has excess capacity to accommodate patients;
[0126] Design of reward function:
[0127] The reward function is calculated as follows:
[0128]
[0129] in, represents the total reward value, Represents the shortest travel distance reward, Represents a cost saving reward, Indicates the safety factor bonus, Indicates a reward for efficient loading;
[0130] The calculation formula for the shortest distance reward is:
[0131]
[0132] in, Represents the shortest travel distance reward, represents the basic driving distance, Indicates the actual distance traveled by the ambulance. Reward weight parameter representing the shortened distance;
[0133] The cost savings bonus is calculated as follows:
[0134]
[0135] in, Represents a cost saving reward, Indicates the actual distance traveled by the ambulance. Indicates the total time of emergency rescue. , denote the first weight parameter and the second weight parameter respectively, a reward weight parameter representing cost savings;
[0136] The calculation formula for the safety factor bonus is:
[0137]
[0138] in, Indicates the safety factor bonus, Indicates the degree of road damage (the lower the better, for example, the value range is 0-1, 0 means intact), Indicates that the adjustment factor is The travel time predicted by the navigation software at that time, Reward weight parameter representing the safety factor;
[0139] The calculation formula for the efficient loading bonus is:
[0140]
[0141] in, Reward for efficient loading, Indicates the maximum load of the ambulance. Indicates the actual load of the ambulance. Reward weight parameter representing loading efficiency;
[0142] The calculation formula of the immediate reward function is as follows:
[0143]
[0144] in, Represents the instant total reward of a single decision at the current moment, Indicates the immediate reward of the distance reduction at the current moment, represents the immediate reward of cost savings at the current moment, Indicates the instant reward of the safety factor at the current moment, Indicates the immediate reward for efficient loading at the current moment;
[0145] The calculation formula for the immediate reward of distance reduction is:
[0146]
[0147] in, Indicates the immediate reward of the distance reduction at the current moment, Indicates the actual driving distance of the ambulance at the current moment. represents the expected average driving distance to the next rescue point at the current moment, Reward weight parameter representing the shortened distance;
[0148] The instant bonus for cost savings is calculated as:
[0149]
[0150] in, represents the immediate reward of cost savings at the current moment, represents the expected cost at the current moment, represents the actual cost at the current moment, a reward weight parameter representing cost savings;
[0151] The instant bonus calculation formula for the safety factor is:
[0152]
[0153] in, Indicates the instant reward of the safety factor at the current moment, Indicates the degree of road damage at the current moment. Indicates that the adjustment factor is The travel time predicted by the navigation software at that time, Reward weight parameter representing the safety factor;
[0154] The instant bonus calculation formula for efficient loading is:
[0155]
[0156] in, Indicates the instant reward for efficient loading at the current moment, Indicates the maximum load of the ambulance. Indicates the actual load of the ambulance at the current moment. Reward weight parameter representing loading efficiency;
[0157] The purpose of designing this reward is to encourage all ambulances to optimize rescue activities towards shorter travel distances, lower costs and higher safety factors.
[0158] The training of the emergency command and dispatch strategy network model includes the following steps:
[0159] Step 1: Randomly initialize the parameters of the policy network and the value network;
[0160] Step 2: reset the environment and obtain the first state;
[0161] Step 3: Get feedback based on the interaction between the action and the environment and the output of the current policy network. , next state and whether the termination condition is triggered , the termination condition is that all the people waiting to be rescued at all rescue points are taken away by the ambulance;
[0162] Experience Deposit into the experience pool, one experience is a four-tuple or ;
[0163] Step 4: Update the strategy network and value network;
[0164] The method for updating the policy network comprises the following steps:
[0165] 1. Randomly extract a certain number of experience samples from the experience replay pool to form a batch data set, and calculate the advantage function of the experience sample;
[0166]
[0167]
[0168]
[0169] in, represents the immediate reward obtained at time step t, Indicates status The value function estimate of represents the TD error, represents the Monte Carlo return for n steps, represents the estimated value of the advantage function at time step t, represents the discount factor, represents the cutoff coefficient;
[0170] 2. Calculate action probability using the current policy network , use the last updated policy network to calculate the action probability , calculate the ratio ;
[0171] 3. Use the clip objective function of PPO to limit the update step size;
[0172] The calculation formula of the strategy loss function is:
[0173]
[0174] in, represents the estimate of the advantage function, express parameter;
[0175] 4. Calculate the policy loss function with respect to the policy network parameters The gradient of , and update the parameters using the Adam optimizer;
[0176] The method for updating the value network comprises the following steps:
[0177] 1. The policy loss function of the value network is:
[0178]
[0179] in, represents the actual return, represents the prediction of the value network;
[0180] 2. Calculate the loss function of the value network with respect to the parameters The gradient of , and update the parameters through the Adam optimizer;
[0181] Step 5: Update the strategy network and value network every fixed number of network updates to make their parameters the same as those of the current emergency command and dispatch strategy network model;
[0182] Step 6: The step is terminated until the strategy network and the value network converge or the number of updates reaches the set value;
[0183] Step 104 is used to provide the coordinates of the rescue point to be headed for and the ratio of the number of people loaded for all ambulances and execute the emergency command and dispatch strategy with the highest probability in the Gaussian distribution corresponding to the mean and standard deviation output in the emergency command and dispatch strategy network model.
[0184] like Figure 2 As shown, a 120 emergency command and dispatch system based on a dual-active architecture includes the following modules:
[0185] Active-active data collection module 100, used to collect disaster data, emergency vehicle data and road data at rescue points;
[0186] This module uses a dual-active architecture and is deployed in at least two geographically independent data centers or cloud service areas to achieve concurrent collection and instant synchronization of data sources;
[0187] The active-active data collection module 100 includes a rescue point data collection submodule 110, an emergency vehicle data collection submodule 120, and a road data collection submodule 130;
[0188] Rescue point data collection submodule 110: used to collect and update the location and demand information of the rescue points;
[0189] The ambulance data collection submodule 120 is used to obtain the real-time location and status of the ambulance;
[0190] Road data collection submodule 130: used to monitor and analyze the real-time traffic conditions of roads, including congestion, closure, etc.;
[0191] The feature encoding and state construction module 200 is used to convert the collected raw data into a comprehensive state vector;
[0192] The feature encoding and state construction module 200 includes a feature encoder 210 and a state vector generator 220;
[0193] Feature encoder 210: used to encode rescue points, emergency vehicles, and road data respectively, and convert them into feature vectors that are easy for the model to understand;
[0194] State vector generator 220: used to sequentially combine disaster characteristics, vehicle characteristics and road characteristics into a comprehensive state vector as a basic input for subsequent decision-making;
[0195] Emergency command and dispatch strategy network model module 300, used to generate the best dispatch strategy;
[0196] The emergency command and dispatch strategy network model module 300 includes a strategy network submodule 310 and a value network submodule 320;
[0197] The policy network submodule 310 is used to predict the optimal dispatch decision for each emergency vehicle, including the target rescue point coordinates and the recommended loading ratio;
[0198] The value network submodule 320 is used to evaluate the expected effects of different scheduling strategies, assist in optimizing the decision-making process, and ensure the efficiency and practicality of the scheduling strategies;
[0199] The decision optimization and execution module 400 is used to select the scheduling strategy with the highest probability according to the output of the strategy network and the value network, and convert it into actual operation instructions;
[0200] The decision optimization and execution module 400 includes a policy parser 410, an instruction issuing system 420 and an execution monitor 430;
[0201] Strategy parser 410: used to parse the mean and standard deviation outputted in the emergency command and dispatch strategy network model, map them to Gaussian distribution, and select the optimal dispatch strategy;
[0202] Instruction issuing system 420: used to convert the selected dispatching strategy into specific instructions and send them to the corresponding emergency vehicles for execution;
[0203] Execution monitoring 430: used to monitor the execution status of scheduling instructions in real time, ensure the smooth progress of scheduling tasks, and collect feedback information for subsequent strategy optimization and adjustment;
[0204] System monitoring and active-active management module 500, used to ensure the stable operation of the entire system, including data flow monitoring, hardware resource management, active-active architecture maintenance, and active-active architecture failover;
[0205] Through the setting of the system monitoring and active-active management module 500, the working status and performance indicators of each module can be monitored in real time to ensure that when any single node or link fails, the system service seamlessly switches to the backup resource, and the health check and synchronization coordination of the active-active architecture ensure the consistency and availability of data and services.
[0206] A storage medium stores non-temporary computer-readable instructions. When the non-temporary computer-readable instructions are executed by a computer, the steps in the above-mentioned 120 emergency command and dispatch method based on a dual-active architecture can be executed.
[0207] The above describes an embodiment of the present embodiment, but the present embodiment is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present embodiment, ordinary technicians in this field can also make many forms, all of which are within the protection of the present embodiment.
Claims
1. A 120 emergency command and dispatch method based on a dual-active architecture, characterized in that: The following steps are involved: Step 101, collecting disaster data of rescue points, emergency vehicle data and road data according to the active-active architecture data collection system, wherein the disaster data of rescue points includes the location information and real-time demand of all rescue points, the emergency vehicle data includes the location and rescue status of the emergency vehicle, and the road data includes the real-time traffic conditions of the road; Step 102, firstly encode the disaster data of the rescue point into disaster characteristics, encode the emergency vehicle data into vehicle characteristics, and encode the road data into road characteristics, and then sequentially splice the disaster characteristics, vehicle characteristics and road characteristics into a comprehensive state vector; Step 103, constructing an emergency command and dispatch strategy network model, inputting the comprehensive state vector into the emergency command and dispatch strategy network model, and outputting the emergency command and dispatch strategy from the emergency command and dispatch strategy network model; the emergency command and dispatch strategy includes the coordinates of the rescue point to which each ambulance goes and the ratio of the number of people loaded; Step 104 is used to provide the coordinates of the rescue point to be headed for and the ratio of the number of people loaded for all ambulances and execute the emergency command and dispatch strategy with the highest probability in the Gaussian distribution corresponding to the mean and standard deviation output in the emergency command and dispatch strategy network model; The emergency command and dispatch strategy network model includes strategy network and value network; The strategy network includes a first input layer, which outputs a comprehensive state vector to a strategy processing layer, which generates an intermediate state vector and inputs it to a strategy generation layer, which outputs a mean and a standard deviation of each optional emergency command and dispatch strategy, and parameterizes the probability of each action through the mean and the standard deviation of the output emergency command and dispatch strategy; The value network includes a second input layer, the second input layer outputs a comprehensive state vector to the value processing layer, the value processing layer generates a value vector, the value vector is input to the value generation layer, and the value generation layer outputs an estimated value of the current state; The calculation formula of the policy processing layer is: ; in, represents the intermediate state vector, represents the weight matrix of the policy processing layer, represents the comprehensive state vector, represents the bias parameter of the policy processing layer, ReLU activation function. The calculation formula of the strategy generation layer is: ; ; in, represents the mean of the current state, represents the logarithmic standard deviation of the current state, , denote the weight matrices of mean and logarithmic standard deviation, h denotes the intermediate state vector, , Respectively represent the first and second bias parameters of the strategy generation layer; The calculation formula of the value processing layer is: ; in, represents the value vector, Represents the weight matrix of the value processing layer, represents the comprehensive state vector, Represents the bias parameters of the value processing layer; The calculation formula of the value generation layer is: ; in, In the comprehensive state vector The estimated value under the state of represents the weight matrix of the value generation layer, represents the value vector, Represents the bias parameter of the value generation layer.
2. According to the 120 emergency command and dispatch method based on active-active architecture according to claim 1, it is characterized in that: The status includes disaster data of rescue points, emergency vehicle data, and road data; Action space: The action space is generated by combining the coordinates of the rescue point each ambulance is heading to and the ratio of the number of people loaded; An action includes the coordinates of the rescue points and the ratio of the number of people loaded by all the ambulances that can be assigned to the emergency rescue center at the current moment; An allocatable ambulance is defined as an ambulance that is not on a return trip and has excess capacity to accommodate patients.
3. According to the 120 emergency command and dispatch method based on active-active architecture of claim 2, it is characterized in that: The reward function is calculated as follows: ; in, represents the total reward value, Represents the shortest travel distance reward, Represents a cost saving reward, Indicates the safety factor bonus, Indicates a reward for efficient loading; The calculation formula for the shortest distance reward is: ; in, Represents the shortest travel distance reward, represents the basic driving distance, Indicates the actual distance traveled by the ambulance. represents the reward weight parameter for shortening the distance; The cost savings bonus is calculated as follows: ; in, Represents a cost saving reward, Indicates the actual distance traveled by the ambulance. Indicates the total time of emergency rescue. , denote the first weight parameter and the second weight parameter respectively, a reward weight parameter representing cost savings; The calculation formula for the safety factor bonus is: ; in, Indicates the safety factor bonus, Indicates the extent of road damage. Indicates that the adjustment factor is The navigation software predicts the travel time at that time. Reward weight parameter representing the safety factor; The calculation formula for the efficient loading bonus is: ; in, Reward for efficient loading. Indicates the maximum load of the ambulance. Indicates the actual load of the ambulance. Parameter representing the reward weight for loading efficiency.
4. According to the 120 emergency command and dispatch method based on active-active architecture of claim 3, it is characterized in that: The calculation formula of the immediate reward function is as follows: ; in, Represents the instant total reward of a single decision at the current moment, Indicates the immediate reward of the distance reduction at the current moment, represents the immediate reward of cost savings at the current moment, Indicates the instant reward of the safety factor at the current moment, Indicates the immediate reward for efficient loading at the current moment; The calculation formula for the immediate reward of distance reduction is: ; in, Indicates the immediate reward of the distance reduction at the current moment, Indicates the actual driving distance of the ambulance at the current moment. represents the expected average driving distance to the next rescue point at the current moment, represents the reward weight parameter for shortening the distance; The instant bonus for cost savings is calculated as: ; in, represents the immediate reward of cost savings at the current moment, represents the expected cost at the current moment, represents the actual cost at the current moment, a reward weight parameter representing cost savings; The instant bonus calculation formula for the safety factor is: ; in, Indicates the instant reward of the safety factor at the current moment, Indicates the degree of road damage at the current moment. Indicates that the adjustment factor is The travel time predicted by the navigation software at that time, Reward weight parameter representing the safety factor; The instant bonus calculation formula for efficient loading is: ; in, Indicates the instant reward for efficient loading at the current moment, Indicates the maximum load of the ambulance. Indicates the actual load of the ambulance at the current moment. Parameter representing the reward weight for loading efficiency.
5. A 120 emergency command and dispatch system based on a dual-active architecture adopting a 120 emergency command and dispatch method based on a dual-active architecture as claimed in claim 4, characterized in that: Includes the following modules: Active-active data collection module, used to collect disaster data, emergency vehicle data and road data at rescue points; Feature encoding and state building module, used to convert the collected raw data into a comprehensive state vector; Emergency command and dispatch strategy network model module, used to generate the best dispatch strategy; The decision optimization and execution module is used to convert the optimal dispatch strategy output by the emergency command and dispatch strategy network model module into actual operation instructions; The system monitoring and active-active management module is used to ensure the stable operation of the entire system, including data flow monitoring, hardware resource management, maintenance of the active-active architecture, and failover of the active-active architecture.
6. A 120 emergency command and dispatch system based on a dual-active architecture according to claim 5, characterized in that: The active-active data collection module includes a rescue point data collection submodule, an emergency vehicle data collection submodule, and a road data collection submodule; Rescue point data collection submodule: used to collect and update the location and demand information of rescue points; Ambulance data collection submodule: used to obtain the real-time location and status of the ambulance; Road data collection submodule: used to monitor and analyze real-time road traffic conditions, including congestion and closure status; The feature encoding and state building module includes a feature encoder and a state vector generator; Feature encoder: used to encode rescue point, emergency vehicle, and road data respectively; State vector generator: used to sequentially splice disaster features, vehicle features and road features into a comprehensive state vector; The emergency command and dispatch strategy network model module includes a strategy network submodule and a value network submodule; The policy network submodule is used to predict the optimal dispatch decision for each ambulance, which includes the coordinates of the target rescue point and the recommended loading ratio; The value network submodule is used to evaluate the expected effects of different scheduling strategies; The decision optimization and execution module includes a policy parser, an instruction issuing system, and execution monitoring; Strategy parser: used to parse the mean and standard deviation of the output in the emergency command and dispatch strategy network model, map it to Gaussian distribution, and select the optimal dispatch strategy; Instruction issuing system: used to convert the optimal dispatching strategy into specific instructions and send them to the corresponding emergency vehicles for execution; Execution monitoring: used to monitor the execution status of scheduling instructions in real time.
7. A storage medium storing non-temporary computer-readable instructions, which, when executed by a computer, can execute the steps of a 120 emergency command and dispatch method based on a dual-active architecture as described in claim 4.
Citation Information
Patent Citations
Ambulance information management system
CN113506618A
First-aid after-delivery decision-making system and method based on multi-agent reinforcement learning
CN114626836A
Emergency material scheduling method fusing edge weight attention deep reinforcement learning
CN115619118A
Emergency material scheduling method considering road traffic constraint
CN115796418A
Beidou intelligent emergency rescue command and dispatch system
CN118278577A
