Method for encoding and spatiotemporal modality joint representation based on multi-modal data in production scene

By constructing a multimodal time series and matching it with a codebook of safety event patterns, and combining it with a graph neural network to construct a cross-modal spatial relationship graph, the problem of neglecting the spatial correlation and spatiotemporal coupling relationship of multimodal data in production safety monitoring is solved, and high-precision safety assessment and dynamic early warning capabilities are achieved.

CN123180731APending Publication Date: 2026-11-27ZHEJIANG YUFAN INTELLIGENT TECHNOLOGY CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611297944.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-25
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In existing production safety monitoring technologies, the processing of multimodal data ignores the correlation and spatiotemporal coupling relationship in the spatial dimension, leading to missed or false alarms. Furthermore, it lacks targeted matching for safety event patterns, making it difficult to meet the needs of high-precision, multi-granular safety assessment in complex environments.

Method used

By acquiring multimodal sensor data, constructing multimodal time series sequences and matching them with a preset security event pattern codebook, retaining and weighting security-related sparse features, and using graph neural networks to construct cross-modal spatial relationship graphs, security risk propagation analysis is performed to achieve multi-granularity security status assessment.

Benefits of technology

It significantly improves the accuracy of security incident detection, reduces false alarms, provides precise security situation awareness and structured descriptions from global to detailed perspectives, supports multi-level decision-making needs, and enables the transformation from static alarms to dynamic early warnings.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123180731A_ABST
    Figure CN123180731A_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of safety production, and more particularly to a method for encoding and spatiotemporal modal joint representation based on multi-modal data in a production scene. The method comprises obtaining visual and environmental parameter multi-modal data, aligning the data according to timestamps to construct a time sequence, matching the time sequence with a preset safety event mode codebook, weighting and encoding matching features, and suppressing non-matching features to obtain safety-related sparse features of each modality; performing safety anomaly detection on the sparse features of each modality and constructing a cross-modal spatial relationship graph with spatial positions as nodes and adjacency relationships as edges; aggregating the cross-modal spatial relationship graph through a graph neural network to obtain a cross-modal safety risk propagation graph; determining the type, severity, influence range and evolution trend of the anomaly based on the propagation graph, and outputting a comprehensive safety evaluation result. The method realizes effective fusion of multi-modal data and comprehensive safety risk evaluation, and improves the identification accuracy and comprehensiveness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of safety production technology, and in particular to a method for joint characterization of multimodal data encoding and spatiotemporal modality in production scenarios. Background Technology

[0002] In existing production safety monitoring technologies, conventional practices typically rely on single-modal sensor data or simple fusion of multimodal data. Visual monitoring acquires images or video streams through cameras and uses image classification, target detection, or behavior recognition algorithms to determine safety status. Environmental parameter monitoring collects numerical data through sensors such as temperature, pressure, and gas concentration, and sets thresholds or statistical models to trigger anomaly alarms. Multimodal data processing often employs direct concatenation or weighted averaging, combining data from different sources at the feature layer or decision layer before inputting them into a unified anomaly detection model. Spatiotemporal feature analysis is mostly based on time-series models such as recurrent neural networks or long short-term memory networks to model the temporal changes of independent modalities, or extracts local statistical features through sliding windows.

[0003] Simple fusion ignores the spatial correlation of multimodal data, failing to effectively capture the interactive effects between different regions and modalities in safety incidents. For example, high-temperature areas have strong spatial coupling with the appearance of sparks and smoke in vision, but existing methods often treat them as independent features, leading to missed or false alarms. On the other hand, conventional time-series models focus on the historical trends of a single location or sensor, making it difficult to characterize the spatial propagation path and evolution scale of risks. For example, a gas leak may spread from the source to neighboring areas, while visual monitoring may only cover a local area. Existing technologies cannot systematically model such cross-modal and cross-spatial risk propagation processes.

[0004] Furthermore, most methods lack targeted matching of security event pattern codebooks when processing multimodal data, often treating all features equally, resulting in a large amount of irrelevant noise interfering with the detection results, while failing to highlight and enhance key safety-related features. Overall, existing technologies are insufficient in mining the deep spatiotemporal coupling relationships of multimodal data in safety production scenarios, making it difficult to meet the needs of high-precision, multi-granularity safety assessment in complex environments. Summary of the Invention

[0005] This invention provides a method for multimodal data encoding and spatiotemporal modality joint characterization in production scenarios, which can solve the problems in the prior art.

[0006] A first aspect of this invention provides a method for joint characterization of multimodal data encoding and spatiotemporal modality in production scenarios, comprising: Acquire multimodal sensor data in safe production scenarios, including visual modality and environmental parameter modality. Align the sensor data of each modality according to the acquisition timestamp to construct a multimodal time series. Calculate the matching degree between the modal spatiotemporal features of the multimodal time series and the preset safety event pattern codebook. Retain and weight the feature components that match the safety event patterns, and suppress the feature components that do not match to obtain the safety-related sparse features of each modality. Single-sensor safety anomaly detection is performed on the sparse features related to safety in each modality. Safety anomaly responses at each spatiotemporal location in each modality are identified. A cross-modal spatial relationship graph is constructed with the spatial location of the safety anomaly response as nodes and the spatial adjacency relationship as edges. The safety anomaly responses of different modalities are aggregated in the same spatial dimension through graph neural network message passing to obtain a cross-modal safety risk propagation graph that represents the cross-modal propagation of safety risks. Based on the risk propagation characteristics of each node in the cross-modal safety risk propagation diagram, a multi-granularity safety status assessment is performed, which determines the attribution of safety anomaly types, the severity of safety anomalies, the scope of safety risk impact, and the temporal evolution trend of safety risks at each level, and outputs the comprehensive safety status assessment results of the safety production scenario.

[0007] The spatiotemporal features of each modality are extracted from the multimodal time series. The matching degree of each modal spatiotemporal feature is calculated against a preset security event pattern codebook. Feature components that match the security event patterns are retained and weighted, while mismatched feature components are suppressed. This yields security-related sparse features for each modality, including: Sensor data samples of historical safety events in safe production scenarios are collected. Spatiotemporal features are extracted from the sample data of each modality of each type of safety event. Clustering of spatiotemporal features corresponding to each category is guided by safety event category labels. The cluster centers of each modality and category are used as safety event patterns. Each safety event pattern is labeled with the corresponding category label. A safety event pattern codebook is formed by indexing the modality type and safety event category. This codebook supports pattern retrieval by category and incremental dynamic updates. The cosine similarity between the spatiotemporal features of each modality and all security event patterns corresponding to that modality in the security event pattern codebook is calculated one by one. The maximum cosine similarity between the current spatiotemporal position and all security event patterns under that modality is taken as the matching degree. Feature components with a matching degree not lower than the preset security matching threshold are retained after being assigned encoding weights based on their matching degree magnitudes; feature components with a matching degree lower than the preset security matching threshold are determined as background features unrelated to security events and are suppressed by setting them to zero; and non-zero feature components retained by weighting are used to construct security-related sparse features for each modality.

[0008] Feature components with a matching degree not lower than a preset security matching threshold are retained after being assigned encoding weights based on their matching degree magnitude; feature components with a matching degree lower than the preset security matching threshold are determined as background features unrelated to security events and are suppressed by setting them to zero, including: The sparse features related to safety of each modality are input into the single-sensor safety anomaly detection network. The detection accuracy and false alarm rate of safety anomaly detection under the current matching threshold setting are calculated. The comprehensive balance between detection accuracy and false alarm rate is used as the optimization target. Within the preset threshold range, the candidate thresholds are traversed by the search step size. The candidate threshold that makes the comprehensive balance measure optimal is selected as the optimal safety matching threshold. The optimal safety matching threshold will automatically trigger recalibration when the sensor deployment conditions change. During safe production operations, sensor data of various modes are continuously collected. The sparse features obtained by weighting and encoding the real-time collected data are calculated and matched with the structured matching degree of existing safety event patterns. If the structured matching degree is lower than the preset pattern update threshold, the current sparse features are added as new safety event patterns and incorporated into the codebook. The corresponding category label is assigned according to the safety event type confirmed by subsequent multi-granularity safety status assessment. For outdated patterns in the codebook that have not been matched and activated for a long time, their reference weight in the matching degree calculation is gradually reduced according to the preset decay period until they are removed.

