Gas terminal multi-modal data association analysis method and system
By synchronously acquiring gas concentration, temperature, and acoustic data under a unified sampling time base, dynamically determining thresholds, and constructing an event relationship graph, the problem of temporal asynchrony and causal lag in multimodal signals at the gas terminal is solved, enabling accurate and reliable early warning of gas leaks.
Patent Information
- Application Number
- CN202611695302.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-30
- Publication Date
- 2026-11-27
AI Technical Summary
In existing gas terminal anomaly detection methods, multimodal signals suffer from timing asynchrony and causal lag during anomaly occurrence, leading to false alarms or delayed warnings, which reduces the accuracy and reliability of anomaly identification. In particular, in scenarios such as home kitchens, these methods are easily affected by wind noise, steam, and short-term evaporation interference.
By synchronously acquiring gas concentration data, temperature data, and acoustic data under a unified sampling time base, low-frequency physicochemical gradient and high-frequency acoustic short-frame features are extracted, temperature drop threshold and concentration rise threshold are dynamically determined, trigger events are generated, an event relationship graph is constructed, and the overall sequence integrity and risk assessment are combined to output the early warning status.
It effectively alleviates the problems of timing asynchrony and causal lag in multimodal signals, improves the accuracy and reliability of anomaly identification, avoids delayed early warning or frequent false alarms, and enhances the early warning capability for gas leaks.
Smart Images

