Big model-based emergency event dynamic early warning method

By fusing multi-source heterogeneous data and modeling spatiotemporal large models, combined with dynamic updating of risk maps and adaptive threshold adjustment, multiple problems in emergency warning are solved, achieving high-precision and real-time dynamic warning, and supporting intelligent decision-making in the field of public safety.

CN123180718APending Publication Date: 2026-11-27LINKER
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611107211.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-24
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies for early warning of emergencies suffer from several problems, including insufficient ability to model complex events, lack of ability to fuse multi-source heterogeneous data, insufficient real-time performance and dynamic adaptability, lack of risk spatiotemporal evolution mechanism, and weak generalization ability for long-tail scenarios. As a result, it is difficult to achieve accurate and real-time risk prediction and early warning.

Method used

By employing multi-source heterogeneous data fusion, spatiotemporal large-scale modeling, dynamic updating of risk maps, and adaptive threshold adjustment, and through multimodal feature fusion, spatiotemporal coding, graph convolutional network modeling, and incremental update mechanisms, we can achieve accurate and real-time dynamic early warning of emergencies.

Benefits of technology

It effectively addresses multiple shortcomings in existing technologies, achieving high-precision, real-time, and scenario-adaptive early warning of emergencies, supporting proactive prevention and intelligent decision-making in the field of public safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123180718A_ABST
    Figure CN123180718A_ABST
Patent Text Reader

Abstract

The application discloses a sudden event dynamic early warning method based on a large model, collects multi-source heterogeneous public safety data and pre-processes to obtain initial features of each mode, realizes unified representation of heterogeneous data through triple alignment of time, space and semantics, obtains multi-modal fusion features through attention mechanism weighted fusion; input the fusion features into a space-time large model after space-time coding, capture regional spatial dependence and time sequence dependence, output the target period sudden event risk probability; model the risk space diffusion effect based on a graph convolution network, generate the future risk trend in combination with the time sequence prediction, construct and dynamically update the risk atlas by using an incremental updating mechanism; dynamically adjust the early warning threshold in combination with the regional historical risk frequency and real-time false alarm feedback, generate and output the early warning decision. The application can realize deep fusion of multi-modal data and accurate risk prediction, adapt to different regional risk characteristics, and effectively improve the accuracy, real-time performance and scene adaptation capability of sudden event early warning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of intelligent early warning and artificial intelligence technology for public safety, and more specifically, to a dynamic early warning method for emergencies based on a large model. Background Technology

[0002] With the continuous advancement of urbanization, the pressure to prevent and control various emergencies such as public security, natural disasters, mass incidents, epidemics, and terrorist attacks is constantly increasing. Accurate and real-time risk prediction and early warning have become core requirements for public safety governance. Current mainstream intelligent security monitoring solutions mainly rely on rule engines and traditional machine learning models to achieve risk assessment. For example, they use methods such as time series analysis and support vector machines (SVM) to perform offline statistical analysis on structured data such as police reports and environmental sensor data to identify high-crime areas and risky periods. However, existing technologies have several significant limitations in practical implementation: First, the ability to model complex event correlations is insufficient. Traditional models rely on manually preset rules and statistical assumptions, making it difficult to depict the high-dimensional nonlinear relationships behind sudden events, and unable to effectively uncover the potential transmission patterns between events. Consequently, the accuracy of predicting sudden risks caused by the coupling of multiple factors is low.

[0003] Secondly, the generalization ability for long-tail scenarios is weak. For rare and major emergencies, existing small-scale supervised models lack sufficient labeled data support, resulting in poor prediction performance for low-frequency, high-hazard long-tail risk events. Furthermore, the cost of domain data labeling is high and the iteration efficiency is low.

[0004] Third, there is a lack of multi-source heterogeneous data fusion capabilities. Public safety scenarios simultaneously encompass multi-modal data such as structured police incident data, unstructured social media sentiment, surveillance videos, and alarm audio. Existing technologies struggle to achieve cross-modal semantic association and information complementarity, failing to fully leverage multi-source data to improve the comprehensiveness and accuracy of predictions.

[0005] Fourth, the real-time performance and dynamic adaptability of early warnings are insufficient. Traditional solutions mostly adopt offline batch analysis mode, which cannot perform real-time reasoning on dynamic data streams such as real-time video streams and sudden alarms, resulting in a lag in risk level updates; moreover, the early warning thresholds are mostly globally statically set, which cannot adapt to the differences in risk characteristics in different regions, and are prone to the problem of imbalance between false alarm rate and false alarm rate.

[0006] Fifth, there is a lack of modeling for the spatiotemporal evolution mechanism of risks. Existing prediction methods mostly calculate risks for independent regions alone, without considering the spatial diffusion effect of risks between neighboring regions, and cannot achieve multi-granularity prediction of future risk trends, making it difficult to support dynamic prevention and control decisions.