[0009] A cross-modal spatial relationship graph is constructed using the spatial location of security anomaly responses as nodes and spatial adjacency relationships as edges. Through graph neural network message passing, security anomaly responses from different modalities are aggregated in the same spatial dimension to obtain a cross-modal security risk propagation graph representing the cross-modal propagation of security risks, including: The safety anomaly responses of each modality are mapped to nodes of a graph according to their spatial physical location, and each node is associated with the safety anomaly response feature vector of the corresponding location. A first type of edge connection is established for node pairs within the coverage area of ​​the same modal sensor whose spatial distance is less than a preset neighborhood distance threshold, and a second type of edge connection is established for node pairs between different modal sensors whose spatial locations are adjacent to each other. The weight of each edge is determined by multiplying the reciprocal of the spatial distance between the two ends of the nodes and the inherent cross-modal correlation coefficient of the modal pair to which the edge belongs, forming a cross-modal spatial relationship graph that fuses the intra-sensor adjacency relationship and cross-modal cross-correlation. The message propagates along the edge from the source node whose security anomaly response strength is higher than a preset strength threshold to the target node whose strength is lower than the preset strength threshold. In each iteration, the target node collects messages from all its neighboring source nodes, and weights and fuses the aggregated messages with the current node's risk propagation characteristics to obtain the updated risk propagation characteristics. After a preset number of iterations, the risk propagation characteristics of each node gradually absorb cross-modal neighborhood anomaly response information, and finally generate a cross-modal security risk propagation graph.

[0010] Graph neural network message passing is performed on a cross-modal spatial relationship graph, including: In the graph neural network message passing, each node aggregates messages from all neighboring source nodes in each iteration. Each message is composed of the product of the current risk propagation characteristics of the neighboring source node and the corresponding edge weight. The relative ranking of the edge weight among all neighboring edges determines the contribution ratio of the neighboring source node in the message aggregation in that round. After completing the aggregation of messages from adjacent source nodes, each node performs an update operation on its own risk propagation characteristics. The updated risk propagation characteristics are the weighted fusion result of the aggregated message and the risk propagation characteristics of the current node in the previous iteration. The weighted fusion coefficient is dynamically adjusted according to the ratio of the security anomaly response intensity of the source node and the target node. Node pairs with a ratio exceeding the preset intensity difference threshold interact primarily through risk propagation, while node pairs with a ratio below the preset intensity difference threshold interact primarily through risk feature fusion. The number of iteration rounds for message passing in the graph neural network is adaptively determined based on two factors: the total number of nodes and the edge connection density in the cross-modal spatial relationship graph. When the total number of nodes exceeds a preset threshold and the edge connection density exceeds a preset density threshold, more iteration rounds are used to ensure that cross-modal risk information is fully propagated in the graph.

[0011] Based on the risk propagation characteristics of each node in the cross-modal safety risk propagation diagram, a multi-granularity safety status assessment is performed. This assessment determines the attribution of safety anomalies, their severity, the scope of their impact, and their temporal evolution trends, level by level. The result is a comprehensive safety status assessment of the safety production scenario, including: The risk propagation characteristics of each node in the cross-modal security risk propagation diagram are compared one by one with the preset feature templates of each security event type. The security event type with the highest similarity is selected as the security anomaly type of that node. All node assignment results are summarized to form the spatial distribution of security anomaly types. The severity of safety anomalies at corresponding spatial locations is determined based on the amplitude and spread of risk propagation characteristics at each node. When the amplitude of risk propagation characteristics exceeds the preset amplitude benchmark and the spread exceeds the preset range benchmark, the severity of safety anomalies increases accordingly. Nodes whose risk propagation feature amplitude exceeds a preset risk threshold in the cross-modal security risk propagation diagram are used as seed nodes and extended along the propagation path. The physical space area covered by the seed node and the nodes connected by its propagation path is taken as the scope of security risk impact. Using a continuous time-step cross-modal safety risk propagation graph sequence as input, the amplitude change direction and position drift trajectory of the risk propagation characteristics of each node between time steps are extracted, and the propagation direction of safety risks in the spatial dimension and the intensity change trend in the temporal dimension are predicted accordingly.

[0012] A second aspect of the present invention provides a system for joint characterization of multimodal data encoding and spatiotemporal modality in production scenarios, comprising: The multimodal feature unit is used to acquire multimodal sensing data in safe production scenarios, including visual modality and environmental parameter modality. After aligning the sensing data of each modality according to the acquisition timestamp, a multimodal time series is constructed. The modal spatiotemporal features of the multimodal time series are matched with the preset safety event pattern codebook. Feature components that match the safety event pattern are retained and weighted, while feature components that do not match are suppressed to obtain safety-related sparse features for each modality. The graph aggregation unit is used to perform single-sensor safety anomaly detection on the sparse features related to safety in each modality, identify the safety anomaly response at each spatiotemporal location in each modality, construct a cross-modal spatial relationship graph with the spatial location of the safety anomaly response as nodes and spatial adjacency as edges, and aggregate the safety anomaly responses of different modalities in the same spatial dimension through graph neural network message passing to obtain a cross-modal safety risk propagation graph that represents the cross-modal propagation of safety risks. The multi-granularity assessment unit is used to perform multi-granularity safety status assessment based on the risk propagation characteristics of each node in the cross-modal safety risk propagation diagram. It determines the type of safety anomaly, the severity of the safety anomaly, the scope of the safety risk impact, and the temporal evolution trend of the safety risk step by step, and outputs the comprehensive safety status assessment results of the safety production scenario.

[0013] A third aspect of the present invention provides an electronic device, comprising: processor; Memory used to store processor-executable instructions; The processor is configured to invoke instructions stored in the memory to execute the aforementioned method.

[0014] A fourth aspect of the present invention provides a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, implement the aforementioned method.

[0015] By acquiring multimodal sensor data from safe production scenarios and aligning it based on timestamps, a multimodal time-series sequence is constructed and matched with a preset safety event pattern codebook. Matching feature components are retained and weighted, while mismatched feature components are suppressed to obtain safety-related sparse features. This effectively reduces noise interference from non-safety events, significantly improves the accuracy of safety event detection, reduces false alarms caused by environmental fluctuations or sensor noise, and focuses sparse features on key spatiotemporal locations that are truly associated with safety anomalies. This significantly enhances the robustness and sensitivity of anomaly identification at the front-end signal level.

[0016] Single-sensor security anomaly detection is performed on the sparse features related to security in each modality to identify security anomaly responses at each spatiotemporal location within each modality. A cross-modal spatial relationship graph is constructed with spatial location as nodes and spatial adjacency as edges. The security anomaly responses of different modalities are aggregated in the same spatial dimension using the message passing mechanism of a graph neural network to obtain a cross-modal security risk propagation graph. This enables the collaborative representation of visual modality and environmental parameter modality in spatial structure, revealing the propagation path and coupling relationship of security anomalies in the coverage areas of multiple sensors. This provides accurate spatial topology information for multimodal fusion security situational awareness, avoiding the limitations of single-modal spatial awareness.

[0017] Based on the risk propagation characteristics of each node in the cross-modal safety risk propagation diagram, a multi-granularity safety status assessment is performed. The attribution of safety anomaly types, the severity of safety anomalies, the scope of safety risk impact, and the temporal evolution trend of safety risks are determined step by step. Finally, a comprehensive safety status assessment result for the safety production scenario is output. It provides a structured and progressive description of the safety situation from the macro-global perspective to the micro-details, supports the differentiated decision-making needs of different management levels, and predicts the development trend of risks through temporal evolution trends, realizing the transformation from static alarms to dynamic early warnings, and comprehensively improving the intelligent response and proactive prevention and control capabilities of the safety production monitoring system. Attached Figure Description