Figure CN123179256A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of gas safety monitoring and intelligent early warning technology, specifically to a method and system for multimodal data correlation analysis at the gas terminal. Background Technology
[0002] Multimodal data correlation analysis of gas terminals refers to the comprehensive identification and early warning of abnormal states based on multiple sources of signals such as gas concentration, temperature, and acoustics during the operation of gas terminals. Current gas terminal anomaly detection methods mainly include alarm methods based on gas concentration thresholds, state judgment methods based on temperature changes, and anomaly identification methods based on single sound features.
[0003] However, when using existing technologies to detect gas terminal anomalies, different modal signals have problems with asynchronous timing and causal lag during the anomaly occurrence process, making it difficult to accurately establish effective correlations. In scenarios such as home kitchens, there are also wind noise, steam, and short-term volatilization interferences, which can easily cause false alarms or delayed warnings, thereby reducing the accuracy and reliability of anomaly identification. Summary of the Invention
[0004] The purpose of this invention is to provide a method and system for multimodal data correlation analysis at the gas terminal, solving the problems of asynchronous timing and causal lag in multimodal signals, overcoming interference from wind noise and short-term volatilization, avoiding delayed early warnings or frequent false alarms, and improving the accuracy and reliability of anomaly identification and early warning. To solve the above technical problems, the technical solution adopted by this invention is as follows:
[0005] Methods for multimodal data correlation analysis at gas terminals include:
[0006] Acquire gas concentration data, temperature data, and acoustic data collected at the same gas terminal under a unified sampling time base;
[0007] Based on the gas concentration data and temperature data, the concentration change characteristics and temperature change characteristics are obtained respectively, and the acoustic characteristics of the acoustic data are extracted.
[0008] When the temperature change characteristics or concentration change characteristics meet the preset triggering conditions, a triggering event is generated, which includes event category and time information.
[0009] The acoustic processing level is determined based on the temperature change characteristics and concentration change characteristics, and the acoustic features are anomaly detected based on the acoustic processing level to generate acoustic feature events, which are then stored in a queue.
[0010] Based on the time information of the triggering event, the corresponding acoustic feature events are extracted from the queue to construct an event relationship graph;
[0011] Extract related event groups from the event relationship diagram and determine the completeness of the sequence;
[0012] Leakage risk is determined by combining sequence integrity, temperature change characteristics, concentration change characteristics, and acoustic characteristic events, and corresponding early warning status is output based on leakage risk and sequence integrity.
[0013] In some possible implementations, the triggering event is generated, including:
[0014] The temperature change characteristics are compared with the preset temperature drop threshold. If the set conditions are met, a temperature drop event is generated.
[0015] The concentration change characteristics are compared with the preset concentration rise threshold. The trend of the concentration change characteristics within the preset time window is combined. If the set conditions are met, a concentration rise event is generated.
[0016] The preset temperature drop threshold is determined based on historical normal combustion periods, and the preset concentration increase threshold is determined based on the background environment.
[0017] In some possible implementations, acoustic features are anomaly detected based on acoustic processing levels to generate acoustic feature events, including:
[0018] The corresponding acoustic feature weights are determined based on the acoustic processing level.
[0019] Based on the offset state of acoustic features relative to the background environment and the weight of acoustic features, acoustic abrupt change features are determined;
[0020] Extract environmental noise features from acoustic data; dynamically adjust acoustic judgment thresholds based on environmental noise features;
[0021] When the acoustic mutation features meet the acoustic judgment threshold conditions, an acoustic feature event containing the attributes of event category, event intensity, and occurrence order is generated.
[0022] Among the possible implementations, an event relationship graph is constructed, including:
[0023] Determine the time backtracking and look-ahead range based on the type of triggering event;
[0024] Extract acoustic feature events from the queue as event nodes within the scope;
[0025] Determine whether the time interval between each event node meets the preset association conditions; if it does, establish the association relationship between the nodes.
[0026] Construct an event relationship graph based on the event intensity, time interval, and occurrence order attributes in the association.
[0027] In some possible implementations, determining the completeness of the sequence includes:
[0028] Determine the strength of association between events based on the node association characteristics in the event relationship graph;
[0029] Match the event relationship diagram with the preset event change pattern model to extract related event groups;
[0030] By combining a preset time interval template, the completeness of the sequence is determined based on the number of matches in the associated event groups, the strength of the association, and the consistency of time features.
[0031] In some possible implementations, leakage risk is determined by combining the sequence integrity, temperature change characteristics, concentration change characteristics, and acoustic characteristic events, including:
[0032] Evaluate the state of abnormal sounds based on the attributes of acoustic feature events;
[0033] The association status of events is evaluated based on the completeness of the sequence and the strength of association between related event groups;
[0034] Assess the extent to which gas concentration data exceeds the safety threshold;
[0035] Assess the interference status of environmental noise features extracted from acoustic data;
[0036] Risk weights are assigned to the abnormal sound state, event-related state, exceeding the standard state, and interference state respectively; based on the risk weights and the above state values, the leakage risk score is determined.
[0037] In some possible implementations, the corresponding warning status is output, including:
[0038] When the leakage risk score is greater than the preset precursor score threshold and the sequence integrity is greater than the preset integrity threshold, a precursor warning status is output.
[0039] When the gas concentration data exceeds the preset concentration alarm threshold or the leakage risk score exceeds the preset confirmation alarm threshold, a confirmation alarm status is output.
[0040] When an acoustic feature event is generated but no temperature drop event or concentration increase event is triggered, the observation status is output.
[0041] If none of the above warning and observation trigger conditions are met, output normal monitoring status.
[0042] The gas terminal multimodal data correlation analysis system includes: a gas concentration acquisition unit, a temperature acquisition unit, an acoustic acquisition unit, a processor, and a memory;
[0043] Memory is used to store instructions that can be executed by the processor;
[0044] The processor is used to invoke instructions to implement the above-mentioned gas terminal multimodal data correlation analysis method.
[0045] Compared with the prior art, the present invention has the following beneficial effects:
[0046] 1. This invention synchronously acquires gas concentration data, temperature data, and acoustic data under a unified sampling time base, and extracts low-frequency physicochemical gradients and high-frequency acoustic short-frame features respectively. It uses temperature drop events or concentration rise events as trigger nodes to feedforward schedule acoustic processing levels, thereby achieving the compression and conversion of continuous acoustic flow to low-dimensional acoustic feature events. This not only alleviates the problems of temporal asynchrony and causal lag between different modes during the occurrence of anomalies, but also avoids the feature matrix dimensional expansion and edge memory overflow caused by forced splicing of fixed time windows.
[0047] 2. This invention dynamically determines the temperature drop threshold and concentration rise threshold based on historical normal combustion periods and background environment, and combines a positive cumulative confirmation mechanism of concentration growth rate to filter out instantaneous concentration spikes such as cooking wine volatilization and short-term volatile seasonings, thereby improving the accuracy and reliability of physicochemical triggering.
[0048] 3. This invention maps the background monitoring level, enhanced detection level, and causal tracking level based on the state change value, configures acoustic features, weight coefficients, and buffer depth according to the gear level, and generates acoustic feature events by combining the background sound field baseline offset, wind noise compensation item, event intensity, and event duration level, effectively suppressing noise masking and false triggering in strong wind noise environments such as high-speed operation of range hoods. Attached Figure Description
[0049] The accompanying drawings are provided to further illustrate embodiments of the present invention and form part of the specification. They are used together with the following detailed description to explain the embodiments of the present invention, but do not constitute a limitation thereof; in the drawings:
[0050] Figure 1 This is a flowchart illustrating the gas terminal multimodal data correlation analysis method in the embodiments of this application;
[0051] Figure 2 This is a schematic diagram of the structure of the gas terminal multimodal data correlation analysis system in the embodiments of this application. Detailed Implementation
[0052] The technical solutions in the embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this specification, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of this specification without creative effort are within the scope of protection of this invention.
[0053] Methods for multimodal data correlation analysis at gas terminals include:
[0054] Acquire gas concentration data, temperature data, and acoustic data collected at the same gas terminal under a unified sampling time base;
[0055] Based on the gas concentration data and temperature data, the concentration change characteristics and temperature change characteristics are obtained respectively, and the acoustic characteristics of the acoustic data are extracted.
[0056] When the temperature change characteristics or concentration change characteristics meet the preset triggering conditions, a triggering event is generated, which includes event category and time information.
[0057] The acoustic processing level is determined based on the temperature change characteristics and concentration change characteristics, and the acoustic features are anomaly detected based on the acoustic processing level to generate acoustic feature events, which are then stored in a queue.
[0058] Based on the time information of the triggering event, the corresponding acoustic feature events are extracted from the queue to construct an event relationship graph;
[0059] Extract related event groups from the event relationship diagram and determine the completeness of the sequence;
[0060] Leakage risk is determined by combining sequence integrity, temperature change characteristics, concentration change characteristics, and acoustic characteristic events, and corresponding early warning status is output based on leakage risk and sequence integrity.
[0061] Generate triggering events, including:
[0062] The temperature change characteristics are compared with the preset temperature drop threshold. If the set conditions are met, a temperature drop event is generated.
[0063] The concentration change characteristics are compared with the preset concentration rise threshold. The trend of the concentration change characteristics within the preset time window is combined. If the set conditions are met, a concentration rise event is generated.
[0064] Among them, the preset temperature drop threshold is determined based on historical normal combustion periods, and the preset concentration rise threshold is determined based on the background environment.
[0065] Based on acoustic processing levels, anomaly detection of acoustic features is performed to generate acoustic feature events, including:
[0066] The corresponding acoustic feature weights are determined based on the acoustic processing level.
[0067] Based on the offset state of acoustic features relative to the background environment and the weight of acoustic features, acoustic abrupt change features are determined;
[0068] Extract environmental noise features from acoustic data; dynamically adjust acoustic judgment thresholds based on environmental noise features;
[0069] When the acoustic mutation features meet the acoustic judgment threshold conditions, an acoustic feature event containing the attributes of event category, event intensity, and occurrence order is generated.
[0070] This embodiment provides a method for multimodal data correlation analysis at gas terminals, such as... Figure 1 As shown; this method is used to handle the asynchronicity and causal lag of acoustic, thermal, and chemical signals when anomalies occur in complex dynamic scenarios such as home kitchens;
[0071] This method collects multimodal data, extracts significant triggering events (trigger nodes) by performing gradient calculations on low-frequency physicochemical data, and uses these triggering events to feedforward and schedule the processing intensity of high-frequency acoustic data, compressing the continuous acoustic stream into low-dimensional acoustic feature events. Finally, it extracts local acoustic events centered on the triggering events to construct an event relationship graph, and assesses the sequence integrity and leakage risk based on the physical change patterns, thereby achieving early warning.
[0072] The acquisition and preprocessing process of multimodal data is as follows: acquire gas concentration data, temperature data and acoustic data collected at the same gas terminal under a unified sampling time base; during the acquisition process, the sampling period of gas concentration data and temperature data can be set to low frequency, such as 1 second, while acoustic data is a high frequency continuous signal, such as a sampling rate of 16000Hz;
[0073] To ensure a unified sampling time base and avoid correlation failures caused by asynchronous delays from multiple sources, the system uses the same underlying hardware timer to drive data acquisition from all sensors and adds a unified format timestamp to data packets of different modalities.
[0074] Specifically, using the timestamp of the low-frequency sampling point as a reference, the high-frequency acoustic data between adjacent low-frequency sampling points is used as a physical time window. The acoustic data within the window is sliced according to a fixed frame step size to achieve strict alignment on the physical time axis. The concentration growth rate of the gas concentration data and the temperature change rate of the temperature data are calculated according to adjacent sampling times, and the acoustic short frame features are extracted from the acoustic data frame by frame.
[0075] The calculated acoustic short-frame features include short-time energy, zero-crossing rate, bandpass energy ratio, and spectral flatness, which are used to characterize the energy distribution state of a specific frequency band.
[0076] By extracting low-frequency physicochemical gradients and high-frequency acoustic short-frame features respectively, the feature matrix dimension expansion caused by forced alignment is avoided, thus solving the memory overflow problem of edge devices with limited computing resources.
[0077] The steps to generate a trigger event are as follows: acquire gas concentration data and temperature data, determine a preset temperature drop threshold based on historical normal combustion periods, determine a preset concentration rise threshold based on the background environment, perform anomaly judgment on physicochemical modal data, and generate a temperature drop event or a concentration rise event.
[0078] In the anomaly detection, the preset temperature drop threshold is not a fixed value, but is dynamically calculated based on the sliding mean and sliding standard deviation of the absolute value of the temperature change rate during the normal combustion phase.
[0079] Specifically, the current preset temperature drop threshold is calculated using the following formula:
[0080]
[0081] in, This indicates the current preset temperature drop threshold, in °C / s; The moving average of the absolute value of the rate of temperature change during the normal combustion phase, expressed in °C / s; The sliding standard deviation of the absolute value of the rate of temperature change during this stage, in °C / s; The confidence coefficient is preset, dimensionless, and the preferred value is 2 to 3;
[0082] The temperature trigger threshold can be automatically adjusted according to the equipment installation location, the thermal inertia of the cookware, and the ambient temperature drift; similarly, the preset concentration rise threshold is determined based on the mean and standard deviation of the concentration growth rate under the background environment.
[0083] Specifically, the current preset concentration rise threshold is calculated using the following formula:
[0084]
[0085] in, This indicates the current preset concentration rise threshold, in %LEL / s or ppm / s; This represents the average concentration growth rate under background conditions; The standard deviation of the concentration growth rate; The confidence coefficient is preset and is dimensionless.
[0086] In practice, if the rate of temperature change is less than or equal to the preset temperature drop threshold, a temperature drop event is generated; if the concentration growth rate is greater than or equal to the preset concentration rise threshold, and the number of sampling points with a concentration growth rate greater than 0 within the preset time window is higher than the preset cumulative confirmation threshold, such as the positive concentration accumulation within the last 3 to 5 seconds, a concentration rise event is generated.
[0087] By using a dynamic threshold and cumulative confirmation mechanism based on physicochemical gradients, the system filters out the instantaneous concentration spikes caused by the volatilization of cooking wine and short-term volatile seasonings, thereby effectively reducing the probability of false triggering caused by instantaneous interference and improving the reliability of the triggering mechanism.
[0088] The steps for generating acoustic feature events are as follows: Obtain the temperature change rate and concentration growth rate, and determine the state change value, i.e., the scheduling driving force, based on these two values. In specific implementation, the calculation formula for the state change value, i.e., the scheduling driving force, is as follows:
[0089]
[0090] in, This represents the normalized state change value, which is dimensionless and takes values within the range of 1 / 2. ; Indicates the current rate of temperature change; The first normalization coefficient is set as the reciprocal of the maximum absolute value of the rate of temperature change during the historical normal cooking phase. Indicates the current concentration growth rate; The second normalization coefficient is set as the reciprocal of the maximum concentration growth rate in the test environment; and These are the preset temperature state weights and concentration state weights, respectively, which are dimensionless and satisfy the following conditions: ;
[0091] outer layer of the formula The function uses saturation-truncation logic to ensure that when the physicochemical data reaches extreme values, the normalization result will not exceed the range of 1; based on the mapping relationship between state change values and preset processing levels, acoustic processing resources are dynamically allocated to determine the acoustic processing level;
[0092] The specific mapping rule is: when the state change value is in... When the interval is reached, it is determined to be at the background monitoring level; when it is in the range, it is determined to be at the background monitoring level. When within the specified range, it is determined to be at the enhanced detection level; when in the specified range... When the interval is reached, it is determined to be a causal tracking level; as the state change value increases, the system gradually increases the frequency domain analysis features and expands the buffer depth of acoustic events;
[0093] Specifically, at the background monitoring level, only short-time energy and zero-crossing rate are extracted as acoustic short-frame features, and the buffer depth of the circular queue is uniformly set to [value missing]. The number of feature frames in s is determined to cover the maximum look-ahead and look-back timing requirements of the system.
[0094] In the enhanced detection stage, the frequency domain feature of the bandpass energy ratio is extracted, and the cache depth is extended to 3 seconds of feature frames; in the causal tracking stage, the spectral flatness is extracted, and the cache depth is extended to 10 seconds of feature frames to preserve complete long-sequence evolution features.
[0095] Based on the acoustic processing level, the acoustic feature weight coefficients corresponding to multiple preset acoustic features are determined. The specific mapping rule is as follows: Let the acoustic feature weight coefficients corresponding to short-time energy, zero-crossing rate, bandpass energy ratio, and spectral flatness be respectively... , , , ;
[0096] At the background monitoring level, ;
[0097] In enhanced detection level, ;
[0098] At the causal tracking level, ;
[0099] The acoustic abrupt change value is determined based on the offset of the acoustic short-frame features relative to the background sound field baseline and the acoustic feature weighting coefficients; specifically, the system calculates the offset rate between the current value of each acoustic short-frame feature and the corresponding background sound field baseline.
[0100]
[0101] The acoustic mutation value is obtained by weighting and summing the offset rates of each feature with their corresponding weighting coefficients:
[0102]
[0103] in, Indicates the first The offset rate of each acoustic short-frame feature, dimensionless; This represents the current value of the feature. This represents the baseline mean of the corresponding background sound field. A preset smooth minimum value is used to avoid computational deadlocks caused by division by zero or divergence when the baseline approaches zero; The final acoustic abrupt change value is dimensionless; For the first The weighting coefficients corresponding to each acoustic feature; This represents the total number of acoustic features extracted at the current processing level; for example, when in the enhanced detection level, the weighting coefficient of the bandpass power ratio is increased to highlight anomalies in specific frequency bands.
[0104] Simultaneously, based on wind noise characteristics, such as the average energy level of low-frequency environmental wind noise, a compensation term is determined to correct the acoustic threshold. The calculation formula for the dynamically corrected acoustic threshold is as follows:
[0105]
[0106] in, This represents the dynamically corrected acoustic threshold, which is dimensionless. The dimensionless basic acoustic threshold; This represents the average energy level of wind noise in the current low-frequency environment. The baseline for wind noise energy under quiet conditions is given; the fractional part represents the dimensionless increase in wind noise energy. The preset compensation coefficient is dimensionless and preferably ranges from 0.1 to 0.3.
[0107] The preset compensation coefficient is obtained by performing multiple linear regressions on the ratio of the wind noise increment to the acoustic change background baseline of various typical stoves at different range hood settings, and the preferred value range is between 0.1 and 0.3.
[0108] When the kitchen is in a high-noise environment such as when the range hood is running at high speed, the acoustic trigger threshold is dynamically raised by the wind noise compensation item to suppress the masking effect of background noise on the effective acoustic abrupt signal.
[0109] If the acoustic mutation value is higher than the acoustic threshold, an acoustic feature event including a timestamp, event category code, event intensity, and event duration level is generated and stored in a circular queue in chronological order. In specific implementation, the circular queue adopts a fixed-length circular array structure in the underlying memory, and each array element corresponds to a data structure of an acoustic feature event.
[0110] The structure internally defines a 32-bit unsigned integer timestamp field to ensure strict timing alignment, an 8-bit unsigned integer event category encoding field, an event intensity field for quantization, and an 8-bit unsigned integer duration level field.
[0111] When high-frequency data writing causes the queue to be full, the system forces the use of a circular write strategy that overwrites the oldest data with head and tail pointers, in order to avoid memory overflow while always maintaining the latest dynamic data window.
[0112] In event feature quantification, the formula for calculating event intensity, i.e., the relative spillover ratio, is:
[0113]
[0114] in, This represents the quantified intensity of an event, and is dimensionless. This represents the currently calculated acoustic abrupt change value; This is the current dynamically corrected acoustic threshold. To prevent division by constants;
[0115] The process of determining the duration level of an event includes: counting the number of frames in which the acoustic mutation value is continuously higher than the acoustic threshold, and mapping the number of frames to the corresponding interval to output the determined numerical level, for example, 1 to 5 consecutive frames is level 1, and 6 to 15 consecutive frames is level 2.
[0116] Based on the non-uniform sensing mechanism of feedforward scheduling of physicochemical signals, the computing resources are dynamically transferred between different modes to avoid high load operation of edge devices at all times, so as to continuously process high frequency acoustic data.
[0117] Furthermore, an event relationship diagram is constructed, including:
[0118] Determine the time backtracking and look-ahead range based on the type of triggering event;
[0119] Extract acoustic feature events from the queue as event nodes within the scope;
[0120] Determine whether the time interval between each event node meets the preset association conditions; if it does, establish the association relationship between the nodes.
[0121] Construct an event relationship graph based on the event intensity, time interval, and occurrence order attributes in the association;
[0122] Determining sequence integrity includes:
[0123] Determine the strength of association between events based on the node association characteristics in the event relationship graph;
[0124] Match the event relationship diagram with the preset event change pattern model to extract related event groups;
[0125] Based on the preset time interval template, the completeness of the sequence is determined according to the number of matches in the associated event groups, the strength of the association, and the degree of consistency of the time features;
[0126] Leakage risk is determined by comprehensively considering sequence integrity, temperature change characteristics, concentration change characteristics, and acoustic characteristic events, including:
[0127] Evaluate the state of abnormal sounds based on the attributes of acoustic feature events;
[0128] The association status of events is evaluated based on the completeness of the sequence and the strength of association between related event groups;
[0129] Assess the extent to which gas concentration data exceeds the safety threshold;
[0130] Assess the interference status of environmental noise features extracted from acoustic data;
[0131] Risk weights are assigned to the abnormal sound state, event-related state, exceeding the limit state, and interference state respectively; based on the risk weights and the above state values, the leakage risk score is determined.
[0132] Output the corresponding warning status, including:
[0133] When the leakage risk score is greater than the preset precursor score threshold and the sequence integrity is greater than the preset integrity threshold, a precursor warning status is output.
[0134] When the gas concentration data exceeds the preset concentration alarm threshold or the leakage risk score exceeds the preset confirmation alarm threshold, a confirmation alarm status is output.
[0135] When an acoustic feature event is generated but no temperature drop event or concentration increase event is triggered, the observation status is output.
[0136] If none of the above warning and observation trigger conditions are met, the normal monitoring status will be output.
[0137] The process of constructing the event relationship graph is as follows: obtain the triggering event, determine the backtracking duration and look-ahead duration according to the category of the triggering event, and extract the acoustic feature events in the circular queue with the event timestamp as the center to form a set of event nodes;
[0138] During the extraction process, the backtracking and look-ahead durations are set according to the laws of physical evolution. For example, when the triggering event is a temperature drop event, the backtracking duration can be set to 3 seconds and the look-ahead duration to 6 seconds; when the triggering event is a concentration increase event, the backtracking duration can be set to 8 seconds and the look-ahead duration to 2 seconds.
[0139] An asymmetric window is set to fit the objective physical time delay logic that acoustic changes precede temperature decreases and temperature decreases precede concentration increases; the time difference between nodes is calculated, and if the time difference is less than the preset maximum allowable time interval, subject to the constraints of sensor installation distance and spatial diffusion speed, a candidate correlation relationship is established.
[0140] To assess the correlation, the intensity matching and time interval compliance of the two ends of the event are comprehensively evaluated, i.e., the deviation between the actual delay and the average typical delay, as well as the compliance of the occurrence sequence. For example, the acoustic change must be first, the temperature drop in the middle, and the concentration rise later, so as to construct a local event relationship diagram.
[0141] The event relationship graph is represented by an adjacency list data structure at the bottom layer. When triggered, the system dynamically constructs a node linked list through a pre-allocated memory pool and stores the established association relationship through a defined directed edge structure. This directed edge structure contains the source node identifier, the target node identifier, and the association strength value. After completing the risk assessment, the memory is released.
[0142] Local subgraphs are dynamically generated on demand when a trigger event occurs to control memory usage. The process of determining the sequence integrity and leakage risk score is as follows: obtain the local event relationship graph, obtain the strength matching, time interval matching, and occurrence order matching of the corresponding relationships, and determine the strength of the association, i.e., the edge weight.
[0143] Specifically, for calculating the strength of the correlation, the calculation steps include: subtracting the absolute value of the difference between the actual intensity and the preset typical intensity of the acoustic feature events at both ends of the event; dividing the absolute value of the difference between the actual intensity and the preset typical intensity by the sum of the preset typical intensity and the minimum tolerance constant; subtracting the absolute value of the difference ratio from 1; and forcing the score to 0 when the subtraction result is less than 0 to avoid negative values. This anti-zero division and truncation mechanism strictly ensures that the value is between 0 and 1, thereby obtaining the intensity matching score.
[0144] The deviation rate between the actual time difference and the preset typical delay is calculated. For the calculation of association strength, the strength matching score and the time matching score are calculated separately:
[0145]
[0146]
[0147] in, The intensity matching score is dimensionless and represents a range. ; The actual intensity of the event; For preset typical intensity; It is the smallest tolerance constant; The time matching score is dimensionless and represents an interval. ); This represents the actual time difference between nodes, in seconds. The preset typical delay is expressed in seconds (s). It is a very small time bias constant; the outer layer adopts A division-to-zero and truncation mechanism is implemented to avoid negative values; the intensity score, time score, and order score are weighted and summed according to preset weights to output the final correlation strength value.
[0148] A fixed sequence score is assigned to the occurrence sequence that conforms to the physical evolution time sequence logic, such as 1 for conformity and 0 for non-conformity; based on the preset corresponding weight coefficients, the intensity matching score, time matching score and sequence score are weighted and summed to output the calculated correlation strength; and the associated event groups that match the preset event change pattern are extracted from the event relationship graph.
[0149] Specifically, the extraction process uses a graph traversal algorithm: the acoustic feature event node with an in-degree of zero in the local event relationship graph is used as the search starting point, the directed edges are determined according to the occurrence order, and the depth-first search algorithm is used to traverse the local event relationship graph in the direction of the triggering event node to find all candidate paths that satisfy the preset physical evolution chain sequence node order.
[0150] The preset physical evolution chain is defined as an ordered class encoding array.
[0151]
[0152] in, The category encoding represents the acoustic feature events. The category code representing the temperature drop event. The category code represents the concentration increase event; the length threshold of the evolutionary chain template is set to 3;
[0153] To improve search efficiency, this depth-first search compares the event category code in the node data structure with the expected step code in the preset physical evolution chain during traversal. If the category code of the current node does not meet the expectations or the depth of the search layer exceeds the length threshold of the evolution chain template, a backtracking pruning operation is immediately triggered to remove invalid paths. The path with the most connected edges and matching node categories, along with the association relationships between the nodes contained therein, is taken as the extracted associated event group.
[0154] The sequence integrity is calculated by combining a preset event time interval template; the specific parameters of the preset event time interval template are set according to the physical diffusion law as: the typical central value of the time difference from the acoustic mutation node to the temperature drop node. s, the typical central value of the time difference between the temperature drop node and the concentration rise node. s, preset maximum allowable time deviation tolerance s;
[0155] The completeness of this calculation is determined by the proportion of actual hit nodes in the chain, the average edge weight, and the degree of consistency of the latency distribution. Specifically, the calculation rules are as follows: The proportion of actual hit nodes in the chain to the expected total number of nodes in the evolved chain, the average edge weight of all relationships, and the degree of consistency between the latency distribution of each node's time interval and the preset event time interval template are combined with the preset event time interval template. The difference between the node's time interval and the template's center time is calculated, and a quantitative score for each node's latency distribution is calculated based on the rule that the difference decreases with the degree of deviation. The calculation formula is as follows:
[0156]
[0157] Calculate the completeness of the integrated sequence:
[0158]
[0159] in, For the first Quantitative score of time interval between nodes; This represents the actual time difference between nodes. The template center time; This sets the maximum permissible deviation from the time tolerance. Indicates the degree of sequence integrity; This represents the proportion of the actual number of hit nodes in the chain to the expected number. This represents the average edge weights of the association relationships; The total number of nodes participating in the evaluation time interval; These are the corresponding completeness assessment weights, such as 0.4, 0.3, and 0.3 respectively;
[0160] Among them, the weights for the integrity assessment corresponding to the percentage of actual hit nodes in the chain, the average edge weight, and the consistency of the delay distribution are set to 0.4, 0.3, and 0.3, respectively;
[0161] The event intensity and duration level of acoustic feature events are obtained. The event intensity is multiplied by the preset coefficient value corresponding to the duration level to determine the abnormal sound score. The correlation score is determined by multiplying the sequence integrity by the preset amplification coefficient. The concentration exceedance value is determined by combining the ratio of the current concentration to the alarm threshold. The noise interference value based on the proportion of wind noise feature energy is introduced as a penalty item.
[0162] Specifically, the calculation logic for noise interference values is as follows: extract the noise interference values from the acoustic short frames. The low-frequency energy is used as wind noise energy, and its ratio to the total energy of the entire frequency band is calculated. When the ratio is greater than the preset wind noise duty cycle threshold, the noise interference value is taken as the ratio; otherwise, the value is taken as 0.
[0163] Because the numerical ranges of abnormal sound scores and sub-items such as concentration exceeding the standard are inconsistent, and the concentration exceeding the standard may be greater than 1 when it exceeds the preset value, direct weighting would cause smaller values to be masked by larger values. Therefore, before weighting, a nonlinear normalization mapping function is introduced to unify the dimensions of values with open-loop boundaries. For example, the following nonlinear normalization mapping function is used to compress the concentration exceeding the standard at the open-loop boundary to... Interval:
[0164]
[0165] Based on the preset risk weights and the unified dimensions of various indicators, the final leakage risk score is calculated using the following formula:
[0166]
[0167] in, Standard concentration scores are dimensionless. The concentration exceeds the standard value; This is the final leakage risk score; The standard abnormal sound score; For correlation scores; This represents the noise interference value. As a positive risk weight, satisfying ; This is the noise interference penalty factor; It is a non-negative truncation function to ensure that the evaluation indicators do not show negative risks;
[0168] The abnormal sound scores are standardized using a nonlinear normalized mapping function, and the calculation formula is as follows:
[0169]
[0170] in, The standard abnormal sound score, The abnormal sound score is determined by weighting the above-mentioned unified units based on the preset risk calculation weights to determine the leakage risk score.
[0171] When the system detects that the current device is in a state of high wind noise and strong interference. A value greater than 1 amplifies the penalty; otherwise... The value ranges from 0 to 0.5;
[0172] In scenarios with persistent strong wind noise, if there is only a simple acoustic anomaly without the support of subsequent physicochemical evolution chain, the overall risk score can be reduced by using a noise penalty term to suppress false triggering.
[0173] The process of early warning output decision-making is as follows: obtain the leakage risk score and sequence integrity, and output the early warning status according to the hierarchical decision-making logic;
[0174] In practice, if the leakage risk score is higher than the preset warning score threshold, such as above the 95th percentile of the risk distribution of a normal cooking sample, and the sequence integrity is higher than the preset integrity threshold, then a warning warning will be output; if the sound-temperature-gas causal chain is complete before the gas concentration reaches the absolute alarm threshold, then a warning warning status will be output.
[0175] If the gas concentration data is higher than the preset concentration alarm threshold, or the leakage risk score continues to rise above the preset confirmation alarm threshold, a confirmation alarm will be output and the valve will be shut off in conjunction with the alarm. If the abnormal sound score is greater than the preset sound score threshold, and no temperature drop event or concentration rise event is detected, the cause-effect graph is determined to be in an isolated state, and an observation state will be output.
[0176] Multi-level decision-making is achieved based on the time delay consistency and sequence completeness of local causal graphs, avoiding delayed early warnings or frequent false alarms due to the lack of prior causal relationships.
[0177] The gas terminal multimodal data correlation analysis system includes: a gas concentration acquisition unit, a temperature acquisition unit, an acoustic acquisition unit, a processor, and a memory;
[0178] Memory is used to store instructions that can be executed by the processor;
[0179] The processor is used to invoke instructions to implement the above-mentioned gas terminal multimodal data correlation analysis method.
[0180] This embodiment provides a gas terminal multimodal data correlation analysis system, such as... Figure 2 As shown, this system is used to implement the above method; it is typically deployed within the gas alarm unit with edge processing capabilities or in the stove linkage terminal controller.
[0181] Specifically, the system includes a gas concentration acquisition unit, a temperature acquisition unit, an acoustic acquisition unit, a processor, and a memory. During system operation, each acquisition unit is responsible for acquiring physical and chemical signals and high-frequency sound signals in the environment in real time. The memory is used to store instructions that can be executed by the processor. Since this invention adopts an event-based compression and local spectrum construction mechanism, the memory does not need to allocate a large amount of space for caching the original audio waveform.
[0182] In practical applications, the physicochemical modes retain only the sampled values of the most recent few cycles, while the acoustic modes cache only a small amount of background statistics and compressed acoustic feature events and store them in a circular queue; the system can run stably in a low-power microcontroller unit with less than 256KB of random access memory;
[0183] The processor is used to call instructions and execute non-uniform sensing scheduling. It only mobilizes computing power to traverse the local asynchronous spatiotemporal causal graph and assess risks when physical and chemical triggering events occur. When the processor calculates that the leakage risk score meets the conditions for early warning or confirmed alarm, the system can output an audible and visual alarm signal through an external interface or send a linkage control command to the remote end to close the gas solenoid valve.
[0184] Furthermore, sending linkage control commands to the remote end relies on the event-driven mechanism of the internal state machine, and communication is triggered only when the system status flag changes from normal or observation to confirmed alarm.
[0185] Furthermore, the payload of the linkage communication message specifically encapsulates the following core instruction fields: the device's unique identifier, the corresponding instruction action code (e.g., 0xA1 indicates forced locking of the solenoid valve, 0xB2 indicates constant audible and visual illumination), the actual leakage risk score that triggered this warning, and the precise judgment timestamp, ensuring that the issuance of multimodal warning actions has complete traceability and execution determinism.
[0186] The above are merely preferred embodiments of the present invention. It should be noted that those skilled in the art can make several improvements and modifications without departing from the principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method for multimodal data correlation analysis at gas terminals, characterized in that, include: Acquire gas concentration data, temperature data, and acoustic data collected at the same gas terminal under a unified sampling time base; Based on the gas concentration data and the temperature data, the concentration change characteristics and temperature change characteristics are obtained respectively, and the acoustic characteristics of the acoustic data are extracted. When the temperature change feature or the concentration change feature meets the preset triggering conditions, a triggering event including event category and time information is generated. The acoustic processing level is determined based on the temperature change characteristics and the concentration change characteristics, and the acoustic characteristics are anomaly determined based on the acoustic processing level to generate acoustic characteristic events, which are then stored in a queue. Based on the time information of the triggering event, the corresponding acoustic feature events are extracted from the queue to construct an event relationship graph; Extract related event groups from the event relationship graph and determine the sequence completeness; The leakage risk is determined by combining the sequence integrity, temperature change characteristics, concentration change characteristics, and acoustic characteristic events, and a corresponding warning status is output based on the leakage risk and the sequence integrity.
2. The gas terminal multimodal data correlation analysis method according to claim 1, characterized in that, Generate triggering events, including: The temperature change characteristics are compared with a preset temperature drop threshold. If the set conditions are met, a temperature drop event is generated. The concentration change characteristics are compared with a preset concentration rise threshold. The change trend of the concentration change characteristics within a preset time window is combined with the set conditions. If the set conditions are met, a concentration rise event is generated. The preset temperature drop threshold is determined based on historical normal combustion periods, and the preset concentration rise threshold is determined based on the background environment.
3. The gas terminal multimodal data correlation analysis method according to claim 2, characterized in that, Based on the acoustic processing level, anomaly detection of the acoustic features is performed to generate acoustic feature events, including: The corresponding acoustic feature weights are determined based on the acoustic processing level. Based on the offset state of the acoustic features relative to the background environment and the weights of the acoustic features, acoustic abrupt change features are determined; Environmental noise features are extracted from the acoustic data; acoustic judgment thresholds are dynamically adjusted based on the environmental noise features. When the acoustic mutation feature meets the acoustic determination threshold condition, an acoustic feature event containing event category, event intensity, and occurrence order attributes is generated.
4. The gas terminal multimodal data correlation analysis method according to claim 3, characterized in that, Construct an event relationship diagram, including: The time backtracking and look-ahead ranges are determined based on the category of the triggering event; Within the specified range, the acoustic feature events are extracted from the queue as event nodes; Determine whether the time interval between each event node meets the preset association condition; if it does, establish the association relationship between the nodes. The event relationship graph is constructed based on the event intensity, time interval, and occurrence order attributes in the association.
5. The gas terminal multimodal data correlation analysis method according to claim 4, characterized in that, Determining sequence integrity includes: Determine the strength of association between events based on the node association characteristics in the event relationship graph; The event relationship diagram is matched with a preset event change pattern model to extract the associated event groups; Based on a preset time interval template, the completeness of the sequence is determined according to the number of matches in the associated event group, the association strength, and the time feature conformity.
6. The gas terminal multimodal data correlation analysis method according to claim 5, characterized in that, The leakage risk is determined by combining the sequence integrity, temperature change characteristics, concentration change characteristics, and acoustic characteristic events, including: Evaluate the state of abnormal sounds based on the attributes of acoustic feature events; The event association status is evaluated based on the sequence completeness and the association strength of the associated event groups; Assess the extent to which the gas concentration data exceeds the safety threshold; Assess the interference status of environmental noise features extracted from acoustic data; Risk weights are assigned to the abnormal sound state, the event association state, the exceeding standard state, and the interference state, respectively; based on the risk weights and the above state values, a leakage risk score is determined.
7. The gas terminal multimodal data correlation analysis method according to claim 6, characterized in that, Output the corresponding warning status, including: When the leakage risk score is greater than a preset precursor score threshold and the sequence integrity is greater than a preset integrity threshold, a precursor warning status is output; When the gas concentration data is greater than the preset concentration alarm threshold or the leakage risk score is greater than the preset confirmation alarm threshold, a confirmation alarm status is output. When the acoustic feature event is generated but the temperature drop event or the concentration increase event is not triggered, the observation status is output; If none of the above warning and observation trigger conditions are met, output normal monitoring status.
8. A gas terminal multimodal data correlation analysis system, characterized in that, It includes a gas concentration acquisition unit, a temperature acquisition unit, an acoustic acquisition unit, a processor, and a memory; The memory is used to store instructions that can be executed by the processor; The processor is used to invoke the instructions to implement the gas terminal multimodal data correlation analysis method as described in any one of claims 1 to 7.