[0007] In summary, existing technologies cannot simultaneously meet the multiple requirements of complex relationship modeling, multimodal fusion, real-time dynamic updates, and generalization of long-tail scenarios. There is an urgent need for a new dynamic early warning scheme for emergencies based on large models to address the above-mentioned shortcomings. Summary of the Invention

[0008] To address the shortcomings of existing technologies, the present invention aims to provide a dynamic early warning method for emergencies based on a large model. By fusing multi-source heterogeneous data, modeling a spatiotemporal large model, dynamically updating the risk map, and adjusting the adaptive threshold, the method achieves accurate and real-time dynamic early warning of emergencies, effectively solving the problems of insufficient modeling capabilities, lack of multimodal fusion, poor real-time performance, and weak threshold adaptability in existing technologies.

[0009] To achieve the above objectives, the present invention provides the following technical solution: a dynamic early warning method for sudden events based on a large model, comprising the following steps: Step 1: Collect multi-source heterogeneous public safety-related data, preprocess the structured and unstructured data respectively to obtain the initial features corresponding to each modality, and then perform temporal alignment, spatial alignment and semantic alignment on the initial features of each modality in sequence to achieve a unified spatiotemporal and semantic representation of heterogeneous data. Then, the aligned multimodal features are weighted and fused through an attention mechanism to obtain multimodal fused features. Step 2: Spatiotemporally encode the multimodal fusion features obtained in Step 1, fuse them to generate a spatiotemporal joint feature vector, input the spatiotemporal joint feature vector into the spatiotemporal prediction model to perform spatiotemporal large model modeling, capture the spatial dependence and temporal dependence between regions through the spatial attention and temporal attention separated by the spatiotemporal large model, and output the probability of sudden event risk in the target region for the corresponding time period. Step 3: Based on regional adjacency relationships, model the spatial diffusion effect of risk through graph convolutional networks, combine it with time series prediction models to generate risk trends for future periods, and use an incremental update mechanism to construct and dynamically update the risk map; Step four: Dynamically adjust the early warning threshold by combining the region's historical risk frequency and real-time false alarm feedback; generate and output early warning decisions based on the probability of sudden events and the corresponding region's dynamic early warning threshold.

[0010] As a further improvement of the present invention, the specific method for preprocessing structured and unstructured data in step one is as follows: the collected structured data includes criminal records, population density and weather data; the unstructured data includes surveillance video, social media text and alarm recordings; For structured data, standardization and missing value imputation are performed as follows:

[0011] in, The mean and standard deviation of the structured data; For text data, perform word segmentation and stop word filtering. Model architecture Embedded, specifically as follows: ; For video data, frame sampling is performed. Extract visual features, ; For time-series data, a sliding window partitioning method is used. The last layer of feature dimensions Wavelet transform is used to extract frequency domain features, as detailed below: .

[0012] As a further improvement of the present invention, the specific method for performing time alignment, spatial alignment and semantic alignment on the initial features of each modality in step one is as follows: First, time alignment is performed: dynamic time warping is used to align time series data with different sampling frequencies. In the formula, The minimum cumulative distance between time series X and Y at points i and j. : Local distance variable; then spatial alignment: geocoding and projection transformation, geocoding: text coordinate

[0013] Use such as The API or local geodatabase converts addresses to latitude and longitude; projection transformation:

[0014] In the formula, The radial transformation matrix maps the local coordinates of the camera to the global coordinate system. Finally, semantic alignment is performed: different modalities of data are mapped to a shared semantic space using the CLIP model.

[0015]

[0016] in, , Text / image encoder, alignment objective: minimize cosine similarity loss. .

[0017] As a further improvement of the present invention, the aligned multimodal features are weighted and fused using an attention mechanism to obtain multimodal fused features in the following specific way: The features aligned by the attention mechanism are fused using attention weights:

[0018] In the formula, Q, K, and V represent queries. ,key ,value ;d represents the feature dimension, used to scale the dot product attention.

[0019] As a further improvement of the present invention, after obtaining the multimodal fusion features, spatiotemporal encoding is performed, and spatiotemporal joint feature vectors are generated through fusion, as follows: First, grid encoding is performed: latitude and longitude are converted into string encoding, and then embedded into a vector.

