Fire-fighting data resource scheduling method based on shared internet of things
By constructing state tensors and predictive pre-allocation vectors, and combining them with reinforcement learning strategies, the data transmission path is dynamically adjusted, which solves the data transmission bottleneck when multiple fire incidents occur concurrently, realizes the priority transmission of high-priority data, and improves the overall efficiency of fire emergency rescue.
Patent Information
- Application Number
- CN202611654177.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-26
- Publication Date
- 2026-11-24
AI Technical Summary
In the city-level fire protection shared IoT system, when multiple fire incidents occur concurrently, high-priority fire alarm data is overwhelmed due to bandwidth limitations, making it difficult for the command and dispatch system to complete targeted responses within a limited time. Existing technologies lack a data transmission quota mechanism that dynamically adjusts data based on event priority, data value, and link quality, resulting in improper resource allocation and weakening the overall emergency rescue effectiveness.
Construct a state tensor and a predictive pre-allocation vector, calculate the comprehensive transmission value through a reinforcement learning strategy, and select actions such as local discarding, low-latency direct transmission to the edge cloud, end-to-cloud collaborative compression and backhaul, or cloud batch archiving to achieve edge data transmission gating and inference task offloading. Jointly update the multi-dimensional weight vector and historical emergency response thermal prediction model to adapt to changes in link quality and fire situation.
This effectively prevents critical parameters from being overwhelmed under high concurrency, ensures the priority transmission of high-priority fire alarm data, and improves overall emergency rescue efficiency.
Smart Images