[0018] Figure 1 This is a flowchart illustrating a method for combining multimodal data encoding and spatiotemporal modality representation in a production setting. Figure 2 A flowchart illustrating the process for determining the results of a comprehensive safety status assessment. Detailed Implementation

[0019] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0020] The technical solution of the present invention will be described in detail below with reference to specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.

[0021] refer to Figure 1 and Figure 2 The present invention provides a method for joint characterization of multimodal data encoding and spatiotemporal modality in production scenarios, comprising: Acquire multimodal sensor data in safe production scenarios, including visual modality and environmental parameter modality. Align the sensor data of each modality according to the acquisition timestamp to construct a multimodal time series. Calculate the matching degree between the modal spatiotemporal features of the multimodal time series and the preset safety event pattern codebook. Retain and weight the feature components that match the safety event patterns, and suppress the feature components that do not match to obtain the safety-related sparse features of each modality. Single-sensor safety anomaly detection is performed on the sparse features related to safety in each modality. Safety anomaly responses at each spatiotemporal location in each modality are identified. A cross-modal spatial relationship graph is constructed with the spatial location of the safety anomaly response as nodes and the spatial adjacency relationship as edges. The safety anomaly responses of different modalities are aggregated in the same spatial dimension through graph neural network message passing to obtain a cross-modal safety risk propagation graph that represents the cross-modal propagation of safety risks. Based on the risk propagation characteristics of each node in the cross-modal safety risk propagation diagram, a multi-granularity safety status assessment is performed, which determines the attribution of safety anomaly types, the severity of safety anomalies, the scope of safety risk impact, and the temporal evolution trend of safety risks at each level, and outputs the comprehensive safety status assessment results of the safety production scenario.

[0022] The spatiotemporal features of each modality are extracted from the multimodal time series. The matching degree of each modal spatiotemporal feature is calculated against a preset security event pattern codebook. Feature components that match the security event patterns are retained and weighted, while mismatched feature components are suppressed. This yields security-related sparse features for each modality, including: Sensor data samples of historical safety events in safe production scenarios are collected. Spatiotemporal features are extracted from the sample data of each modality of each type of safety event. Clustering of spatiotemporal features corresponding to each category is guided by safety event category labels. The cluster centers of each modality and category are used as safety event patterns. Each safety event pattern is labeled with the corresponding category label. A safety event pattern codebook is formed by indexing the modality type and safety event category. This codebook supports pattern retrieval by category and incremental dynamic updates. The cosine similarity between the spatiotemporal features of each modality and all security event patterns corresponding to that modality in the security event pattern codebook is calculated one by one. The maximum cosine similarity between the current spatiotemporal position and all security event patterns under that modality is taken as the matching degree. Feature components with a matching degree not lower than a preset safe matching threshold are retained after being assigned encoding weights based on their matching degree magnitude. Feature components with a matching degree lower than a preset security matching threshold are identified as background features unrelated to security events and suppressed to zero. The non-zero feature components retained by weighting are used to construct the security-related sparse features for each modality.

[0023] In the stage of constructing the safety event pattern codebook, it is necessary to systematically collect multimodal sensor data samples corresponding to historical safety events in safe production scenarios. This historical data covers visual modalities (such as image sequences captured by industrial cameras) and environmental parameter modalities (such as time-series signals from sensors for temperature, gas concentration, vibration intensity, etc.), and includes safety event category labels marked by safety experts, such as typical safety event types like open flame, leakage, personnel falls, and equipment overheating. For each type of safety event, spatiotemporal features are extracted from each modal sample data. For visual modalities, convolutional neural networks can be used to extract spatial texture and morphological features, while for environmental parameter modalities, a time-series encoder can be used to extract numerical change trends and periodic features, thus forming spatiotemporal feature vectors for each sample in each modality.

[0024] Guided by safety event category labels, supervised clustering is performed on the spatiotemporal feature vectors of each modality within the same category. This ensures that feature vectors of similar safety events are tightly clustered in the feature space, while maintaining a large distance between different categories. After clustering, the cluster center vectors of each category within each modality are used as the safety event patterns for that category in that modality, and each safety event pattern is labeled with its corresponding category label. All safety event patterns are organized into a safety event pattern codebook using a dual-dimensional index of modality type and safety event category. This codebook is structured with modality type as the first dimension and safety event category as the second dimension, supporting rapid retrieval of safety event patterns under a specific modality by category. When new safety events occur in the production site or existing event patterns drift, features can be re-extracted based on new samples, and the corresponding cluster centers can be updated, achieving incremental dynamic updates and ensuring the codebook's continuous adaptability to changes in the actual production environment.

[0025] During the matching degree calculation phase, the feature vectors at each spatiotemporal position in the multimodal time series are sequentially compared with all security event patterns of the corresponding modality in the security event pattern codebook using cosine similarity calculation. Let the feature vector of a certain modality at the current spatiotemporal position be... In this mode, the codebook's first... Each security event pattern vector is Then the cosine similarity between the two is Traverse all the codebooks in this modality. For each security event pattern, calculate the cosine similarity. The maximum value is taken as the matching degree between the current spatiotemporal location feature vector and the modality codebook, i.e. The range of values ​​for cosine similarity is... ,when When the value approaches 1, it indicates that the current feature vector highly matches a certain security event pattern; when... When the value approaches 0 or is negative, it indicates that the current feature has extremely low correlation with known security event patterns and belongs to the background feature category. Using cosine similarity instead of Euclidean distance for matching can eliminate the interference of feature vector amplitude differences, focus on semantic similarity at the direction level, and is more suitable for industrial scenarios where feature scales are inconsistent under different sensor acquisition conditions.

[0026] In the feature component selection and weighted coding stage, a preset safe matching threshold is set as follows: Regarding the matching degree The feature components are identified, and those that show a significant correlation with known security event patterns are retained and assigned coding weights. The coding weights are based on the matching degree magnitude. It is confirmed that a higher matching degree indicates a stronger correlation between the feature component and the security event pattern, resulting in a larger weight and thus a higher contribution of the feature component in subsequent security anomaly detection. Specifically, encoding weights... Can be set to be with Positively correlated functions enhance high-matching features within the weighted, sparse features. Regarding the matching degree... The feature components are determined to be background features unrelated to the security event. A zero-suppression operation is then performed, which sets the feature vector of that spatiotemporal location to zero, thereby eliminating background noise interference in the feature space.

[0027] threshold The setting directly affects the quality of sparse features. If If the threshold is too high, many features weakly correlated with security incidents will be incorrectly suppressed, leading to an increased risk of missed detections; if... If the quantile is too low, background features cannot be effectively filtered, introducing redundant information that interferes with subsequent detection. In practical deployments, the quantile can be selected based on the statistical distribution of matching degrees for various security events in historical data, choosing a quantile that covers the vast majority of feature components of real security events. The initial value, combined with the false alarm rate and false negative rate indicators in the production site, is used to... Adaptive adjustments are made to ensure that the feature selection effect remains reasonable in different production environments.

[0028] After the aforementioned zeroing suppression and weighted retention operations, only the non-zero feature components matching the security event pattern are retained at each spatiotemporal location, while the remaining locations are all zero values, thus constituting the security-related sparse features for each modality. The sparsity of the sparse features has a dual significance: on the one hand, it significantly reduces the computational burden of subsequent processing, requiring only security anomaly detection on the non-zero feature components; on the other hand, it concentrates the effective information in the feature space into the security-related regions, enabling more accurate alignment of feature responses corresponding to the same security event in different modalities during cross-modal feature fusion. In the visual modality, the non-zero regions of the sparse features correspond to the spatial locations in the image where security anomalies exist; in the environmental parameter modality, the non-zero regions of the sparse features correspond to the time nodes and spatial locations where abnormal changes occur in the sensor time-series signals, providing precise node localization basis for the subsequent construction of cross-modal spatial relationship graphs.