[0020] In the formula, For geocoding algorithms, latitude and longitude coordinates It is converted into a string encoding to divide and encode geographic space, which facilitates the storage, retrieval and processing of geographic information; As an embedding layer, it transforms discrete inputs into low-dimensional, continuous vector representations, enabling computers to understand the spatial relationship information behind geocoding; It is a vector of geographic coordinates after encoding and embedding. Then time encoding is performed: periodic time embedding: the timestamps are converted into continuous vectors while preserving periodicity. , ; In the formula, For timestamps, such as standardized relative time. For the frequency base value, such as To control the period length in different dimensions, The encoding dimension is usually consistent with the hidden layers of the model; Finally, spatiotemporal joint coding is performed: In the formula, This is to transform and fuse the spatiotemporal feature vectors of geographic information; As a fundamental feature of spatial dimensions, it describes a discrete representation of "where" or "where," such as a region ID. For spatial correlation, describe "how large an area is affected", such as the area of ​​influence; The time dimension describes "when," such as a timestamp; The weight matrix is ​​a learnable matrix, which consists of parameters that are continuously optimized during model training.

[0021] As a further improvement to the present invention, the spatiotemporal large model constructed in step two is as follows:

[0022] In the formula, As a multi-head attention mechanism, the model simultaneously captures the sequence from "multiple perspectives". The relationships between them; Q, K, V are the query, key, and value matrix, derived from the input features. Linear transformation yields: , , ; , , This is the weight matrix; As a feedforward neural network, the Transformer is a "secondary processing" model for the attention output, typically consisting of two fully connected layers plus an activation function.

[0023] As a further improvement of the present invention, the specific method for outputting the probability of sudden events in the target area corresponding to the time period in step two is as follows: After processing by the Transformer module described above, the final feature representation is obtained. Then, the features are transformed through a fully connected layer, and finally, an activation function is applied. Map the output to a range of 0 to 1 to obtain the risk probability.

[0024] In the formula, The final output is the probability of the sudden event risk, a value between 0 and 1, where 0 represents no risk and 1 represents risk. For binary classification, it is a scalar; for multi-class classification, it is a probability vector, where each element represents the risk probability of the corresponding class, with the dimension being the number of classes. ; For activation functions, the most common approach is to use... function This is used to map the result of a linear transformation to the range of 0 to 1, making it conform to the probability value range; in multi-class classification scenarios, it is usually used... function ; This is the weight matrix of the fully connected layer, used to represent the final features. Mapped to the risk probability space, if The dimension is D, which represents the dimension of the output risk probability. It is 1 for binary classification and [number of categories] for multi-class classification. ,So The dimensions are (C, D); is the bias vector of the fully connected layer, used to adjust the result of the linear transformation. It has the same dimension as the output risk probability, which is 1 for binary classification and C for multi-class classification. The final feature representation after processing by the spatiotemporal convolutional layer and the Transformer module integrates local and global spatiotemporal information. It is the result of the model extracting and transforming features from the input spatiotemporal data, and its dimension is set to D.

[0025] As a further improvement to the present invention, the specific method for generating the risk map in step three is as follows: First, construct a spatial diffusion model: based on criminology The theory of risk propagation in adjacent areas uses Graph Convolutional Networks (GCNs) to model risk propagation within regions.

[0026] In the formula, This is a region adjacency matrix; Degree matrix ; For the features of the k-th layer nodes, initially... ; The weight matrix is ​​a learnable weight matrix; Then, time series forecasting is performed: based on the Transformer, the risk trend for the next time period T is predicted.

[0027]

[0028] In the formula, X is the input time series. This represents the risk-related characteristic value at time t; for The encoder, composed of multiple stacked multi-head attention layers and feedforward neural network layers, is used to extract long-range dependencies and complex patterns in time series data; h is... The encoder's output feature vector incorporates global information from the time series. This is the weight matrix of the output layer, used to... The encoder output is mapped to the prediction value space; This is the bias vector for the output layer, used to adjust the predicted values.

[0029] As a further improvement to the present invention, step three also includes a dynamic map update step, the specific method of which is as follows: In the first step... The incremental update rules for the graph at each time step are as follows:

[0030] When the map is a "risk diffusion heatmap", then It is a risk propagation gain matrix, where each element represents the strength of risk diffusion from that region to its neighboring areas; when the map is a "regional risk weight map", It is a regional risk weight vector, where each element represents the risk contribution coefficient of that region at the current moment; The "inertia coefficient" for historical states, taking values ​​[0,1], when... At time 1, the map is highly dependent on history, when At 0:00, the map focuses more on current observations; This is the topology-risk weight, typically set to 0.6. The risk map represents the state of the risk map at the previous moment, serving as a "historical memory" for iterative updates; the updating of the risk map has temporal continuity; 1- The "weighting coefficients" for the current observations, and Complementary; The "balance coefficient" for observation fusion; a hyperparameter taking values ​​[0,1]. 1. Map updates mainly rely on real-time raw observations. ; 0. The graph update mainly relies on prior correction terms. ; This represents the real-time risk data vector / matrix collected at time t; in emergency scenarios, It is a real-time input of the risk map, directly reflecting the original distribution of the current risk; The prior correction diagonal matrix for the current time step; derived from vectors The constructed diagonal matrix, if ,but diagonal is of matrix.