Figure CN123164075A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of edge collaboration technology, and more specifically, to a method for scheduling fire data resources based on a shared Internet of Things. Background Technology
[0002] The city-level shared IoT for fire protection has become the infrastructure for urban fire safety prevention and control. Its access targets cover multiple fire brigades, key fire prevention units, high-rise buildings in commercial districts, and transportation hubs, among other diverse entities. During weekday morning and evening rush hours, if two or more fires occur simultaneously, data from multiple site video surveillance, smoke and temperature sensors, fire hydrant pressure monitoring, and vehicle positioning are all reported in full, forming a high-concurrency data stream. At the same time, public network congestion, traffic signal system backhaul delays, and differences in cross-regional permission policies further exacerbate the uncertainty of data aggregation and distribution. The command center not only needs to complete the cross-team allocation of physical resources such as vehicles, personnel, and water sources, but also must coordinate communication frequency bands, edge computing nodes, and model inference tasks.
[0003] Existing shared platforms typically aggregate all raw data streams to the cloud, with edge nodes only responsible for transparent transmission, failing to differentiate processing paths for each data item based on the urgency of the fire. When multiple events occur concurrently, the uplink bandwidth of the edge network is limited, and non-critical video traffic consumes a large amount of link resources, causing core parameters such as smoke concentration, temperature changes, and fire hydrant pressure in high-priority fire alarms to be overwhelmed, making it difficult for the command and dispatch system to complete targeted responses within a limited time. Existing research has largely focused on weighted optimization of fire truck routes or edge-cloud federated collaboration under single fire conditions, and there is still a significant gap in the joint scheduling of edge bandwidth and computing power quotas under conditions of multiple concurrent events. Due to the lack of a data transmission quota mechanism that dynamically adjusts according to event priority, data value, and link quality, edge computing resources and model inference tasks cannot be allocated in an orderly manner. Vehicle route recalculation, personnel deployment, and water source dispatch are all delayed due to the lateness or absence of critical data, ultimately weakening the overall emergency rescue effectiveness supported by the shared Internet of Things. Summary of the Invention
[0004] This invention addresses the technical problems existing in the prior art by providing a fire data resource scheduling method based on a shared Internet of Things, thereby resolving the issues raised in the background section.
[0005] The technical solution of this invention to solve the above-mentioned technical problems is as follows: specifically, it includes the following steps: Step S1: When multiple fire incidents occur in parallel, collect smoke temperature, video, fire hydrant pressure and vehicle location data output from each fire site data source, as well as the resource status of fire stations, edge clouds, cloud platforms and communication slices; take the fire site, fire station, edge cloud, cloud platform and communication slice as nodes, and the many-to-many dependency relationship between the fire site and at least one edge cloud and at least one communication slice as hyperedges, construct a multi-dimensional weight vector according to the urgency of the fire site, the adaptability of the fire station, the link latency and packet loss rate of the communication link between nodes, the edge computing power consumption and the model inference time, and obtain a unified schedulable state tensor; Step S2: Based on the historical emergency response thermal prediction model established by pre-statistically counting historical emergency response records by region, predict the expected concurrent fires in each region in the future period. Combine the remaining bandwidth, remaining computing power, link latency and packet loss rate in the state tensor to generate a predictive pre-allocation vector configured according to the urgency of the fire. Step S3: Using the state tensor and predictive pre-allocation vector as input, calculate the comprehensive transmission value of each fire data source through a pre-constructed reinforcement learning strategy. Based on the relationship between the comprehensive transmission value and the preset transmission value threshold, select actions such as local discarding, low-latency direct transmission to the edge cloud, end-to-cloud collaborative compression and backhaul, or cloud batch archiving to realize edge data transmission gating and inference task offloading. Step S4: Collect the actual link latency and packet loss rate, actual edge computing power consumption, actual model inference time, and the on-time dispatch rate determined based on the actual arrival time and planned arrival time of the vehicle to form a feedback vector. Jointly update the multi-dimensional weight vector, the historical emergency response heat prediction model, and the reinforcement learning strategy, and use the updated results for the next dispatch.
[0006] In a preferred embodiment, the specific processing method for the collected smoke temperature, fire hydrant pressure, vehicle positioning data, video, and link latency and packet loss rate of the inter-node communication link in step S1 is as follows: The smoke temperature, fire hydrant pressure, link delay and packet loss rate of the inter-node communication link are mapped to a unified numerical range through a saturation normalization function with preset sensitivity coefficient and preset reference threshold as parameters, so as to obtain the normalized values of smoke temperature, pressure, link delay and packet loss rate. The normalized values of smoke temperature and pressure are weighted and summed with the video flame detection confidence determined based on the video according to preset fusion weights, and the fire urgency is obtained by nonlinear compression. The estimated arrival time of each fire station to the corresponding fire scene is calculated based on vehicle positioning data. The extinguishing agent compatibility is determined based on the equipment type of the fire station. The extinguishing agent compatibility is multiplied by the result after the estimated arrival time is negatively attenuated by a preset time attenuation coefficient, and the maximum value among all fire stations is taken to obtain the fire station suitability.
[0007] In a preferred embodiment, the specific process of constructing the many-to-many dependency relationship in step S1 is as follows: When there is a usable wireless link between the fire site and the edge cloud and the fire site is allocated a communication slice, the fire site, the edge cloud and the communication slice are combined into a hyperedge; Estimate the amount of floating-point operations required for the data output from each fire site data source to trigger model inference. Combine the remaining computing power of the edge cloud, the current task queue length, and the average inference throughput to calculate the edge computing power consumption and model inference time. The edge computing power consumption is represented by the ratio of floating-point operations to the remaining computing power. The edge computing power consumption, model inference time, normalized link latency, normalized packet loss rate, fire urgency, and fire station adaptability are combined to form a multi-dimensional weight vector. The resource status of each node and the type to which each node belongs constitute node attributes. The multidimensional weight vector of each hyperedge constitutes hyperedge attributes. The node attributes, hyperedge attributes, and the correlation matrix that marks the affiliation relationship between nodes and hyperedges are assembled into a state tensor.
[0008] In a preferred embodiment, the specific operation of the historical emergency response thermal prediction model in step S2, which combines the state tensor to predict the expected concurrent fire situation and correct effective resources, is as follows: The occurrence time and location in historical emergency response records are statistically analyzed by region. A weight that decays over time is assigned based on the time interval between the occurrence time and the time of prediction, and a weight that decays over distance is assigned based on the spatial distance between the occurrence location and the center of the region, thereby constructing the basic thermal value for each region. Based on the meteorological conditions, traffic load, and key unit activity information of each region, the data are converted into meteorological risk factors, traffic load factors, and key activity factors, respectively. The basic thermal values are then multiplicatively corrected using an exponential method to obtain the expected concurrent fire situation. The remaining bandwidth and computing power of the edge clouds contained in each hyperedge are read from the state tensor, as well as the normalized link delay, normalized packet loss rate and edge computing power consumption of each hyperedge itself; the remaining bandwidth is nonlinearly compressed according to the normalized link delay and normalized packet loss rate to obtain the effective bandwidth, and the remaining computing power is nonlinearly compressed according to the edge computing power consumption to obtain the effective computing power.
[0009] In a preferred embodiment, the specific operation of generating the predictive pre-allocation vector in step S2 is as follows: The expected concurrent fires in each region are normalized according to a preset concentration to obtain the region weight. The region weight is then distributed to each superedge within the region according to the region where the fire is located contained in each superedge. For each hyperedge within the same region, the priority weight of each hyperedge is obtained by exponential normalization based on the fire urgency of the fire contained in the hyperedge; the effective bandwidth of each hyperedge is multiplied by the region weight and the priority weight to obtain the bandwidth quota; the effective computing power of each hyperedge is multiplied by the region weight and the priority weight to obtain the computing power quota. Divide the computing power quota by the floating-point operations required to trigger model inference from the data output of each fire site data source to obtain the inference task quota; combine the bandwidth quota, computing power quota and inference task quota of each hyperedge to form a predictive pre-quota vector.
[0010] In a preferred embodiment, the specific process for calculating the comprehensive transmission value of each fire source in step S3 is as follows: Determine the superedge to which each fire data source belongs; estimate the amount of data to be transmitted from each fire data source based on the data format output by each fire data source; determine the amount of floating-point operations required for the data source to trigger model inference based on the estimated results of the floating-point operations required for the data source to trigger model inference; determine the number of tasks for the data source to trigger model inference based on the generation rate of the output data of each fire data source and the amount of data required for a single model inference. Read the fire urgency, fire station suitability, link delay normalization and packet loss rate normalization of the superedge from the state tensor; read the bandwidth quota, computing power quota and inference task quota of the superedge from the predictive pre-quota vector. The bandwidth usage is calculated by the ratio of the amount of data to be transmitted from the data source to the bandwidth quota of the superedge. The computing power usage is calculated by the ratio of the floating-point operations required for the model inference triggered by the data source to the computing power quota of the superedge. The inference task usage is calculated by the ratio of the number of tasks triggered by the model inference triggered by the data source to the inference task quota of the superedge. A link quality attenuation factor is constructed based on the normalized link delay and packet loss rate. A timeliness attenuation factor is constructed based on the waiting time from the data source's data generation time to the current scheduling time. The link quality attenuation factor and the timeliness attenuation factor are multiplied to obtain the joint attenuation factor.
[0011] In a preferred embodiment, the specific calculation process for the comprehensive transmission value in step S3 is as follows: The inherent value density of the data source is pre-configured according to the data category of the data source. The basic value potential is obtained by multiplying the inherent value density of the data source, the urgency of the fire scene, the adaptability of the fire station and the joint attenuation factor and then dividing by the resource occupation penalty term. The resource occupation penalty term is obtained by multiplying the square of the bandwidth occupation, the square of the computing power occupation and the square of the inference task occupation by the preset bandwidth penalty coefficient, the preset computing power penalty coefficient and the preset inference task penalty coefficient respectively and then adding 1. The pre-built reinforcement learning strategy takes a state tensor and a predictive pre-allocation vector as input and outputs calibration parameters, including latency sensitivity coefficient, packet loss sensitivity coefficient, computing power sensitivity coefficient, inference sensitivity coefficient, opportunity cost coefficient, competition equilibrium coefficient, compression upper limit coefficient, and compression lower limit coefficient. The opportunity cost term and the competitive equilibrium term are calculated based on the calibration parameters. The opportunity cost term represents the bandwidth squeeze loss of the data source occupying the bandwidth of the data source whose comprehensive transmission value is to be calculated, which squeezes the transmission opportunities of other data sources. The competitive equilibrium term represents the logarithmic compression applied to the data source that exceeds the arithmetic mean of the basic value potential of all data sources to be scheduled within its superedge. Subtracting the opportunity cost and competitive equilibrium terms from the basic value potential yields the net value difference. The positive portion of the net value difference is then linearly scaled using the lower and upper compression coefficients to obtain the comprehensive transmission value within the range of the lower and upper compression coefficients.
[0012] In a preferred embodiment, the specific process of selecting local discard, edge cloud low-latency direct transmission, end-to-cloud collaborative compression and backhaul, or cloud batch archiving in step S3 is as follows: Set a first preset transmission value threshold, a second preset transmission value threshold, and a third preset transmission value threshold; when the total transmission value is less than the first preset transmission value threshold, select the local discard action; When the overall transmission value is not less than the first preset transmission value threshold and less than the second preset transmission value threshold, select the cloud batch archiving action; when the overall transmission value is not less than the second preset transmission value threshold and less than the third preset transmission value threshold, select the end-cloud collaborative compression and backhaul action; when the overall transmission value is not less than the third preset transmission value threshold, select the edge cloud low-latency direct transmission action. After the action is executed, the actual amount of bandwidth resources, computing power resources, and model inference tasks used will be deducted from the bandwidth quota, computing power quota, and inference task quota of the corresponding hyperedge in the predictive pre-quota vector, respectively. Local discarding action blocks data whose comprehensive transmission value does not reach the preset transmission value threshold from entering the communication link. Cloud batch archiving action and edge-cloud collaborative compression and backhaul action cache or compress data in the edge cloud before uploading it to the cloud to control the amount of data entering the communication link. Edge cloud low-latency direct transmission action allows data with high urgency at the fire scene to be transmitted without compression and quality adjustment. Together, they constitute edge data transmission gating. Both edge-cloud collaborative compression backhaul and edge cloud low-latency direct transmission trigger the edge cloud to execute model inference, allocating the model inference task to the computing power quota of the superedge, thus constituting inference task offloading.
[0013] In a preferred embodiment, the process of constructing the feedback vector in step S4 is as follows: The actual link latency and packet loss rate are collected by the edge cloud, the actual edge computing power consumption is collected by the edge cloud, and the actual model inference time is recorded when the edge cloud performs model inference. The on-time scheduling rate is determined based on the actual arrival time and the planned arrival time of the vehicle. The actual link latency, packet loss rate, actual edge computing power consumption, actual model inference time and on-time scheduling rate are concatenated in a fixed order to generate a feedback vector. The update process of the multidimensional weight vector is as follows: the actual link delay, packet loss rate, actual edge computing power consumption, and actual model inference time in the feedback vector are compared with the corresponding preset benchmark values to obtain each performance deviation measure. The weight components in the multidimensional weight vector corresponding to the normalized value of link delay, normalized value of packet loss rate, edge computing power consumption, and model inference time are adjusted exponentially based on the corresponding performance deviation measure. The weight components in the multidimensional weight vector corresponding to the urgency of the fire scene and the adaptability of the fire station are adjusted according to the dispatch punctuality rate. The adjusted weight components are normalized so that the sum of each weight component in the updated multidimensional weight vector remains at 1.
[0014] In a preferred embodiment, the update process of the historical emergency response thermal prediction model in step S4 is as follows: The feedback modulation coefficient is constructed based on the on-time dispatch rate, actual link delay and packet loss rate. The actual dispatch thermal observation matrix of the current period is constructed based on the location and time of the actual dispatch mission in the current period. The difference between the expected concurrent fire situation in each area output by the historical dispatch thermal prediction model and the corresponding position value in the current period's actual dispatch thermal observation matrix is multiplied by the feedback modulation coefficient as the loss. The parameters of the historical dispatch thermal prediction model are adjusted in the gradient descent direction. The update process of the reinforcement learning strategy is as follows: construct a comprehensive scheduling utility value using the feedback vector and the updated multidimensional weight vector, update the reinforcement learning strategy network parameters in the direction of maximizing the comprehensive scheduling utility value, and save the updated historical emergency response thermal prediction model parameters, reinforcement learning strategy network parameters, and updated multidimensional weight vector for the next scheduling.
[0015] The beneficial effects of this invention are as follows: By constructing a state tensor and a predictive pre-allocation vector, multi-source data and resource states are unified and schedulable; by using reinforcement learning strategies to calculate the comprehensive transmission value, actions such as local discarding, low-latency direct transmission to the edge cloud, end-to-cloud collaborative compression and backhaul, or batch archiving in the cloud are selected based on the value, thereby realizing edge data transmission gating and inference task offloading, avoiding the flooding of key parameters under high concurrency, and ensuring priority transmission of high-priority fire alarm data; by using feedback vectors to jointly update multi-dimensional weight vectors, historical emergency response thermal prediction models, and reinforcement learning strategies, scheduling adapts to changes in link quality and fire situation, thereby improving overall emergency rescue efficiency. Attached Figure Description
[0016] Figure 1 This is a flowchart of the method of the present invention. Detailed Implementation
[0017] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0018] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the stated features. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.
[0019] In the description of this application, the term "for example" is used to mean "used as an example, illustration, or description." Any embodiment described as "for example" in this application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to make and use the invention. Details are set forth in the following description for purposes of explanation. It should be understood that those skilled in the art will recognize that the invention can be made without using these specific details. In other instances, well-known structures and processes will not be described in detail to avoid obscuring the description of the invention with unnecessary detail. Therefore, the invention is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed in this application.
[0020] Example 1: This example provides the following... Figure 1 The method for scheduling fire protection data resources based on a shared Internet of Things (IoT) includes the following steps: Step S1: When multiple fire incidents occur in parallel, collect smoke temperature, video, fire hydrant pressure and vehicle location data output from each fire site data source, as well as the resource status of fire stations, edge clouds, cloud platforms and communication slices; take the fire site, fire station, edge cloud, cloud platform and communication slice as nodes, and the many-to-many dependency relationship between the fire site and at least one edge cloud and at least one communication slice as hyperedges, construct a multi-dimensional weight vector according to the urgency of the fire site, the adaptability of the fire station, the link latency and packet loss rate of the communication link between nodes, the edge computing power consumption and the model inference time, and obtain a unified schedulable state tensor; Step S2: Based on the historical emergency response thermal prediction model established by pre-statistically counting historical emergency response records by region, predict the expected concurrent fires in each region in the future period. Combine the remaining bandwidth, remaining computing power, link latency and packet loss rate in the state tensor to generate a predictive pre-allocation vector configured according to the urgency of the fire. Step S3: Using the state tensor and predictive pre-allocation vector as input, calculate the comprehensive transmission value of each fire data source through a pre-constructed reinforcement learning strategy. Based on the relationship between the comprehensive transmission value and the preset transmission value threshold, select actions such as local discarding, low-latency direct transmission to the edge cloud, end-to-cloud collaborative compression and backhaul, or cloud batch archiving to realize edge data transmission gating and inference task offloading. Step S4: Collect the actual link latency and packet loss rate, actual edge computing power consumption, actual model inference time, and the on-time dispatch rate determined based on the actual arrival time and planned arrival time of the vehicle to form a feedback vector. Jointly update the multi-dimensional weight vector, the historical emergency response heat prediction model, and the reinforcement learning strategy, and use the updated results for the next dispatch.
[0021] In this embodiment, it is specifically necessary to explain the following processing method for the collected smoke temperature, fire hydrant pressure, vehicle positioning data, video, and link latency and packet loss rate of the inter-node communication link in step S1: Smoke temperature, fire hydrant pressure, link delay, and packet loss rate of inter-node communication links are mapped to a unified numerical range using a saturated normalization function with preset sensitivity coefficients and preset reference thresholds as parameters, resulting in normalized values for smoke temperature, pressure, link delay, and packet loss rate. The saturated normalization function used is an S-shaped function. The preset reference threshold for smoke temperature is 60 degrees Celsius, and the preset sensitivity coefficient is 0.5. The rated reference value for fire hydrant pressure is 0.4 MPa, and the preset sensitivity coefficient is 2. The preset sensitivity coefficient for link delay is 0.2, and the preset sensitivity coefficient for packet loss rate is 0.8. Taking the normalized value of smoke temperature as an example, the smoke temperature is first calculated... The difference between the measured smoke temperature and the preset reference threshold is multiplied by a preset sensitivity coefficient and then input into an S-shaped function to obtain a normalized smoke temperature value in the range of 0 to 1. When the measured smoke temperature is much higher than the threshold, the normalized smoke temperature value approaches 1; when the measured smoke temperature is equal to the threshold, the normalized smoke temperature value is 0.5. The normalized fire hydrant pressure value is the ratio of the difference between the measured pressure and the rated pressure to the rated pressure. The normalized link delay value and the normalized packet loss rate value are obtained by multiplying the measured link delay and the measured packet loss rate by their respective sensitivity coefficients and then inputting them into an S-shaped function. All normalized values are uniformly in the range of 0 to 1 to eliminate the influence of different physical dimensions on subsequent fusion calculations. The normalized values of smoke temperature and pressure, along with the video flame detection confidence score determined from the video, are weighted and summed according to preset fusion weights, and then nonlinearly compressed to obtain the fire urgency level. The video flame detection confidence score is obtained by real-time inference of video frames using a flame detection model deployed in the edge cloud. The flame detection model uses a lightweight convolutional neural network designed for embedded devices. Its training process involves: collecting video frame samples containing real flames, smoke, interfering light sources, and normal scenes; labeling each sample with a flame region and category label; and using the cross-entropy loss function to measure the difference between prediction and labeling. The adaptive moment estimation optimizer is trained iteratively for 100 rounds with an initial learning rate of 0.001, with 32 samples input per batch. After training, the video frames to be detected are scaled to the input size, and the flame category probability is output through forward propagation of the model as the video flame detection confidence score. In the preset fusion weights, the weight of the smoke temperature normalization value is 0.4, the weight of the pressure normalization value is 0.3, and the weight of the video flame detection confidence score is 0.3. The three values are weighted and summed, and then input into the sigmoid function for nonlinear compression to output the fire urgency score. The closer the fire urgency score is to 1, the more urgent the fire is. Based on vehicle location data, the estimated arrival time of each fire station to the corresponding fire scene is calculated. The extinguishing agent compatibility is determined based on the equipment type of each fire station. The extinguishing agent compatibility is multiplied by the result of negatively exponentially decaying the estimated arrival time using a preset time decay coefficient, and the maximum value among all fire stations is taken to obtain the fire station suitability. The estimated arrival time is determined based on road network distance and the average speed of the fire trucks. Using the current location of the fire truck in the vehicle location data as the starting point and the fire scene location as the ending point, a path planning algorithm is called on a pre-set electronic map to obtain the shortest travel distance. The shortest travel distance is divided by the preset average travel speed of 40 km / h. The estimated arrival time is obtained. The extinguishing agent matching degree is determined based on the matching relationship between the type of extinguishing agent equipped by the fire station and the type of combustibles at the fire scene: if the fire station is equipped with dry powder extinguishing agent and the fire scene is an electrical fire, the matching degree is 0.9; if it is equipped with water tank and the fire scene is a common solid fire, the matching degree is 1; if there is no matching, the matching degree is 0.2. The preset time decay coefficient is 0.1 per minute. The estimated arrival time is multiplied by this coefficient and the negative exponent of the natural constant is taken to obtain the time decay factor. The extinguishing agent matching degree is multiplied by the time decay factor. The above calculation is performed on all fire stations associated with the same fire scene, and the maximum value is taken as the fire station adaptability. In step S1, the specific process of constructing many-to-many dependencies is as follows: When a usable wireless link exists between the fire site and the edge cloud, and the fire site is allocated a communication slice, the fire site, edge cloud, and communication slice are combined into a hyperedge. The criteria for determining whether a usable wireless link exists between the fire site and the edge cloud are: the edge cloud periodically sends a detection signal to the fire site terminal in its area. If a response signal is received within 500 milliseconds and the signal strength is higher than a preset strength threshold, then a usable wireless link is determined to exist. The allocation of communication slices is selected from a pre-configured slice pool based on the service level and real-time bandwidth requirements of the fire site. Each communication slice has a bandwidth limit, priority, and isolation level. When the above conditions are met, a hyperedge composed of fire site nodes, edge cloud nodes, and communication slice nodes is established. The hyperedge connects all three types of nodes simultaneously, indicating that the fire site's data can be transmitted to the edge cloud for processing and occupy the corresponding communication resources through this hyperedge. The floating-point operations required to trigger model inference based on data output from each fire site data source are estimated. Combining the remaining computing power of the edge cloud, the current task queue length, and the average inference throughput, edge computing power consumption and model inference time are calculated. Edge computing power consumption is represented by the ratio of floating-point operations to remaining computing power. Floating-point operations are estimated based on the modality of the data to be processed and the structure of the corresponding model. For video data, the required floating-point operations per second are obtained by multiplying its resolution, frame rate, and the number of floating-point operations per frame of the model. For smoke temperature, pressure, and location data, the required floating-point operations per record are estimated by multiplying the number of floating-point operations required for each record to pass through the lightweight classifier by the number of records. The edge cloud is in operation... During the process, the remaining computing power, task queue length, and average inference throughput are recorded in real time. The remaining computing power is the total computing power of all computing cores in the edge cloud minus the currently occupied computing power. The task queue length is the number of entries waiting to execute inference tasks. The average inference throughput is the ratio of the number of tasks completed in the last minute to the time taken. Edge computing power consumption is represented by the ratio of floating-point operations to remaining computing power. Edge computing power consumption greater than or equal to 0 indicates that the corresponding hyperedge is putting pressure on the computing power of the edge cloud. The model inference time is the sum of the computation latency obtained by dividing the floating-point operations by the remaining computing power and the queuing latency obtained by dividing the task queue length by the average inference throughput. The edge computing power consumption, model inference time, normalized link latency, normalized packet loss rate, fire urgency, and fire station suitability are combined to form a multi-dimensional weight vector. The order of the dimensions of the multi-dimensional weight vector is fixed as follows: first dimension fire urgency, second dimension fire station suitability, third dimension normalized link latency, fourth dimension normalized packet loss rate, fifth dimension edge computing power consumption, and sixth dimension model inference time. The values of each dimension are all within the range of 0 to 1 or are normalized, so that the multi-dimensional weight vector can be directly used for subsequent hyperedge sorting and reinforcement learning state representation. When a fire corresponds to multiple hyperedges, the multi-dimensional weight vector of each hyperedge is stored according to the hyperedge number, and the update of any dimension will be reflected in the state tensor synchronously. The resource status of each node and its type constitute node attributes, and the multi-dimensional weight vectors of each hyperedge constitute hyperedge attributes. The node attributes, hyperedge attributes, and the association matrix marking the relationship between nodes and hyperedges are then assembled into a state tensor. Node attributes are arranged row-by-row according to node number, with each row containing the node type identifier, remaining bandwidth value, and remaining computing power value. Node types are identified by numerical values, where 1 represents a fire station, 2 represents an edge cloud, 3 represents a cloud platform, and 4 represents a communication slice. Hyperedge attributes are arranged row-by-row according to hyperedge number, with each row being the multi-dimensional weight vector of the corresponding hyperedge. The rows of the association matrix correspond to node numbers, and the columns correspond to hyperedge numbers; the element is 1 when a node belongs to a hyperedge, and 0 otherwise. These three parts are concatenated according to a set dimension to form a unified, schedulable state tensor. The state tensor updates node attributes and hyperedge attributes every 100 milliseconds.
[0022] In this embodiment, it is specifically necessary to explain the specific operation of the historical emergency response thermal prediction model in step S2, which combines the state tensor to predict the expected concurrent fire situation and correct the effective resources: The historical emergency response records are statistically analyzed by region, including the time and location of each incident. Weights are assigned based on the time interval between the incident and the predicted time, and also based on the spatial distance between the incident location and the regional center, each with decreasing weights. This constructs a basic thermal value for each region. The region is divided into multiple areas according to urban administrative divisions and fire safety responsibility grids, with each area having pre-defined center coordinates. Historical emergency response records are sourced from the fire emergency response platform, and the record fields include the time of receipt, latitude and longitude of the incident location, incident type, and handling result. Records from the past 12 months are selected for statistical analysis. For each historical emergency response record, the start time of the current dispatch cycle is used as the predicted time. The difference between the predicted time and the incident time is calculated, with the time interval in minutes. The time decay weight is calculated using an exponential function with the natural constant as the base. A preset time decay coefficient with a negative exponent is multiplied by the time interval. The preset time decay coefficient is 0.0001 per minute, ensuring that older historical records contribute less to the current base thermal value, reflecting the principle of prioritizing proximate causes. The spatial decay weight uses an inverse square form, with the denominator being 1 plus a preset spatial decay coefficient multiplied by the square of the spatial distance. The spatial distance is calculated by the distance between the coordinates of the region's center and the coordinates of the location where the record occurred. The preset spatial decay coefficient is 0.0001 per square meter, ensuring that historical records farther from the region's center contribute less to the base thermal value. The time decay weight and spatial decay weight of each record are multiplied to obtain the thermal contribution of a single record. The thermal contributions of all records within the region are then summed to obtain the base thermal value of the region. The higher the base thermal value, the higher the cumulative risk of a fire occurring in the vicinity of the current moment in that region. Based on the meteorological conditions, traffic load, and key unit activity information of each region, these are converted into meteorological risk factors, traffic load factors, and key activity factors, respectively. The baseline thermal values are then multiplicatively corrected using an exponential method to obtain the expected concurrent fire situation. Meteorological conditions are obtained from meteorological monitoring stations and meteorological forecast services, including current temperature, relative humidity, wind speed, and predicted rainfall for the next hour. Traffic load is obtained from the urban traffic management platform, including average vehicle speed and congestion index. Key unit activity information is obtained from the list of key units registered by the emergency management department and their current activity status. The meteorological risk factor is converted as follows: temperature, humidity, wind speed, and rainfall are compared with their corresponding risk benchmark values. The degree to which the value exceeds the benchmark value is mapped to a sub-risk value between 0 and 1 according to a preset ratio. Then, the four sub-risk values are weighted and averaged to obtain the meteorological risk factor. The traffic load factor is obtained by normalizing the congestion index. The higher the congestion index, the closer the traffic load factor is to 1. The key activity factor is determined based on whether the key unit currently has large-scale activities, the density of personnel, and the application status of temporary fire and electricity use. It is 0 when there are no activities, 0.3 when there are general activities, 0.7 when there are large-scale activities, and 1 when there are activities with major hazards. The specific process of index correction is as follows: the meteorological risk factor, traffic load factor, and key activity factor are multiplied by their corresponding preset sensitivity coefficients and summed. Then, the exponential value of the sum is calculated with the natural constant e as the base. Finally, the expected concurrent fire situation is obtained by multiplying the basic thermal value by the exponential value. Each sensitivity coefficient represents the amplification intensity of the corresponding risk factor on the basic thermal value, and the value ranges from 0.1 to 0.6. When all risk factors are 0, the expected concurrent fire situation is equal to the basic thermal value. When all risk factors increase, the expected concurrent fire situation is amplified exponentially, thus reflecting the synergistic aggravation effect of the external environment on the occurrence of fires. The remaining bandwidth and computing power of the edge clouds contained in each hyperedge are read from the state tensor, as well as the normalized link delay, normalized packet loss rate, and edge computing power consumption of each hyperedge itself. The remaining bandwidth is nonlinearly compressed according to the normalized link delay and normalized packet loss rate to obtain the effective bandwidth, and the remaining computing power is nonlinearly compressed according to the edge computing power consumption to obtain the effective computing power. The state tensor is assembled from node attributes, hyperedge attributes, and an association matrix. Based on the association relationship between the hyperedge and the edge cloud, the remaining bandwidth and remaining computing power of the corresponding edge cloud are extracted from the node attributes, and the normalized link delay, normalized packet loss rate, and edge computing power consumption of the corresponding hyperedge are extracted from the hyperedge attributes. The effective bandwidth is calculated as follows: 1 is added to the preset latency penalty coefficient multiplied by the normalized link latency value, and then the preset packet loss penalty coefficient multiplied by the normalized packet loss rate value is added to obtain the denominator. The remaining bandwidth is then divided by this denominator to obtain the effective bandwidth. The preset latency penalty coefficient is 0.4, and the preset packet loss penalty coefficient is 0.6. When both the normalized link latency value and the normalized packet loss rate value are 0, the effective bandwidth equals the remaining bandwidth. When both are 1, the effective bandwidth equals the remaining bandwidth divided by 2. The specific calculation method for effective computing power is as follows: add 1 to the preset computing power consumption penalty coefficient multiplied by the edge computing power consumption to obtain the denominator; divide the remaining computing power by the denominator to obtain the effective computing power; the preset computing power consumption penalty coefficient is 0.5; when the edge computing power consumption is 0, the effective computing power equals the remaining computing power; when the edge computing power consumption is 1, the effective computing power equals the remaining computing power multiplied by two-thirds; the compressed effective bandwidth and effective computing power are used for subsequent pre-quota calculation, so that superedges with poor link quality and high edge load automatically obtain less resources, avoiding resources being occupied by low-quality paths; In step S2, the specific operation for generating the predictive pre-allocation vector is as follows: The expected concurrent fires in each region are normalized according to the preset concentration to obtain the region weight. The region weight is then distributed to each superedge within the region according to the region where the fire is located. The preset concentration is a parameter that controls the degree to which resources are tilted towards regions with high expected concurrent fires. The value ranges from 0.5 to 1.5. When the value is 0.8, it means that while ensuring that high-risk regions receive more resources, a certain pre-allocation is reserved for low-risk regions. The normalization process is as follows: Calculate the preset concentration power for the expected concurrent fires in each region, sum the power values of each region to obtain the total power value, and then divide the power value of each region by the total power value to obtain the weight of each region. The sum of the weights of each region equals 1. When the preset concentration is less than 1, the weight of regions with low expected concurrent fires is relatively increased; when the preset concentration is greater than 1, the weight of regions with high expected concurrent fires is further amplified. Each hyperedge contains one or more fires. The regions where the fires are located are predetermined based on the fire locations. Therefore, according to the fire locations associated with the hyperedge, the regional weight of the corresponding region is assigned to the hyperedge. If a hyperedge is associated with multiple fires, the regional weight of the hyperedge is calculated by weighting the expected concurrent fires of each region where the fires are located, ensuring that each hyperedge obtains a unique regional weight. For each hyperedge within the same region, exponential normalization is performed based on the fire urgency of the fire contained within the hyperedge to obtain the priority weight of each hyperedge. The fire urgency is stored in the hyperedge attribute of the state tensor, and is a value obtained by weighted fusion of the smoke temperature normalization value, pressure normalization value, and video flame detection confidence value in step S1, followed by nonlinear compression. The specific process of exponential normalization is as follows: using the natural constant as the base, first calculate the preset urgency amplification factor multiplied by the fire urgency of the corresponding fire, as the exponential value; then calculate the natural constant exponential function value corresponding to this exponential value; sum the exponential function values of all hyperedges within the same region to obtain the normalized denominator; finally, divide the exponential function value of each hyperedge by the normalized denominator to obtain the priority weight of that hyperedge. The preset urgency amplification factor is 2. When the fire urgency of two fires differs by 0.3, the priority weight of the hyperedge with higher urgency is approximately 1.82 times that of the hyperedge with lower urgency. The sum of the priority weights of all hyperedges within the same region equals 1, realizing the directional tilting of regional resources towards fires with higher urgency. The bandwidth quota is obtained by multiplying the effective bandwidth of each hyperedge by the region weight and priority weight. The specific calculation method of the bandwidth quota is as follows: the effective bandwidth of each hyperedge is multiplied by the region weight and priority weight of that hyperedge in turn to obtain the maximum bandwidth value that the hyperedge can occupy in the next scheduling cycle. The bandwidth quota reflects the comprehensive impact of regional concurrent fire expectation, fire urgency and link quality. Regions with high regional concurrent fire expectation receive larger region weights, and hyperedges with high fire urgency receive larger priority weights. However, hyperedges with high link latency normalization value and packet loss rate normalization value have their effective bandwidth compressed, so even if the region weight and priority weight are high, the final bandwidth quota will still be reduced accordingly. The bandwidth quota is used to limit the link resources occupied by the edge cloud low latency direct transmission and end-cloud collaborative compression back transmission actions in step S3 to prevent multiple parallel fires from simultaneously competing for bandwidth. The effective computing power of each hyperedge is multiplied by the region weight and priority weight to obtain the computing power quota. The specific calculation method of the computing power quota is as follows: the effective computing power of each hyperedge is multiplied by the region weight and priority weight of that hyperedge in turn to obtain the maximum edge computing power value that the hyperedge can occupy in the next scheduling cycle. The computing power quota is related to the expected concurrent fire in the region, the urgency of the fire, and the current load status of the edge cloud. For hyperedges with higher edge computing power consumption normalization values, the effective computing power is compressed, and the computing power quota is reduced accordingly, thereby avoiding the continued allocation of a large number of inference tasks to the already heavily loaded edge cloud. The computing power quota is used to limit the number of inference tasks offloaded in step S3 to ensure that the total load of the edge cloud does not exceed its actual carrying capacity. The computing power quota is divided by the floating-point operations required to trigger model inference from the data output of each fire source to obtain the inference task quota; the bandwidth quota, computing power quota and inference task quota of each hyperedge are combined to form a predictive pre-quota vector; the floating-point operations are obtained from the estimation results of the floating-point operations required to trigger model inference from the data output of each fire source in step S1. The floating-point operations of video data are obtained by multiplying the resolution by the frame rate and then by the number of floating-point operations for inference per frame. The floating-point operations of smoke temperature, pressure and positioning data are obtained by multiplying the number of floating-point operations for inference per record by the number of records. The specific calculation method for inference task quota is as follows: divide the computing power quota of each hyperedge by the floating-point operation volume of the corresponding hyperedge, and round down to obtain the upper limit of the number of edge model inference tasks allowed to be triggered by the hyperedge in the next scheduling cycle; the purpose of rounding down is to ensure that the number of inference tasks will not exceed the actual carrying capacity of the computing power quota, and avoid the edge cloud from being overloaded due to the number of tasks exceeding the limit; finally, arrange the bandwidth quota, computing power quota and inference task quota of each hyperedge in a fixed order, and assemble them into a predictive pre-quota vector with a one-to-one correspondence with the hyperedge association.
[0023] In this embodiment, the specific process for calculating the comprehensive transmission value of each fire source in step S3 is as follows: The process involves: determining the hyperedge to which each fire data source belongs; estimating the amount of data to be transmitted from each fire data source based on its output data format; determining the amount of floating-point operations required for model inference based on the estimated results of the data source output data; determining the number of tasks required for model inference based on the data generation rate and the amount of data required for a single model inference run; and determining the number of tasks required for model inference based on the data source output data. The process for determining the hyperedge to which a data source belongs is as follows: read the correlation matrix from the state tensor. Rows in the correlation matrix correspond to node numbers, and columns correspond to hyperedge numbers. An element of 1 indicates that the corresponding node belongs to the corresponding hyperedge. Based on the node number of the fire node to which the data source belongs, search for the column with a value of 1 in the correlation matrix to obtain the hyperedge number of the hyperedge to which it belongs. The estimation method for the amount of data to be transmitted from the data source is as follows: For video data sources, the amount of data to be transmitted per second is estimated by multiplying the video resolution, frame rate, pixel bit depth per frame, and preset compression ratio; for smoke temperature, pressure, and positioning data sources, the amount of data to be transmitted per second is estimated by multiplying the number of output records per second and the number of bytes per record; the floating-point operation required for the data source to trigger model inference is taken from the estimation result of the floating-point operation required for the output data of each fire site data source to trigger model inference in step S1. For video data sources, the floating-point operation required per second is obtained by multiplying the resolution by the frame rate and then by the number of floating-point operations per frame for inference; for smoke temperature, pressure, and positioning data sources, the floating-point operation required per record is obtained by multiplying the number of inference floating-point operations per record by the number of records. The process for determining the number of model inference tasks is as follows: The actual data output by the statistical data source in the most recent scheduling cycle is used as the generation rate. The amount of data required for a single model inference is determined by the model input size. For video data sources, the amount of data required for a single model inference is the single frame resolution multiplied by the single frame pixel bit depth. For smoke temperature, pressure, and positioning data sources, the amount of data required for a single model inference is the feature dimension of a single record multiplied by the number of bytes per feature value. The generation rate is multiplied by the scheduling cycle duration, and then divided by the amount of data required for a single model inference to obtain the number of model inference tasks, rounded up. When the calculated result is less than 1, it is rounded to 1, ensuring that data sources that generate data have at least one model inference task slot. The fire urgency, fire station suitability, link latency normalization, and packet loss rate normalization of the superedge are read from the state tensor. The bandwidth quota, computing power quota, and inference task quota of the superedge are read from the predictive pre-quota vector. The superedge attributes in the state tensor are stored row by row according to the superedge number. Each row includes the fire urgency, fire station suitability, link latency normalization, and packet loss rate normalization. When reading, the corresponding row in the superedge attributes is located according to the superedge number obtained by determining the superedge to which the data source belongs, and the corresponding column data is extracted. The predictive pre-quota vector stores the bandwidth quota, computing power quota, and inference task quota in the order of the superedge number. When reading, the three quota values of the superedge are obtained by locating the superedge number. If the superedge number of the superedge does not have a corresponding record in the state tensor or the predictive pre-quota vector, it is determined that the superedge to which the data source belongs has failed. The data source directly selects the local discard action and does not participate in the subsequent calculation. The bandwidth occupancy is calculated as the ratio of the amount of data to be transmitted from the data source to the bandwidth quota of the superedge. The computing power occupancy is calculated as the ratio of the floating-point operations required for model inference triggered by the data source to the computing power quota of the superedge. The inference task occupancy is calculated as the ratio of the number of inference tasks triggered by the data source to the inference task quota of the superedge. The bandwidth occupancy, computing power occupancy, and inference task occupancy are all unitless ratios, ranging from 0 to positive infinity. When the bandwidth quota of the superedge is 0, the bandwidth occupancy is 1; when the computing power quota is 0, the computing power occupancy is 1; when the inference task quota is 0, the inference task occupancy is 1. The closer the occupancy is to 0, the less pressure the data source places on the corresponding resources. When the occupancy exceeds 1, it means that the demand of the data source has exceeded the quota limit of the superedge. In subsequent calculations, resource occupancy penalties and opportunity costs will be used to suppress such data sources from obtaining high overall transmission value. A link quality attenuation factor is constructed based on the normalized values of link delay and packet loss rate. A timeliness attenuation factor is constructed based on the waiting time from the data source's generation time to the current scheduling time. The link quality attenuation factor and the timeliness attenuation factor are multiplied together to obtain the joint attenuation factor. The construction process of the link quality attenuation factor is as follows: multiply the normalized value of link delay by a preset delay weight coefficient, multiply the normalized value of packet loss by a preset packet loss weight coefficient, sum the two products, and subtract 1 to obtain the link quality attenuation factor. The preset delay weight coefficient is 0.3, and the preset packet loss weight coefficient is 0.3. When both the normalized value of link delay and the normalized value of packet loss are 0, the link quality attenuation factor is 1. When both are close to 1, the link quality attenuation factor is close to 0.4, ensuring that even with poor link quality, data transmission will not be completely blocked. The construction process of the timeliness decay factor is as follows: The waiting time from the data generation time to the current scheduling time is calculated. The waiting time is divided by the preset maximum tolerable waiting time to obtain the normalized waiting time. Then, the normalized waiting time is subtracted from 1 to obtain the timeliness decay factor. The preset maximum tolerable waiting time is 5 seconds. When the waiting time is 0, the timeliness decay factor is 1, indicating that the timeliness value is highest when the data is first generated. When the waiting time reaches 5 seconds, the timeliness decay factor is 0, indicating that the data has lost its real-time transmission value. The joint decay factor is the product of the link quality decay factor and the timeliness decay factor, and its value ranges from 0 to 1. The closer the joint decay factor is to 1, the better the link quality of the data source and the higher the data timeliness. The closer it is to 0, the poorer the link quality or the more severely expired the data. In step S3, the specific calculation process for the comprehensive transmission value is as follows: The inherent value density of the data source is pre-configured according to the data category. The basic value potential is obtained by multiplying the inherent value density of the data source, the urgency of the fire scene, the adaptability of the fire station, and the joint attenuation factor, and then dividing by the resource occupation penalty term. The resource occupation penalty term is obtained by multiplying the square of the bandwidth occupation, the square of the computing power occupation, and the square of the inference task occupation by the preset bandwidth penalty coefficient, the preset computing power penalty coefficient, and the preset inference task penalty coefficient, respectively, and then adding 1. The configuration process of the inherent value density of the data source is as follows: the data categories of the data source are divided into four categories: video data, smoke and temperature data, pressure data, and location data. Video data is used for fire scene situation awareness and fire source location, and the inherent value density is set to 0.8; smoke and temperature data is used for early fire warning and smoke diffusion trend judgment, and the inherent value density is set to 0.6; pressure data is used for fire hydrant network water supply capacity assessment, and the inherent value density is set to 0.5; location data is used for fire truck and fire fighting and rescue route planning, and the inherent value density is set to 0.4. When the data source outputs multiple data categories at the same time, the inherent value density of the data source is obtained by weighted summation according to the proportion of data volume of each data category in a unit of time. The preset parameters for the resource usage penalty are set as follows: the preset bandwidth penalty coefficient is 0.5, the preset computing power penalty coefficient is 0.4, and the preset inference task penalty coefficient is 0.3. The calculation order of the resource usage penalty is as follows: first calculate the square of the bandwidth usage and multiply it by the preset bandwidth penalty coefficient, then calculate the square of the computing power usage and multiply it by the preset computing power penalty coefficient, then calculate the square of the inference task usage and multiply it by the preset inference task penalty coefficient. Add the products of the three items together and add 1 to get the resource usage penalty. The calculation order of the basic value potential is as follows: First, multiply the inherent value density of the data source, the urgency of the fire scene, the adaptability of the fire station, and the joint attenuation factor to obtain the unpenalized value; then divide the unpenalized value by the resource occupation penalty term to obtain the basic value potential; the resource occupation penalty term is always greater than or equal to 1. When any occupation degree of the data source increases, the basic value potential is compressed, and data sources with low resource occupation are more likely to obtain higher comprehensive transmission value. The pre-built reinforcement learning policy takes a state tensor and a predictive pre-allocation vector as input and outputs calibration parameters, including latency sensitivity, packet loss sensitivity, computational power sensitivity, inference sensitivity, opportunity cost, contention equilibrium, compression upper bound, and compression lower bound. The pre-built reinforcement learning policy is trained using a dual-latency deep deterministic policy gradient algorithm. The policy network input is a concatenated vector of the state tensor and the predictive pre-allocation vector, and the output is eight calibration parameters. The policy network consists of one input layer, two hidden layers, and one output layer, with the input layer dimension matching the dimension of the concatenated vector. The two hidden layers have 256 and 128 neurons respectively, and the activation function of the hidden layers is a linear rectified function. The output layer contains 8 neurons, and the activation function of the output layer is a sigmoid function. The latency sensitivity coefficient, packet loss sensitivity coefficient, computing power sensitivity coefficient, inference sensitivity coefficient, opportunity cost coefficient, competition equilibrium coefficient, compression upper limit coefficient, and compression lower limit coefficient are mapped to the range of 0 to 1 respectively. The training samples are collected from historical scheduling records. Each sample contains the state tensor at the scheduling time, the predictive pre-allocation vector, the actual action executed, the feedback vector generated in step S4, and the state tensor at the next scheduling time. During training, 256 samples are sampled per batch, with a discount factor of 0.99, a learning rate of 0.0003 for the policy network, a learning rate of 0.0003 for the value network, and a soft update coefficient of 0.005 for the target network. The value network evaluates the expected cumulative reward of the current policy, and the policy network updates its parameters based on the direction of feedback from the value network. The policy network performs a parameter update once every 100 training steps, and the value network updates its parameters once every 1 training step. Training ends when the average value estimate change rate over the most recent 1000 steps is less than 0.01, resulting in a pre-trained reinforcement learning policy. In practice, the current state tensor and the current predictive pre-allocation vector are input into the reinforcement learning policy, which directly outputs eight calibration parameters. After output, the relationship between the lower compression limit coefficient and the upper compression limit coefficient is checked. If the lower compression limit coefficient is not less than the upper compression limit coefficient, the lower compression limit coefficient is adjusted to 0.1 times the upper compression limit coefficient. After each scheduling, the reinforcement learning policy is fine-tuned online based on the feedback vector generated in step S4. When the on-time transmission rate in the feedback vector is lower than 0.85, the latency sensitivity coefficient and computing power sensitivity coefficient are increased, and the upper compression limit coefficient is decreased. When the computing power utilization and link quality indicators in the feedback vector do not meet expectations, the computing power sensitivity coefficient, latency sensitivity coefficient, and packet loss sensitivity coefficient are increased accordingly. Based on the calibration parameters, the opportunity cost and competitive equilibrium terms are calculated. The opportunity cost term represents the bandwidth loss caused by the data source occupying the bandwidth, which squeezes the transmission opportunities of other data sources, while the competitive equilibrium term represents the logarithmic compression applied to data sources whose base value potential exceeds the arithmetic mean of all data sources to be scheduled within their respective hyperedges. The calculation process for the opportunity cost term is as follows: read the bandwidth occupancy calculated in step S3, where bandwidth occupancy is the ratio of the amount of data to be transmitted from the data source to the bandwidth quota of the hyperedge; multiply the bandwidth occupancy by the latency sensitivity coefficient, packet loss sensitivity coefficient, and opportunity cost coefficient to obtain the opportunity cost. The closer the bandwidth occupancy is to 1, the closer the bandwidth resources occupied by the data source are to the bandwidth quota of its superedge, and the more severe the squeezing of transmission opportunities for other data sources. The calculation process of the competition equilibrium term is as follows: count the basic value potential of all data sources to be scheduled within the superedge and calculate the arithmetic mean; subtract the arithmetic mean from the basic value potential of the data source whose comprehensive transmission value is to be calculated to obtain the value difference; if the value difference is greater than 0, calculate the natural logarithm of the ratio of the value difference to the sum of the arithmetic mean and 1, and then multiply it by the competition equilibrium coefficient to obtain the competition equilibrium term; if the value difference is less than or equal to 0, the competition equilibrium term is 0. The net value difference is obtained by subtracting the opportunity cost and competitive equilibrium terms from the basic value potential. The positive portion of the net value difference is then linearly scaled using the lower and upper compression coefficients to obtain the comprehensive transmission value within the range of the lower and upper compression coefficients. The process for handling the positive portion of the net value difference is as follows: if the net value difference is less than 0, the positive portion is 0; if the net value difference is greater than or equal to 0, the positive portion is equal to the net value difference itself. The linear scaling calculation process is as follows: first, calculate the ratio of the positive portion to the basic value potential; if the basic value potential is less than or equal to 0, the ratio is 0; then, multiply the difference between the upper and lower compression coefficients by the ratio, and add the product to the lower compression coefficient to obtain the comprehensive transmission value. When both the opportunity cost and competitive equilibrium terms are 0, the positive portion equals the basic value potential, the ratio is 1, and the comprehensive transmission value equals the upper compression coefficient. When the sum of the opportunity cost and competitive equilibrium terms is not less than the basic value potential, the net value difference is less than 0, the positive portion is 0, and the comprehensive transmission value equals the lower compression coefficient. In step S3, the specific process for selecting local discard, edge cloud low-latency direct transmission, end-to-cloud collaborative compression and backhaul, or cloud batch archiving is as follows: Set a first preset transmission value threshold, a second preset transmission value threshold, and a third preset transmission value threshold; when the total transmission value is less than the first preset transmission value threshold, select the local discard action; When the overall transmission value is not less than the first preset transmission value threshold and less than the second preset transmission value threshold, the cloud batch archiving action is selected; when the overall transmission value is not less than the second preset transmission value threshold and less than the third preset transmission value threshold, the end-cloud collaborative compression and backhaul action is selected; when the overall transmission value is not less than the third preset transmission value threshold, the edge cloud low-latency direct transmission action is selected. The numerical setting process for the first, second, and third preset transmission value thresholds is as follows: the first preset transmission value threshold is set to 0.2, the second preset transmission value threshold is set to 0.5, and the third preset transmission value threshold is set to 0.8. Since the overall transmission value falls within the range of the lower compression limit coefficient to the upper compression limit coefficient after linear scaling, to avoid threshold overshoot, the maximum value of the first preset transmission value threshold and the lower compression limit coefficient is taken as the first preset transmission value threshold actually used; the minimum value of the third preset transmission value threshold and the upper compression limit coefficient is taken as the third preset transmission value threshold actually used; the second preset transmission value threshold is the arithmetic mean of the first preset transmission value threshold actually used and the third preset transmission value threshold actually used. The action judgment order is as follows: First, compare the comprehensive transmission value with the first preset transmission value threshold actually used. If it is less than the threshold, select the local discard action. If it is not less than the threshold, compare it with the second preset transmission value threshold actually used. If it is less than the threshold, select the cloud batch archiving action. If it is not less than the threshold, compare it with the third preset transmission value threshold actually used. If it is less than the threshold, select the end-cloud collaborative compression and backhaul action. If it is not less than the threshold, select the edge cloud low-latency direct transmission action. After the action is executed, the actual bandwidth resources, computing power resources, and number of model inference tasks are deducted from the bandwidth quota, computing power quota, and inference task quota of the corresponding hyperedge in the predictive pre-quota vector, respectively. The statistical caliber of the actual bandwidth resources, computing power resources, and number of model inference tasks is as follows: local discarding actions do not generate actual usage and do not require deduction; cloud batch archiving actions cache data to the edge cloud, the actual bandwidth resources used are the amount of data to be transmitted from the data source, the actual computing power resources used are 0, and the actual number of model inference tasks used are 0; edge-cloud collaborative compression and backhaul actions are performed by the edge cloud for compression and model inference. The actual bandwidth usage is the amount of compressed data, and the actual computing power usage is the sum of the computing power required for compression and model inference. The actual number of model inference tasks is obtained by dividing the data generation rate of the data source output by the amount of data required for a single model inference and then rounding up. The edge cloud low-latency direct transmission action is where the edge cloud directly forwards data and performs model inference. The actual bandwidth usage is the amount of data to be transmitted from the data source, and the actual computing power usage is the amount of computing power required for model inference. The actual number of model inference tasks is also obtained by dividing the data generation rate of the data source output by the amount of data required for a single model inference and then rounding up. The deduction process is as follows: read the bandwidth quota, computing power quota and inference task quota of the superedge from the predictive pre-quota vector, subtract the actual occupied value of the corresponding action, and the remaining quota after deduction is used for action selection of other data sources to be scheduled within the superedge, to ensure that the total resources occupied by all data sources do not exceed the initial quota of the superedge. Local discarding blocks data with a comprehensive transmission value below a preset threshold from entering the communication link. Cloud batch archiving and edge-cloud collaborative compression and backhaul actions cache or compress data in the edge cloud before uploading it to the cloud to control the amount of data entering the communication link. Edge cloud low-latency direct transmission allows data with high fire urgency to be transmitted without compression or quality adjustment. Together, these actions constitute edge data transmission gating. Local discarding blocks data with a comprehensive transmission value less than the first preset threshold from entering the communication link. Cloud batch archiving caches data and uploads it in batches during idle periods in the cloud, consuming bandwidth resources. Edge-cloud collaborative compression and backhaul compresses data in the edge cloud, reducing the data volume and bandwidth consumption. Edge cloud low-latency direct transmission transmits data with high fire urgency directly to the edge cloud without compression or quality adjustment. These four actions create a hierarchical gating effect: comprehensive transmission value from low to high corresponds to blocking, delayed transmission, compressed transmission, and direct transmission, ensuring that communication link resources prioritize data with high comprehensive transmission value and prevent low-value data from consuming link bandwidth. Both edge-cloud collaborative compression and backhaul actions and edge cloud low-latency direct transmission actions trigger edge cloud to execute model inference, allocating model inference tasks to the computing power quota of the respective hyperedge, thus constituting inference task offloading. Cloud collaborative compression and backhaul actions trigger edge cloud to execute model inference on compressed data, and edge cloud low-latency direct transmission actions trigger edge cloud to execute model inference on directly transmitted data. The allocation of model inference tasks to the computing power quota of the respective hyperedge is as follows: the edge cloud determines the number of model inference tasks that can be executed in parallel based on the remaining computing power quota of the respective hyperedge; if the number of model inference tasks exceeds the number that the remaining computing power quota can handle, the excess tasks are sorted from high to low according to the comprehensive transmission value of the data source and executed sequentially, and the unexecuted model inference tasks wait for the next scheduling cycle to continue processing; the inference results are uploaded to the cloud along with the data, and the cloud uses the inference results for fire situation updates and subsequent scheduling decisions; by sinking model inference tasks from the cloud to the edge cloud, the round-trip latency caused by data back to the cloud for reprocessing is reduced, realizing inference task offloading.
[0024] In this embodiment, the specific process for constructing the feedback vector in step S4 is as follows: The actual link latency and packet loss rate are collected by the edge cloud, as is the actual edge computing power consumption. The actual model inference time is recorded during model inference execution in the edge cloud. The on-time scheduling rate is determined based on the actual arrival time and planned arrival time of the vehicles. The actual link latency, packet loss rate, actual edge computing power consumption, actual model inference time, and on-time scheduling rate are concatenated in a fixed order to generate a feedback vector. The actual link latency is collected as follows: the edge cloud sends probe messages to each communication link covered by its hyperedge at 10-millisecond intervals, and the arithmetic mean of the transmission latency of all successfully responded probe messages within the current scheduling period is calculated as the actual link latency. The packet loss rate is collected as follows: the ratio of the number of probe messages that did not receive a response to the total number of probe messages sent within the current scheduling period is calculated as the packet loss rate. The actual edge computing power consumption collection process is as follows: The edge cloud counts the total amount of computing power resources actually consumed by all model inference tasks in the current scheduling cycle, divides it by the total computing power quota of the superedge at the beginning of the current scheduling cycle, and obtains the actual edge computing power consumption. The actual model inference time is recorded as follows: the edge cloud inference engine starts timing from when the model inference task enters the waiting queue and stops timing when the inference is completed and the result is output. The arithmetic average of the time of all model inference tasks in the current scheduling cycle is taken as the actual model inference time. The process for determining the dispatch punctuality rate is as follows: the actual arrival time of the fire truck is extracted from the vehicle positioning data as the actual arrival time, and the estimated arrival time obtained when calculating the fire station adaptability in step S1 is used as the planned arrival time. The number of emergency dispatches with actual arrival times no later than planned arrival times within the current dispatch cycle is counted, and the number of emergency dispatches within the current dispatch cycle is divided by the total number of emergency dispatches within the current dispatch cycle to obtain the dispatch punctuality rate. The feedback vector is generated by concatenating the actual link delay, packet loss rate, actual edge computing power consumption, actual model inference time, and dispatch punctuality rate in that order. The update process of the multidimensional weight vector is as follows: The actual link delay, packet loss rate, actual edge computing power consumption, and actual model inference time in the feedback vector are compared with their corresponding preset benchmark values to obtain performance deviation metrics. An exponential adjustment based on the corresponding performance deviation metrics is applied to the weight components in the multidimensional weight vector corresponding to the normalized link delay, normalized packet loss rate, edge computing power consumption, and model inference time. The weight components corresponding to the fire urgency and fire station adaptability in the multidimensional weight vector are adjusted according to the dispatch punctuality rate. The adjusted weight components are then normalized so that the sum of all weight components in the updated multidimensional weight vector remains 1. The preset benchmark values are set as follows: the preset benchmark for actual link delay... The preset baseline values are set to 100 milliseconds, 0.01 for packet loss rate, 0.6 for actual edge computing power consumption, 200 milliseconds for actual model inference time, and 0.9 for scheduling punctuality rate. The performance deviation metric is calculated as follows: for actual link latency, packet loss rate, actual edge computing power consumption, and actual model inference time, the difference between the actual value and the corresponding preset baseline value is calculated, and the difference is divided by the corresponding preset baseline value to obtain the corresponding performance deviation metric. For scheduling punctuality rate, the difference between the preset baseline value and the actual value is calculated, and the difference is divided by the preset baseline value to obtain the scheduling punctuality rate performance deviation metric. All performance deviation metrics are uniformly limited to between -1 and 1. The calculation process for the exponential adjustment is as follows: Using the natural constant e as the base, the exponential function value is calculated by multiplying the performance deviation metric by a preset error feedback adjustment coefficient; the preset error feedback adjustment coefficient is set to 0.5. The weight component corresponding to the normalized link delay value in the multidimensional weight vector is multiplied by the exponential function value corresponding to the actual link delay to obtain the adjusted link delay weight component. The weight component corresponding to the normalized packet loss rate value is multiplied by the exponential function value corresponding to the packet loss rate to obtain the adjusted packet loss rate weight component. The weight component corresponding to edge computing power consumption is multiplied by the exponential function value corresponding to the actual edge computing power consumption to obtain the adjusted computing power consumption weight component. The weight component corresponding to model inference time is multiplied by the exponential function value corresponding to the actual model inference time to obtain the adjusted inference time weight component. The adjustment process for the weighted components corresponding to fire urgency and fire station adaptability in the dispatch punctuality rate is as follows: When the performance deviation metric of the dispatch punctuality rate is less than 0, the weighted component corresponding to fire urgency is multiplied by 1.2, and the weighted component corresponding to fire station adaptability is multiplied by 0.8; when the performance deviation metric of the dispatch punctuality rate is greater than 0, the weighted component corresponding to fire urgency is multiplied by 0.8, and the weighted component corresponding to fire station adaptability is multiplied by 1.2; when the performance deviation metric of the dispatch punctuality rate is equal to 0, both weighted components remain unchanged; the sum of all weighted components after exponential adjustment and dispatch punctuality rate adjustment is calculated, and each weighted component is divided by the sum to complete normalization, so that the sum of all weighted components in the updated multidimensional weight vector remains 1; In step S4, the update process of the historical emergency response thermal prediction model is as follows: Feedback modulation coefficients are constructed based on dispatch punctuality rate, actual link delay, and packet loss rate. An actual dispatch thermal observation matrix for the current period is built based on the location and time of actual dispatch missions within the current period. The difference between the expected concurrent fire incidence rates for each region output by the historical dispatch thermal prediction model and the corresponding values in the current period's actual dispatch thermal observation matrix is multiplied by the feedback modulation coefficients as the loss. The parameters of the historical dispatch thermal prediction model are then adjusted according to the gradient descent direction. The construction process of the feedback modulation coefficients is as follows: first calculate 1 minus the dispatch punctuality rate, then divide... The on-time performance deviation ratio is obtained by adding 0.0001 to the scheduling on-time performance rate. The natural logarithm of the on-time performance deviation ratio is taken and 1 is added to obtain the on-time performance deviation term. The link quality term is obtained by summing 1, the actual link delay divided by the upper limit of the link delay, and the packet loss rate. The feedback modulation coefficient is obtained by multiplying the on-time performance deviation term and the link quality term. The upper limit of the link delay is taken as 1000 milliseconds. When the scheduling on-time performance rate is 0.9, the actual link delay is 100 milliseconds, and the packet loss rate is 0.01, the feedback modulation coefficient is approximately 1.11. The construction process of the actual dispatch thermal observation matrix for the current period is as follows: the area number is determined according to the area division method in step S2, the rows of the matrix correspond to the area number, and the columns correspond to the statistical time slices of the current dispatch period. The length of the statistical time slice is consistent with the length of the current dispatch period. If the corresponding area actually has at least one dispatch task within the corresponding time slice, the matrix element is 1; otherwise, it is 0. Since the length of the statistical time slice is consistent with the length of the current dispatch period, the matrix is actually a single-column matrix, and the number of rows in the matrix is consistent with the total number of area divisions. The loss calculation process is as follows: the expected concurrent fire situation in each region output by the historical emergency response thermal prediction model is subtracted from the corresponding region value in the current period's actual emergency response thermal observation matrix, and the absolute value of the difference is taken. The absolute values of all regions are accumulated and multiplied by the feedback modulation coefficient to obtain the loss value. The gradient descent adjustment process is as follows: the adaptive moment estimation optimizer is used with a learning rate of 0.01. The gradient of the historical emergency response thermal prediction model parameters is calculated with the loss value, and the model parameters are updated along the negative gradient direction. When the dispatch punctuality rate is low or the link quality deviation is large, the feedback modulation coefficient is increased, the loss value is amplified, and the model parameter update amplitude is enhanced, so that the historical emergency response thermal prediction model can adapt to the actual emergency response situation changes more quickly. The update process of the reinforcement learning strategy is as follows: A comprehensive scheduling utility value is constructed using the feedback vector and the updated multidimensional weight vector; the reinforcement learning strategy network parameters are updated in the direction that maximizes the comprehensive scheduling utility value. The updated historical emergency response thermal prediction model parameters, reinforcement learning strategy network parameters, and the updated multidimensional weight vector are saved for the next scheduling operation. The construction process of the comprehensive scheduling utility value is as follows: the on-time dispatch rate is multiplied by the sum of the weight components corresponding to the urgency of the fire and the weight components corresponding to the adaptability of the fire station in the updated multidimensional weight vector, and then 0.000 is added. 1. Obtain the numerator; multiply 1 by the quotient of the weight component corresponding to the normalized link delay value (actual link delay divided by the upper limit of link delay), the weight component corresponding to the normalized packet loss rate value (packet loss rate multiplied by the packet loss rate), the weight component corresponding to the edge computing power consumption (actual edge computing power consumption multiplied by the actual edge computing power consumption), and the weight component corresponding to the model inference time (actual model inference time divided by the upper limit of model inference time). Add these four products to obtain the denominator; divide the numerator by the denominator to obtain the comprehensive scheduling utility value; the upper limit of model inference time is set to 1000 milliseconds. The update process of the reinforcement learning policy network parameters is as follows: the gradient of the policy network parameters is calculated using the deterministic policy gradient method in the direction of maximizing the comprehensive scheduling utility value, with an update step size of 0.0003; the value network is updated synchronously using the comprehensive scheduling utility value as the reward signal, with an update step size of 0.0003; the soft update coefficient of the target network is 0.005 to keep the policy network and value network stable during the update process; the updated parameters of the historical emergency response thermal prediction model, the reinforcement learning policy network parameters, and the updated multidimensional weight vector are written back to the shared storage area. At the beginning of the next scheduling cycle, the historical emergency response thermal prediction model is used to generate the expected concurrent fires in step S2, the updated multidimensional weight vector is used to construct the hyperedge attributes in the state tensor, and the reinforcement learning policy is used to output the calibration parameters required for the comprehensive transmission value calculation in step S3, realizing the complete reuse of the update results for the next scheduling.
[0025] It should be noted that the descriptions of each embodiment in the above embodiments have different focuses. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0026] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0027] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0028] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0029] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0030] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including both the preferred embodiments and all changes and modifications falling within the scope of the invention.
[0031] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.
Claims
1. A method for scheduling fire protection data resources based on a shared Internet of Things, characterized in that, Specifically, the steps include the following: Step S1: When multiple fire incidents occur in parallel, collect smoke temperature, video, fire hydrant pressure and vehicle location data output from each fire scene data source, as well as the resource status of fire stations, edge cloud, cloud and communication slices. Using fire scene, fire station, edge cloud, cloud and communication slice as nodes, and the many-to-many dependency relationship between fire scene and at least one edge cloud and at least one communication slice as hyperedge, a multi-dimensional weight vector is constructed according to the urgency of fire scene, adaptability of fire station, link latency and packet loss rate of communication link between nodes, edge computing power consumption and model inference time, to obtain a unified schedulable state tensor. Step S2: Based on the historical emergency response thermal prediction model established by pre-statistically counting historical emergency response records by region, predict the expected concurrent fires in each region in the future period. Combine the remaining bandwidth, remaining computing power, link latency and packet loss rate in the state tensor to generate a predictive pre-allocation vector configured according to the urgency of the fire. Step S3: Using the state tensor and predictive pre-allocation vector as input, calculate the comprehensive transmission value of each fire data source through a pre-constructed reinforcement learning strategy. Based on the relationship between the comprehensive transmission value and the preset transmission value threshold, select actions such as local discarding, low-latency direct transmission to the edge cloud, end-to-cloud collaborative compression and backhaul, or cloud batch archiving to realize edge data transmission gating and inference task offloading. Step S4: Collect the actual link latency and packet loss rate, actual edge computing power consumption, actual model inference time, and the on-time dispatch rate determined based on the actual arrival time and planned arrival time of the vehicle to form a feedback vector. Jointly update the multi-dimensional weight vector, the historical emergency response heat prediction model, and the reinforcement learning strategy, and use the updated results for the next dispatch.
2. The fire data resource scheduling method based on shared Internet of Things according to claim 1, characterized in that: In step S1, the specific processing methods for the collected smoke temperature, fire hydrant pressure, vehicle positioning data, video, and link latency and packet loss rate of the inter-node communication link are as follows: The smoke temperature, fire hydrant pressure, link delay and packet loss rate of the inter-node communication link are mapped to a unified numerical range through a saturation normalization function with preset sensitivity coefficient and preset reference threshold as parameters, so as to obtain the normalized values of smoke temperature, pressure, link delay and packet loss rate. The normalized values of smoke temperature and pressure are weighted and summed with the video flame detection confidence determined based on the video according to preset fusion weights, and the fire urgency is obtained by nonlinear compression. The estimated arrival time of each fire station to the corresponding fire scene is calculated based on vehicle positioning data. The extinguishing agent compatibility is determined based on the equipment type of the fire station. The extinguishing agent compatibility is multiplied by the result after the estimated arrival time is negatively attenuated by a preset time attenuation coefficient, and the maximum value among all fire stations is taken to obtain the fire station suitability.
3. The fire data resource scheduling method based on a shared Internet of Things according to claim 2, characterized in that: In step S1, the specific process of constructing many-to-many dependencies is as follows: When there is a usable wireless link between the fire site and the edge cloud and the fire site is allocated a communication slice, the fire site, the edge cloud and the communication slice are combined into a hyperedge; Estimate the amount of floating-point operations required for the data output from each fire site data source to trigger model inference. Combine the remaining computing power of the edge cloud, the current task queue length, and the average inference throughput to calculate the edge computing power consumption and model inference time. The edge computing power consumption is represented by the ratio of floating-point operations to the remaining computing power. The edge computing power consumption, model inference time, normalized link latency, normalized packet loss rate, fire urgency, and fire station adaptability are combined to form a multi-dimensional weight vector. The resource status of each node and the type to which each node belongs constitute node attributes. The multidimensional weight vector of each hyperedge constitutes hyperedge attributes. The node attributes, hyperedge attributes, and the correlation matrix that marks the affiliation relationship between nodes and hyperedges are assembled into a state tensor.
4. The fire data resource scheduling method based on a shared Internet of Things according to claim 3, characterized in that: In step S2, the specific operations of the historical emergency response thermal prediction model in combining the state tensor to predict the expected concurrent fire situation and correct effective resources are as follows: The occurrence time and location in historical emergency response records are statistically analyzed by region. A weight that decays over time is assigned based on the time interval between the occurrence time and the time of prediction, and a weight that decays over distance is assigned based on the spatial distance between the occurrence location and the center of the region, thereby constructing the basic thermal value for each region. Based on the meteorological conditions, traffic load, and key unit activity information of each region, the data are converted into meteorological risk factors, traffic load factors, and key activity factors, respectively. The basic thermal values are then multiplicatively corrected using an exponential method to obtain the expected concurrent fire situation. The remaining bandwidth and computing power of the edge clouds contained in each hyperedge are read from the state tensor, as well as the normalized link delay, normalized packet loss rate and edge computing power consumption of each hyperedge itself; the remaining bandwidth is nonlinearly compressed according to the normalized link delay and normalized packet loss rate to obtain the effective bandwidth, and the remaining computing power is nonlinearly compressed according to the edge computing power consumption to obtain the effective computing power.
5. A fire data resource scheduling method based on a shared Internet of Things according to claim 4, characterized in that: In step S2, the specific operation for generating the predictive pre-allocation vector is as follows: The expected concurrent fires in each region are normalized according to a preset concentration to obtain the region weight. The region weight is then distributed to each superedge within the region according to the region where the fire is located contained in each superedge. For each hyperedge within the same region, the priority weight of each hyperedge is obtained by exponential normalization based on the fire urgency of the fire contained in the hyperedge; the effective bandwidth of each hyperedge is multiplied by the region weight and the priority weight to obtain the bandwidth quota; the effective computing power of each hyperedge is multiplied by the region weight and the priority weight to obtain the computing power quota. Divide the computing power quota by the floating-point operations required to trigger model inference from the data output of each fire site data source to obtain the inference task quota; combine the bandwidth quota, computing power quota and inference task quota of each hyperedge to form a predictive pre-quota vector.
6. A method for scheduling fire protection data resources based on a shared Internet of Things according to claim 5, characterized in that: In step S3, the specific process for calculating the comprehensive transmission value of each fire source is as follows: Determine the superedge to which each fire data source belongs; estimate the amount of data to be transmitted from each fire data source based on the data format output by each fire data source; determine the amount of floating-point operations required for the data source to trigger model inference based on the estimated results of the floating-point operations required for the data source to trigger model inference; determine the number of tasks for the data source to trigger model inference based on the generation rate of the output data of each fire data source and the amount of data required for a single model inference. Read the fire urgency, fire station suitability, link delay normalization and packet loss rate normalization of the superedge from the state tensor; read the bandwidth quota, computing power quota and inference task quota of the superedge from the predictive pre-quota vector. The bandwidth usage is calculated by the ratio of the amount of data to be transmitted from the data source to the bandwidth quota of the superedge. The computing power usage is calculated by the ratio of the floating-point operations required for the model inference triggered by the data source to the computing power quota of the superedge. The inference task usage is calculated by the ratio of the number of tasks triggered by the model inference triggered by the data source to the inference task quota of the superedge. A link quality attenuation factor is constructed based on the normalized link delay and packet loss rate. A timeliness attenuation factor is constructed based on the waiting time from the data source's data generation time to the current scheduling time. The link quality attenuation factor and the timeliness attenuation factor are multiplied to obtain the joint attenuation factor.
7. A method for scheduling fire protection data resources based on a shared Internet of Things as described in claim 6, characterized in that: In step S3, the specific calculation process for the comprehensive transmission value is as follows: The inherent value density of the data source is pre-configured according to the data category of the data source. The basic value potential is obtained by multiplying the inherent value density of the data source, the urgency of the fire scene, the adaptability of the fire station and the joint attenuation factor and then dividing by the resource occupation penalty term. The resource occupation penalty term is obtained by multiplying the square of the bandwidth occupation, the square of the computing power occupation and the square of the inference task occupation by the preset bandwidth penalty coefficient, the preset computing power penalty coefficient and the preset inference task penalty coefficient respectively and then adding 1. The pre-built reinforcement learning strategy takes a state tensor and a predictive pre-allocation vector as input and outputs calibration parameters, including latency sensitivity coefficient, packet loss sensitivity coefficient, computing power sensitivity coefficient, inference sensitivity coefficient, opportunity cost coefficient, competition equilibrium coefficient, compression upper limit coefficient, and compression lower limit coefficient. The opportunity cost term and the competitive equilibrium term are calculated based on the calibration parameters. The opportunity cost term represents the bandwidth squeeze loss of the data source occupying the bandwidth of the data source whose comprehensive transmission value is to be calculated, which squeezes the transmission opportunities of other data sources. The competitive equilibrium term represents the logarithmic compression applied to the data source that exceeds the arithmetic mean of the basic value potential of all data sources to be scheduled within its superedge. Subtracting the opportunity cost and competitive equilibrium terms from the basic value potential yields the net value difference. The positive portion of the net value difference is then linearly scaled using the lower and upper compression coefficients to obtain the comprehensive transmission value within the range of the lower and upper compression coefficients.
8. A method for scheduling fire protection data resources based on a shared Internet of Things as described in claim 7, characterized in that: In step S3, the specific process for selecting local discard, edge cloud low-latency direct transmission, end-to-cloud collaborative compression and backhaul, or cloud batch archiving is as follows: Set a first preset transmission value threshold, a second preset transmission value threshold, and a third preset transmission value threshold; when the total transmission value is less than the first preset transmission value threshold, select the local discard action; When the total transmission value is not less than the first preset transmission value threshold and less than the second preset transmission value threshold, select the cloud batch archiving action. When the overall transmission value is not less than the second preset transmission value threshold and less than the third preset transmission value threshold, the edge-cloud collaborative compression backhaul action is selected; when the overall transmission value is not less than the third preset transmission value threshold, the edge cloud low-latency direct transmission action is selected. After the action is executed, the actual amount of bandwidth resources, computing power resources, and model inference tasks used will be deducted from the bandwidth quota, computing power quota, and inference task quota of the corresponding hyperedge in the predictive pre-quota vector, respectively. Local discarding action blocks data whose comprehensive transmission value does not reach the preset transmission value threshold from entering the communication link. Cloud batch archiving action and edge-cloud collaborative compression and backhaul action cache or compress data in the edge cloud before uploading it to the cloud to control the amount of data entering the communication link. Edge cloud low-latency direct transmission action allows data with high urgency at the fire scene to be transmitted without compression and quality adjustment. Together, they constitute edge data transmission gating. Both edge-cloud collaborative compression backhaul and edge cloud low-latency direct transmission trigger the edge cloud to execute model inference, allocating the model inference task to the computing power quota of the superedge, thus constituting inference task offloading.
9. A method for scheduling fire protection data resources based on a shared Internet of Things as described in claim 8, characterized in that: In step S4, the process of constructing the feedback vector is as follows: The actual link latency and packet loss rate are collected by the edge cloud, the actual edge computing power consumption is collected by the edge cloud, and the actual model inference time is recorded when the edge cloud performs model inference. The on-time scheduling rate is determined based on the actual arrival time and the planned arrival time of the vehicle. The actual link latency, packet loss rate, actual edge computing power consumption, actual model inference time and on-time scheduling rate are concatenated in a fixed order to generate a feedback vector. The update process of the multidimensional weight vector is as follows: the actual link delay, packet loss rate, actual edge computing power consumption, and actual model inference time in the feedback vector are compared with the corresponding preset benchmark values to obtain each performance deviation measure. The weight components in the multidimensional weight vector corresponding to the normalized value of link delay, normalized value of packet loss rate, edge computing power consumption, and model inference time are adjusted exponentially based on the corresponding performance deviation measure. The weight components in the multidimensional weight vector corresponding to the urgency of the fire scene and the adaptability of the fire station are adjusted according to the dispatch punctuality rate. The adjusted weight components are normalized so that the sum of each weight component in the updated multidimensional weight vector remains at 1.
10. A method for scheduling fire protection data resources based on a shared Internet of Things according to claim 9, characterized in that: In step S4, the update process of the historical emergency response thermal prediction model is as follows: The feedback modulation coefficient is constructed based on the on-time dispatch rate, actual link delay and packet loss rate. The actual dispatch thermal observation matrix of the current period is constructed based on the location and time of the actual dispatch mission in the current period. The difference between the expected concurrent fire situation in each area output by the historical dispatch thermal prediction model and the corresponding position value in the current period's actual dispatch thermal observation matrix is multiplied by the feedback modulation coefficient as the loss. The parameters of the historical dispatch thermal prediction model are adjusted in the gradient descent direction. The update process of the reinforcement learning strategy is as follows: construct a comprehensive scheduling utility value using the feedback vector and the updated multidimensional weight vector, and update the network parameters of the reinforcement learning strategy in the direction of maximizing the comprehensive scheduling utility value; The updated historical emergency response thermal prediction model parameters, reinforcement learning policy network parameters, and updated multidimensional weight vectors are saved for the next scheduling.