[0029] The above-mentioned codebook construction, matching degree calculation and sparse feature extraction process is automatically triggered when multimodal sensor data is accessed. It supports parallel processing of visual modal and environmental parameter modal. After each modal independently completes the matching calculation with the codebook, it outputs the corresponding security-related sparse features for subsequent single-sensor security anomaly detection and cross-modal fusion.

[0030] Feature components with a matching degree not lower than a preset safe matching threshold are retained after being assigned encoding weights based on their matching degree magnitude. Feature components with a matching degree lower than a preset security matching threshold are classified as background features unrelated to security events and suppressed to zero, including: The sparse features related to safety of each modality are input into the single-sensor safety anomaly detection network. The detection accuracy and false alarm rate of safety anomaly detection under the current matching threshold setting are calculated. The comprehensive balance between detection accuracy and false alarm rate is used as the optimization target. Within the preset threshold range, the candidate thresholds are traversed by the search step size. The candidate threshold that makes the comprehensive balance measure optimal is selected as the optimal safety matching threshold. The optimal safety matching threshold will automatically trigger recalibration when the sensor deployment conditions change. During safe production operations, sensor data of various modes are continuously collected. The sparse features obtained by weighting and encoding the real-time collected data are compared with the structured matching degree of existing safety event patterns. If the structured matching degree is lower than the preset pattern update threshold, the current sparse features are added as new safety event patterns and incorporated into the codebook. The corresponding category labels are assigned according to the safety event types confirmed by subsequent multi-granularity safety status assessments. For outdated patterns in the codebook that have not been matched and activated for a long time, their reference weight in the matching degree calculation is gradually reduced according to a preset decay period until they are removed.

[0031] When determining the retention and suppression strategies for security-related sparse features of each modality, feature components with a matching degree not lower than a preset security matching threshold are retained after being assigned corresponding encoding weights based on their matching degree amplitude. This ensures that features highly consistent with security event patterns receive stronger expression weights in subsequent processing. Feature components with a matching degree lower than the preset security matching threshold are identified as background noise or environmental interference unrelated to security events and are suppressed by setting them to zero. This effectively filters out security-irrelevant information at the feature level. This mechanism ensures that the features entering the subsequent detection network have high security semantic relevance, reducing the risk of misjudgment due to background interference.

[0032] To ensure that the preset safety matching threshold can adapt to differences in sensor deployment conditions and field environments, an adaptive threshold calibration mechanism is introduced. Sparse features related to safety across different modalities are input into the single-sensor safety anomaly detection network. Under the current threshold setting, the detection accuracy and false alarm rate are calculated. The detection accuracy reflects the proportion of correctly identified safety anomaly samples, while the false alarm rate reflects the proportion of normal states incorrectly classified as safety anomalies. There is an inherent trade-off between the two metrics: when the threshold is too low, more feature components are retained, leading to improved detection accuracy but a corresponding increase in the false alarm rate; when the threshold is too high, features are excessively suppressed, reducing the false alarm rate but decreasing detection accuracy.

[0033] To achieve the optimal balance between the two, a comprehensive balance metric between detection accuracy and false alarm rate is used as the optimization objective. This comprehensive balance metric can be expressed as: ,in For detection accuracy, To detect recall rate (i.e. true recall rate). This is a trade-off coefficient between precision and recall, and the tolerance for false negatives and false positives can be preset based on the actual production scenario. Within a preset threshold range... Within, according to a fixed search step size The candidate thresholds are iterated through one by one, and the corresponding values ​​are calculated for each candidate threshold. Value, select to make The maximum candidate threshold is used as the optimal safe matching threshold. The search process is performed using discrete sampling within the threshold range, with a step size of... The setting needs to comprehensively consider the balance between search accuracy and computational cost, and is usually taken as 1% to 5% of the length of the threshold interval.

[0034] When sensor deployment conditions change, such as sensor model replacement, installation location adjustment, sampling frequency change, or significant shift in the field environment, the optimal safety matching threshold is adjusted. The effectiveness of this will be affected. Therefore, a condition change detection mechanism is implemented to continuously monitor the statistical distribution characteristics of the sensor-collected data. When a distribution shift exceeds a preset drift threshold, a threshold recalibration process is automatically triggered, re-performing a search within the candidate threshold range to update the optimal safety matching threshold. This ensures that the threshold values ​​remain consistent with the current sensor deployment conditions and the field environment. This automatic calibration mechanism avoids frequent manual intervention and improves the long-term stability of the system in complex and dynamic production environments.

[0035] During safe production operations, new safety event patterns that are not recorded in the historical codebook may occur on-site. To maintain the timeliness and completeness of the codebook, sensor data from various modalities are continuously collected. The real-time collected data is weighted and encoded to obtain corresponding sparse feature representations. The structured matching degree of this sparse feature is calculated one by one with the existing safety event patterns in the codebook. The structured matching degree comprehensively considers the directional similarity and amplitude distribution structure of the feature vectors, unlike simple cosine similarity, and can more comprehensively measure the degree of structural consistency between the feature and the existing pattern. If the calculated structured matching degree is lower than a preset pattern update threshold... If the current sparse feature corresponds to a new security event pattern that is not yet covered in the codebook, it will be added to the codebook as a new security event pattern to form a new pattern entry.

[0036] After a new pattern is added to the codebook, its category label is not immediately determined at the time of addition. Instead, it is assigned based on the confirmation results of subsequent multi-granularity security status assessments. Multi-granularity security status assessments, by analyzing the attribution, severity, and scope of impact of security anomalies at each level, can accurately determine the type of security event corresponding to the new pattern. Once the security event type is confirmed by the assessment, the corresponding category label is written into the entry for the new pattern in the codebook, completing the pattern's labeling and injection into the database. If the assessment results fail to provide a clear type confirmation within a certain time window, the pattern is marked as pending confirmation and retained in the codebook for the accumulation and confirmation of more similar event data.

[0037] As the codebook continues to expand, some historical patterns may gradually lose their representativeness due to updates in production processes, equipment upgrades, or adjustments to operating procedures, and remain unactivated by any real-time feature matching for an extended period. For these outdated patterns, a gradual deweighting and removal strategy based on a decay period is adopted. Using time units, at the end of each decay cycle, check the most recent activation time of each pattern entry in the codebook. If a pattern entry has been continuously activated... If it is not activated by any real-time feature within each decay cycle, then its reference weight in the matching degree calculation is based on the decay coefficient. Multiplicative decay is applied, meaning that for each complete decay cycle, the reference weight of the mode is multiplied by [a certain factor]. When the reference weight of a certain pattern decreases to the preset minimum effective weight... If the pattern is then removed from the codebook, storage resources are freed up and its interference with subsequent matching calculations is avoided. This gradual decay mechanism is more robust than a direct deletion strategy, preventing the accidental deletion of potentially valuable historical patterns due to short-term data loss, while ensuring the codebook remains streamlined and efficient over the long term.

[0038] Through the coordinated operation of the aforementioned adaptive threshold calibration mechanism and dynamic codebook update mechanism, the entire security feature coding and pattern matching process can maintain high accuracy and low false alarm rate under continuously changing production environment conditions. It also has the ability to autonomously learn new security event patterns and automatically eliminate outdated patterns, thereby supporting the stable and reliable operation of subsequent cross-modal security risk propagation analysis and multi-granularity security status assessment.