[0031] As a further improvement of the present invention, the specific method for dynamically adjusting the early warning threshold in step four by combining the regional historical risk frequency and real-time false alarm feedback, and generating and outputting an early warning decision based on the probability of the sudden event risk and the corresponding dynamic early warning threshold of the region, is as follows: First, set a static threshold: select an initial threshold based on the historical data validation set. This balances precision and recall. in, , Then, dynamic threshold adjustment is performed: based on historical data. Dynamically adjust the early warning threshold: Based on regional historical risks: , In the formula, For the region The frequency of historical events; This is the attenuation coefficient, such as 0.1, which controls the adjustment range; This is the global baseline threshold, such as 0.7; Finally, based on real-time feedback, the threshold is dynamically adjusted according to the recent false alarm rate.

[0032] In the formula, The target false alarm rate is, for example, 0.05. The learning rate, such as 0.01; The loss function used in the process of dynamically adjusting the early warning threshold is as follows: , In the formula, Let i be the true risk label for sample i, where no risk = 0 and risky = 1; Predict samples for the model The risk probability is 0~1; N is the total number of samples; The regularization strength coefficient balances classification and spatial constraints, and its value is [value missing]. hyperparameters; 0 indicates that only accurate classification is considered. Overemphasizing spatial smoothness may make the warning threshold "too conservative"; Spatial gradient of risk Norm; P(r,t) is the dynamic risk profile of the risk probability distribution output by the model, which varies with space x and time t; Let x be the risk probability in relation to the spatial variable.

[0033] The beneficial effects of this invention are: This invention effectively connects the semantic relationships of multimodal data, including structured police reports, unstructured videos, text, and audio, through spatiotemporal semantic triple alignment and attention-weighted fusion of multi-source heterogeneous data. It fully explores the complementary information of multi-source data and solves the problem of the lack of multi-source fusion capability in existing technologies. It adopts a spatiotemporal large model to model regional spatial dependence and temporal evolution laws, which has strong nonlinear fitting ability and long-range correlation capture ability, significantly improving the prediction accuracy of complex coupled events. At the same time, it relies on the generalization ability of the large model to alleviate the pain point of insufficient labeled data for long-tail rare events. It models the spatial diffusion effect of risk through graph convolutional networks, combines it with temporal prediction to generate future risk trends, and uses incrementally updated dynamic risk maps to achieve a complete characterization of the spatiotemporal evolution of risk, supporting proactive prevention and control decisions. It adopts a dynamic threshold adjustment mechanism driven by historical frequency and real-time false alarm feedback, which can adaptively match the risk characteristics of different regions, balance the global false alarm rate and missed alarm rate, and improve the real-time performance and adaptability of early warning. The overall solution enables intelligent early warning throughout the entire process, from data fusion, risk prediction, evolutionary deduction to decision output, significantly improving the accuracy, real-time performance, and scenario adaptability of emergency early warning. Attached Figure Description

[0034] Figure 1 This is an architecture diagram of the system supporting the large-model-based dynamic early warning method for emergencies of the present invention. Figure 2 This is a diagram illustrating the interaction between components; Figure 3 The flowchart shows the dynamic early warning method for emergencies based on a large model according to the present invention. Figure 4 Flowchart of spatiotemporal large model prediction; Figure 5 Flowchart for dynamic threshold optimization. Detailed Implementation

[0035] The present invention will now be described in further detail with reference to the embodiments shown in the accompanying drawings.

[0036] Reference Figures 1 to 5 As shown, this embodiment provides a dynamic early warning method for emergencies based on a large model, which is implemented through the following steps: 1. Multi-source data fusion and representation (1) Input data preprocessing: • Structured data: criminal records, population density, weather data, etc. • Unstructured data: surveillance videos, social media texts, alarm recordings, etc.

[0037] Data alignment: ensuring that heterogeneous data can be processed uniformly. ① Time Alignment: Dynamic time warping is used to align time-series data with different sampling frequencies (such as sensor data and event reports).

[0038] · Time series (such as public opinion data) and (e.g., alarm records) at the point Minimum cumulative distance · Local distance variable ② Spatial Alignment: Geocoding and Projection Transformation I: Geocoding: Text coordinate

[0039] • Use as The API or local geodatabase converts the address to latitude and longitude. II: Projection Transformation

[0040] · The radial transformation matrix maps the local coordinates of the camera to the global coordinate system. ③ Semantic alignment: Mapping data from different modalities to a shared semantic space using the CLIP model.

