CN-121982852-A - Data processing method and system for gas alarm
Abstract
The invention relates to the technical field of gas data processing, and discloses a data processing method and system for a gas alarm, wherein the method comprises the steps of collecting original gas concentration data of the gas alarm in real time; the method comprises the steps of preprocessing original gas concentration data to obtain gas concentration data, primarily calculating a concentration characteristic index according to current gas concentration data, calculating concentration change characteristics according to concentration change conditions, obtaining a concentration deterioration index according to concentration change characteristics in a preset acquisition window, determining an adjustment index according to the concentration deterioration index to adjust the concentration characteristic index to obtain a concentration characteristic assessment final value, comparing the concentration characteristic assessment final value with historical concentration characteristic assessment final values in historical data, and generating a concentration analysis report according to the gas concentration data. The invention improves the safety, accuracy and intelligent level of the gas alarm in complex environments.
Inventors
- LIU XINHONG
- SU SAILONG
- SHI JUNHUI
- MA CONG
Assignees
- 河北泽宏科技股份有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260106
Claims (10)
- 1. A data processing method for a gas alarm, comprising: Collecting original gas concentration data of a gas alarm in real time; preprocessing the original gas concentration data to obtain gas concentration data; Preliminarily calculating a concentration characteristic index according to the current gas concentration data; Acquiring the concentration change condition of the gas concentration data in a preset acquisition window, and calculating the concentration change characteristic according to the concentration change condition; obtaining a concentration deterioration index according to concentration change characteristics in a preset acquisition window, and determining an adjustment index according to the concentration deterioration index to adjust the concentration characteristic index to obtain a concentration characteristic evaluation final value; and comparing the final concentration characteristic evaluation value with the final historical concentration characteristic evaluation value in the historical data, and generating a concentration analysis report according to the gas concentration data.
- 2. The method for processing data of a gas alarm according to claim 1, wherein the preprocessing the raw gas concentration data to obtain gas concentration data comprises: denoising the original gas concentration data to eliminate random noise generated in the sampling process; Removing abnormal values from the denoised gas concentration data, and eliminating abnormal sampling points caused by instantaneous interference; and carrying out smoothing treatment on the gas concentration data subjected to denoising and outlier rejection.
- 3. The data processing method for a gas alarm according to claim 1, wherein when the concentration characteristic index is preliminarily calculated from the current gas concentration data, comprising: calculating the ratio of the gas concentration data to a preset safety gas concentration threshold value, and marking the ratio as a concentration ratio; if the concentration ratio is less than or equal to 1, the concentration characteristic index is 0; If the concentration ratio is greater than 1, the concentration characteristic index is the difference between the concentration ratio and 1.
- 4. The method for processing data of a gas alarm according to claim 1, wherein the step of acquiring the concentration variation of the gas concentration data in the preset collection window and calculating the concentration variation characteristic according to the concentration variation comprises: the concentration variation characteristics comprise a concentration variation rate and a concentration variation amplitude; constructing gas concentration data in a preset acquisition window into a concentration sequence; calculating the ratio of the difference value of two adjacent gas concentration data in the concentration sequence to the time interval, marking the ratio as a rate sub-value, calculating the average value of all the rate sub-values, and marking the average value as the concentration change rate; The difference value of the concentration data of two adjacent gases in the concentration sequence is calculated and is recorded as a first difference value, the difference value of the maximum value and the minimum value in the concentration sequence is calculated and is recorded as a second difference value, and the average value of the first difference value and the second difference value is calculated and is recorded as the concentration change amplitude.
- 5. The method for processing data of a gas alarm according to claim 4, wherein when the concentration degradation index is obtained according to the concentration variation characteristic in the preset collection window, the method comprises: if the concentration change rate is less than or equal to zero and the concentration change amplitude is less than or equal to zero, the concentration deterioration index is zero; Otherwise, calculating the similarity of the concentration change rate and the concentration change amplitude with the historical data, and obtaining a concentration deterioration index according to the similarity.
- 6. The data processing method for a gas alarm according to claim 5, wherein the calculating of the similarity of the concentration change rate and the concentration change amplitude to the history data, when the concentration deterioration index is obtained based on the similarity, comprises: extracting a historical concentration change rate and a historical concentration change amplitude in a historical time window from a historical database, and constructing a historical change characteristic data set, wherein the length of the historical time window is the same as that of a preset acquisition window; Respectively calculating Euclidean distance between the current concentration change rate and each historical concentration change rate in the historical change characteristic data set and Euclidean distance between the current concentration change amplitude and each historical concentration change amplitude; calculating similarity according to the comprehensive distance value, and constructing a similarity sequence, wherein the similarity and the comprehensive distance value are in negative correlation; Setting a similarity threshold, screening a similarity maximum value which is larger than or equal to the similarity threshold in the similarity sequence, and taking a historical concentration degradation index corresponding to the similarity maximum value as a current concentration degradation index; if the similarity in the similarity sequence is smaller than the similarity threshold, calculating a concentration degradation index according to a preset speed maximum value and a preset amplitude maximum value.
- 7. The method according to claim 6, wherein if the similarities in the similarity series are smaller than the similarity threshold, calculating the concentration deterioration index from the preset rate maximum value and the preset amplitude maximum value comprises: The concentration deterioration index is a first index if the concentration change rate is greater than the preset rate maximum value and the concentration change amplitude is greater than the preset amplitude maximum value, a second index if the concentration change rate is greater than the preset rate maximum value and the concentration change amplitude is less than or equal to the preset amplitude maximum value, a second index if the concentration change rate is less than or equal to the preset rate maximum value and the concentration change amplitude is greater than the preset amplitude maximum value, and a third index if the concentration change rate is less than or equal to the preset rate maximum value and the concentration change amplitude is less than or equal to the preset amplitude maximum value, wherein the first index is greater than the second index and the second index is greater than the third index.
- 8. The method for processing data for a gas alarm according to claim 1, wherein the determining an adjustment index according to a concentration degradation index to adjust the concentration characteristic index to obtain a final value of concentration characteristic evaluation comprises: Setting an index range, wherein the regulation index is a first regulation index if the concentration degradation index is smaller than the minimum value of the index range, the regulation index is a second regulation index if the concentration degradation index is within the index range, and the regulation index is a third regulation index if the concentration degradation index is larger than the maximum value of the index range, wherein 1< the first regulation index < the second regulation index < the third regulation index; and the final concentration characteristic evaluation value is the sum value of the concentration characteristic index and the adjustment index.
- 9. The data processing method for a gas alarm according to claim 1, wherein the comparing the concentration characteristic evaluation end value with the historical concentration characteristic evaluation end value in the historical data, and generating a concentration analysis report from the gas concentration data, comprises: acquiring a concentration abnormal grade corresponding to the historical concentration characteristic evaluation final value, mapping the current concentration characteristic evaluation final value to the same grade system, and determining the current concentration abnormal grade; and integrating the gas concentration data, the concentration characteristic index, the concentration change characteristic, the concentration deterioration index, the regulation index and the concentration abnormality grade to generate a concentration analysis report.
- 10. A data processing system for a gas alarm for applying a data processing method for a gas alarm according to any one of claims 1-9, comprising: the data acquisition module is used for acquiring the original gas concentration data of the gas alarm in real time; the data preprocessing module is used for preprocessing the original gas concentration data to obtain gas concentration data; The concentration characteristic analysis module is used for preliminarily calculating a concentration characteristic index according to the current gas concentration data, acquiring the concentration change condition of the gas concentration data in a preset acquisition window, and calculating a concentration change characteristic according to the concentration change condition; The concentration trend analysis module is used for obtaining a concentration deterioration index according to concentration change characteristics in a preset acquisition window, determining an adjustment index according to the concentration deterioration index so as to adjust the concentration characteristic index, and obtaining a concentration characteristic evaluation final value; and the evaluation report generation module is used for comparing the concentration characteristic evaluation final value with the historical concentration characteristic evaluation final value in the historical data and generating a concentration analysis report according to the gas concentration data.
Description
Data processing method and system for gas alarm Technical Field The invention relates to the technical field of gas data processing, in particular to a data processing method and system for a gas alarm. Background In fields such as industrial production, chemical storage, gas use and public safety, the gas leakage can cause serious accidents such as explosion, poisoning, environmental pollution and the like, so that the method has important significance in real-time and accurate monitoring and timely early warning of the gas concentration. The gas alarm is used as core monitoring equipment, and the data processing capacity of the gas alarm directly determines the timeliness and accuracy of early warning. The traditional gas alarm data processing method is mostly based on simple comparison of single or few gas concentration data acquired in real time with a preset threshold value, and when the detection value exceeds the threshold value, an alarm is triggered. The single-point alarm mode has the limitations that firstly, the original gas concentration data acquired by a sensor is easily influenced by factors such as environmental noise, electromagnetic interference, sensor drift, instantaneous impact and the like, threshold judgment is directly adopted by the original data, false alarm is easily generated by data fluctuation, secondly, the mode only pays attention to whether the current concentration value exceeds the standard, ignores the dynamic trend of gas concentration change, is difficult to distinguish potential risks and sudden leakage which are accumulated slowly, possibly causes early warning hysteresis of the slow leakage or false judgment of the instantaneous interference, and secondly, the traditional method lacks systematic analysis and comprehensive evaluation of the concentration data, cannot quantify the degree and speed of concentration deterioration, so that alarm decision lacks sufficient quantification basis, the condition of missing report or excessive alarm is easy to occur, and furthermore, the utilization of the historical data is insufficient, the current monitoring data and the historical trend cannot be effectively compared, comprehensive concentration change analysis report is difficult to provide, and the subsequent safety management, equipment maintenance and accident tracing are not facilitated. Therefore, it is necessary to provide a data processing method and system for a gas alarm to solve the problems of the conventional gas alarm such as easy interference, misinformation, dynamic trend omission, lack of system analysis and insufficient utilization of historical data. Disclosure of Invention In view of the above, the invention provides a data processing method and a system for a gas alarm, which aim to solve the problems of easy interference false alarm, dynamic trend neglecting, lack of system analysis and insufficient utilization of historical data in the traditional gas alarm. In one aspect, the present invention provides a data processing method for a gas alarm, including: Collecting original gas concentration data of a gas alarm in real time; preprocessing the original gas concentration data to obtain gas concentration data; Preliminarily calculating a concentration characteristic index according to the current gas concentration data; Acquiring the concentration change condition of the gas concentration data in a preset acquisition window, and calculating the concentration change characteristic according to the concentration change condition; obtaining a concentration deterioration index according to concentration change characteristics in a preset acquisition window, and determining an adjustment index according to the concentration deterioration index to adjust the concentration characteristic index to obtain a concentration characteristic evaluation final value; and comparing the final concentration characteristic evaluation value with the final historical concentration characteristic evaluation value in the historical data, and generating a concentration analysis report according to the gas concentration data. Further, the preprocessing the raw gas concentration data to obtain gas concentration data includes: denoising the original gas concentration data to eliminate random noise generated in the sampling process; Removing abnormal values from the denoised gas concentration data, and eliminating abnormal sampling points caused by instantaneous interference; and carrying out smoothing treatment on the gas concentration data subjected to denoising and outlier rejection. Further, when the concentration characteristic index is calculated preliminarily according to the current gas concentration data, the method comprises the following steps: calculating the ratio of the gas concentration data to a preset safety gas concentration threshold value, and marking the ratio as a concentration ratio; if the concentration ratio is less than or equal to 1, the concentration char