[0039] A cross-modal spatial relationship graph is constructed using the spatial location of security anomaly responses as nodes and spatial adjacency relationships as edges. Through graph neural network message passing, security anomaly responses from different modalities are aggregated in the same spatial dimension to obtain a cross-modal security risk propagation graph representing the cross-modal propagation of security risks, including: The safety anomaly responses of each mode are mapped to nodes of a graph according to their spatial physical location, and each node is associated with the safety anomaly response feature vector of the corresponding location. A first type of edge connection is established for node pairs within the coverage area of ​​the same modal sensor whose spatial distance is less than a preset neighborhood distance threshold. A second type of edge connection is established for node pairs between different modal sensors whose spatial positions are adjacent to each other. The weight of each edge is determined by multiplying the reciprocal of the spatial distance between the two ends of the node pair with the inherent cross-modal correlation coefficient of the modal pair to which the edge belongs, thus forming a cross-modal spatial relationship graph that fuses the intra-sensor adjacency relationship and cross-modal cross-correlation. The message propagates along the edge from the source node whose security anomaly response strength is higher than the preset strength threshold to the target node whose strength is lower than the preset strength threshold. In each iteration, the target node collects messages from all its neighboring source nodes and weights and fuses the aggregated messages with the current node's risk propagation characteristics to obtain the updated risk propagation characteristics. Through a preset number of iterations, the risk propagation characteristics of each node gradually absorb cross-modal neighborhood anomaly response information, ultimately generating a cross-modal security risk propagation map.

[0040] After acquiring sparse features related to safety across different modalities and completing single-sensor safety anomaly detection, it is necessary to integrate safety anomaly responses scattered across different modalities and spatial locations into a unified structured graph representation framework to facilitate subsequent modeling and analysis of cross-modal risk propagation relationships. To this end, the safety anomaly responses detected by each modality are mapped to nodes in a graph according to their corresponding physical locations. The physical location of each node is determined by the installation coordinates of the corresponding sensor or the actual spatial coordinates of the target in the visual modality. Each node is associated with a safety anomaly response feature vector at that location, which contains multi-dimensional information such as anomaly type, anomaly intensity, and temporal context. Nodes from different modalities are uniformly registered in the same physical spatial coordinate system, enabling visual modality nodes and environmental parameter modality nodes to calculate and compare adjacency relationships in the same spatial dimension.

[0041] After the node set is established, edge connections are established according to two different spatial adjacency criteria. For node pairs within the coverage area of ​​the same modal sensor, if the spatial Euclidean distance between the two nodes is lower than a preset neighborhood distance threshold... If two nodes are physically adjacent (i.e., their spatial distances also satisfy certain proximity conditions), a first type of edge connection is established between them to characterize spatial proximity relationships within the same modality. For node pairs from different modal sensors, if their physical locations are adjacent (i.e., their spatial distances also satisfy certain proximity conditions), a second type of edge connection is established between them to characterize spatial cross-correlation between cross-modal sensors. The first type of edge captures local spatial dependencies within the same modality, while the second type of edge enables anomaly information from different sensing dimensions to interact and fuse near the same spatial location. Together, these two types of edges constitute a cross-modal spatial relationship graph that fuses intra-sensor adjacency relationships and cross-modal cross-correlation.

[0042] The weights of each edge are not simply binary connections, but rather a combination of spatial distance and modal cross-correlation factors. Let the spatial distance between the two endpoints of an edge be... The inherent cross-mode correlation coefficient of the mode pair to which this edge belongs is ,in Reflecting modes With mode The prior correlation strength between edges at the security incident perception level is predetermined by domain knowledge or historical data statistics. Therefore, the weight of that edge... Determine as follows: For the first type of edge, since the nodes at both ends belong to the same mode... The internal correlation coefficient of the mode itself is taken, and is usually set to a relatively high fixed value; for the second type of edge, The cross-modal correlation coefficient between the two corresponding modes is selected. This value is set based on the physical complementarity and statistical correlation between the two sensing modes when sensing security events. The closer the spatial distance, the larger the edge weight, which means that the amount of information transmitted between neighboring nodes is stronger; the higher the cross-modal correlation coefficient, the deeper the degree of information fusion between nodes of different modes.

[0043] After the cross-modal spatial relationship graph is constructed, the aggregation of cross-modal security anomaly responses is achieved through a graph neural network message passing mechanism. The message propagation direction is determined by the strength of the node's security anomaly response: if the security anomaly response strength is higher than a preset strength threshold... The node is taken as the source node, and its anomaly information is connected along the edge with a strength lower than that of the source node. The direction of propagation is determined by the target node. The physical meaning of this directed propagation design is that high-intensity anomalous nodes are more likely to be the source of risk, and their anomalous information has important early warning significance for surrounding low-intensity nodes, helping to identify the propagation path of risk from the core area to the surrounding area.

[0044] In each round of message passing iteration, the target node collects messages sent from all its neighboring source nodes. Let the target node be... In the The risk propagation feature vector during round iteration is Its set of adjacent source nodes is Source node Send to the target node News It is determined by the current features of the source node and the corresponding edge weights: in This is a learnable message transformation matrix. The target node aggregates messages from all neighboring source nodes using a weighted summation method: Aggregated messages Current risk propagation characteristics of the target node We perform weighted fusion to obtain the updated risk propagation characteristics: in Transformation matrix that preserves the node's own characteristics. The fusion transformation matrix is ​​used to aggregate messages. Both are learnable parameters, trained and optimized on historical security event labeled data. This weighted fusion mechanism enables each node to retain its original local anomaly response information while absorbing risk propagation information from cross-modal neighboring nodes when updating its own features, thereby achieving the organic fusion of security anomaly signals from different perception dimensions.

[0045] The above message passing and feature update process follows a preset number of iterations. The process is repeated. In the first iteration, each node's features only reflect its local security anomaly response; as the number of iterations increases, each node's features gradually absorb cross-modal anomaly response information from a larger neighborhood, and the receptive field expands exponentially with the iteration depth. Risk propagation characteristics of each node after round of iteration The propagation of security anomalies detected by multiple sensor modalities in the vicinity of the node's spatial location has been comprehensively encoded. This is based on the data obtained by all nodes passing through... The final risk propagation characteristics after rounds of iteration are node attributes. Combined with the graph's topology, a cross-modal safety risk propagation graph is generated. This graph not only records the intensity of abnormal responses at each spatial location, but also explicitly represents the propagation path and intensity of safety risks between different sensing modalities and different spatial locations through its graph structure, providing a structured input representation for subsequent multi-granularity safety status assessments.

[0046] In actual production scenarios, such as chemical production workshops, visual cameras and gas concentration sensors are deployed simultaneously. When an open flame appears in a certain local area, the visual modal node is the first to generate a high-intensity abnormal response. The abnormal message is transmitted to the neighboring gas concentration sensor node through the second type of edge, so that the latter can perceive the potential risk at the feature level even if the concentration has not yet exceeded the standard. Thus, the comprehensive risk level of the area is marked in advance in the cross-modal safety risk propagation map, effectively making up for the limitations of single-modal perception.

[0047] Graph neural network message passing is performed on a cross-modal spatial relationship graph, including: In the graph neural network message passing, each node aggregates messages from all neighboring source nodes in each iteration. Each message is composed of the product of the current risk propagation characteristics of the neighboring source node and the corresponding edge weight. The relative ranking of the edge weight among all neighboring edges determines the contribution ratio of the neighboring source node in the message aggregation in that round. After completing the aggregation of messages from adjacent source nodes, each node performs an update operation on its own risk propagation characteristics. The updated risk propagation characteristics are the weighted fusion result of the aggregated message and the risk propagation characteristics of the current node in the previous iteration. The weighted fusion coefficient is dynamically adjusted according to the ratio of the security anomaly response intensity of the source node and the target node. Node pairs with a ratio exceeding the preset intensity difference threshold interact primarily through risk propagation, while node pairs with a ratio below the preset intensity difference threshold interact primarily through risk feature fusion. The number of iteration rounds for message passing in the graph neural network is adaptively determined based on two factors: the total number of nodes and the edge connection density in the cross-modal spatial relationship graph. When the total number of nodes exceeds a preset threshold and the edge connection density exceeds a preset density threshold, more iteration rounds are used to ensure that cross-modal risk information is fully propagated in the graph.