[0041]

[0042] · , Text / Image Encoder Alignment objective: Minimize cosine similarity loss

[0043] ④ Multimodal feature fusion: attention mechanism Aligned features are fused using attention weights: , · , , : query ( ),key( ),value( Features from different modalities · Feature dimension, used to scale dot product attention. Spatiotemporal coding I: Spatial Encoding ① Grid encoding: Convert latitude and longitude into string encoding, and then embed it into a vector.

[0044] · Geocoding algorithms convert latitude and longitude coordinates It is converted into a string encoding, which divides and encodes the geographic space, making it convenient for the storage, retrieval and processing of geographic information.

[0045] · The embedding layer transforms discrete inputs into low-dimensional, continuous vector representations, enabling computers to understand the spatial relationships behind geocoding.

[0046] · Vectors of geographic coordinates after encoding and embedding II: Time Encoding ① Periodic time embedding: Converts timestamps into continuous vectors while preserving periodicity. , · Timestamps, such as standardized relative times. · : Frequency base value, such as Controlling the period length in different dimensions · The encoding dimension is usually consistent with the hidden layer of the model. ② Multi-scale temporal features: Statistical features used to extract historical data within a time window.

[0047] · , , : Mean, standard deviation, and maximum value of events within the sliding window.

[0048] III: Spatiotemporal Joint Coding

[0049] · The transformed spatiotemporal feature vector that incorporates geographic information. The fundamental feature of spatial dimension is a discrete representation describing "where" or "where," such as a region ID. Spatial correlation range, describing "how large an area is affected", such as the area of ​​influence. The time dimension describes "when," such as a timestamp. · The learnable weight matrix consists of parameters that are continuously optimized during model training. large-scale spatiotemporal modeling (1) Model Architecture Design Using a spatiotemporal Transformer to capture spatiotemporal dependencies between regions:

[0050] · Multi-head attention mechanism: The model simultaneously captures the sequence from "multiple perspectives". The relationship between them.

[0051] , , : Query, key-value matrix, based on input features Linear transformation yields: , , , , Weight matrix · Feedforward neural network The "secondary processing" model for attention output is usually a structure of two fully connected layers plus an activation function.

[0052] Risk probability output: Through the above After module processing, the final feature representation is obtained. Then, the features are transformed through a fully connected layer, and finally, an activation function is applied. Map the output to a range of 0 to 1 to obtain the risk probability.

[0053] · The final output is the probability of the sudden event risk, a value between 0 and 1, where 0 represents no risk and 1 represents risk. For binary classification, it is a scalar; for multi-class classification, it is a probability vector, where each element represents the risk probability of the corresponding class, with the dimension being the number of classes. .

[0054] · Activation functions, commonly used are... function This is used to map the result of a linear transformation to the range of 0 to 1, making it conform to the probability value range; in multi-class classification scenarios, it is usually used... function .

[0055] · The weight matrix of the fully connected layer is used to represent the final features. Mapped to the risk probability space. If The dimension is The dimension of the output risk probability (1 for binary classification, and the number of categories for multi-class classification) ),So The dimension is · : The bias vector of the fully connected layer, used to adjust the result of the linear transformation. It has the same dimension as the output risk probability; it is 1 for binary classification and 1 for multi-class classification. · After passing through spatiotemporal convolutional layers and The final feature representation after module processing integrates local and global spatiotemporal information; it is the result of the model extracting and transforming features from the input spatiotemporal data. The dimension is set to... The specific value depends on the design and parameter settings of the preceding model layers.

[0056] Dynamic risk map generation Spatial diffusion model: based on criminology The theory of risk propagation in adjacent areas uses Graph Convolutional Networks (GCNs) to model risk propagation within regions.

[0057] · : Region adjacency matrix ( If the area Adjacent) + Self-connect · Degree matrix · : No. Layer node features, initially · Learnable weight matrix Time series forecasting: based on Predicting the future Risk trends over time: Assuming the input time series The predicted value is obtained after processing. The formula is as follows:

[0058]

[0059] X is the input time series. This represents the risk-related characteristic value at time t, such as the hourly pedestrian flow in a certain area. · : The encoder, consisting of multiple stacked multi-head attention layers and feedforward neural network layers, is used to extract long-range dependencies and complex patterns in time series.

[0060] · : The encoder's output feature vector incorporates global information from the time series. · The weight matrix of the output layer, used to... The encoder output is mapped to the prediction value space. · : The bias vector of the output layer, used to adjust the predicted values.

[0061] Map updates dynamically In the The incremental update rules for the graph at each time step are as follows:

[0062] When the map is a "risk diffusion heatmap", then It is a risk propagation gain matrix, where each element represents the strength of risk diffusion from that region to its neighboring areas; when the map is a "regional risk weight map", It is a regional risk weight vector, where each element represents the risk contribution coefficient of the region at the current moment.

[0063] · : The "inertia coefficient" of historical states, taking values ​​[0,1]. At time 1, the map is highly dependent on history, when At 0:00, the map focuses more on current observations.

[0064] · Topology-risk weight, typically set to 0.6. · The previous moment (i.e.) The risk map status at any given moment is a "historical memory" that is iteratively updated. The updating of the risk map has temporal continuity.

[0065] ·1- The currently observed "weighting coefficients" are related to... By complementing each other and balancing "historical inertia" with "real-time observation," the map can be both stable and responsive to new risks.

[0066] · : The "balance coefficient" of observation fusion. A hyperparameter with values ​​in the range [0,1]. 1. Map updates mainly rely on real-time raw observations. ; 0. The graph update mainly relies on prior correction terms. .

[0067] · : No. Real-time risk data vectors / matrices collected continuously. In emergency scenarios... It is a real-time input to the risk map, directly reflecting the original distribution of current risks.

[0068] · The prior correction diagonal matrix at the current time step. (Based on vectors) The constructed diagonal matrix, if ,but diagonal is of matrix.

[0069] Early warning threshold optimization Static threshold setting Select the initial threshold based on the historical data validation set. This balances precision and recall. in , Dynamic threshold adjustment: based on historical data Dynamically adjust the early warning threshold I: Based on regional historical risks: , · :area Frequency of historical events · Attenuation coefficient, such as 0.1, controls the adjustment range. · Global baseline threshold, such as 0.7 II: Based on real-time feedback The threshold is dynamically adjusted based on the recent false alarm rate.

[0070] · Target false positive rate, such as 0.05 · Learning rate, such as 0.01 Loss function: The "total loss" that needs to be minimized during the optimization process of the model / threshold. The smaller the value, the better the warning effect.

[0071] , · :sample The true risk label: no risk = 0, risky = 1. · Model prediction samples Risk probability 0~1 · Total number of samples · Regularization strength coefficient, balancing classification and spatial constraints, with a value of... hyperparameters ① 0: Focusing solely on accurate classification may lead to spatially "abrupt" risk predictions, such as significant differences in warning thresholds between adjacent areas. ② Overemphasizing spatial smoothness may lead to overly conservative warning thresholds, ignoring local differences in actual risks.

[0072] · Spatial gradient of risk norm ① The dynamic risk map of the risk probability distribution output by the model, which varies with space. and time change ② Risk probability on spatial variables Gradient vectors, such as latitude and longitude and regional grid coordinates, reflect the rate of change of risk probability in space.

[0073] In summary, this invention employs a technical solution that combines spatiotemporal semantic alignment and attention fusion of multi-source heterogeneous data, spatiotemporal large-scale model risk prediction, graph convolution risk diffusion modeling and incremental risk map updating, and dual-drive dynamic threshold adjustment. This solution addresses the problems in existing technologies, such as insufficient complex event modeling capabilities, lack of multimodal data fusion, inadequate characterization of risk spatiotemporal evolution, and poor adaptability of early warning thresholds. It achieves high-precision, high-real-time, and high-adaptability dynamic early warning of emergencies, effectively supporting proactive prevention and intelligent decision-making in the field of public safety.

[0074] The above description is merely a preferred embodiment of the present invention. The scope of protection of the present invention is not limited to the above embodiments. All technical solutions falling within the scope of the present invention's concept are within the scope of protection of the present invention. It should be noted that for those skilled in the art, any improvements and modifications made without departing from the principles of the present invention should also be considered within the scope of protection of the present invention.

Claims

1. A dynamic early warning method for emergencies based on a large model, characterized in that: Includes the following steps: Step 1: Collect multi-source heterogeneous public safety-related data, preprocess the structured and unstructured data respectively to obtain the initial features corresponding to each modality, and then perform temporal alignment, spatial alignment and semantic alignment on the initial features of each modality in sequence to achieve a unified spatiotemporal and semantic representation of heterogeneous data. Then, the aligned multimodal features are weighted and fused through an attention mechanism to obtain multimodal fused features. Step 2: The multimodal fusion features obtained in Step 1 are input into the spatiotemporal prediction model to perform spatiotemporal large-scale modeling. The spatial attention and temporal attention separated by the spatiotemporal large-scale model are used to capture the spatial dependence and temporal dependence between regions respectively, and the probability of sudden events in the target region during the corresponding time period is output. Step 3: Based on regional adjacency relationships, model the spatial diffusion effect of risk through graph convolutional networks, combine it with time series prediction models to generate risk trends for future periods, and use an incremental update mechanism to construct and dynamically update the risk map; Step 4: Dynamically adjust the early warning threshold by combining the region's historical risk frequency and real-time false alarm feedback, and generate and output an early warning decision based on the probability of the sudden event risk and the corresponding region's dynamic early warning threshold.

