Emergency resource allocation method, device, equipment and medium
By obtaining the time and location of emergency incidents, calling the emergency data set, using the resource allocation model to determine the emergency personnel with the smallest response time and assigning them, the problems of uneven allocation of emergency resources and long response time are solved, and efficient and timely allocation of emergency resources are achieved.
Patent Information
- Application Number
- CN202411646329.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-18
- Publication Date
- 2025-03-28
AI Technical Summary
The existing emergency command platform lacks information sharing and integration capabilities, resulting in uneven allocation of emergency resources and long response time, which makes it impossible to meet modern emergency needs.
By obtaining the time and location of an emergency, calling the emergency data set, using the resource allocation model to determine the emergency personnel with the smallest response time, and sending processing notices to assign emergency personnel.
It has achieved efficient allocation of emergency resources when emergency resources are limited, ensuring that each emergency incident is responded in a timely manner, reducing manual scheduling time, and improving response efficiency and accuracy.
Smart Images

Figure CN119721544A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic information technology, and in particular to an emergency resource allocation method, device, equipment and medium. Background Art
[0002] In actual operation, the existing emergency command platform has insufficient information sharing and integration capabilities due to the existence of some heterogeneous technical systems and different terminal devices within the system. Emergency resource allocation has problems such as uneven resource allocation and long response time, poor usability, inflexibility and low efficiency. This shows that the lack of technical level has led to the command and dispatch system being unable to meet modern emergency needs. It is urgent to rely on the emergency command platform to establish an efficient and powerful emergency resource strategy system between the command center and front-line staff, the command center and the masses, and the command center and other emergency safety forces. Summary of the invention
[0003] The present invention provides an emergency resource allocation method, device, equipment and medium, which can still propose an efficient emergency resource allocation strategy under the condition of limited emergency resources.
[0004] The present invention provides an emergency resource allocation method, the method comprising: In response to the emergency event handling request, obtaining the occurrence time and location of the current emergency event; Calling an emergency data set, wherein the emergency data set includes a plurality of emergency personnel available for duty and a position of each of the emergency personnel; Determining a response time required for the emergency personnel to reach the location of the incident based on the distance between the location of the emergency personnel and the location of the incident; Using the trained resource allocation model, determine the emergency personnel who will perform the emergency task, wherein the emergency task requires that the response time of the emergency personnel who will perform the emergency task is the shortest among the response times of all the emergency personnel; A notification of handling the current emergency event is sent to the emergency personnel performing the emergency task, so as to assign the emergency personnel performing the emergency task to handle the current emergency event.
[0005] Further, the method of using the trained resource allocation model to determine the emergency personnel who perform the emergency task, wherein the requirement of the emergency task is that the response time corresponding to the emergency personnel who perform the emergency task is the smallest among the response times corresponding to each of the emergency personnel, includes: When multiple emergency events are received, generating an emergency event set according to each of the emergency events; Generate a data mapping relationship between the emergency event set and the emergency data set according to the resource allocation model, wherein the data mapping relationship includes a corresponding relationship between each of the emergency events and at least one emergency personnel and a corresponding relationship between each of the emergency personnel and a single target emergency event; Based on the data mapping relationship, multiple delegated emergency personnel are determined, and each of the delegated emergency personnel performs an emergency task corresponding to the target emergency event, wherein the requirement of the emergency task is that when performing the emergency task corresponding to the target emergency event, the response time corresponding to the delegated emergency personnel is the shortest among the response times corresponding to each of the emergency personnel.
[0006] Further, based on the data mapping relationship, a plurality of delegated emergency personnel are determined, each of the delegated emergency personnel performs an emergency task corresponding to the target emergency event, wherein the requirement of the emergency task is that when performing the emergency task corresponding to the target emergency event, the response time corresponding to the delegated emergency personnel is the shortest among the response times corresponding to each of the emergency personnel, including: Determine a reasonable arrival time based on the occurrence time and the response time; Determine the total response time required to handle each of the emergency events based on the reasonable arrival time and the preset maximum allowable response time; Based on the objective function, the pairing relationship between each emergency event and the target emergency personnel in the data mapping relationship is adjusted to minimize the total response time.
[0007] Further, the method comprises: Obtain the actual response time after multiple emergency incidents are handled to generate a historical response data set; The resource allocation model is trained based on the historical response data set and the real-time traffic information data set to update the response time and the maximum allowed response time respectively.
[0008] Further, the method comprises: When a plurality of emergency events are received, determining an event level of each of the emergency events; sorting each of the emergency events based on the event level of each of the emergency events to obtain an event queue; Taking the first emergency event in the event queue as the current emergency event, and executing the step of obtaining the occurrence time and location of the current emergency event in response to the emergency event processing request; When a processing notification of the first emergency event in the event queue is sent to a target emergency personnel, the status of the first emergency event in the event queue is marked as scheduled for processing; The next emergency event in the event queue is used as the current emergency event until the status of each emergency event in the event queue is marked as scheduled for processing.
[0009] Furthermore, the emergency personnel include full-time emergency personnel and part-time emergency personnel, and the method includes: Acquire information of part-time emergency personnel within a preset distance range centered on the location where the current emergency event occurs to determine a part-time emergency personnel who can handle the current emergency event; If the current emergency event is a special emergency event, a processing notification of the current emergency event is sent to the full-time emergency personnel and the part-time emergency personnel, so as to assign the full-time emergency personnel and the part-time emergency personnel to handle the current emergency event; If the current emergency event is a regular emergency event, a processing notification of the current emergency event is sent to the part-time emergency personnel, so as to assign the part-time emergency personnel to handle the current emergency event.
[0010] Further, the method comprises: Determining the level of the current emergency event according to the event information of the current emergency event; Determining the number of emergency personnel required for the current emergency based on the corresponding relationship between the level of the emergency and the number of emergency personnel; According to the area where each emergency personnel in each emergency data set is located, the emergency data set is divided into a plurality of emergency data subsets, and an emergency resource calling rate of each emergency data subset is determined; Determine a target emergency data subset and call target emergency personnel from the target emergency data subset according to the number of emergency personnel required for the current emergency event and the emergency resource calling rate of each emergency data subset; After sending the processing notification of the current emergency event to the target emergency personnel, the target emergency data subset is updated, and the emergency resource calling rate of each emergency data subset is updated.
[0011] The present invention also provides an emergency resource allocation device, the device comprising: An acquisition module, used to respond to an emergency event handling request and acquire the occurrence time and location of the current emergency event; A calling module, used to call an emergency data set, wherein the emergency data set includes a plurality of emergency personnel available for duty and the position of each of the emergency personnel; A first calculation module, for determining a response time required for the emergency personnel to reach the occurrence location based on a distance between the location of the emergency personnel and the occurrence location; A second calculation module is used to determine the emergency personnel who perform the emergency task by using the trained resource allocation model, wherein the emergency task requires that the response time corresponding to the emergency personnel who perform the emergency task is the minimum among the response times corresponding to each of the emergency personnel; The notification module is used to send a processing notification of the current emergency event to the emergency personnel performing the emergency task, so as to assign the emergency personnel performing the emergency task to handle the current emergency event.
[0012] The present invention also provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the emergency resource allocation method as described in any one of the above items when executing the computer program.
[0013] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the emergency resource allocation method as described in any one of the above items is implemented.
[0014] The present invention has at least the following beneficial effects: The technical solution of the present application can accurately calculate the response time required for the emergency personnel to reach the location of the incident based on the distance between the location of the emergency personnel and the location of the incident. This helps to identify the emergency resources that are closest to the emergency incident and can arrive at the scene the fastest. Using the trained resource allocation model, the solution can automatically determine the emergency personnel who perform the emergency task to ensure that the emergency personnel with the shortest response time are selected. The technical solution of the present application optimizes the allocation of emergency resources through an intelligent model to ensure that each emergency incident can receive a timely and reasonable emergency response, thereby solving the problem of uneven resource allocation, and through an automated resource allocation process, it reduces the time consumption of manual scheduling, improves response efficiency, and solves the problem of long response time. In addition, by reducing the intervention of manual decision-making, the present solution can reduce the erroneous allocation caused by human factors and improve the accuracy and efficiency of emergency scheduling. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The accompanying drawings are used to provide a further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the technical solution of the present invention and do not constitute a limitation on the technical solution of the present invention.
[0016] Figure 1 is a first flow chart of an emergency resource allocation method; Figure 2 is a flow chart of step S104 in the emergency resource allocation method; Figure 3 is a second flow chart of an emergency resource allocation method; Figure 4 is a third flow chart of an emergency resource allocation method; Figure 5 is a flowchart of the fourth step of an emergency resource allocation method; Figure 6 It is an execution flow chart of an emergency resource allocation method when it is applied in a specific application scenario; Figure 7 It is a schematic diagram of the structure of an emergency resource allocation device; Figure 8 It is a structural diagram of an electronic device. DETAILED DESCRIPTION
[0017] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0018] It should be noted that before describing the embodiments of the present invention, the technical terms involved in the embodiments of the present invention are explained first, among which: The Dijkstra algorithm is an algorithm for calculating the shortest path from a single source in a graph. It is used to calculate the shortest path from a single source point to all other nodes in a weighted graph. The algorithm is applicable to directed and undirected graphs with non-negative weights. The Dijkstra algorithm starts from the source point and gradually expands to the entire graph, gradually determining the shortest path for each node through a greedy strategy. This process can be divided into several key steps: initialize the distance from all nodes to the source point to infinity (except the source point itself is 0), then continuously select unprocessed nodes that are closest to the source point, and update the distance of its neighbor nodes.
[0019] Mixed-Integer Programming (MIP) is a mathematical optimization model that combines the characteristics of integer programming and linear programming. In this model, some or all of the decision variables are restricted to integers. MIP models are widely used in operations research and operations management to solve various practical problems such as resource allocation, scheduling, and facility location.
[0020] Please refer to Figure 1 , Figure 1 The present invention is a first flow chart of an emergency resource allocation method.
[0021] This embodiment provides an emergency resource allocation method, the method comprising: S101. In response to an emergency event handling request, obtain the occurrence time and location of the current emergency event.
[0022] S102: call an emergency data set, where the emergency data set includes a plurality of emergency personnel available for duty and the location of each emergency personnel.
[0023] S103: Determine the response time required for the emergency personnel to arrive at the location of the incident based on the distance between the location of the emergency personnel and the location of the incident.
[0024] S104. Determine emergency personnel who perform emergency tasks by using the trained resource allocation model, wherein the emergency task requires that the response time of the emergency personnel who perform the emergency task is the shortest among the response times of all emergency personnel.
[0025] S105: Send a processing notification of the current emergency event to the emergency personnel who are performing the emergency task, so as to assign the emergency personnel who are performing the emergency task to handle the current emergency event.
[0026] It is understandable that this embodiment can accurately calculate the response time required for the emergency personnel to reach the location of the occurrence based on the distance between the location of the emergency personnel and the location of the occurrence, which helps to identify the emergency resources that are closest to the emergency event and can arrive at the scene the fastest. Utilizing the trained resource allocation model, the solution can automatically determine the emergency personnel who perform the emergency task to ensure that the emergency personnel with the shortest response time are selected. The technical solution of the present application optimizes the allocation of emergency resources through an intelligent model to ensure that each emergency event can receive a timely and reasonable emergency response, thereby solving the problem of uneven resource allocation, and through the automated resource allocation process, it reduces the time consumption of manual scheduling, improves response efficiency, and solves the problem of long response time. In addition, by reducing the intervention of manual decision-making, this solution can reduce the erroneous allocation caused by human factors and improve the accuracy and efficiency of emergency scheduling.
[0027] In step S101 of some embodiments, data collection and preparation are required before the occurrence time and location of the current emergency event can be obtained, for example, emergency information and geographic information contained in the emergency event are collected, and preprocessing is performed after collecting this information.
[0028] In step S104 of some embodiments, the basis of the resource allocation model is a mixed integer programming (MIP) model, including variable definitions, an objective function (minimizing response time) and constraints.
[0029] Please refer to Figure 2 , Figure 2 The present invention is a flowchart of step S104 in the emergency resource allocation method.
[0030] In some embodiments, step S104 includes: S201. When multiple emergency events are received, generate an emergency event set according to each emergency event.
[0031] S202: Generate a data mapping relationship between an emergency event set and an emergency data set according to a resource allocation model, wherein the data mapping relationship includes a corresponding relationship between each emergency event and at least one emergency personnel and a corresponding relationship between each emergency personnel and a single target emergency event.
[0032] S203. Based on the data mapping relationship, multiple delegated emergency personnel are determined, and each delegated emergency personnel performs an emergency task corresponding to the target emergency event, wherein the emergency task requirement is that when performing the emergency task corresponding to the target emergency event, the response time corresponding to the delegated emergency personnel is the smallest among the response times corresponding to each emergency personnel.
[0033] This embodiment is described through a specific application scenario. Assume that in a city, the command center receives three emergency events within one minute, which are located in areas A, B, and C. At the same time, the command center has an emergency data set, which shows that there are currently five emergency personnel located in areas D, E, F, G, and H, and these emergency personnel are all available for duty.
[0034] The command center first records the three emergency events received and generates an emergency event set, which includes emergency event information in Area A, Area B, and Area C. The command center calls the emergency data set to obtain the location information of the five emergency personnel currently on duty. Using the resource allocation model, the command center calculates the expected response time for each emergency personnel to reach the three emergency locations and generates a data mapping relationship. This model takes into account factors such as the current location, traffic conditions, and route selection of the emergency personnel. The data mapping relationship produced is as follows: Emergency Personnel 1 (Area F): It takes 6 minutes to reach Area A, 7 minutes to reach Area B, and 11 minutes to reach Area C. Emergency Personnel 2 (Area E): It takes 3 minutes to reach Area A, 8 minutes to reach Area B, and 12 minutes to reach Area C. Based on the data mapping relationship, the command center determines the assigned emergency personnel for each emergency event to ensure that the response time of each assigned emergency personnel is the shortest among all emergency personnel. Based on the above response time, the command center makes the following allocation: For example, emergency event in Area B: Delegate Emergency Personnel 2 (Area E) with a response time of 8 minutes. Emergency in Zone C: Emergency personnel 1 (Zone F) is assigned with a response time of 11 minutes. The command center sends a processing notification to the assigned emergency personnel and assigns them to go to the emergency locations they are responsible for to perform emergency tasks. While the emergency personnel are performing their tasks, the command center continuously monitors the location and status of all emergency personnel, as well as new emergency events. If necessary, the command center can readjust resource allocation to respond to new situations.
[0035] It can be understood that through this implementation plan, the command center can quickly and effectively allocate emergency resources to where they are most needed, ensuring that each emergency event can receive a timely response, while optimizing the use of emergency resources, reducing response time, and improving overall emergency efficiency.
[0036] In some embodiments, step S202 includes: Determine the reasonable arrival time based on the occurrence time and the response time; determine the total response time required to handle each emergency event based on the reasonable arrival time and the preset maximum allowable response time; based on the objective function, adjust the pairing relationship between each emergency event and the target emergency personnel in the data mapping relationship to minimize the total response time.
[0037] It can be understood that, through this embodiment, the resource allocation model can perform more precise and accurate calculations, and a specific application scenario is used to describe the calculation process of the resource allocation model in this embodiment. Assume that the response time is t ij , represents the expected time for emergency personnel i to arrive at emergency time j; the maximum allowable response time T max , represents the maximum time limit of the response time; the event occurrence time t a j , represents the time when emergency event j occurs. In addition, the decision scalar x is introduced ij , indicating whether emergency personnel i is assigned to emergency event j, x ij =1 means allocation, x ij =0 means unassigned; distance d i , represents the initial distance from the emergency personnel i to the emergency event. The emergency event set J includes multiple emergency events j, and the emergency data set includes multiple emergency personnel i available for duty.
[0038] First, the resource allocation model needs to set the objective function, which aims to minimize the total response time of all emergency events. The objective function is:
[0039] Next, set the constraints. Constraint 1: Each emergency time must be responded to, and each emergency event must have at least one emergency personnel responding. The mathematical expression of constraint 1 is:
[0040] Constraint 2: The response time must not exceed the maximum allowed response time. The data expression of constraint 2 is:
[0041] Constraint 3: Consider the current location of the emergency personnel and the time when the emergency occurs, ensuring that the emergency personnel can arrive at the location of the incident within a reasonable arrival time after the emergency occurs. The data expression of constraint 3 is:
[0042] Through the objective function, the total response time is minimized, and on the premise of minimizing the total response time, emergency events are matched with emergency personnel to obtain a better pairing relationship between emergency events and emergency personnel.
[0043] In some embodiments, an emergency resource allocation method further includes: The actual response time after multiple emergency events are handled is obtained to generate a historical response data set. Based on the historical response data set and the real-time traffic information data set, a resource allocation model is trained to update the response time and the maximum allowed response time respectively.
[0044] It is understandable that in practical applications, the parameters of the resource allocation model need to be adjusted regularly based on historical response data and real-time traffic information, such as updating t ij The predicted value is used to reflect the actual road condition changes and adjust T max To adapt to response time fluctuations caused by seasonality or special events.
[0045] In some embodiments, the parameters of the resource allocation model are adjusted regularly according to system feedback data and user evaluation information to optimize response time and resource allocation efficiency and improve monitoring system performance.
[0046] Please refer to Figure 3 , Figure 3 The present invention is a second flow chart of an emergency resource allocation method.
[0047] In some embodiments, an emergency resource allocation method further includes: S301. When multiple emergency events are received, determine the event level of each emergency event.
[0048] S302: Sort each emergency event based on the event level of each emergency event to obtain an event queue.
[0049] S303: Take the first emergency event in the event queue as the current emergency event, and execute step S101.
[0050] S304: When the processing notification of the first emergency event in the event queue is sent to the target emergency personnel, the status of the first emergency event in the event queue is marked as scheduled for processing.
[0051] S305: The next emergency event in the event queue is used as the current emergency event until the status of each emergency event in the event queue is marked as scheduled for processing.
[0052] It is understandable that this embodiment sorts according to the event level of each emergency event to ensure that high-level emergency events are handled first. This sorting mechanism helps to improve the response speed of emergency events, thereby possibly reducing damage or risks in emergency situations. After the processing notification is sent to the target emergency personnel, the status of the event will be marked as "scheduled for processing". This status tracking mechanism helps to monitor the progress of event processing and ensure that events are not processed repeatedly or omitted. By marking event status and tracking processing progress, the system improves the transparency and traceability of event processing, facilitates post-analysis and quality control, helps to reduce the time from the occurrence of an emergency to response, and improves overall response efficiency. Furthermore, emergency dispatch is dynamically adjusted according to real-time data and event status to improve the flexibility and adaptability of dispatch.
[0053] Please refer to Figure 4 , Figure 4 The third flow chart is a method for allocating emergency resources.
[0054] In some embodiments, the emergency personnel include full-time emergency personnel and part-time emergency personnel. An emergency resource allocation method also includes: S401. Obtain information on part-time emergency personnel within a preset distance range centered on the location where the current emergency event occurs to determine part-time emergency personnel who can handle the current emergency event.
[0055] S411. In response to an emergency event handling request, obtain the occurrence time and location of the current emergency event.
[0056] S412: Calling an emergency data set, where the emergency data set includes a plurality of emergency personnel available for duty and the location of each emergency personnel.
[0057] S413: Determine the response time required for the emergency personnel to arrive at the location of the incident based on the distance between the location of the emergency personnel and the location of the incident.
[0058] S414. Determine emergency personnel who perform emergency tasks by using the trained resource allocation model, wherein the emergency task requires that the response time of the emergency personnel who perform the emergency task is the shortest among the response times of all emergency personnel.
[0059] S415. If the current emergency event is a special emergency event, a processing notification of the current emergency event is sent to full-time emergency personnel and part-time emergency personnel, so as to assign the full-time emergency personnel and part-time emergency personnel to handle the current emergency event.
[0060] S421. In response to an emergency event handling request, obtain the occurrence time and location of the current emergency event.
[0061] S422. Calling an emergency data set, where the emergency data set includes a plurality of emergency personnel available for duty and the location of each emergency personnel.
[0062] S423: Determine the response time required for the emergency personnel to arrive at the location of the incident based on the distance between the location of the emergency personnel and the location of the incident.
[0063] S424. Determine emergency personnel who perform emergency tasks by using the trained resource allocation model, wherein the emergency task requires that the response time of the emergency personnel who perform the emergency task is the shortest among the response times of all emergency personnel.
[0064] S425. If the current emergency event is a regular emergency event, a processing notification of the current emergency event is sent to a part-time emergency personnel, so as to assign the part-time emergency personnel to handle the current emergency event.
[0065] It is understandable that this embodiment is described by taking an example of a command system receiving an emergency event in a specific application scenario. After the emergency event is input, the system parameters are updated and business processing is prepared, the system automatically predicts the event level, and outputs the level as level one emergency, level two emergency, level three emergency and level four emergency.
[0066] It can be understood that in this embodiment, for example, the full-time emergency personnel are on-duty civil servants, and the part-time emergency personnel are security guards.
[0067] Level 1 emergency, i.e. emergency response, refers to those emergencies that may pose a direct threat to the safety of personnel life or a major threat to the safety of company property. Examples include fire, explosion, serious violence, destruction of important facilities, etc. All security guards on site must respond immediately, arrive at the scene quickly, carry out necessary rescue and disposal, and call the police immediately to request support from relevant rescue departments.
[0068] Secondary emergency, i.e. important emergency, refers to those incidents that may pose a potential threat to the safety of personnel life or a greater threat to the safety of company property. Examples include petty theft, vandalism, small-scale fighting, etc. According to the situation, an appropriate number of security guards (5-8 people) are assigned to the scene to deal with it and decide whether to call the police depending on the situation.
[0069] Level 3 emergency, i.e. general emergency, refers to those events that may pose a minor threat to the safety of personnel life, or a certain threat to the safety of company property. Examples include noise nuisance, minor disputes, illegal parking, etc. Assign 1-3 security guards to the scene to warn or persuade, and if the situation cannot be controlled, consider calling the police.
[0070] Level 4 emergency, i.e. observation emergency, refers to those events that have a certain impact on the normal operation of the company but will not pose a threat to the safety of personnel and company property. Examples include employees smoking in non-designated areas, employees using mobile phones during working hours, etc. Assign a security guard to the scene to observe and record, and give warnings or persuasion when necessary.
[0071] If the event is level 3-4, a security guard is dispatched to handle the event. The security guard allocation can be calculated by the Dijkstra algorithm based on the distance of the idle security guards.
[0072] If the incident is level 1-2, it will enter the on-duty civil servant processing stage and the on-duty civil servants will be allocated by the resource allocation model based on factors such as availability and emergency response.
[0073] In order to prevent task overlap, it is necessary to ensure that after the assignment of the on-duty civil servants, the responded events are removed, or the repeated responses to the same event are limited through algorithm logic to avoid the waste of emergency resources and make the model optimization tend to disperse emergency resources to different events. Based on this, the present application also provides the following embodiments.
[0074] It can be understood that this embodiment realizes flexible adjustment of strategies according to event changes and resource conditions by requesting support from neighboring areas and reallocating non-emergency tasks.
[0075] Please refer to Figure 5 , Figure 5 It is a flow chart of the fourth step of the emergency resource allocation method.
[0076] In some embodiments, an emergency resource allocation method further includes: S501. Determine the level of the current emergency event according to the event information of the current emergency event.
[0077] S502: Determine the number of emergency personnel required for the current emergency based on the corresponding relationship between the level of the emergency and the number of emergency personnel.
[0078] S503: Divide the emergency data set into a plurality of emergency data subsets according to the area where each emergency personnel in each emergency data set is located, and determine the emergency resource calling rate of each emergency data subset.
[0079] S504: Determine a target emergency data subset and call target emergency personnel from the target emergency data subset according to the number of emergency personnel required for the current emergency event and the emergency resource calling rate of each emergency data subset.
[0080] S505: After sending the processing notification of the current emergency event to the target emergency personnel, the target emergency data subset is updated, and the emergency resource calling rate of each emergency data subset is updated.
[0081] On the basis of steps S501 to S504, a penalty term is designed to penalize those areas with low emergency resource utilization, and the model is optimized to tend to disperse emergency resources to different events. The following implementation steps can be taken: First, collect emergency resource usage data from each region, including the number of emergency responders, number of emergencies, number of cases, etc. in each region, and analyze the emergency resource utilization rate of each region to determine which regions have utilization rates below the average.
[0082] Second, design a quantitative indicator to measure the utilization rate of emergency resources, such as "number of emergency cases handled per unit" or "emergency idle rate". Define the calculation formula of the penalty item according to the utilization rate. For example, the inverse of the emergency idle rate can be used as the penalty item. The lower the utilization rate, the greater the penalty item value.
[0083] Third, a penalty term is introduced into the existing resource allocation model as part of the optimization objective. The objective function of the model can be adjusted to the weighted sum of minimizing the response time and maximizing the balanced distribution of emergency resources. The formula can be expressed as: {objective function} = {response time} + {λ×penalty term}], where λ is a weight factor used to balance response time and resource utilization.
[0084] Fourth, the weight factor λ is dynamically adjusted according to the actual situation to reflect the different emphasis on response time and resource utilization in different time periods.
[0085] Fifth, use historical data to train the adjusted model to ensure that the model can effectively learn how to balance response time and resource utilization.
[0086] Sixth, the performance of the model is evaluated through the test set to ensure that after the introduction of the penalty term, the model can tend to disperse emergency resources to different events while maintaining a reasonable response time.
[0087] Seventh, deploy the trained model to the actual emergency resource scheduling system and start allocating resources based on the model's recommendations. Monitor the model's performance in real time and collect feedback data to further adjust and optimize the model.
[0088] Eighth, regularly evaluate the effectiveness of the model, including response time, resource utilization, and overall public security. Based on the evaluation results and feedback from actual operations, iteratively optimize the model and adjust the penalty terms and weight factors to adapt to the ever-changing actual needs.
[0089] Please refer to Figure 6 , Figure 6 It is an execution flow chart of an emergency resource allocation method when it is applied in a specific application scenario.
[0090] As shown in the figure, the present application provides an emergency resource allocation method applied in a specific application scenario. In this specific embodiment, the system first starts working by sensing and collecting event information. This may involve receiving emergency information from different sources, such as telephone, network, mobile application, etc. The collected data will be used for event prediction, and the system will analyze the urgency and type of the event based on historical data and current situation. The system will dynamically adjust resource allocation and transaction processing based on new data. This means that the system can respond to event changes in real time and optimize the use of emergency resources. Based on the results of event prediction and dynamic adjustment of data, the system will dispatch security forces and track the processing status to ensure that the event is handled promptly and effectively. The system uses the Dijkstra algorithm to optimize the path selection for attendance. The Dijkstra algorithm is a graph search algorithm used to find the shortest path between two nodes in a graph. Here, it is used to determine the shortest path for emergency personnel to reach the target location. The system will dynamically adjust the data according to the level of the event (level one or level two) to ensure that high-level events can be given priority. The system will consider geographic location information to optimize resource allocation to ensure that the emergency can quickly reach the target location. The system may use a mixed-integer programming (MIP) model to solve the resource allocation problem, which is a mathematical optimization method used to find the optimal solution under a set of constraints. Here, it is used to ensure the completion of the task while satisfying various constraints. For example, if the incident is a routine incident, only part-time emergency personnel can be dispatched to the incident site to handle the incident; if the incident is an emergency, both part-time and full-time emergency personnel are dispatched. Part-time emergency personnel (generally closer to the scene of the incident) will first go to the scene for primary prevention and control, and wait for full-time emergency personnel to arrive at the scene for joint processing.
[0091] In this specific embodiment, it is assumed that there are 5 emergency personnel in the emergency data set, numbered 1, 2, 3, 4, and 5 respectively. At the same time, there are 3 emergency events, numbered ,={A, B, C], which are sorted by urgency, with C being the most urgent.
[0092] Event A occurs at time 10:00, and the locations are d away from the starting point of the event. 1A = 5 minutes, d2A =10 minutes, etc.
[0093] Event B occurred at 10:05, which is farther away.
[0094] Event C occurs at 10:02, which is very urgent and close to emergency personnel. ic All less than 5 minutes.
[0095] All emergency personnel were available at 10:00.
[0096] Maximum allowed response time T max =20 minutes.
[0097] Based on geographic location, estimate t ij It can be simply assumed to be a straight line route from emergency personnel i to incident j (in minutes) plus a fixed processing time, for example, assuming 1 km per minute and 2 minutes of processing time.
[0098] Create a priority queue, with event C at the top because it is the most urgent, followed by A, and finally B. Record the starting position and status of the emergency personnel, and the status of all emergency personnel is idle.
[0099] Event C allocation: Since event C is urgent and the distance from all emergency personnel to event C is less than 5 minutes, the nearest emergency personnel 1 is selected for allocation, x 1C =1.
[0100] Event A allocation: Check the next most urgent event A in the queue. At this time, emergency personnel 2 is closest to business A. Assign emergency personnel 2, x 2A =1.
[0101] Event B allocation: Finally, event B is processed. It is assumed that the distances of emergency personnel 3 and 4 to B meet the response time requirements. However, for simplicity, only emergency personnel 3 is allocated, x 3B =1.
[0102] Assume that emergency personnel 1 completes task C and checks the queue. Since emergency personnel at A and B have already responded, emergency personnel 1 enters standby status.
[0103] Assume that after a period of time, traffic conditions change, causing the expected response time to event B to increase by more than T max , algorithms need to be re-evaluated, and emergency personnel may need to be reallocated or backup requested.
[0104] In this case, the most urgent event C was responded to quickly, and emergency personnel were ensured to respond to all events, which met the goal of minimizing the response time. The dynamic adjustment mechanism ensured efficient redistribution of emergency resources, while the optimization iteration took into account changes in external conditions, which was conducive to improving adaptability and flexibility.
[0105] It is understandable that the emergency resource allocation method of any of the above embodiments can be used by departments or companies that need to mobilize personnel, such as police departments, fire departments, medical assistance organizations or security companies.
[0106] Please refer to Figure 7 , Figure 7 The invention is a structural schematic diagram of an emergency resource allocation device.
[0107] This embodiment provides an emergency resource allocation device, which includes: The acquisition module 701 is used to respond to an emergency event handling request and acquire the occurrence time and location of the current emergency event.
[0108] The calling module 702 is used to call the emergency data set, which includes a plurality of emergency personnel available for duty and the location of each emergency personnel.
[0109] The first calculation module 703 is used to determine the response time required for the emergency personnel to arrive at the occurrence location based on the distance between the location of the emergency personnel and the occurrence location.
[0110] The second calculation module 704 is used to determine the emergency personnel who perform the emergency task by using the trained resource allocation model, wherein the emergency task requires that the response time corresponding to the emergency personnel who perform the emergency task is the shortest among the response times corresponding to each emergency personnel.
[0111] The notification module 705 is used to send a processing notification of the current emergency event to the emergency personnel performing the emergency task, so as to assign the emergency personnel performing the emergency task to handle the current emergency event.
[0112] It will be appreciated by those skilled in the art that all or some of the steps and devices in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or transient medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. As is well known to those skilled in the art, communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0113] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0114] An embodiment of the present application provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, any of the above emergency resource allocation methods is implemented.
[0115] refer to Figure 8 , Figure 8 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes: The processor 801 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application; The memory 802 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 802 can store operating devices and other applications. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 802, and the processor 801 calls and executes the emergency resource allocation method of the embodiment of the present application; Input / output interface 803, used to implement information input and output; The communication interface 804 is used to realize the communication interaction between the device and other devices. The communication can be realized through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.); A bus 805 that transmits information between various components of the device (e.g., the processor 801, the memory 802, the input / output interface 803, and the communication interface 804); The processor 801 , the memory 802 , the input / output interface 803 and the communication interface 804 are connected to each other in communication within the device via a bus 805 .
[0116] It can be understood that the contents of the above method embodiments are all applicable to the electronic device embodiment, the functions specifically implemented by the electronic device embodiment are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0117] An embodiment of the present application provides a computer-readable storage medium, which stores a program executable by a processor. When the program executable by the processor is executed by the processor, it is used to implement the emergency resource allocation method as described in any one of the above specific embodiments.
[0118] An embodiment of the present application also discloses a computer program product, including a computer program or computer instructions, wherein the computer program or computer instructions are stored in a computer-readable storage medium, a processor of a computer device reads the computer program or computer instructions from the computer-readable storage medium, and the processor executes the computer program or computer instructions, so that the computer device executes the emergency resource allocation method described in any of the previous embodiments.
[0119] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0120] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, device, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. It should be understood that in the present application, "at least one (item)" refers to one or more, and "a plurality" refers to two or more.
[0121] In the several embodiments provided in the present application, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0122] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0123] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0124] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store program codes.
[0125] Although the description of the present application has been quite detailed and specifically describes several described embodiments, it is not intended to be limited to any of these details or embodiments or any particular embodiment, but should be regarded as providing a broad possible interpretation of these claims by reference to the attached claims, taking into account the prior art, so as to effectively cover the intended scope of the present application. In addition, the above description of the present application is based on the embodiments foreseeable by the inventor, and its purpose is to provide a useful description, and those non-substantial changes to the present application that have not yet been foreseen may still represent equivalent changes to the present application.
Claims
1. An emergency resource allocation method, characterized in that: The method comprises: In response to the emergency event handling request, obtaining the occurrence time and location of the current emergency event; Calling an emergency data set, wherein the emergency data set includes a plurality of emergency personnel available for duty and a position of each of the emergency personnel; Determining a response time required for the emergency personnel to reach the location of the incident based on the distance between the location of the emergency personnel and the location of the incident; Using the trained resource allocation model, determine the emergency personnel who will perform the emergency task, wherein the emergency task requires that the response time of the emergency personnel who will perform the emergency task is the shortest among the response times of all the emergency personnel; A notification of handling the current emergency event is sent to the emergency personnel performing the emergency task, so as to assign the emergency personnel performing the emergency task to handle the current emergency event.
2. The method for allocating emergency resources according to claim 1, characterized in that: The method of using the trained resource allocation model to determine the emergency personnel who perform the emergency task, wherein the requirement of the emergency task is that the response time corresponding to the emergency personnel who perform the emergency task is the shortest among the response times corresponding to each of the emergency personnel, includes: When multiple emergency events are received, generating an emergency event set according to each of the emergency events; Generate a data mapping relationship between the emergency event set and the emergency data set according to the resource allocation model, wherein the data mapping relationship includes a corresponding relationship between each of the emergency events and at least one emergency personnel and a corresponding relationship between each of the emergency personnel and a single target emergency event; Based on the data mapping relationship, multiple delegated emergency personnel are determined, and each of the delegated emergency personnel performs an emergency task corresponding to the target emergency event, wherein the requirement of the emergency task is that when performing the emergency task corresponding to the target emergency event, the response time corresponding to the delegated emergency personnel is the shortest among the response times corresponding to each of the emergency personnel.
3. The method for allocating emergency resources according to claim 2, characterized in that: Based on the data mapping relationship, a plurality of delegated emergency personnel are determined, each of the delegated emergency personnel performs an emergency task corresponding to a target emergency event, wherein the requirement of the emergency task is that when performing the emergency task corresponding to the target emergency event, the response time corresponding to the delegated emergency personnel is the shortest among the response times corresponding to each of the emergency personnel, including: Determine a reasonable arrival time based on the occurrence time and the response time; Determine the total response time required to handle each of the emergency events based on the reasonable arrival time and the preset maximum allowable response time; Based on the objective function, the pairing relationship between each emergency event and the target emergency personnel in the data mapping relationship is adjusted to minimize the total response time.
4. The method for allocating emergency resources according to claim 3, characterized in that: The method comprises: Obtain the actual response time after multiple emergency incidents are handled to generate a historical response data set; The resource allocation model is trained based on the historical response data set and the real-time traffic information data set to update the response time and the maximum allowed response time respectively.
5. The method for allocating emergency resources according to claim 1, characterized in that: The method comprises: When a plurality of emergency events are received, determining an event level of each of the emergency events; sorting each of the emergency events based on the event level of each of the emergency events to obtain an event queue; Taking the first emergency event in the event queue as the current emergency event, and executing the step of obtaining the occurrence time and location of the current emergency event in response to the emergency event processing request; When a processing notification of the first emergency event in the event queue is sent to a target emergency personnel, the status of the first emergency event in the event queue is marked as scheduled for processing; The next emergency event in the event queue is used as the current emergency event until the status of each emergency event in the event queue is marked as scheduled for processing.
6. The method for allocating emergency resources according to claim 1, characterized in that: The emergency personnel include full-time emergency personnel and part-time emergency personnel, and the method includes: Acquire information of part-time emergency personnel within a preset distance range centered on the location where the current emergency event occurs to determine a part-time emergency personnel who can handle the current emergency event; If the current emergency event is a special emergency event, a processing notification of the current emergency event is sent to the full-time emergency personnel and the part-time emergency personnel, so as to assign the full-time emergency personnel and the part-time emergency personnel to handle the current emergency event; If the current emergency event is a regular emergency event, a processing notification of the current emergency event is sent to the part-time emergency personnel, so as to assign the part-time emergency personnel to handle the current emergency event.
7. The method for allocating emergency resources according to claim 1, characterized in that: The method comprises: Determining the level of the current emergency event according to the event information of the current emergency event; Determining the number of emergency personnel required for the current emergency based on the corresponding relationship between the level of the emergency and the number of emergency personnel; According to the area where each emergency personnel in each emergency data set is located, the emergency data set is divided into a plurality of emergency data subsets, and an emergency resource calling rate of each emergency data subset is determined; Determine a target emergency data subset and call target emergency personnel from the target emergency data subset according to the number of emergency personnel required for the current emergency event and the emergency resource calling rate of each emergency data subset; After the processing notification of the current emergency event is sent to the target emergency personnel, the target emergency data subset is updated, and the emergency resource calling rate of each emergency data subset is updated.
8. An emergency resource allocation device, characterized in that: The device comprises: An acquisition module, used to respond to an emergency event handling request and acquire the occurrence time and location of the current emergency event; A calling module, used to call an emergency data set, wherein the emergency data set includes a plurality of emergency personnel available for duty and the position of each of the emergency personnel; A first calculation module, for determining a response time required for the emergency personnel to reach the occurrence location based on a distance between the location of the emergency personnel and the occurrence location; A second calculation module is used to determine the emergency personnel who perform the emergency task by using the trained resource allocation model, wherein the emergency task requires that the response time corresponding to the emergency personnel who perform the emergency task is the minimum among the response times corresponding to each of the emergency personnel; The notification module is used to send a processing notification of the current emergency event to the emergency personnel performing the emergency task, so as to assign the emergency personnel performing the emergency task to handle the current emergency event.
9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the emergency resource allocation method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the emergency resource allocation method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Police resource scheduling method and system and storage medium
CN115375200A
Airport resource allocation method and device, electronic equipment and readable storage medium
CN116485098A
Subway emergency event personnel distribution method and device
CN116862150A
Fire emergency response method and system
CN116957302A
Emergency scheduling method for airport resources in emergencies
CN118761599A
Cited By
Emergency linkage processing method, system and equipment
CN121436910A