[0048] After the cross-modal spatial relationship graph is constructed, the execution of message passing in the graph neural network requires a refined design of the adjacency aggregation method for each node to ensure that risk information between different modal security anomaly responses can flow effectively along the graph's topology. In each iteration, each node collects messages from all its neighboring source nodes, and each message consists of the product of the current risk propagation feature vector of the neighboring source node and the corresponding edge weight. Specifically, let the node... In the During round iteration, receive data from neighboring source nodes. The message's original strength is proportional to... ,in For edge weights, For nodes The risk propagation feature vector at the end of the previous iteration.

[0049] During the message aggregation phase, instead of directly summing the messages from all adjacent source nodes with equal weights, a contribution ratio mechanism based on edge weight ranking is introduced. For nodes... All adjacent edges are sorted by edge weight Sort by size from largest to smallest; neighboring source nodes that rank higher receive a higher contribution percentage in this round of message aggregation. Let nodes... Total The adjacent access edge, for the first The contribution coefficient of the name neighbor source node allocation is ,satisfy In this mechanism, the top-ranked neighboring source node receives the highest contribution coefficient, and the bottom-ranked neighboring source node receives the lowest contribution coefficient. The sum of all contribution coefficients is normalized to 1. The physical meaning of this mechanism is that node pairs with stronger spatial adjacency and higher cross-modal correlation coefficients should bear the primary responsibility for information transmission in risk propagation, while the impact of messages carried by weaker edges on the target node is appropriately suppressed, thereby avoiding noise interference introduced by low-quality edges.

[0050] node After aggregating adjacency messages, a weighted fusion update is performed on the risk propagation characteristics. The updated feature vector... It consists of two linearly superimposed parts: one part comes from the current round of aggregated messages after transformation matrix. The mapped result also includes a portion derived from the risk propagation characteristics of the nodes themselves in the previous iteration, transformed by the transformation matrix. The result after mapping. The fusion coefficients of the two parts. It is not a fixed constant, but depends on the node. The ratio of the security anomaly response intensity of each node in its adjacent source node set is dynamically adjusted. Let node... The safety anomaly response strength is ,node The safety anomaly response strength is The ratio of the two is defined as .when Exceeding the preset intensity difference threshold At that time, determine the node For nodes The interaction method is dominated by risk propagation, at which point the fusion coefficient... Taking a larger value (biased towards the aggregated message side) indicates that the target node should absorb more risk information from high-intensity anomaly source nodes, and the proportion of its own features retained should be reduced accordingly; when Below At this time, the interaction mode between the two nodes is determined primarily by risk feature fusion. Taking the smaller value (biased towards its own characteristics) indicates that the two nodes have similar levels of security anomaly response strength, and should exchange information on an equal footing while preserving their respective characteristics, rather than engaging in one-way risk propagation. For nodes In the case where there are multiple adjacent source nodes, Take the corresponding neighboring source nodes The weighted average value is consistent with the contribution coefficient obtained by each neighboring source node in the ranking mechanism, so that the dynamic adjustment of the fusion coefficient and the contribution distribution of message aggregation are inherently consistent.

[0051] Number of iteration rounds in message passing in a graph neural network These are not fixed values ​​pre-specified manually, but rather adaptively determined based on the structural characteristics of the cross-modal spatial relationship diagram. Influence The two core factors for determining the value are the total number of nodes in the graph. Density of connection with edges Edge connectivity density Defined as the ratio of the actual number of edges in the graph to the square of the total number of nodes, i.e. ,in Let be the total number of edges in the graph. When Exceeding the preset quantity benchmark and Exceeding the preset density benchmark When the graph is large and densely connected, the number of hops required for risk information to propagate from any source node to the target node increases accordingly. Therefore, more iterations are used to ensure that cross-modal risk information is fully propagated in the graph. Not exceeding or Not exceeding When the graph is small or sparsely connected, risk information can be fully propagated within a few iterations, thus reducing computational overhead. Specifically, The adaptive determination rule is: when and hour, Take the preset maximum number of iterations ;when and hour, Take the preset minimum number of iterations. In other cases, exist and Between and The actual value is determined by linear interpolation, so that the number of iteration rounds increases smoothly with the increase of graph structure complexity.

[0052] In real-world production safety scenarios, the total number of nodes and edge density in a cross-modal spatial relationship graph dynamically change as the monitoring coverage of the production area expands and the number of sensors increases. For example, in a large chemical production workshop, visual modal cameras cover multiple functional areas, and environmental parameter sensors are densely distributed; the number of nodes in the cross-modal spatial relationship graph may far exceed [the required limit]. The edge connection density is also significantly higher due to the cross-coverage of multiple sensors. At this point, the adaptive iteration mechanism will automatically increase the iteration round number to... This ensures that the propagation paths of security risks between different functional areas are fully covered during message transmission. Conversely, in small storage areas, the number of sensors is limited, and the cross-modal spatial relationship graph is smaller in scale; the adaptive mechanism compresses the number of iteration rounds to a minimum. This significantly improves real-time processing efficiency while ensuring sufficient aggregation of risk information. After rounds of iteration, the risk propagation feature vector of each node It has fully integrated cross-modal security anomaly information from multi-hop neighbors as input features for subsequent multi-granularity security status assessment, supporting the hierarchical determination of security anomaly type attribution, severity assessment, and risk impact scope.

[0053] Based on the risk propagation characteristics of each node in the cross-modal safety risk propagation diagram, a multi-granularity safety status assessment is performed. This assessment determines the attribution of safety anomalies, their severity, the scope of their impact, and their temporal evolution trends, level by level. The result is a comprehensive safety status assessment of the safety production scenario, including: The risk propagation characteristics of each node in the cross-modal security risk propagation diagram are compared one by one with the preset feature templates of each security event type. The security event type with the highest similarity is selected as the security anomaly type of that node. All node assignment results are summarized to form the spatial distribution of security anomaly types. The severity of safety anomalies at corresponding spatial locations is determined based on the amplitude and spread of risk propagation characteristics at each node. When the amplitude of risk propagation characteristics exceeds the preset amplitude benchmark and the spread exceeds the preset range benchmark, the severity of safety anomalies increases accordingly. Nodes whose risk propagation feature amplitude exceeds a preset risk threshold in the cross-modal security risk propagation diagram are used as seed nodes and extended along the propagation path. The physical space area covered by the seed node and the nodes connected by its propagation path is taken as the scope of security risk impact. Using a continuous time-step cross-modal safety risk propagation graph sequence as input, the amplitude change direction and position drift trajectory of the risk propagation characteristics of each node between time steps are extracted, and the propagation direction of safety risks in the spatial dimension and the intensity change trend in the temporal dimension are predicted accordingly.

[0054] After obtaining the cross-modal security risk propagation graph, each node carries a risk propagation feature vector aggregated through multi-round graph neural network message passing. Multi-granularity security status assessment starts from this graph and unfolds sequentially at four levels: type attribution, severity, scope of impact, and temporal evolution. The output of each level serves as the input for the next level of analysis, gradually forming a complete comprehensive security status assessment result.

[0055] The determination of safety anomaly type attribution relies on a pre-defined safety event type feature template library. This library, constructed by domain experts using historical safety event data before system deployment, covers typical safety event types such as fire spread, toxic gas leaks, mechanical collisions, and personnel encroachment. Each type corresponds to a high-dimensional feature template vector, characterizing the typical risk propagation feature distribution of that type of safety event in the cross-modal propagation graph. For each node in the cross-modal safety risk propagation graph, its risk propagation feature vector is compared with the cosine similarity of each safety event type feature template in the library. The type with the highest similarity is taken as the safety anomaly type attribution for that node. If the highest similarity is lower than a pre-defined minimum type attribution confidence threshold... When this occurs, the node is classified as "unknown anomaly," indicating a potential new type of security event not covered by the template library, requiring manual review. After classifying all nodes, the classification results are mapped back to their corresponding physical space coordinates, forming a spatial distribution map of security anomaly types. This visually presents the spatial coexistence and overlap of different types of security risks in the production scenario, providing a basis for the differentiated formulation of subsequent handling strategies.