2. The method for dynamic early warning of emergencies based on a large model according to claim 1, characterized in that: The specific methods for preprocessing structured and unstructured data in step one are as follows: the collected structured data includes crime records, population density, and weather data; the unstructured data includes surveillance videos, social media texts, and alarm recordings. For structured data, standardization and missing value imputation are performed as follows: in, The mean and standard deviation of the structured data; For text data, perform word segmentation and stop word filtering. Model architecture Embedded, specifically as follows: ; For video data, frame sampling is performed. Extracting visual features ; For time-series data, a sliding window partitioning method is used. The last layer of feature dimensions Wavelet transform is used to extract frequency domain features, as detailed below: .

3. The method for dynamic early warning of emergencies based on a large model according to claim 2, characterized in that: The specific method for performing time alignment, spatial alignment, and semantic alignment on the initial features of each modality in step one is as follows: First, time alignment is performed: dynamic time warping is used to align time series data with different sampling frequencies. In the formula, The minimum cumulative distance between time series X and Y at points i and j. : Local distance variable; then spatial alignment: geocoding and projection transformation, geocoding: text coordinate Use such as The API or local geodatabase converts the address to latitude and longitude; projection transformation: In the formula, The radial transformation matrix maps the local coordinates of the camera to the global coordinate system. Finally, semantic alignment is performed: different modalities of data are mapped to a shared semantic space using the CLIP model. in, , Text / image encoder, alignment objective: minimize cosine similarity loss. 。 4. The method for dynamic early warning of emergencies based on a large model according to claim 3, characterized in that: The specific method for weighted fusion of aligned multimodal features using an attention mechanism to obtain multimodal fused features is as follows: Features aligned by the attention mechanism are fused using attention weights: In the formula, Q, K, and V represent queries. ,key ,value ;d represents the feature dimension, used to scale the dot product attention.

5. The method for dynamic early warning of emergencies based on a large model according to claim 4, characterized in that: In step one, after obtaining the multimodal fusion features, spatiotemporal encoding is performed, and the spatiotemporal joint feature vector is generated, as follows: First, grid encoding is performed: latitude and longitude are converted into string encoding, and then embedded into a vector. In the formula, For geocoding algorithms, latitude and longitude coordinates It is converted into a string encoding to divide and encode geographic space, which facilitates the storage, retrieval and processing of geographic information; As an embedding layer, it transforms discrete inputs into low-dimensional, continuous vector representations, enabling computers to understand the spatial relationship information behind geocoding; It is a vector of geographic coordinates after encoding and embedding. Then time encoding is performed: periodic time embedding: the timestamps are converted into continuous vectors while preserving periodicity. , ; In the formula, For timestamps, such as standardized relative time. For the frequency base value, such as To control the cycle length in different dimensions, The encoding dimension is usually consistent with the hidden layers of the model; Finally, spatiotemporal joint coding is performed: In the formula, This is to transform and fuse the spatiotemporal feature vectors of geographic information; As a fundamental feature of spatial dimensions, it describes a discrete representation of "where" or "where," such as a region ID. For spatial correlation, describe "how large an area is affected", such as the area of ​​influence; The time dimension describes "when," such as a timestamp; The weight matrix is ​​a learnable matrix, which consists of parameters that are continuously optimized during model training.

6. The method for dynamic early warning of emergencies based on a large model according to claim 5, characterized in that: The spatiotemporal large model constructed in step two is as follows: In the formula, As a multi-head attention mechanism, the model simultaneously captures the sequence from "multiple perspectives". The relationships between them; Q, K, V are the query, key, and value matrix, derived from the input features. Linear transformation yields: , , ; , , This is the weight matrix; As a feedforward neural network, the Transformer is a "secondary processing" model for the attention output, typically consisting of two fully connected layers plus an activation function.

7. The method for dynamic early warning of emergencies based on a large model according to claim 6, characterized in that: The specific method for outputting the probability of sudden events in the target area for the corresponding time period in step two is as follows: After processing by the Transformer module described above, the final feature representation is obtained. Then, the features are transformed through a fully connected layer, and finally, an activation function is applied. Map the output to a range of 0 to 1 to obtain the risk probability. In the formula, The final output is the probability of the sudden event risk, a value between 0 and 1, where 0 represents no risk and 1 represents risk. For binary classification, it is a scalar; for multi-class classification, it is a probability vector, where each element represents the risk probability of the corresponding class, with the dimension being the number of classes. ; For activation functions, the most common is to use... function This is used to map the result of a linear transformation to the range of 0 to 1, making it conform to the probability value range; in multi-class classification scenarios, it is usually used... function ; This is the weight matrix of the fully connected layer, used to represent the final features. Mapped to the risk probability space, if The dimension is D, which represents the dimension of the output risk probability. It is 1 for binary classification and [number of categories] for multi-class classification. ,So The dimensions are (C, D); is the bias vector of the fully connected layer, used to adjust the result of the linear transformation. It has the same dimension as the output risk probability, which is 1 for binary classification and C for multi-class classification. The final feature representation after processing by the spatiotemporal convolutional layer and the Transformer module integrates local and global spatiotemporal information. It is the result of the model extracting and transforming features from the input spatiotemporal data, and its dimension is set to D.

8. The method for dynamic early warning of emergencies based on a large model according to claim 7, characterized in that: The specific method for generating the risk map in step three is as follows: First, construct a spatial diffusion model: based on criminology The theory of risk propagation in adjacent regions uses Graph Convolutional Networks (GCNs) to model risk propagation within regions. In the formula, This is a region adjacency matrix; Degree matrix ; For the features of the k-th layer nodes, initially... ; The weight matrix is ​​a learnable weight matrix; Then, time series forecasting is performed: based on the Transformer, the risk trend for the next time period T is predicted. In the formula, X is the input time series. This represents the risk-related characteristic value at time t; for The encoder, composed of multiple stacked multi-head attention layers and feedforward neural network layers, is used to extract long-range dependencies and complex patterns in time series data; h is... The encoder's output feature vector incorporates global information from the time series. This is the weight matrix of the output layer, used to... The encoder output is mapped to the prediction value space; This is the bias vector for the output layer, used to adjust the predicted values.

9. The method for dynamic early warning of emergencies based on a large model according to claim 8, characterized in that: Step three also includes a dynamic map update step, the specific method of which is as follows: In the... The incremental update rules for the graph at each time step are as follows: When the map is a "risk diffusion heatmap", then It is a risk propagation gain matrix, where each element represents the strength of risk diffusion from that region to its neighboring areas; when the map is a "regional risk weight map", It is a regional risk weight vector, where each element represents the risk contribution coefficient of that region at the current moment; The "inertia coefficient" for historical states, taking values ​​[0,1]. At time 1, the map is highly dependent on history, when At 0:00, the map focuses more on current observations; This is the topology-risk weight, typically set to 0.

6. The risk map represents the state of the risk map at the previous moment, serving as a "historical memory" for iterative updates; the updating of the risk map has temporal continuity. 1- The "weighting coefficients" for the current observations, and Complementary; The "balance coefficient" for observation fusion; a hyperparameter taking values ​​[0,1].

1. Map updates mainly rely on real-time raw observations. ; 0. The graph update mainly relies on prior correction terms. ; This represents the real-time risk data vector / matrix collected at time t; in emergency scenarios, It is a real-time input to the risk map, directly reflecting the original distribution of current risks; The prior correction diagonal matrix for the current time step; derived from vectors The constructed diagonal matrix, if ,but diagonal is of matrix.

10. The method for dynamic early warning of emergencies based on a large model according to claim 9, characterized in that: In step four, the warning threshold is dynamically adjusted by combining the historical risk frequency of the region with real-time false alarm feedback. The specific method for generating and outputting a warning decision based on the probability of the emergency event risk and the corresponding dynamic warning threshold of the region is as follows: First, set a static threshold: select an initial threshold based on the historical data validation set. This balances precision and recall. in, , Then, dynamic threshold adjustment is performed: based on historical data. Dynamically adjust the early warning threshold: Based on regional historical risks: , In the formula, For the region The frequency of historical events; This is the attenuation coefficient, such as 0.1, which controls the adjustment range; This is the global baseline threshold, such as 0.7; Finally, based on real-time feedback, the threshold is dynamically adjusted according to the recent false alarm rate. In the formula, The target false alarm rate is, for example, 0.

05. The learning rate, such as 0.01; The loss function used in the process of dynamically adjusting the early warning threshold is as follows: , In the formula, Let i be the true risk label for sample i, where no risk = 0 and risky = 1; Predict samples for the model The risk probability is 0~1; N is the total number of samples; The regularization strength coefficient balances classification and spatial constraints, and its value is [value missing]. hyperparameters; 0 indicates that only accurate classification is considered. Overemphasizing spatial smoothness may lead to "overly conservative" warning thresholds. Spatial gradient of risk Norm; P(r,t) is the dynamic risk profile of the risk probability distribution output by the model, which varies with space x and time t; Let x be the risk probability in relation to the spatial variable.