[0056] The severity of security anomalies is quantified based on two key dimensions: the amplitude of node risk propagation characteristics and the breadth of propagation. Risk propagation characteristic amplitude Define as a node Risk propagation feature vector Norm, reflecting the strength of the security anomaly signal at that node; propagation breadth Defined as a node Starting from a point that is reachable along the propagation path and whose edge weight exceeds a preset effective edge weight threshold. The number of nodes reflects the spatial diffusion degree of the risk cluster to which that node belongs. Severity value Given from both dimensions, when Exceeding the preset amplitude benchmark and Exceeding the preset range benchmark hour, Use the highest severity level; when only one dimension exceeds the baseline. Select the moderate severity level; when both dimensions are within the baseline. The lowest severity level is selected. The three severity levels correspond to three response priorities: "Immediate Response," "Key Monitoring," and "Routine Inspection," driving the on-site safety management system to allocate appropriate response resources. By overlaying the spatial distribution of severity and the spatial distribution of risk type, the risk type and intensity of each area can be displayed simultaneously in the same spatial view, avoiding omissions in response due to relying on only a single dimension.

[0057] The scope of safety risk impact is defined using a seed node expansion mechanism. The amplitude of risk propagation characteristics in the cross-modal safety risk propagation diagram is used. Exceeding the preset risk threshold The nodes are labeled as the seed node set. .by Starting from each node in the graph, connectivity expansion is performed along the directed propagation path: if the current expansion front node... and its successor node Edge weights between Exceeding the preset propagation path effective weight threshold Then Set of nodes included in the scope of influence and continue to The expansion proceeds outwards to create a new frontier; otherwise, the expansion terminates in that direction. The expansion process employs a breadth-first traversal strategy to ensure the connectivity integrity of the affected area. Ultimately, it will... The area covered by the physical spatial locations of all nodes is defined as the scope of safety risk impact, and is marked on the production scene plan in the form of minimum convex hull or mesh mask. The dynamic update frequency of the scope of impact is synchronized with the acquisition frequency of multimodal sensor data to ensure that changes in the actual affected area can be reflected in a timely manner during the rapid spread of risk, providing real-time spatial reference for on-site personnel evacuation route planning and isolation measure deployment.

[0058] The prediction of the temporal evolution trend of security risks uses a sequence of cross-modal security risk propagation graphs with multiple consecutive time steps as input. Let the time step index of the continuously acquired graph sequence be... ,in This represents the total number of time steps within the current analysis window. For each node... Extract the change in the amplitude of risk propagation characteristics between adjacent time steps. If continuous Within each time step If all values ​​are positive, it indicates that the security risk at that node is continuously increasing; if all values ​​are positive... Within each time step If all values ​​are negative, it is determined to be a continuous weakening trend; otherwise, it is determined to be an oscillation or stable state. The position drift trajectory is tracked by measuring the amplitude of risk propagation characteristics exceeding... The high-risk node set is characterized by the spatial centroid displacement between each time step, and the centroid coordinates are... The risk propagation characteristic amplitude of each node is given by the weighted average of the physical coordinates of the high-risk node set at the current time step. Centroid displacement vector of adjacent time steps The direction is the estimated risk spatial propagation direction for the current time step. The combined output of the amplitude change trend and the spatial propagation direction forms a safety risk temporal evolution trend prediction report. This report is embedded in the comprehensive safety status assessment results in a structured tag format for use by the upper-level safety management decision-making system.

[0059] The comprehensive security status assessment results integrate the outputs from the four levels mentioned above, with four core components: spatial distribution of node-level security anomaly types, severity classification of node-level security anomalies, boundary of regional security risk impact range, and temporal evolution trend of scenario-level security risks. This forms a structured, multi-level security assessment report. The report supports multi-dimensional searching by node, region, type, and severity, meeting the differentiated access needs of security management personnel at different levels. It also provides quantitative basis for triggering and prioritizing subsequent security actions.

[0060] A second aspect of the present invention provides a system for joint characterization of multimodal data encoding and spatiotemporal modality in production scenarios, comprising: The multimodal feature unit is used to acquire multimodal sensing data in safe production scenarios, including visual modality and environmental parameter modality. After aligning the sensing data of each modality according to the acquisition timestamp, a multimodal time series is constructed. The modal spatiotemporal features of the multimodal time series are matched with the preset safety event pattern codebook. Feature components that match the safety event pattern are retained and weighted, while feature components that do not match are suppressed to obtain safety-related sparse features for each modality. The graph aggregation unit is used to perform single-sensor safety anomaly detection on the sparse features related to safety in each modality, identify the safety anomaly response at each spatiotemporal location in each modality, construct a cross-modal spatial relationship graph with the spatial location of the safety anomaly response as nodes and spatial adjacency as edges, and aggregate the safety anomaly responses of different modalities in the same spatial dimension through graph neural network message passing to obtain a cross-modal safety risk propagation graph that represents the cross-modal propagation of safety risks. The multi-granularity assessment unit is used to perform multi-granularity safety status assessment based on the risk propagation characteristics of each node in the cross-modal safety risk propagation diagram. It determines the type of safety anomaly, the severity of the safety anomaly, the scope of the safety risk impact, and the temporal evolution trend of the safety risk step by step, and outputs the comprehensive safety status assessment results of the safety production scenario.

[0061] A third aspect of the present invention provides an electronic device, comprising: processor; Memory used to store processor-executable instructions; The processor is configured to invoke instructions stored in the memory to execute the aforementioned method.

[0062] A fourth aspect of the present invention provides a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, implement the aforementioned method.

[0063] This invention can be a method, apparatus, system, and / or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for performing various aspects of the invention.

[0064] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for joint representation of multimodal data encoding and spatiotemporal modalities in production scenarios, characterized in that, include: Acquire multimodal sensor data in safe production scenarios, including visual modality and environmental parameter modality. Align the sensor data of each modality according to the acquisition timestamp to construct a multimodal time series. Calculate the matching degree between the modal spatiotemporal features of the multimodal time series and the preset safety event pattern codebook. Retain and weight the feature components that match the safety event patterns, and suppress the feature components that do not match to obtain the safety-related sparse features of each modality. Single-sensor safety anomaly detection is performed on the sparse features related to safety in each modality. Safety anomaly responses at each spatiotemporal location in each modality are identified. A cross-modal spatial relationship graph is constructed with the spatial location of the safety anomaly response as nodes and the spatial adjacency relationship as edges. The safety anomaly responses of different modalities are aggregated in the same spatial dimension through graph neural network message passing to obtain a cross-modal safety risk propagation graph that represents the cross-modal propagation of safety risks. Based on the risk propagation characteristics of each node in the cross-modal safety risk propagation diagram, a multi-granularity safety status assessment is performed, which determines the attribution of safety anomaly types, the severity of safety anomalies, the scope of safety risk impact, and the temporal evolution trend of safety risks at each level, and outputs the comprehensive safety status assessment results of the safety production scenario.

2. The method according to claim 1, characterized in that, The spatiotemporal features of each modality are extracted from the multimodal time series. The matching degree of each modal spatiotemporal feature is calculated against a preset security event pattern codebook. Feature components that match the security event patterns are retained and weighted, while mismatched feature components are suppressed. This yields security-related sparse features for each modality, including: Sensor data samples of historical safety events in safe production scenarios are collected. Spatiotemporal features are extracted from the sample data of each modality of each type of safety event. Clustering of spatiotemporal features corresponding to each category is guided by safety event category labels. The cluster centers of each modality and category are used as safety event patterns. Each safety event pattern is labeled with the corresponding category label. A safety event pattern codebook is formed by indexing the modality type and safety event category. This codebook supports pattern retrieval by category and incremental dynamic updates. The cosine similarity between the spatiotemporal features of each modality and all security event patterns corresponding to that modality in the security event pattern codebook is calculated one by one. The maximum cosine similarity between the current spatiotemporal position and all security event patterns under that modality is taken as the matching degree. Feature components with a matching degree not lower than the preset security matching threshold are retained after being assigned encoding weights based on their matching degree magnitudes; feature components with a matching degree lower than the preset security matching threshold are determined as background features unrelated to security events and are suppressed by setting them to zero; and non-zero feature components retained by weighting are used to construct security-related sparse features for each modality.

3. The method according to claim 2, characterized in that, Feature components with a matching degree not lower than a preset safe matching threshold are retained after being assigned encoding weights based on their matching degree magnitude. Feature components with a matching degree lower than a preset security matching threshold are classified as background features unrelated to security events and suppressed to zero, including: The sparse features related to safety of each modality are input into the single-sensor safety anomaly detection network. The detection accuracy and false alarm rate of safety anomaly detection under the current matching threshold setting are calculated. The comprehensive balance between detection accuracy and false alarm rate is used as the optimization target. Within the preset threshold range, the candidate thresholds are traversed by the search step size. The candidate threshold that makes the comprehensive balance measure optimal is selected as the optimal safety matching threshold. The optimal safety matching threshold will automatically trigger recalibration when the sensor deployment conditions change. During safe production operations, sensor data of various modes are continuously collected. The sparse features obtained by weighting and encoding the real-time collected data are compared with the structured matching degree of existing safety event patterns. If the structured matching degree is lower than the preset pattern update threshold, the current sparse features are added as new safety event patterns and incorporated into the codebook. The corresponding category labels are assigned according to the safety event types confirmed by subsequent multi-granularity safety status assessments. For outdated patterns in the codebook that have not been matched and activated for a long time, their reference weight in the matching degree calculation is gradually reduced according to a preset decay period until they are removed.

4. The method according to claim 1, characterized in that, A cross-modal spatial relationship graph is constructed using the spatial location of security anomaly responses as nodes and spatial adjacency relationships as edges. Through graph neural network message passing, security anomaly responses from different modalities are aggregated in the same spatial dimension to obtain a cross-modal security risk propagation graph representing the cross-modal propagation of security risks, including: The safety anomaly responses of each modality are mapped to nodes of a graph according to their spatial physical location, and each node is associated with the safety anomaly response feature vector of the corresponding location. A first type of edge connection is established for node pairs within the coverage area of ​​the same modal sensor whose spatial distance is less than a preset neighborhood distance threshold, and a second type of edge connection is established for node pairs between different modal sensors whose spatial locations are adjacent to each other. The weight of each edge is determined by multiplying the reciprocal of the spatial distance between the two ends of the nodes and the inherent cross-modal correlation coefficient of the modal pair to which the edge belongs, forming a cross-modal spatial relationship graph that fuses the intra-sensor adjacency relationship and cross-modal cross-correlation. The message propagates along the edge from the source node whose security anomaly response strength is higher than a preset strength threshold to the target node whose strength is lower than the preset strength threshold. In each iteration, the target node collects messages from all its neighboring source nodes, and weights and fuses the aggregated messages with the current node's risk propagation characteristics to obtain the updated risk propagation characteristics. After a preset number of iterations, the risk propagation characteristics of each node gradually absorb cross-modal neighborhood anomaly response information, and finally generate a cross-modal security risk propagation graph.

5. The method according to claim 4, characterized in that, Graph neural network message passing is performed on a cross-modal spatial relationship graph, including: In the graph neural network message passing, each node aggregates messages from all neighboring source nodes in each iteration. Each message is composed of the product of the current risk propagation characteristics of the neighboring source node and the corresponding edge weight. The relative ranking of the edge weight among all neighboring edges determines the contribution ratio of the neighboring source node in the message aggregation in that round. After completing the aggregation of messages from adjacent source nodes, each node performs an update operation on its own risk propagation characteristics. The updated risk propagation characteristics are the weighted fusion result of the aggregated message and the risk propagation characteristics of the current node in the previous iteration. The weighted fusion coefficient is dynamically adjusted according to the ratio of the security anomaly response intensity of the source node and the target node. Node pairs with a ratio exceeding the preset intensity difference threshold interact primarily through risk propagation, while node pairs with a ratio below the preset intensity difference threshold interact primarily through risk feature fusion. The number of iteration rounds for message passing in the graph neural network is adaptively determined based on two factors: the total number of nodes and the edge connection density in the cross-modal spatial relationship graph. When the total number of nodes exceeds a preset threshold and the edge connection density exceeds a preset density threshold, more iteration rounds are used to ensure that cross-modal risk information is fully propagated in the graph.

6. The method according to claim 1, characterized in that, Based on the risk propagation characteristics of each node in the cross-modal safety risk propagation diagram, a multi-granularity safety status assessment is performed. This assessment determines the attribution of safety anomalies, their severity, the scope of their impact, and their temporal evolution trends, level by level. The result is a comprehensive safety status assessment of the safety production scenario, including: The risk propagation characteristics of each node in the cross-modal security risk propagation diagram are compared one by one with the preset feature templates of each security event type. The security event type with the highest similarity is selected as the security anomaly type of that node. All node assignment results are summarized to form the spatial distribution of security anomaly types. The severity of safety anomalies at corresponding spatial locations is determined based on the amplitude and spread of risk propagation characteristics at each node. When the amplitude of risk propagation characteristics exceeds the preset amplitude benchmark and the spread exceeds the preset range benchmark, the severity of safety anomalies increases accordingly. Nodes whose risk propagation feature amplitude exceeds a preset risk threshold in the cross-modal security risk propagation diagram are used as seed nodes and extended along the propagation path. The physical space area covered by the seed node and the nodes connected by its propagation path is taken as the scope of security risk impact. Using a continuous time-step cross-modal safety risk propagation graph sequence as input, the amplitude change direction and position drift trajectory of the risk propagation characteristics of each node between time steps are extracted, and the propagation direction of safety risks in the spatial dimension and the intensity change trend in the temporal dimension are predicted accordingly.

7. A multimodal data encoding and spatiotemporal modality joint characterization system for production scenarios, used to implement the method as described in any one of claims 1-6, characterized in that, include: The multimodal feature unit is used to acquire multimodal sensing data in safe production scenarios, including visual modality and environmental parameter modality. After aligning the sensing data of each modality according to the acquisition timestamp, a multimodal time series is constructed. The modal spatiotemporal features of the multimodal time series are matched with the preset safety event pattern codebook. Feature components that match the safety event pattern are retained and weighted, while feature components that do not match are suppressed to obtain safety-related sparse features for each modality. The graph aggregation unit is used to perform single-sensor safety anomaly detection on the sparse features related to safety in each modality, identify the safety anomaly response at each spatiotemporal location in each modality, construct a cross-modal spatial relationship graph with the spatial location of the safety anomaly response as nodes and spatial adjacency as edges, and aggregate the safety anomaly responses of different modalities in the same spatial dimension through graph neural network message passing to obtain a cross-modal safety risk propagation graph that represents the cross-modal propagation of safety risks. The multi-granularity assessment unit is used to perform multi-granularity safety status assessment based on the risk propagation characteristics of each node in the cross-modal safety risk propagation diagram. It determines the type of safety anomaly, the severity of the safety anomaly, the scope of the safety risk impact, and the temporal evolution trend of the safety risk step by step, and outputs the comprehensive safety status assessment results of the safety production scenario.

8. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to invoke instructions stored in the memory to execute the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having computer program instructions stored thereon, characterized in that, When the computer program instructions are executed by the processor, they implement the method described in any one of claims 1 to 6.