Gas anomaly detection method, device and equipment and storage medium

By collecting multiple flow values ​​in the gas flow metering equipment, combining multi-dimensional combination judgment, detecting small flow leakage or overflow, and determining the alarm type, the problem of singularity and inaccuracy of gas abnormality detection in the prior art is solved, and the problem of singularity and inaccuracy of gas abnormality detection in the prior art is realized. The safety guarantee for gas use.

CN119197659AActive Publication Date: 2024-12-27GOLDCARD HIGH TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411361081.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2019-11-01
Filing Date
2020-10-31
Publication Date
2024-12-27
Estimated Expiration
2040-10-31

AI Technical Summary

Technical Problem

The existing gas abnormality detection technology has problems such as singularity and inaccurate detection, and cannot effectively ensure the safety of gas use.

Method used

By collecting multiple flow values ​​of the gas flow metering device during the preset sampling period, combining multi-dimensional combination judgment, detecting small flow leakage or overflow, and determining whether the alarm and alarm type are detected based on the abnormal type, sending an alarm type to the target terminal with the alarm type alarm information.

Benefits of technology

The diversity and accuracy of gas abnormality detection is achieved, and the gas abnormality scenarios and alarm types can be accurately detected to ensure the safety of gas use.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119197659A_ABST
    Figure CN119197659A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a gas anomaly detection method and device, equipment and a storage medium. The method comprises the steps that multiple flow values in a preset sampling period are collected; according to the multiple flow values, whether gas flow abnormity exists or not and the type of the flow abnormity are determined; and determining whether to give an alarm and the alarm type according to the plurality of flow values and the type of the flow abnormity. According to the gas anomaly detection method, device and equipment and the storage medium provided by the embodiment of the invention, not only can multiple gas anomaly types be accurately detected, but also accurate alarming can be performed, so that the safety of gas use is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the original application with application date of October 31, 2020, application number 2020111954108, and invention name "Gas Anomaly Detection Method, Device, Equipment and Storage Medium". Technical Field

[0002] The embodiments of the present application relate to the technical field of gas anomaly detection, and in particular to a gas anomaly detection method, device, equipment and storage medium. Background Art

[0003] With the improvement of living standards and the strengthening of environmental awareness, the use of gas has become very common, and gas safety has become a top priority in the gas industry.

[0004] At present, there are two ways to detect gas anomalies in order to solve the problem of gas safety: gas alarm and cut-off valve. Among them, the gas alarm uses the catalytic principle to detect the gas concentration. When the concentration of gas in the air exceeds the set value, the detector will be triggered to alarm and send out an audible and visual alarm signal; the cut-off valve is used for overcurrent control. When overcurrent occurs, the burner is cut off from the gas pipeline.

[0005] However, the gas alarm has a short service life and is easily contaminated. It will immediately trigger an alarm if the set value is exceeded. However, during the use of gas, the concentration detection may fluctuate, which will lead to false triggering and inaccurate detection. The shut-off valve can only be used for overcurrent control, and the mechanical structure is not stable enough and is easily stuck or blocked. Therefore, the existing technology is single in detecting gas anomalies and the detection is inaccurate, which cannot effectively ensure the safety of gas use. Summary of the invention

[0006] The embodiments of the present application provide a gas anomaly detection method, device, equipment and storage medium to overcome the problem that gas anomaly detection in the prior art is single and inaccurate, and thus cannot effectively ensure the safety of gas use.

[0007] In a first aspect, an embodiment of the present application provides a method for detecting gas anomalies, comprising:

[0008] Collect multiple gas flow values ​​within a preset sampling period;

[0009] Determining whether there is a gas flow abnormality and the type of the flow abnormality according to the multiple flow values;

[0010] Determine whether to alarm and the alarm type according to the multiple flow values ​​and the type of flow anomaly;

[0011] The determining whether to alarm according to the multiple flow values ​​and the type of the flow anomaly includes:

[0012] If the type of the flow anomaly is overflow, determining to trigger an alarm event;

[0013] The alarm event carries the alarm type.

[0014] The step of determining the alarm type according to the multiple flow values ​​and the type of the flow anomaly includes:

[0015] Compare all or part of the multiple flow values ​​with the threshold range corresponding to each over-flow gear respectively, and obtain second distribution data of each flow value belonging to the over-flow gear among the multiple flow values ​​in each over-flow gear; according to the second distribution data, take the alarm type corresponding to the over-flow gear with the largest number of distributed flow values ​​as the corresponding alarm type; or, among the over-flow gears with flow value distribution, take the alarm type corresponding to the over-flow gear with the highest level and the number of distribution reaching a preset number as the alarm type; or,

[0016] The maximum flow value among the multiple flow values ​​is compared with the threshold range corresponding to each over-flow level, and the alarm type corresponding to the over-flow level within the threshold range where the maximum flow value is located is used as the corresponding alarm type.

[0017] In a possible design, determining the alarm type according to the multiple flow values ​​and the type of the flow anomaly includes:

[0018] If the type of the flow anomaly is a small flow leakage, a small flow level is set according to the multiple flow values ​​to obtain a corresponding target small flow level;

[0019] According to the target small flow rate, the corresponding alarm type is determined.

[0020] In a possible design, performing micro flow setting according to the multiple flow values ​​to obtain a corresponding target micro flow level includes:

[0021] Compare all or part of the multiple flow values ​​with the threshold range corresponding to each small flow level, and obtain first distribution data of the flow values ​​belonging to the small flow level in each small flow level; or calculate the first average flow value corresponding to the first preset number of adjacent flow values ​​in the multiple flow values, and compare each first average flow value with the threshold range corresponding to each small flow level, and obtain first distribution data of each first average flow value belonging to the small flow level in each small flow level;

[0022] According to the first distribution data, the micro-flow level with the largest number of distributed flow values ​​is determined among all micro-flow levels, and the micro-flow level with the largest number of flow values ​​is the target micro-flow level; or, among the micro-flow levels with flow value distribution, the micro-flow level with a distribution number that reaches a preset number and has the highest level is the target micro-flow level.

[0023] In a possible design, determining whether to alarm according to the multiple flow values ​​and the type of the flow anomaly includes:

[0024] If the type of the flow anomaly is a small flow leakage, the total flow of the target gas device within the preset sampling period is calculated based on the multiple flow values;

[0025] When the total flow is greater than a preset total flow threshold, it is determined that an alarm event is triggered, and the alarm event is used to indicate that an alarm message carrying the alarm type is sent to the target terminal.

[0026] In a possible design, determining whether to alarm according to the multiple flow values ​​and the type of the flow anomaly includes:

[0027] Selecting all or part of the plurality of flow values, and if any one of the plurality of flow values ​​is within a threshold range corresponding to the target micro flow level, determining the single flow value as a qualified sample;

[0028] Calculating the qualified rate of the plurality of flow values ​​in the target micro flow range according to the number of qualified samples obtained by statistics and the number of the plurality of flow values;

[0029] If the qualified rate is greater than or equal to the preset qualified rate, determining to trigger an alarm event;

[0030] The alarm event is used to indicate that an alarm message carrying the alarm type is sent to a target terminal.

[0031] In one possible design, the method further includes:

[0032] If the pass rate is less than the preset pass rate, repeat the following steps until the pass rate is greater than or equal to the preset pass rate or the number of preset sampling cycles reaches the preset number of cycles:

[0033] Collect multiple flow values ​​within the next preset sampling period, calculate the pass rate corresponding to the next preset sampling period, and if the pass rate is greater than or equal to the preset pass rate, determine that an alarm event is triggered.

[0034] In a possible design, determining whether to alarm according to the multiple flow values ​​and the type of the flow anomaly includes:

[0035] Selecting all or part of the plurality of flow values, and if any one of the plurality of flow values ​​is within a threshold range corresponding to the target micro flow level, determining the flow value as a qualified sample;

[0036] Calculating the pass rate of the plurality of flow values ​​in the target micro flow range according to the number of qualified samples obtained by statistics and the number of the plurality of flow values;

[0037] If the qualified rate is greater than or equal to the preset qualified rate, the target small flow rate gear is determined to be a stable small flow rate gear;

[0038] Calculating the total flow rate within the preset sampling period according to the multiple flow values;

[0039] When the total flow is greater than a preset total flow threshold, it is determined that an alarm event is triggered, and the alarm event is used to indicate that an alarm message carrying the alarm type is sent to the target terminal.

[0040] In a possible design, determining the alarm type according to the multiple flow values ​​and the type of the flow anomaly includes:

[0041] Calculating a second average flow value corresponding to a second preset number of adjacent flow values ​​according to the plurality of flow values;

[0042] Compare each second average flow value with the threshold range corresponding to each excess flow level, and obtain second distribution data of the second average flow value belonging to the excess flow level in each excess flow level;

[0043] According to the second distribution data, the flow rate level with the largest number of second average flow values ​​distributed in each flow rate level is determined, and the alarm type corresponding to the flow rate level with the largest number of second average flow values ​​distributed is used as the alarm type; or, among the flow rates with the second average flow value distribution, the alarm type corresponding to the flow rate level with the highest level and the number of distribution reaching a preset number is used as the alarm type; or,

[0044] The maximum average flow value among the second average flow values ​​is compared with the threshold range corresponding to each overflow level, and the alarm type corresponding to the overflow level within the threshold range where the maximum average flow value is located is used as the alarm type.

[0045] In a possible design, determining the alarm type according to the multiple flow values ​​and the type of the flow anomaly includes:

[0046] Calculating, according to the plurality of flow values, a third average flow value corresponding to a third preset number of adjacent flow values;

[0047] Obtain a target third average flow value from each third average flow value, compare the target third average flow value with the threshold range corresponding to each excess flow level, and use the alarm type corresponding to the excess flow level within the threshold range where the target third average flow value is located as the alarm type.

[0048] In a possible design, determining whether there is a gas flow abnormality and the type of the flow abnormality according to the multiple flow values ​​includes at least one of the following:

[0049] If the flow values ​​greater than or equal to the first number among the multiple flow values ​​are all within the first preset flow threshold range, and the number of flow values ​​within the second preset flow threshold range is less than the second number, it is determined that there is a gas flow anomaly, and the type of the flow anomaly is a small flow leakage;

[0050] If the flow values ​​greater than or equal to the second number among the plurality of flow values ​​are all within the second preset flow threshold range, it is determined that there is a gas flow abnormality, and the type of the flow abnormality is an excessive flow leakage;

[0051] According to the multiple flow values, a fourth average flow value corresponding to a fourth preset number of adjacent flow values ​​and a fifth average flow value corresponding to a fifth preset number of adjacent flow values ​​are calculated; if the fourth average flow values ​​greater than or equal to the third number among the fourth average flow values ​​are all within the first preset flow threshold range, and the fifth average flow values ​​less than the fourth number among the fifth average flow values ​​are all within the second preset flow threshold range, it is determined that there is a gas flow anomaly, and the type of the flow anomaly is a small flow leakage;

[0052] Based on the multiple flow values, a fourth average flow value corresponding to a fourth adjacent preset number of flow values ​​and a fifth average flow value corresponding to a fifth adjacent preset number of flow values ​​are calculated; if the fourth average flow values ​​greater than or equal to the fourth number among the fifth average flow values ​​are all within the second preset flow threshold range, it is determined that there is a gas flow anomaly, and the type of the flow anomaly is excessive flow leakage.

[0053] In a second aspect, another embodiment of the present application provides a gas anomaly detection method, comprising:

[0054] Get a single flow in a single collection cycle;

[0055] Compare the acquired single flow with at least two preset flow thresholds to obtain the flow level to which the single flow belongs;

[0056] When the single flow meets the preset rules, the corresponding alarm information is determined and sent according to the obtained flow value of one or more single flows and / or the distribution information of the flow level to which it belongs.

[0057] The method further comprises:

[0058] Obtaining a total flow rate according to the obtained single flow rate measurement;

[0059] When both the single flow and the total flow meet the preset rules, the corresponding alarm information is determined and sent based on the flow values ​​of the one or more single flows obtained during the total flow measurement period, and / or the flow level distribution information to which the flow values ​​of the one or more single flows belong.

[0060] The at least two flow thresholds include a first flow threshold and a second flow threshold, wherein the second flow threshold is less than the first flow threshold, and the comparison of the acquired single flow with the preset at least two flow thresholds to obtain the flow level to which the single flow belongs specifically includes:

[0061] According to the set at least two flow thresholds, at least two corresponding threshold intervals are obtained, and different threshold intervals correspond to different flow levels;

[0062] Determining whether the single flow rate is less than or equal to the first flow rate threshold;

[0063] If yes, further determining whether the single flow rate is less than or equal to the second flow rate threshold;

[0064] Determine the threshold interval to which the single flow belongs according to the comparison result of the single flow with the first flow threshold and the second flow threshold, and obtain the flow level to which the single flow belongs;

[0065] The obtaining of the total flow amount according to the obtained single flow measurement specifically includes: when the obtained single flow is less than or equal to the first flow threshold, accumulating the single flow to obtain the total flow amount.

[0066] In one possible design, the method further includes:

[0067] When the acquired single flow rate is less than or equal to the first flow rate threshold, the current flow rate at each moment is collected at different moments within a predetermined period, and each current flow rate is compared with the first flow rate threshold and / or the second flow rate threshold;

[0068] Determine whether the proportion of the multiple current flows that is less than or equal to the first flow threshold reaches a predetermined proportion, and / or whether the distribution of flow levels to which the multiple current flows belong meets the predetermined situation. If so, determine the corresponding alarm information and send it.

[0069] In one possible design, the method further includes:

[0070] When it is determined whether the proportion of the multiple current flows that is less than or equal to the first flow threshold reaches a predetermined proportion, and / or whether the distribution of the flow levels to which the multiple current flows belong meets a predetermined situation, the result is no, then returning to execute the step of respectively collecting the current flow at each moment at different moments within a predetermined period when the acquired single flow is less than or equal to the first flow threshold, and accumulating the number of times the steps are executed;

[0071] When the number of times the steps are executed reaches a preset value, the single flow in the next collection cycle is re-acquired.

[0072] In one possible design, each flow level corresponds to a different alarm type; the corresponding alarm information is determined based on the obtained flow values ​​of one or more single flows and / or the distribution information of the flow levels to which they belong, specifically including: when the flow values ​​of the multiple single flows and / or the flow levels to which they belong are distributed in multiple flow levels, the corresponding alarm type is determined based on the highest flow level among the multiple flow levels or the flow level with the most single flow values ​​distributed.

[0073] In one possible design, the method further includes:

[0074] After obtaining the single flow each time, calculating the average value of at least two most recent single flows;

[0075] Compare the acquired traffic average value with at least two preset traffic thresholds to obtain the traffic level to which the traffic average value belongs, and calculate the number of times the traffic meets the preset rules;

[0076] When the number of times the preset rules are met is greater than the set threshold, the corresponding alarm information is determined and sent.

[0077] In a third aspect, an embodiment of the present application provides a gas anomaly detection device, comprising:

[0078] A collection module, used to collect multiple gas flow values ​​within a preset sampling period;

[0079] A determination module, used for determining whether there is a gas flow abnormality and the type of the flow abnormality according to the multiple flow values;

[0080] An alarm processing module, used for determining whether to alarm and the alarm type according to the multiple flow values ​​and the type of flow anomaly;

[0081] When the alarm processing module determines whether to alarm according to the multiple flow values ​​and the type of the abnormality, it is specifically used to:

[0082] If the type of the abnormality is overflow, determining to trigger an alarm event;

[0083] The alarm event carries the alarm type.

[0084] When determining the alarm type according to the multiple flow values ​​and the type of the abnormality, the alarm processing module is specifically used to:

[0085] Comparing all or part of the multiple flow values ​​with the threshold range corresponding to each over-flow level, respectively, to obtain second distribution data of the flow values ​​belonging to the over-flow level among the multiple flow values ​​in each over-flow level; according to the second distribution data, taking the alarm type corresponding to the over-flow level with the largest number of distributed flow values ​​as the corresponding alarm type;

[0086] Alternatively, in the over-flow level with flow value distribution, the alarm type corresponding to the over-flow level with the highest level and the number of distribution reaching the preset number is used as the alarm type; or,

[0087] The maximum flow value among the multiple flow values ​​is compared with the threshold range corresponding to each overflow level, and the alarm type corresponding to the overflow level within the threshold range where the maximum flow value is located is used as the alarm type corresponding to the target gas device.

[0088] In a possible design, the alarm processing module, when determining the alarm type according to the multiple flow values ​​and the type of the abnormality, is specifically used to:

[0089] If the type of the abnormality is a small flow leakage, a preset number of flow values ​​are obtained from the multiple flow values, and a small flow setting is performed to obtain a corresponding target small flow setting;

[0090] According to the target small flow rate, the corresponding alarm type is determined.

[0091] In a possible design, when the alarm processing module performs micro-flow setting and obtains the corresponding target micro-flow level, it is specifically used to:

[0092] Compare each flow value in the preset number of flow values ​​with the threshold range corresponding to each small flow level, and obtain first distribution data of the preset number of flow values ​​in each small flow level; or calculate the first average flow value corresponding to the first preset number of adjacent flow values ​​in the preset number of flow values, and compare each first average flow value with the threshold range corresponding to each small flow level, and obtain first distribution data of each first average flow value belonging to the small flow level in each small flow level;

[0093] According to the first distribution data, the micro-flow level with the largest number of distributed flow values ​​is determined among all micro-flow levels, and the micro-flow level with the largest number of flow values ​​is the target micro-flow level; or, among the micro-flow levels with flow value distribution, the micro-flow level with a distribution number that reaches a preset number and has the highest level is the target micro-flow level.

[0094] In a possible design, when the alarm processing module determines whether to alarm according to the multiple flow values ​​and the type of the abnormality, it is specifically used to:

[0095] If the type of the abnormality is a small flow leakage, the total flow of the target gas device within the preset sampling period is calculated based on the multiple flow values;

[0096] When the total flow is greater than a preset total flow threshold, it is determined that an alarm event is triggered, and the alarm event is used to indicate that an alarm message carrying the alarm type is sent to the target terminal.

[0097] In a possible design, when the alarm processing module determines whether to alarm according to the multiple flow values ​​and the type of the abnormality, it is specifically used to:

[0098] For all or part of the multiple flow values, if any flow value among all or part of the flow values ​​is within the threshold range corresponding to the target small flow level, then the single flow value is determined to be a qualified sample;

[0099] Calculating the qualified rate of the plurality of flow values ​​in the target micro flow range according to the number of qualified samples obtained by statistics and the number of the plurality of flow values;

[0100] If the qualified rate is greater than or equal to the preset qualified rate, determining to trigger an alarm event;

[0101] The alarm event is used to indicate that an alarm message carrying the alarm type is sent to a target terminal.

[0102] In a possible design, the alarm processing module is further used for:

[0103] If the pass rate is less than the preset pass rate, repeat the following steps until the pass rate is greater than or equal to the preset pass rate or the number of preset sampling cycles reaches the preset number of cycles:

[0104] Collect multiple flow values ​​within the next preset sampling period, calculate the pass rate corresponding to the next preset sampling period, and if the pass rate is greater than or equal to the preset pass rate, determine that an alarm event is triggered.

[0105] In a possible design, when the alarm processing module determines whether to alarm according to the multiple flow values ​​and the type of the abnormality, it is specifically used to:

[0106] For all or part of the multiple flow values, if any flow value among all or part of the flow values ​​is within the threshold range corresponding to the target small flow level, then the single flow value is determined to be a qualified sample;

[0107] Calculating the pass rate of the plurality of flow values ​​in the target micro flow range according to the number of qualified samples obtained by statistics and the number of the plurality of flow values;

[0108] If the qualified rate is greater than or equal to the preset qualified rate, the target small flow rate gear is determined to be a stable small flow rate gear;

[0109] Calculating the total flow of the target gas device within the preset sampling period according to the multiple flow values;

[0110] When the total flow is greater than a preset total flow threshold, it is determined that an alarm event is triggered, and the alarm event is used to indicate that an alarm message carrying the alarm type is sent to the target terminal.

[0111] In a possible design, when the alarm processing module determines the alarm type according to the multiple flow values ​​and the type of the abnormality, it is specifically used to:

[0112] Calculating a second average flow value corresponding to a second preset number of adjacent flow values ​​according to the plurality of flow values;

[0113] Compare each second average flow value with the threshold range corresponding to each excess flow level, and obtain second distribution data of the second average flow value belonging to the excess flow level in each excess flow level;

[0114] According to the second distribution data, determining the overflow level having the largest number of second average flow values ​​distributed among the overflow levels, and taking the alarm type corresponding to the overflow level having the largest number of second average flow values ​​distributed as the corresponding alarm type;

[0115] Alternatively, in the overflow level with the second average flow value distribution, the alarm type corresponding to the overflow level with the highest level and the number of distributions reaching the preset number is used as the alarm type; or,

[0116] The maximum average flow value among the second average flow values ​​is compared with the threshold range corresponding to each overflow level, and the alarm type corresponding to the overflow level within the threshold range where the maximum average flow value is located is used as the alarm type corresponding to the target gas device.

[0117] In a possible design, when the alarm processing module determines the alarm type according to the multiple flow values ​​and the type of the abnormality, it is specifically used to:

[0118] Calculating, according to the plurality of flow values, a third average flow value corresponding to a third preset number of adjacent flow values;

[0119] Obtain a target third average flow value from each third average flow value, compare the target third average flow value with the threshold range corresponding to each excess flow level, and use the alarm type corresponding to the excess flow level within the threshold range where the target third average flow value is located as the alarm type.

[0120] In a possible design, the determining module is specifically used to:

[0121] Determine whether there is a gas flow abnormality and the type of flow abnormality by at least one of the following:

[0122] If the flow values ​​greater than or equal to the first number among the multiple flow values ​​are all within the first preset flow threshold range, and the number of flow values ​​within the second preset flow threshold range is less than the second number, it is determined that there is a gas flow anomaly, and the type of the flow anomaly is a small flow leakage;

[0123] If the flow values ​​greater than or equal to the second number among the plurality of flow values ​​are all within the second preset flow threshold range, it is determined that there is a gas flow abnormality, and the type of the flow abnormality is an overflow;

[0124] According to the multiple flow values, a fourth average flow value corresponding to a fourth preset number of adjacent flow values ​​and a fifth average flow value corresponding to a fifth preset number of adjacent flow values ​​are calculated; if the fourth average flow values ​​greater than or equal to the third number among the fourth average flow values ​​are all within the first preset flow threshold range, and the fifth average flow values ​​less than the fourth number among the fifth average flow values ​​are all within the second preset flow threshold range, it is determined that there is a gas flow anomaly, and the type of the flow anomaly is a small flow leakage;

[0125] Based on the multiple flow values, a fourth average flow value corresponding to a fourth preset number of adjacent flow values ​​and a fifth average flow value corresponding to a fifth preset number of adjacent flow values ​​are calculated. If the fourth average flow values ​​greater than or equal to the fourth number among the fifth average flow values ​​are all within the second preset flow threshold range, it is determined that there is a gas flow abnormality, and the type of the flow abnormality is overflow.

[0126] In a fourth aspect, another embodiment of the present application provides a gas anomaly detection device, comprising:

[0127] The collection module is used to obtain a single flow in a single collection cycle;

[0128] A determination module, used for comparing the acquired single flow with at least two preset flow thresholds to obtain the flow level to which the single flow belongs;

[0129] The alarm processing module is used to determine and send corresponding alarm information when the single flow meets the preset rules based on the acquired flow values ​​of multiple single flows and / or the distribution information of the flow levels to which they belong.

[0130] The determination module is further used to obtain the total flow rate according to the acquired single flow rate measurement; the alarm processing module is further used to determine and send the corresponding alarm information according to the flow values ​​of the one or more single flows acquired during the total flow rate measurement period, and / or the flow level distribution information to which the flow values ​​of the multiple single flows belong, when both the single flow rate and the total flow rate meet the preset rules;

[0131] The at least two flow thresholds include a first flow threshold and a second flow threshold, wherein the second flow threshold is less than the first flow threshold, and the determination module is further used to:

[0132] According to the set at least two flow thresholds, at least two corresponding threshold intervals are obtained, and different threshold intervals correspond to different flow levels;

[0133] Determining whether the single flow rate is less than or equal to the first flow rate threshold;

[0134] If yes, further determining whether the single flow rate is less than or equal to the second flow rate threshold;

[0135] Determine the threshold interval to which the single flow belongs according to the comparison result of the single flow with the first flow threshold and the second flow threshold, and obtain the flow level to which the single flow belongs;

[0136] The obtaining of the total flow amount according to the obtained single flow measurement specifically includes: when the obtained single flow is less than or equal to the first flow threshold, accumulating the single flow to obtain the total flow amount.

[0137] In a possible design, the acquisition module is further used for:

[0138] When the acquired single flow rate is less than or equal to the first flow rate threshold, the current flow rate at each moment is collected at different moments within a predetermined period;

[0139] The determination module is further configured to compare each current flow rate with the first flow rate threshold and / or the second flow rate threshold;

[0140] Determine whether the proportion of the multiple current flows that is less than or equal to the first flow threshold reaches a predetermined proportion, and / or whether the distribution of flow levels to which the multiple current flows belong meets the predetermined situation. If so, control the alarm processing module to determine the corresponding alarm information and send it.

[0141] In one possible design, when the determination module determines whether the proportion of the multiple current flows that is less than or equal to the first flow threshold reaches a predetermined proportion, and / or whether the distribution of the flow levels to which the multiple current flows belong meets the predetermined situation, and the result is no, and it is determined that the acquired single flow is less than or equal to the first flow threshold, the acquisition module again collects the current flow at each moment at different moments within a predetermined certain period, and the determination module is also used to accumulate the number of times the acquisition module executes the collection of the current flow at each moment at different moments within a predetermined certain period. When the number of executions reaches a preset value, the acquisition module re-acquires the single flow in the next acquisition period.

[0142] In one possible design, each flow level corresponds to a different alarm type; the alarm processing module determines the corresponding alarm information based on the acquired flow values ​​of multiple single flows and / or the distribution information of the flow levels to which they belong, which specifically includes: when the flow values ​​of the multiple single flows and / or the flow levels to which they belong are distributed in multiple flow levels, the corresponding alarm type is determined based on the highest flow level among the multiple flow levels or the flow level with the most distribution of single flow values.

[0143] In one possible design, the determining module is further used to:

[0144] After obtaining the single flow each time, calculating the average value of at least two most recent single flows;

[0145] Compare the acquired traffic average value with at least two preset traffic thresholds to obtain the traffic level to which the traffic average value belongs, and calculate the number of times the traffic meets the preset rules;

[0146] When the number of times the preset rules are met is greater than the set threshold, the alarm processing module is controlled to send the corresponding alarm information.

[0147] In a fifth aspect, an embodiment of the present application provides a gas anomaly detection device, including: at least one processor and a memory;

[0148] The memory stores computer-executable instructions;

[0149] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the gas anomaly detection method as described in the first aspect and various possible designs of the first aspect.

[0150] In a sixth aspect, another embodiment of the present application provides a gas anomaly detection device, including: at least one processor and a memory;

[0151] The memory stores computer-executable instructions;

[0152] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the gas anomaly detection method as described in the second aspect and various possible designs of the second aspect.

[0153] In the seventh aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the gas anomaly detection method described in the first aspect and various possible designs of the first aspect is implemented.

[0154] In the eighth aspect, another embodiment of the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When the processor executes the computer execution instructions, the gas anomaly detection method described in the second aspect and various possible designs of the second aspect is implemented.

[0155] The gas anomaly detection method, device, equipment and storage medium provided in the present embodiment collect multiple flow values ​​within a preset sampling period, analyze the multiple flow values ​​to determine whether there is an anomaly, and if there is an anomaly, determine the type of the anomaly based on the multiple flow values, and can detect different types of anomalies, so that the gas anomaly detection has diversity and integration, and can detect whether the gas anomaly scene needs an alarm based on the multiple flow values ​​and the type of the anomaly, and if an alarm is required, determine the alarm type corresponding to the alarm. Therefore, the gas anomaly detection in the present application can detect multiple types of anomalies, and at the same time can not only accurately detect whether an alarm is issued but also detect the alarm type when an alarm is issued, thereby ensuring the safety of gas use. BRIEF DESCRIPTION OF THE DRAWINGS

[0156] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0157] Figure 1 A scene diagram of the gas anomaly detection method provided in an embodiment of the present application;

[0158] Figure 2 A flow chart of a gas anomaly detection method provided in an embodiment of the present application;

[0159] Figure 3 A flow chart of a gas anomaly detection method provided in another embodiment of the present application;

[0160] Figure 4 A flow chart of a gas anomaly detection method provided in another embodiment of the present application;

[0161] Figure 5 A flow chart of a gas anomaly detection method provided in another embodiment of the present application;

[0162] Figure 6 A flow chart of a gas anomaly detection method provided in yet another embodiment of the present application;

[0163] Figure 7 A flow chart of a gas anomaly detection method provided in another embodiment of the present application;

[0164] Figure 8 A flow chart of a gas anomaly detection method provided in another embodiment of the present application;

[0165] Fig. 9 A flow chart of a gas anomaly detection method provided in another embodiment of the present application;

[0166] Fig.10 A flow chart of a gas anomaly detection method provided in yet another embodiment of the present application;

[0167] Fig.11 A flow chart of a gas anomaly detection method provided in another embodiment of the present application;

[0168] Fig.12 A schematic diagram of the structure of a gas anomaly detection device provided in an embodiment of the present application;

[0169] Fig.13 A schematic diagram of the structure of a gas anomaly detection device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0170] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0171] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can, for example, be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0172] At present, there are two ways to detect gas anomalies in order to solve the problem of gas safety: gas alarm and shut-off valve. Among them, the gas alarm uses the catalytic principle to detect the gas concentration. When the concentration of gas in the air exceeds the set value, the detector will be triggered to alarm and send out an audible and visual alarm signal. However, the service life of the gas alarm is not long, it is easy to be polluted, and the alarm will be triggered immediately as long as it exceeds the set value. Since the concentration detection may fluctuate during the use of gas, it will cause false triggering and inaccurate detection. The shut-off valve is used for overcurrent control. When overcurrent occurs, the burner is cut off from the gas pipeline. However, the shut-off valve can only be used for overcurrent control, and the mechanical structure is not stable enough and is easily stuck or blocked. Therefore, the existing technology is single in detecting gas anomalies, and the detection is inaccurate, and thus cannot effectively ensure the safety of gas use.

[0173] Therefore, in response to the above problems, the technical concept of the present application is to collect multiple flow values ​​of the gas flow metering device within a sampling period, and through multi-dimensional combined judgment, it can be detected whether the gas flow metering device is leaking a small flow or having an overflow, and then determine whether to alarm the abnormal situation of the target gas device according to the type of abnormality detected and the flow value obtained by measurement, and at the same time, the abnormal situation of the target gas device is abnormally scheduled, and then the alarm type corresponding to the target gas device is determined. When the alarm triggering conditions and the alarm type are met, an alarm is initiated to the target terminal and carries the alarm type, so that relevant departments can make safety processing in time according to the alarm type. Since the detection is comprehensive, the safety of gas use can be guaranteed.

[0174] See also Figure 1 As shown, Figure 1A scenario diagram of a gas anomaly detection method provided in an embodiment of the present application, wherein the executor of the gas anomaly detection method may be a gas anomaly detection device 10, which is used to detect whether there is an anomaly in the gas device, and if there is an anomaly, simultaneously detect the type of anomaly; then, based on the detected data and the type of anomaly, determine whether to initiate an alarm to an associated terminal (i.e., a target terminal 20); while determining to initiate an alarm, determine the alarm type based on the detected data and the type of anomaly; then, the gas anomaly detection device 10 sends an alarm message carrying the alarm type to the target terminal 20, so that the target terminal 20 can safely and effectively process the alarm according to the alarm type, thereby ensuring the safety of using gas.

[0175] The technical solution of the present application is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0176] Figure 2 A flow chart of a gas leak detection method provided in an embodiment of the present application, the method may include:

[0177] S101. Collect multiple gas flow values ​​within a preset sampling period.

[0178] In this embodiment, the executing entity may be a gas anomaly detection device, which may communicate with a terminal device. When a gas anomaly is detected, the anomaly may be reported to the terminal device. The terminal device here may be a client (such as an application) on a user terminal on which the gas anomaly detection device is installed, or it may be a terminal used by relevant departments for gas leak maintenance, etc.

[0179] In practical applications, the gas anomaly detection device may include a collection device, which collects multiple flow values ​​measured by the target object, i.e., the gas flow metering device, within a preset sampling period. The multiple flow values ​​here may be collected at equal intervals or at unequal intervals within the preset sampling period, and are not specifically limited here. Among them, each flow value can be used to represent the flow generated per unit time within the corresponding sampling interval. The setting of the sampling period of flow metering under different metering principles may be different, which can be set according to the natural flow metering sampling period or manually set. For example, for a gas flow metering device based on a diaphragm metering principle, the sampling interval can be set to a single pulse interval, and each flow value is the flow of a single pulse interval. As for the calculation method of the gas flow value under different metering principles, it is not limited here. Those skilled in the art can obtain it according to conventional metering methods, which will not be repeated here.

[0180] S102: Determine whether there is a gas flow abnormality and the type of the flow abnormality according to the multiple flow values.

[0181] In this embodiment, based on multiple flow values, there are at least two ways to implement:

[0182] Method 1: determining the type of flow anomaly in the target gas device according to the number of flow values ​​within the first preset flow threshold range or within the second preset flow threshold range.

[0183] In a possible design, if the flow values ​​greater than the first number among the multiple flow values ​​are all within the first preset flow threshold range, and the number of flow values ​​within the second preset flow threshold range is less than the second number, it is determined that there is a slight flow leakage in the gas using device, and the type of the flow abnormality is a slight flow leakage.

[0184] In this embodiment, all or part of the flow values ​​among the multiple flow values ​​are compared with the first preset flow threshold range and the second preset flow threshold range respectively to determine whether each flow value is within the first preset flow threshold range or the second preset flow threshold range. If a first number of flow values ​​are within the first preset flow threshold range, and the number of flow values ​​within the second preset flow threshold range is less than the second number, it means that the type of the flow anomaly is a type that matches the first preset flow threshold range, that is, a small flow leakage.

[0185] In a possible design, if flow values ​​greater than or equal to a second number among the multiple flow values ​​are all within a second preset flow threshold range, it is determined that there is an overflow in the target gas device, and the type of the flow anomaly is overflow.

[0186] In this embodiment, for each flow value among the multiple flow values, it is compared with the first preset flow threshold range and the second preset flow threshold range respectively to determine whether each flow value is within the first preset flow threshold range or the second preset flow threshold range. If there are a second number of flow values ​​within the second preset flow threshold range, regardless of whether the number of flow values ​​within the first preset flow threshold range is greater than or equal to the first number, the type of flow anomaly is taken as the type under this scenario, that is, the type that matches the second preset flow threshold range: excessive flow.

[0187] Exemplarily, the number of multiple flow values ​​is 10, the first number may be greater than or equal to 7 (for example, the first number is 7), the second number may be greater than or equal to 3 (for example, the second number is 3), the first preset flow threshold range may be less than or equal to 0.04 L / h, and the second preset flow threshold range may be greater than or equal to 3.2 L / h.

[0188] Scenario 1: If a flow value is within the first preset flow threshold range, it can be preliminarily determined that there is a scenario of a small flow leakage. When 7 or more of the multiple flow values ​​are within the first preset flow threshold range, and the number of flow values ​​within the second preset flow threshold range is less than 3, and most of the multiple flow values ​​are distributed within the first preset flow threshold range, it means that the leakage type of the gas using device matches the first preset flow threshold range, that is, a small flow leakage.

[0189] Scenario 2: If a flow value is within the second preset flow threshold range, it can be preliminarily determined that the gas-using device has an overflow scenario. When 3 or more of the multiple flow values ​​are within the second preset flow threshold range, and the flow anomaly type that matches the second preset flow threshold range is overflow, it means that the flow anomaly scenario has a high risk of overflow. Therefore, it is determined that the flow anomaly type of the target gas device is overflow.

[0190] Method 2: Calculate at least two average flow values ​​based on multiple flow values, and determine the type of flow anomaly in the gas-using device by the number of average flow values ​​within the first preset flow threshold range or within the second preset flow threshold range. In actual applications, the calculation of the average flow value can be based on the comparison with different preset flow thresholds, and can be determined by different adjacent numbers or the same adjacent number, which is not limited here.

[0191] In a possible design, based on the multiple flow values, a fourth average flow value corresponding to a fourth adjacent preset number of flow values ​​and a fifth average flow value corresponding to a fifth adjacent preset number of flow values ​​are calculated; if the fourth average flow values ​​greater than or equal to the third number among the fourth average flow values ​​are all within a first preset flow threshold range, and the fifth average flow values ​​less than the fourth number among the fifth average flow values ​​are all within a second preset flow threshold range, it is determined that there is a small flow leakage in the gas using device, and the type of the flow abnormality is a small flow leakage.

[0192] In this embodiment, the fourth preset number and the fifth preset number may be equal or unequal. If they are equal, it is only necessary to calculate multiple average flow values ​​of one round, that is, the fourth average flow value and the fifth average flow value are correspondingly equal. When calculating the average flow value, a preset number of flow values ​​may be selected from multiple flow values ​​or all flow values, which is not limited here. It should be noted that if a preset number of flow values ​​is selected from multiple flow values, the number of average flow values ​​of the selected preset number of flow values ​​after the average value is calculated must be greater than or equal to the third number and the fourth number.

[0193] Specifically, if the fourth average flow values ​​that are greater than or equal to the third number among the fourth average flow values ​​are all within the first preset flow threshold range, and the fifth average flow values ​​that are less than the fourth number among the fifth average flow values ​​are all within the second preset flow threshold range, then most of the flow values ​​are distributed within the first preset flow threshold range, indicating that the type of the flow anomaly is a type that matches the first preset flow threshold range, that is, a small flow leakage.

[0194] In a possible design, based on the multiple flow values, a fourth average flow value corresponding to a fourth adjacent preset number of flow values ​​and a fifth average flow value corresponding to a fifth adjacent preset number of flow values ​​are calculated; if the fifth average flow values ​​that are greater than or equal to the fourth number among the fifth average flow values ​​are all within the second preset flow threshold range, it is determined that there is an overflow in the target gas device, and the type of the flow anomaly is an overflow leakage.

[0195] In this embodiment, the fifth average flow values ​​that are greater than or equal to the fourth number among the fifth average flow values ​​are all within the second preset flow threshold range. Regardless of whether the number of average flow values ​​within the first preset flow threshold range is greater than or equal to the third number, the type of flow anomaly is taken as the type under this scenario, that is, the type that matches the second preset flow threshold range: excess flow.

[0196] Exemplarily, the fourth preset number and the fifth preset number are not equal, for example, the fourth preset number is 2, and the fifth preset number is 3. According to multiple flow values, a preset number of flow values ​​are selected from the multiple flow values ​​in the order of collection, for example, the preset number is 7 (Q1-Q7), and for the 7 flow values, the average value of each adjacent two flow values ​​is calculated (for example, Q1+Q2, Q2+Q3, Q3+Q4, ... are calculated respectively) and the average value of each adjacent three flow values ​​is calculated (for example, Q1+Q2+Q3, Q2+Q3+Q4, Q3+Q4+Q5, ... are calculated respectively), and 6 fourth average flow values ​​and 5 fifth average flow values ​​are obtained accordingly. Among them, for example, the third number is 5 and the fourth number is 3.

[0197] The benefit of this type of calculation is that it can not only use the mean calculation method to avoid misjudgment caused by data fluctuations and improve the accuracy of judgment, but also reduce the requirement for the number of samples collected.

[0198] Example 1: If a certain average flow value is within the first preset flow threshold range, it can be preliminarily determined that there is a scenario of tiny flow leakage. When 5 or more of the multiple average flow values ​​are within the first preset flow threshold range, and the number of average flow values ​​within the second preset flow threshold range is less than 3, and most of the multiple average flow values ​​are distributed within the first preset flow threshold range, it indicates that the flow anomaly type existing in the target gas device is tiny flow leakage.

[0199] Example 2: If a certain average flow value is within the second preset flow threshold range, it can be preliminarily determined that the target gas device has an overflow scenario. When 3 or more of the multiple flow values ​​are within the second preset flow threshold range, and the abnormality type that matches the second preset flow threshold range is overflow, it means that the risk of overflow in the scenario is high. Therefore, it is determined that the abnormality type of the target gas device is overflow.

[0200] Therefore, regardless of the above method 1 or method 2, the type of leakage is determined based on multiple flow values, avoiding the misjudgment of the type of abnormality determined by a single value, so the method of determining the type of abnormality is more accurate. At the same time, the present application can also judge multiple abnormal types at the same time, such as small flow leakage, overflow, etc., which is different from the prior art that can only detect overflow or small flow leakage in a single way.

[0201] S103: Determine whether to issue an alarm and the alarm type according to the multiple flow values ​​and the type of flow anomaly.

[0202] In this embodiment, in combination with the type of flow anomaly, it is possible to determine whether to alarm by total flow or compliance rate based on multiple flow values; in combination with the type of flow anomaly, based on multiple flow values, the type of anomaly to which it belongs is graded, and different grades correspond to different alarm types, so that the alarm is targeted, and a basis can be provided for maintenance or emergency repair of abnormal gas use, and safety can be ensured. Among them, the alarm type is marked with an alarm code, and different alarm information can be identified by the alarm code.

[0203] The gas anomaly detection method provided in the present embodiment collects multiple flow values ​​within a preset sampling period, analyzes the multiple flow values, and determines whether there is a gas anomaly. If there is an anomaly, the type of the anomaly is determined based on the multiple flow values, and different types of anomalies can be detected, making the gas anomaly detection diverse. Moreover, it can detect whether the gas anomaly scenario requires an alarm based on the multiple flow values ​​and the type of the anomaly. If an alarm is required, the alarm type corresponding to the alarm is determined. Therefore, the gas anomaly detection in the present application can detect multiple types of anomalies, and can accurately detect not only whether an alarm is issued but also the alarm type when an alarm is issued, thereby ensuring the safety of gas use.

[0204] On the basis of the above embodiments, the determination of whether to alarm can be combined with different types of abnormalities. The following will describe in detail how to determine whether to alarm through two scenarios.

[0205] Scenario 11: The type of abnormality is a small flow leakage, and the total flow detection method is used to determine whether to alarm. This can be achieved by the following steps:

[0206] Step a1: Calculate the total flow rate within the preset sampling period according to the multiple flow values.

[0207] Step a2: When the total flow is greater than a preset total flow threshold, it is determined that an alarm event is triggered, and the alarm event is used to indicate that an alarm message carrying the alarm type is sent to the target terminal.

[0208] In this embodiment, if multiple flow values ​​collected within a preset sampling period are within the threshold range corresponding to a small flow leakage, since the flow value is too small, in order to ensure that the collected data is stable and accurate for determining whether to alarm and the alarm type, the collected flow values ​​are accumulated into the total flow rate, and the total flow value collected within the preset sampling period is calculated. If the total flow is greater than the preset total flow threshold, it means that the scene belongs to a gas leakage scene and the alarm condition is met. An alarm can be initiated to the target terminal. In order to facilitate the relevant personnel of the target terminal to reasonably handle or maintain the gas leakage, the alarm type corresponding to the gas leakage scene can be sent together when the alarm is initiated to ensure that the gas leakage situation can be handled in a timely and effective manner.

[0209] Scenario 12: The leakage type is a small flow leakage, and the compliance detection method is used to determine whether to alarm. This can be achieved by the following steps:

[0210] Step b1, select all or part of the multiple flow values, and compare them with the threshold values ​​corresponding to the target small flow level respectively. For each flow value, when it meets the threshold range corresponding to the target small flow level, the flow value is determined as a qualified sample.

[0211] Step b2, calculating the pass rate of the plurality of flow values ​​in the target micro flow range according to the number of qualified samples obtained by statistics and the number of the plurality of flow values;

[0212] Step b3: If the qualified rate is greater than or equal to the preset qualified rate, determining that an alarm event is triggered;

[0213] The alarm event is used to indicate that an alarm message carrying the alarm type is sent to a target terminal.

[0214] In this embodiment, by collecting multiple flow values ​​within a preset collection period, it is possible to analyze whether each flow value meets the target micro flow level, that is, whether each flow value is within the threshold range corresponding to the target micro flow level. The flow value within the threshold range corresponding to the target micro flow level is used as a qualified sample to provide a basis for whether the target micro flow level is a stable level. If the target micro flow level is stable, it can be confirmed that the micro flow level corresponding to the current leakage type has a high credibility, and an alarm can be triggered.

[0215] Specifically, by calculating the qualified rate of multiple flow values ​​in the target micro-flow file, it is determined whether the alarm condition is met. Wherein, qualified rate = the number of all qualified samples counted / the number of multiple flow values. When the qualified rate is greater than or equal to the preset qualified rate, it can be determined that the reliability of the target micro-flow file is high and the alarm condition is met, and an alarm event can be triggered to indicate that the alarm information carrying the alarm type is sent to the target terminal.

[0216] In one possible design, if the pass rate is less than the preset pass rate, repeat the following steps until the pass rate is greater than or equal to the preset pass rate or the number of preset sampling cycles reaches the preset number of cycles: collect multiple flow values ​​within the next preset sampling cycle, calculate the pass rate corresponding to the next preset sampling cycle, and if the pass rate is greater than or equal to the preset pass rate, determine that an alarm event is triggered.

[0217] In this embodiment, if the pass rate is less than the preset pass rate, in order to ensure accuracy, multiple flow values ​​of at least one preset sampling period can be repeatedly collected until the pass rate is greater than or equal to the preset pass rate or the number of preset sampling periods reaches the preset number of periods.

[0218] Specifically, multiple flow values ​​within the next preset sampling period are collected, and then the number of qualified samples and the qualified rate among the multiple flow values ​​within the preset sampling period are determined according to the above embodiment. When the qualified rate is greater than or equal to the preset qualified rate, it can be determined that the target micro-flow file has a high reliability and meets the alarm condition, and an alarm event can be triggered to indicate that an alarm message carrying the alarm type is sent to the target terminal. This process is similar to the process of the embodiment corresponding to the above steps b1 to b3, and will not be repeated here.

[0219] Scenario 13: The type of abnormality is a small flow leakage. The compliance rate combined with the total flow detection method is used to determine whether to alarm. This can be achieved by the following steps:

[0220] Step c1, select all or part of the multiple flow values, and compare them with the threshold values ​​corresponding to the target small flow level respectively. For each flow value, when it meets the threshold range corresponding to the target small flow level, the flow value is determined as a qualified sample.

[0221] Step c2: Calculate the pass rate of the plurality of flow values ​​in the target micro flow range according to the number of qualified samples obtained by statistics and the number of the plurality of flow values.

[0222] Step c3: if the qualified rate is greater than or equal to the preset qualified rate, the target small flow rate gear is determined to be a stable small flow rate gear.

[0223] Step c4: Calculate the total flow rate within the preset sampling period based on the multiple flow values.

[0224] Step c5: When the total flow is greater than a preset total flow threshold, it is determined that an alarm event is triggered, and the alarm event is used to indicate that an alarm message carrying the alarm type is sent to the target terminal.

[0225] In this embodiment, whether to alarm in this scenario is determined by combining the compliance rate and the total flow rate. Specifically, the number of qualified samples and the qualified rate in multiple flow values ​​can be determined first. When the qualified rate is greater than or equal to the preset qualified rate, it can be determined that the target micro-flow rate gear has stability. On this basis, in order to ensure accuracy, it is further determined whether the total flow rate meets the preset total flow rate threshold. If the qualified rate and the total flow rate both meet the corresponding alarm conditions, an alarm event can be triggered. Among them, the qualified rate can be used as a basis for whether the target micro-flow rate gear is stable. The calculation of the qualified rate is similar to the process of the embodiment corresponding to the above steps b1 to b2, which will not be repeated here. In this scenario, if the qualified rate is greater than or equal to the preset qualified rate, it means that the target micro-flow rate gear is a stable micro-flow rate gear. On this basis, if the total flow is greater than the preset total flow rate threshold, it means that the triggering alarm condition has been reached, and the alarm event can be triggered. Among them, the triggering process is the same as the triggering alarm event described in the above embodiment, which will not be repeated here.

[0226] Scenario 21: The type of abnormality is overflow. The type of abnormality determines whether to alarm. This can be achieved by the following steps:

[0227] If the type of the abnormality is overflow, it is determined that an alarm event is triggered; and the alarm event carries the alarm type.

[0228] In this embodiment, since the danger level of overflow is relatively high, in order to ensure safety, if the type of abnormality detected is overflow, an alarm event can be triggered, and the alarm type corresponding to the overflow can be sent to the target terminal, so that relevant personnel using the target terminal can deal with the gas abnormality in a timely and effective manner according to the alarm type.

[0229] Any of the above scenarios can trigger an alarm event to send an alarm message carrying the alarm type to the target terminal to ensure safety. Therefore, based on multiple flow values ​​and the type of the anomaly, the detection method for determining whether to alarm and the alarm type is not only comprehensive, but also can accurately trigger the alarm and carry the alarm type in the abnormal scenario, so that the relevant personnel using the target terminal can deal with the gas anomaly in a timely and effective manner according to the alarm type. It should be noted that the alarm event triggered here can be triggered by a gas flow metering device; it can also be triggered by the gas anomaly detection device sending the alarm information to the client of the gas user; it can also be triggered by the gas anomaly detection device uploading the alarm information to the server of the gas operating organization, and the alarm information can be uploaded to the server of the gas operating organization by the gas anomaly detection device; it can also be uploaded to the server of the gas operating organization by the client. It should be noted that there is no limitation on which device triggers the alarm event.

[0230] Similarly, in order to further ensure safety, you can customize whether to turn on the automatic valve shutoff function. If this function is turned on, when an abnormal situation is detected, the valve can be automatically shut off based on different abnormal scenarios. The operation of shutting off the valve can be controlled by the gas metering device or by the platform of the gas operation organization. There is no specific limitation here; if this function is not turned on, when an abnormal situation is detected, the valve can be manually shut off based on different abnormal scenarios.

[0231] Based on the above embodiments, the alarm type may be determined in combination with different abnormal types. The following describes in detail how to determine the alarm type through two scenarios.

[0232] Scenario 14: The type of abnormality is a small flow leakage. The alarm type is determined by the small flow rate setting.

[0233] In this scenario, how to determine the alarm type according to the multiple flow values ​​and the type of the abnormality can be achieved by the following steps:

[0234] Step d1: If the type of the abnormality is a small flow leakage, a preset number of flow values ​​are obtained from the multiple flow values, and a small flow setting is performed to obtain a corresponding target small flow setting.

[0235] Step d2: Determine the corresponding alarm type according to the target micro flow rate.

[0236] In this embodiment, a preset number of flow values ​​can be obtained from multiple flow values. The flow value selected here can be a flow value that meets the requirements of a small flow leakage or a randomly selected flow value, wherein the small flow level can be divided into at least three levels, such as small flow level 1 (the corresponding threshold range is less than 0.02L / h), small flow level 2 (the corresponding threshold range is greater than or equal to 0.02L / h and less than 0.03L / h) and small flow level 3 (the corresponding threshold range is greater than or equal to 0.03L / h and less than or equal to 0.04L / h). Different small flow levels correspond to different alarm types, and the alarm type is matched with an alarm code. According to the alarm code, the operation indicated by the alarm information can be identified, such as the alarm code corresponding to the small flow level 1 is used to indicate that the alarm information will be pushed every other day; the alarm code corresponding to the small flow level 2 is used to indicate that the alarm information will be pushed before going to work the next day; the alarm code corresponding to the small flow level 3 is used to indicate that the alarm information will be pushed immediately. Custom settings can be made according to different scenarios, and no specific limitations are made here, which is only exemplary.

[0237] Exemplarily, 7 flow values ​​are selected, and the selected 7 flow values ​​are compared with the threshold ranges corresponding to the micro-flow levels respectively, and the micro-flow level is determined based on the comparison results to determine the micro-flow level where the micro-flow leakage exists.

[0238] Among them, performing micro flow setting to obtain the corresponding target micro flow level can be achieved by at least the following two methods:

[0239] Method 1: directly comparing each flow value in the preset number of flow values ​​with the threshold range corresponding to each small flow level, which can be achieved by the following steps:

[0240] Step e1, comparing each flow value of the preset number of flow values ​​with the threshold range corresponding to each small flow rate level, to obtain first distribution data of the preset number of flow values ​​in each small flow rate level.

[0241] Step e2: according to the first distribution data, determine the micro flow rate level with the largest number of distributed flow values ​​in each micro flow rate level, and the micro flow rate level with the largest number of distributed flow values ​​is the target micro flow rate level.

[0242] In this embodiment, each flow value among the preset number of flow values ​​is compared with the threshold range corresponding to each small flow level to determine the threshold range that each flow value meets, and the number of flow values ​​within the threshold range corresponding to each small flow level is accumulated, i.e., the first distribution data. The first distribution data is used to represent the distribution of the number of flow values ​​of the preset number of flow values ​​that fall within the threshold range corresponding to each small flow level.

[0243] For example, 4 out of 7 flow values ​​meet the threshold range corresponding to the small flow level 1, 2 meet the threshold range corresponding to the small flow level 2, and 1 meets the threshold range corresponding to the small flow level 3. Since the number of distributed flow values ​​corresponding to the small flow level 1 is the largest, the small flow level 1 is used as the small flow level determined for the target gas device with a small flow leakage, that is, the target small flow level.

[0244] In another embodiment, according to the first distribution data, among the micro flow levels with flow value distribution, the micro flow level with the highest level and the number of distribution reaching a preset number can be defined as the target micro flow level.

[0245] For example, 4 out of 7 flow values ​​meet the threshold range corresponding to small flow level 1, 2 meet the threshold range corresponding to small flow level 2, and 1 meets the threshold range corresponding to small flow level 3. If the preset number is set to 2 or more, the number of flow values ​​distributed in small flow level 1 and small flow level 2 both meet the conditions. However, since the danger level corresponding to small flow level 2 is higher, small flow level 2 is used as the small flow level determined for the target gas device with small flow leakage, i.e., the target small flow level.

[0246] Method 2: Comparing the calculated average flow values ​​corresponding to the preset number of flow values ​​with the threshold range corresponding to each small flow level, which can be achieved by the following steps:

[0247] Step f1, calculate the first average flow value corresponding to the adjacent first preset number of flow values ​​in the preset number of flow values, and compare each first average flow value with the threshold range corresponding to each small flow level, to obtain the first distribution data of each first average flow value belonging to the small flow level in each small flow level.

[0248] Step f2: According to the first distribution data, determine the micro flow rate level with the largest number of distributed flow values ​​in each micro flow rate level, and the micro flow rate level with the largest number of distributed flow values ​​is the target micro flow rate level.

[0249] In this embodiment, multiple average values ​​are calculated for a preset number of flow values. The process may be to calculate the average value of the adjacent first preset number of flow values ​​according to the collection order of the preset number of flow values. The average value of each two adjacent flow values ​​is taken as an average flow value, i.e., the first average flow value. Then, the obtained multiple first average flow values ​​are respectively compared with the threshold range corresponding to each micro flow level to determine the threshold range that each average flow value complies with, and the number of average flow values ​​within the threshold range corresponding to each micro flow level is accumulated, i.e., the first distribution data. The first distribution data is used to indicate the distribution of the number of average flow values ​​of the first average flow value corresponding to the preset number of flow values ​​falling within the threshold range corresponding to each micro flow level.

[0250] For example, the preset number is 7, the first preset number is 2, and the number of average flow values ​​is 6. If 4 of the 6 first average flow values ​​meet the threshold range corresponding to the small flow level 1, 1 meets the threshold range corresponding to the small flow level 2, and 1 meets the threshold range corresponding to the small flow level 3, since the number of average flow values ​​distributed corresponding to the small flow level 1 is the largest, the small flow level 1 is used as the small flow level determined for the target gas device with a small flow leakage, that is, the target small flow level.

[0251] In another embodiment, according to the first distribution data, among the micro flow levels with average flow value distribution, the micro flow level with the highest level and the number of distributions reaching a preset number is the target micro flow level.

[0252] Scenario 22: The abnormal type is overflow. Based on multiple flow values, the alarm type is determined by directly comparing with the threshold range corresponding to each overflow level. The overflow level can include at least two levels, each level corresponding to a different threshold range and a different alarm type. For example, overflow level 1 (the corresponding threshold range can be greater than or equal to 3.2L / h and less than 4L / h) and overflow level 2 (the corresponding threshold range can be greater than or equal to 4L / h). This is achieved by at least two of the following methods:

[0253] Method 1: Determine the alarm type based on the distribution of multiple flow values ​​in each over-flow range. This can be achieved by the following steps:

[0254] Step g1: Compare the multiple flow values ​​with the threshold range corresponding to each excess flow level respectively, and obtain second distribution data of each flow value in the multiple flow values ​​in each excess flow level.

[0255] Step g2, according to the second distribution data, taking the alarm type corresponding to the over-flow level with the largest number of distributed flow values ​​as the alarm type corresponding to the target gas device;

[0256] In this embodiment, the multiple flow values ​​are compared with the threshold range corresponding to each overflow gear, or a preset number of flow values ​​can be selected from the multiple flow values ​​and compared with the threshold range corresponding to each overflow gear. For ease of understanding, taking the comparison of the multiple flow values ​​with the threshold range corresponding to each overflow gear as an example, the overflow gear that each flow value in the multiple flow values ​​meets is analyzed. For example, the number of multiple flow values ​​is 10, 7 flow values ​​meet overflow gear 1, that is, 7 flow values ​​are within the threshold range corresponding to overflow gear 1, and 3 flow values ​​meet overflow gear 2, that is, 3 flow values ​​are within the threshold range corresponding to overflow gear 2, indicating that the number of flow values ​​distributed in overflow gear 1 is the largest, and the alarm type corresponding to the overflow gear 1 is used as the alarm type corresponding to the target gas device.

[0257] In another embodiment, according to the second distribution data, among the overflow levels with flow value distribution, the alarm type corresponding to the overflow level with the highest level and the distribution number reaching a preset number can be used as the alarm type.

[0258] Method 2: Use multiple flow values ​​and use the higher rather than the lower principle to determine the alarm type. This can be achieved by following the steps below:

[0259] The maximum flow value among the multiple flow values ​​is compared with the threshold range corresponding to each overflow level, and the alarm type corresponding to the overflow level within the threshold range where the maximum flow value is located is used as the alarm type corresponding to the target gas device.

[0260] In this embodiment, in the scenario where the leakage type is an overflow leakage, once a higher flow value appears, it indicates that there is a higher level of potential safety hazard, and the alarm type can be determined based on the overflow level that the maximum flow value among multiple flow values ​​meets. For example, if the maximum flow value among multiple flow values ​​is within the threshold range corresponding to overflow level 2, it indicates that there is a higher level of potential safety hazard in the gas leakage scenario. In order to ensure safety, the overflow level within the threshold range where the maximum flow value is located, such as the alarm type corresponding to overflow level 2, can be used as the alarm type corresponding to the target gas device.

[0261] Scenario 23: The abnormal type is overflow. Based on multiple flow values, multiple average flow values ​​are determined, and then the multiple average flow values ​​are compared with the threshold ranges corresponding to each overflow level to determine the alarm type. The description of the overflow level here is the same as that of Scenario 22 and will not be repeated here.

[0262] Method 1: Determine the alarm type by the distribution of multiple average flow values ​​in each over-flow range. This can be achieved by the following steps:

[0263] Step h1: Calculate a second average flow value corresponding to a second preset number of adjacent flow values ​​according to the multiple flow values.

[0264] Step h2: Compare each second average flow value with the threshold range corresponding to each excess flow level to obtain second distribution data of each second average flow value in each excess flow level.

[0265] Step h3: determine the flow rate level with the largest number of flow values ​​distributed among the flow rate levels according to the second distribution data, and use the alarm type corresponding to the flow rate level with the largest number of flow values ​​distributed as the alarm type corresponding to the target gas device.

[0266] In this embodiment, the average value of each adjacent second preset number of flow values ​​in the multiple flow values ​​can be taken, or a preset number of flow values ​​can be selected from the multiple flow values, and then the average value of each adjacent second preset number of flow values ​​in the preset number of flow values ​​is taken, which is not limited here. For ease of understanding, taking the example of selecting a preset number of flow values ​​from the multiple flow values, the average value of each adjacent second preset number of flow values ​​is taken to obtain multiple second average flow values, and then the multiple second average flow values ​​are compared with the threshold range corresponding to each excess flow gear to determine the distribution of the multiple second average flow values ​​in each excess flow gear. For example, if the preset number is 7 and the second preset number is 3, the average value of each adjacent three flow values ​​is taken to obtain 5 second average flow values, and then the 5 second average flow values ​​are respectively compared with the threshold range corresponding to each excess flow gear to determine the distribution of the 5 second average flow values ​​in each excess flow gear. The specific comparison and type determination process is similar to step g1 to step g2, and will not be repeated here.

[0267] Method 2: Use multiple average flow values ​​and use the higher rather than the lower principle to determine the alarm type. This can be achieved by following the steps below:

[0268] Step i1: Calculate a second average flow value corresponding to a second preset number of adjacent flow values ​​according to the multiple flow values.

[0269] Step i2: compare the maximum average flow value among the second average flow values ​​with the threshold range corresponding to each overflow level, and use the alarm type corresponding to the overflow level whose maximum average flow value meets the threshold range as the alarm type corresponding to the target gas device.

[0270] The process of calculating the second average flow value corresponding to the second preset number of adjacent flow values ​​in step i1 is the same as that in step h1, which will not be repeated here.

[0271] In this embodiment, the maximum average flow value among each second average flow value is compared with the threshold range corresponding to each overflow level. Similar to the process of method 2 in the above scenario 22, the alarm type corresponding to the overflow level that the maximum value meets is used as the alarm type corresponding to the target gas device. The difference is that in this method, the alarm type corresponding to the overflow level within the threshold range where the maximum value among each second average flow value is located is used as the alarm type corresponding to the target gas device. The specific comparison process is not repeated here.

[0272] Alternatively, in the overflow level with average flow value distribution, the alarm type corresponding to the overflow level with the highest level and the distribution number reaching a preset number may be used as the alarm type.

[0273] Scenario 24: Determine the alarm type based on any average flow value among multiple average flow values. This can be achieved by the following steps:

[0274] Step j1: Calculate a third average flow value corresponding to a third preset number of adjacent flow values ​​according to the plurality of flow values.

[0275] Step j2, obtain the target third average flow value from each third average flow value, compare the target third average flow value with the threshold range corresponding to each overflow level, and use the alarm type corresponding to the overflow level within the threshold range where the target third average flow value is located as the alarm type corresponding to the target gas device.

[0276] Among them, the process of calculating the third average flow value corresponding to the third adjacent preset number of flow values ​​in step j1 is the same as the calculation process in steps h1 and i1. The difference may be the adjacent preset number, but it can also be the same as the first preset number and / or the first preset number, which is not specifically limited here.

[0277] In this embodiment, any third average flow value is obtained from each third average flow value as the target third average flow value, and the alarm type corresponding to the overflow level within the threshold range where the target third average flow value is located is used as the alarm type corresponding to the target gas device. For example, according to the acquisition order, the average flow value corresponding to the first three flow values ​​among the multiple flow rates collected is used as the target third average flow value, and then the threshold range where the target third average flow value is located is determined, and the overflow level corresponding to the corresponding threshold range is used as the target overflow level, and the alarm type corresponding to the target overflow level is used as the final alarm type.

[0278] It should be noted that any of the above scenarios and the corresponding real-time methods under the scenarios can be arbitrarily combined to determine whether to alarm and the type of alarm, so as to achieve diverse and accurate detection of gas anomaly types.

[0279] The following embodiments are used to describe in detail the implementation process of the gas anomaly detection method, which is only exemplary and not limited to the following embodiments. For ease of understanding, the flow rate Qt of a single pulse interval obtained within a sampling period is taken as an example to describe in detail the following embodiments.

[0280] Among them, scenario 1 is the process of determining whether the type of abnormality is a small flow leakage; scenario 11 is the process of determining whether to alarm through the total flow detection method based on scenario 1; scenario 12 is the process of determining whether to alarm through the compliance rate detection method based on scenario 1; scenario 13 is the process of determining whether to alarm through the compliance rate combined with the total flow detection method based on scenario 1; scenario 14 is the process of determining the alarm type through the small flow setting based on scenario 1; scenario 2 is the process of determining the type of abnormality as an excessive flow leakage; scenario 21 is the process of determining whether to alarm through the type of abnormality based on scenario 2; scenario 22 is the process of directly comparing the threshold range corresponding to each excessive flow file based on multiple flow values ​​to determine the alarm type based on scenario 2; scenario 23 is the process of determining multiple average flow values ​​based on multiple flow values ​​based on scenario 2, and then comparing the multiple average flow values ​​with the threshold range corresponding to each excessive flow file to determine the alarm type based on the multiple average flow values; scenario 24 is the process of determining the alarm type based on scenario 2 according to any average flow value among the multiple average flow values. The following embodiments can be freely combined and are illustrated by the following examples:

[0281] Embodiment 1: Combination of Scenario 1, Scenario 11, Scenario 14, Scenario 2, Scenario 21 and Scenario 22, see Figure 3 shown.

[0282] Embodiment 2: Combining Scenario 1, Scenario 12, Scenario 14, Scenario 2, Scenario 21 and Scenario 22, see Figure 4 shown.

[0283] Embodiment 3: Combining Scenario 1, Scenario 13, Scenario 14, Scenario 2, Scenario 21 and Scenario 22, see Figure 5 shown.

[0284] Embodiment 4: Combining Scenario 1, Scenario 11, Scenario 14, Scenario 2, Scenario 21 and Scenario 23, see Figure 6 shown.

[0285] Embodiment 5: Combining Scenario 1, Scenario 12, Scenario 14, Scenario 2, Scenario 21 and Scenario 23, see Figure 7 shown.

[0286] Embodiment 6: Combining Scenario 1, Scenario 13, Scenario 14, Scenario 2, Scenario 21 and Scenario 23, see Figure 8shown.

[0287] Embodiment 7: Combining Scenario 1, Scenario 11, Scenario 14, Scenario 2, Scenario 21 and Scenario 24, see Fig. 9 shown.

[0288] Embodiment 8: Combining Scenario 1, Scenario 12, Scenario 14, Scenario 2, Scenario 21 and Scenario 24, see Fig.10 shown.

[0289] Embodiment 9: Combining Scenario 1, Scenario 13, Scenario 14, Scenario 2, Scenario 21 and Scenario 24, see Fig.11 shown.

[0290] The gas anomaly detection method provided in the embodiment of the present application can also be implemented by the following steps:

[0291] S201, obtaining a single flow rate within a single collection cycle;

[0292] S202, comparing the acquired single flow with at least two preset flow thresholds to obtain the flow level to which the single flow belongs;

[0293] S203: When the single flow rate meets the preset rules, the corresponding alarm information is determined and sent according to the acquired flow values ​​of the multiple single flows and / or the distribution information of the flow levels to which they belong.

[0294] In this method, the single collection period may correspond to the above-mentioned sampling period, a single flow rate may correspond to a single flow rate value; and the flow rate level may correspond to the above-mentioned flow rate level.

[0295] The preset rules may select one or more combinations of micro-current compliance, over-current compliance, and qualified rate compliance based on the requirements.

[0296] In addition, the abnormality can be judged based on the detection of single flow and combined with the total amount measurement.

[0297] The various preset rules and the implementation methods of their combinations have been described above and will not be repeated here.

[0298] The gas anomaly detection device of the present application has the functions of preventing leakage (the total amount control method can be adopted to judge the flow rate of the gas meter to 0.04L / h as leakage), preventing overflow (the total amount control method is adopted to output an event, i.e., an alarm event, when the gas flow is detected to exceed the specified threshold), early warning classification mechanism (according to user needs, micro-flow and overflow can be reported in a graded manner, such as reporting alarm codes), different scene settings (the system can select the corresponding processing method according to the different levels of alarms reported, and notify the user and the emergency repair department), identification and mechanism of different gas usage states (the total amount control method is used to judge the leakage of the gas meter. If the user uses the gas normally during the leakage, the normal use of the gas needs to be filtered out to ensure the accuracy of the monitoring results). Therefore, the gas anomaly detection device in the present application has a gas metering function and a remote control function. By linking with the background system, gas anomaly detection and alarm can be realized.

[0299] In order to implement the gas anomaly detection method, this embodiment provides a gas anomaly detection device. Fig.12 , Fig.12 A schematic diagram of the structure of a gas anomaly detection device provided in an embodiment of the present application; the gas anomaly detection device comprises: an acquisition module 1201, used to collect multiple flow values ​​of a gas flow metering device within a preset sampling period; a determination module 1202, used to determine the type of leakage based on the multiple flow values; an alarm processing module 1203, used to determine whether to alarm and the type of alarm based on the multiple flow values ​​and the type of anomaly.

[0300] In this embodiment, multiple flow values ​​of the target gas device within a preset sampling period are collected and analyzed to determine whether there is an abnormality in the target gas device. If there is an abnormality, the type of abnormality is determined based on the multiple flow values, and different types of abnormalities can be detected, making the gas abnormality detection diverse. Moreover, it can be determined whether to alarm and the alarm type based on the multiple flow values ​​and the type of the abnormality, and it can be detected whether the gas abnormality scenario requires an alarm. If an alarm is required, the alarm type corresponding to the alarm is determined. Therefore, the gas abnormality detection in the present application can detect multiple types of abnormalities, and at the same time can not only accurately detect whether to alarm but also detect the alarm type when the alarm is triggered, thereby ensuring the safety of gas use.

[0301] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.

[0302] In a possible design, the alarm processing module 1203, when determining the alarm type according to the multiple flow values ​​and the type of the abnormality, is specifically used to:

[0303] If the type of the abnormality is a small flow leakage, a preset number of flow values ​​are obtained from the multiple flow values, and a small flow setting is performed to obtain a corresponding target small flow setting;

[0304] According to the target small flow rate, the corresponding alarm type is determined.

[0305] In a possible design, when the alarm processing module 1203 performs micro-flow setting and obtains the corresponding target micro-flow level, it is specifically used to:

[0306] Compare each flow value in the preset number of flow values ​​with the threshold range corresponding to each small flow level, and obtain first distribution data of the preset number of flow values ​​in each small flow level; or calculate the first average flow value corresponding to the first preset number of adjacent flow values ​​in the preset number of flow values, and compare each first average flow value with the threshold range corresponding to each small flow level, and obtain first distribution data of each first average flow value belonging to the small flow level in each small flow level;

[0307] According to the first distribution data, the micro-flow level with the largest number of distributed flow values ​​is determined among all micro-flow levels, and the micro-flow level with the largest number of flow values ​​is the target micro-flow level; or, among the micro-flow levels with flow value distribution, the micro-flow level with a distribution number that reaches a preset number and has the highest level is the target micro-flow level.

[0308] In a possible design, when the alarm processing module 1203 determines whether to alarm according to the multiple flow values ​​and the type of the abnormality, it is specifically used to:

[0309] If the type of the abnormality is a small flow leakage, the total flow of the target gas device within the preset sampling period is calculated based on the multiple flow values;

[0310] When the total flow is greater than a preset total flow threshold, it is determined that an alarm event is triggered, and the alarm event is used to indicate that an alarm message carrying the alarm type is sent to the target terminal.

[0311] In a possible design, when the alarm processing module 1203 determines whether to alarm according to the multiple flow values ​​and the type of the abnormality, it is specifically used to:

[0312] For all or part of the plurality of flow values, if the flow value is within a threshold range corresponding to the target micro flow level, the flow value is determined to be a qualified sample;

[0313] Calculating the qualified rate of the plurality of flow values ​​in the target micro flow range according to the number of qualified samples obtained by statistics and the number of the plurality of flow values;

[0314] If the qualified rate is greater than or equal to the preset qualified rate, determining to trigger an alarm event;

[0315] The alarm event is used to indicate that an alarm message carrying the alarm type is sent to a target terminal.

[0316] In a possible design, the alarm processing module 1203 is further used to:

[0317] If the pass rate is less than the preset pass rate, repeat the following steps until the pass rate is greater than or equal to the preset pass rate or the number of preset sampling cycles reaches the preset number of cycles:

[0318] Collect multiple flow values ​​within the next preset sampling period, calculate the pass rate corresponding to the next preset sampling period, and if the pass rate is greater than or equal to the preset pass rate, determine that an alarm event is triggered.

[0319] In a possible design, when the alarm processing module 1203 determines whether to alarm according to the multiple flow values ​​and the type of the abnormality, it is specifically used to:

[0320] For all or part of the plurality of flow values, if the flow value is within a threshold range corresponding to the target micro flow level, the flow value is determined to be a qualified sample;

[0321] Calculating the pass rate of the plurality of flow values ​​in the target micro flow range according to the number of qualified samples obtained by statistics and the number of the plurality of flow values;

[0322] If the qualified rate is greater than or equal to the preset qualified rate, the target small flow rate gear is determined to be a stable small flow rate gear;

[0323] Calculating the total flow of the target gas device within the preset sampling period according to the multiple flow values;

[0324] When the total flow is greater than a preset total flow threshold, it is determined that an alarm event is triggered, and the alarm event is used to indicate that an alarm message carrying the alarm type is sent to the target terminal.

[0325] In a possible design, when the alarm processing module 1203 determines whether to alarm according to the multiple flow values ​​and the type of the abnormality, it is specifically used to:

[0326] If the type of the abnormality is overflow, determining to trigger an alarm event;

[0327] The alarm event carries the alarm type.

[0328] In a possible design, when determining the alarm type according to the multiple flow values ​​and the type of the abnormality, the alarm processing module 1203 is specifically used to:

[0329] Comparing all or part of the multiple flow values ​​with the threshold range corresponding to each over-flow level, respectively, to obtain second distribution data of the flow values ​​belonging to the over-flow level among the multiple flow values ​​in each over-flow level; according to the second distribution data, taking the alarm type corresponding to the over-flow level with the largest number of distributed flow values ​​as the corresponding alarm type;

[0330] Alternatively, in the over-flow level with flow value distribution, the alarm type corresponding to the over-flow level with the highest level and the number of distribution reaching the preset number is used as the alarm type; or,

[0331] The maximum flow value among the multiple flow values ​​is compared with the threshold range corresponding to each overflow level, and the alarm type corresponding to the overflow level within the threshold range where the maximum flow value is located is used as the alarm type corresponding to the target gas device.

[0332] In a possible design, when determining the alarm type according to the multiple flow values ​​and the type of the abnormality, the alarm processing module 1203 is specifically used to:

[0333] Calculating a second average flow value corresponding to a second preset number of adjacent flow values ​​according to the plurality of flow values;

[0334] Compare each second average flow value with the threshold range corresponding to each excess flow level, and obtain second distribution data of the second average flow value belonging to the excess flow level in each excess flow level;

[0335] According to the second distribution data, determining the overflow level having the largest number of second average flow values ​​distributed among the overflow levels, and taking the alarm type corresponding to the overflow level having the largest number of second average flow values ​​distributed as the corresponding alarm type;

[0336] Alternatively, in the overflow level with the second average flow value distribution, the alarm type corresponding to the overflow level with the highest level and the number of distributions reaching the preset number is used as the alarm type; or,

[0337] The maximum average flow value among the second average flow values ​​is compared with the threshold range corresponding to each overflow level, and the alarm type corresponding to the overflow level within the threshold range where the maximum average flow value is located is used as the alarm type corresponding to the target gas device.

[0338] In a possible design, when determining the alarm type according to the multiple flow values ​​and the type of the abnormality, the alarm processing module 1203 is specifically used to:

[0339] Calculating, according to the plurality of flow values, a third average flow value corresponding to a third preset number of adjacent flow values;

[0340] Obtain a target third average flow value from each third average flow value, compare the target third average flow value with the threshold range corresponding to each excess flow level, and use the alarm type corresponding to the excess flow level within the threshold range where the target third average flow value is located as the alarm type.

[0341] In a possible design, the determining module 1202 is specifically configured to:

[0342] Determine whether there is a gas flow abnormality and the type of flow abnormality by at least one of the following:

[0343] If the flow values ​​greater than or equal to the first number among the multiple flow values ​​are all within the first preset flow threshold range, and the number of flow values ​​within the second preset flow threshold range is less than the second number, it is determined that there is a gas flow anomaly, and the type of the flow anomaly is a small flow leakage;

[0344] If the flow values ​​greater than or equal to the second number among the plurality of flow values ​​are all within the second preset flow threshold range, it is determined that there is a gas flow abnormality, and the type of the flow abnormality is an overflow;

[0345] According to the multiple flow values, a fourth average flow value corresponding to a fourth preset number of adjacent flow values ​​and a fifth average flow value corresponding to a fifth preset number of adjacent flow values ​​are calculated; if the fourth average flow values ​​greater than or equal to the third number among the fourth average flow values ​​are all within the first preset flow threshold range, and the fifth average flow values ​​less than the fourth number among the fifth average flow values ​​are all within the second preset flow threshold range, it is determined that there is a gas flow anomaly, and the type of the flow anomaly is a small flow leakage;

[0346] Based on the multiple flow values, a fourth average flow value corresponding to a fourth preset number of adjacent flow values ​​and a fifth average flow value corresponding to a fifth preset number of adjacent flow values ​​are calculated. If the fourth average flow values ​​greater than or equal to the fourth number among the fifth average flow values ​​are all within the second preset flow threshold range, it is determined that there is a gas flow abnormality, and the type of the flow abnormality is overflow.

[0347] In another embodiment, the gas anomaly detection device provided by the present application includes:

[0348] The collection module is used to obtain a single flow in a single collection cycle;

[0349] A determination module, used for comparing the acquired single flow with at least two preset flow thresholds to obtain the flow level to which the single flow belongs;

[0350] The alarm processing module is used to determine and send corresponding alarm information when the single flow meets the preset rules based on the acquired flow values ​​of multiple single flows and / or the distribution information of the flow levels to which they belong.

[0351] In a possible design, the determination module is also used to obtain the total flow rate based on the acquired single flow measurement; the alarm processing module is also used to determine and send the corresponding alarm information when the single flow and the total flow rate both meet the preset rules, based on the flow values ​​of the multiple single flows acquired during the total flow measurement period, and / or the flow level distribution information to which the flow values ​​of the multiple single flows belong.

[0352] In a possible design, the at least two flow thresholds include a first flow threshold and a second flow threshold, wherein the second flow threshold is less than the first flow threshold, and the determination module is further used to:

[0353] According to the set at least two flow thresholds, at least two corresponding threshold intervals are obtained, and different threshold intervals correspond to different flow levels;

[0354] Determining whether the single flow rate is less than or equal to the first flow rate threshold;

[0355] If yes, further determining whether the single flow rate is less than or equal to the second flow rate threshold;

[0356] Determine the threshold interval to which the single flow belongs according to the comparison result of the single flow with the first flow threshold and the second flow threshold, and obtain the flow level to which the single flow belongs;

[0357] The obtaining of the total flow amount according to the obtained single flow measurement specifically includes: when the obtained single flow is less than or equal to the first flow threshold, accumulating the single flow to obtain the total flow amount.

[0358] In a possible design, the acquisition module is further used for:

[0359] When the acquired single flow rate is less than or equal to the first flow rate threshold, the current flow rate at each moment is collected at different moments within a predetermined period;

[0360] The determination module is further configured to compare each current flow rate with the first flow rate threshold and / or the second flow rate threshold;

[0361] Determine whether the proportion of the multiple current flows that is less than or equal to the first flow threshold reaches a predetermined proportion, and / or whether the distribution of flow levels to which the multiple current flows belong meets the predetermined situation. If so, control the alarm processing module to determine the corresponding alarm information and send it.

[0362] In one possible design, when the determination module determines whether the proportion of the multiple current flows that is less than or equal to the first flow threshold reaches a predetermined proportion, and / or whether the distribution of the flow levels to which the multiple current flows belong meets the predetermined situation, and the result is no, and it is determined that the acquired single flow is less than or equal to the first flow threshold, the acquisition module again collects the current flow at each moment at different moments within a predetermined certain period, and the determination module is also used to accumulate the number of times the acquisition module executes the collection of the current flow at each moment at different moments within a predetermined certain period. When the number of executions reaches a preset value, the acquisition module re-acquires the single flow in the next acquisition period.

[0363] In one possible design, each flow level corresponds to a different alarm type; the alarm processing module determines the corresponding alarm information based on the acquired flow values ​​of multiple single flows and / or the distribution information of the flow levels to which they belong, which specifically includes: when the flow values ​​of the multiple single flows and / or the flow levels to which they belong are distributed in multiple flow levels, the corresponding alarm type is determined based on the highest flow level among the multiple flow levels or the flow level with the most distribution of single flow values.

[0364] In one possible design, the determining module is further used to:

[0365] After obtaining the single flow each time, calculating the average value of at least two most recent single flows;

[0366] Compare the acquired traffic average value with at least two preset traffic thresholds to obtain the traffic level to which the traffic average value belongs, and calculate the number of times the traffic meets the preset rules;

[0367] When the number of times the preset rules are met is greater than the set threshold, the alarm processing module is controlled to send the corresponding alarm information.

[0368] In order to implement the gas anomaly detection method, this embodiment provides a gas anomaly detection device. Fig.13 This is a schematic diagram of the structure of the gas anomaly detection device provided in the embodiment of the present application. Fig.13As shown, the gas anomaly detection device of this embodiment includes: a processor 1301 and a memory 1302; wherein the memory 1302 is used to store computer-executable instructions; the processor 1301 is used to execute the computer-executable instructions stored in the memory to implement the various steps performed in the above embodiment. For details, please refer to the relevant description in the above method embodiment.

[0369] The embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the gas anomaly detection method as described above is implemented.

[0370] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms. In addition, each functional module in each embodiment of the present application can be integrated into a processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The unit composed of the above modules can be implemented in the form of hardware or in the form of hardware plus software functional units.

[0371] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present application. It should be understood that the above-mentioned processor can be a central processing unit (English: Central Processing Unit, referred to as: CPU), or other general-purpose processors, digital signal processors (English: Digital Signal Processor, referred to as: DSP), application-specific integrated circuits (English: Application Specific Integrated Circuit, referred to as: ASIC), etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the invention can be directly embodied as a hardware processor to be executed, or the hardware and software modules in the processor can be combined and executed.

[0372] The memory may include high-speed RAM memory, and may also include non-volatile storage NVM, such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a disk or an optical disk, etc. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus. The above-mentioned storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a disk or an optical disk. The storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0373] An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the storage medium can also exist as discrete components in an electronic device or a main control device.

[0374] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0375] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements 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 application.

Claims

1. A method for detecting gas anomalies, characterized in that: include: Collect multiple gas flow values ​​within a preset sampling period; Determining whether there is a gas flow abnormality and the type of the flow abnormality according to the multiple flow values; Determine whether to alarm and the alarm type according to the multiple flow values ​​and the type of flow anomaly; The determining whether to alarm according to the multiple flow values ​​and the type of the flow anomaly includes: If the type of the flow anomaly is overflow, determining to trigger an alarm event; The alarm event carries the alarm type; The step of determining the alarm type according to the multiple flow values ​​and the type of the flow anomaly includes: Compare all or part of the multiple flow values ​​with the threshold range corresponding to each over-flow gear respectively, and obtain second distribution data of the flow values ​​belonging to the over-flow gear among the multiple flow values ​​in each over-flow gear; according to the second distribution data, take the alarm type corresponding to the over-flow gear with the largest number of distributed flow values ​​as the corresponding alarm type; or, among the over-flow gears with flow value distribution, take the alarm type corresponding to the over-flow gear with the highest level and the number of distribution reaching a preset number as the alarm type; or, The maximum flow value among the multiple flow values ​​is compared with the threshold range corresponding to each over-flow level, and the alarm type corresponding to the over-flow level within the threshold range where the maximum flow value is located is used as the alarm type.

2. The method according to claim 1, characterized in that The step of determining the alarm type according to the multiple flow values ​​and the type of the flow anomaly includes: If the type of the flow anomaly is a small flow leakage, a small flow level is set according to the multiple flow values ​​to obtain a corresponding target small flow level; According to the target small flow rate, the corresponding alarm type is determined.

3. The method according to claim 1 or 2, characterized in that: The determining whether to alarm according to the multiple flow values ​​and the type of the flow anomaly includes: If the type of the flow anomaly is a small flow leakage, the total flow within the preset sampling period is calculated based on the multiple flow values; When the total flow is greater than a preset total flow threshold, it is determined that an alarm event is triggered, and the alarm event is used to indicate that an alarm message carrying the alarm type is sent to the target terminal.

4. The method according to claim 2, characterized in that: The determining whether to alarm according to the multiple flow values ​​and the type of the flow anomaly includes: Selecting all or part of the plurality of flow values, and if any one of the plurality of flow values ​​is within a threshold range corresponding to the target micro flow level, determining the single flow value as a qualified sample; Calculating the qualified rate of the plurality of flow values ​​in the target micro flow range according to the number of qualified samples obtained by statistics and the number of the plurality of flow values; If the qualified rate is greater than or equal to the preset qualified rate, determining to trigger an alarm event; The alarm event is used to indicate that an alarm message carrying the alarm type is sent to a target terminal.

5. The method according to claim 4, characterized in that Also includes: If the pass rate is less than the preset pass rate, repeat the following steps until the pass rate is greater than or equal to the preset pass rate or the number of preset sampling cycles reaches the preset number of cycles: Collect multiple flow values ​​within the next preset sampling period, calculate the pass rate corresponding to the next preset sampling period, and if the pass rate is greater than or equal to the preset pass rate, determine that an alarm event is triggered.

6. The method according to claim 2, characterized in that The determining whether to alarm according to the multiple flow values ​​and the type of the flow anomaly includes: Selecting all or part of the plurality of flow values, and if any one of the plurality of flow values ​​is within a threshold range corresponding to the target micro flow level, determining the single flow value as a qualified sample; Calculating the pass rate of the plurality of flow values ​​in the target micro flow range according to the number of qualified samples obtained by statistics and the number of the plurality of flow values; If the qualified rate is greater than or equal to the preset qualified rate, the target small flow rate gear is determined to be a stable small flow rate gear; Calculating the total flow rate within the preset sampling period according to the multiple flow values; When the total flow is greater than a preset total flow threshold, it is determined that an alarm event is triggered, and the alarm event is used to indicate that an alarm message carrying the alarm type is sent to the target terminal.

7. The method according to claim 1, characterized in that The step of determining the alarm type according to the multiple flow values ​​and the type of the flow anomaly includes: Calculating, according to the plurality of flow values, a second average flow value corresponding to a second preset number of adjacent flow values; Compare each second average flow value with the threshold range corresponding to each excess flow level, and obtain second distribution data of the second average flow value belonging to the excess flow level in each excess flow level; According to the second distribution data, the flow rate level with the largest number of second average flow values ​​distributed in each flow rate level is determined, and the alarm type corresponding to the flow rate level with the largest number of second average flow values ​​distributed is used as the alarm type; or, among the flow rates with the second average flow value distribution, the alarm type corresponding to the flow rate level with the highest level and the number of distribution reaching a preset number is used as the alarm type; or, The maximum average flow value among the second average flow values ​​is compared with the threshold range corresponding to each overflow level, and the alarm type corresponding to the overflow level within the threshold range where the maximum average flow value is located is used as the alarm type.

8. The method according to claim 1, characterized in that The step of determining the alarm type according to the multiple flow values ​​and the type of the flow anomaly includes: Calculating, according to the plurality of flow values, a third average flow value corresponding to a third preset number of adjacent flow values; Obtain a target third average flow value from each third average flow value, compare the target third average flow value with the threshold range corresponding to each excess flow level, and use the alarm type corresponding to the excess flow level within the threshold range where the target third average flow value is located as the alarm type.

9. The method according to claim 1, characterized in that: The determining, based on the multiple flow values, whether there is a gas flow abnormality and the type of the flow abnormality includes at least one of the following: If the flow values ​​greater than or equal to the first number among the multiple flow values ​​are all within the first preset flow threshold range, and the number of flow values ​​within the second preset flow threshold range is less than the second number, it is determined that there is a gas flow abnormality, and the type of the flow abnormality is a small flow leakage; If the flow values ​​greater than or equal to the second number among the plurality of flow values ​​are all within the second preset flow threshold range, it is determined that there is a gas flow abnormality, and the type of the flow abnormality is an overflow; According to the multiple flow values, a fourth average flow value corresponding to a fourth preset number of adjacent flow values ​​and a fifth average flow value corresponding to a fifth preset number of adjacent flow values ​​are calculated; if the fourth average flow values ​​greater than or equal to the third number among the fourth average flow values ​​are all within the first preset flow threshold range, and the fifth average flow values ​​less than the fourth number among the fifth average flow values ​​are all within the second preset flow threshold range, it is determined that there is a gas flow anomaly, and the type of the flow anomaly is a small flow leakage; Based on the multiple flow values, a fourth average flow value corresponding to a fourth preset number of adjacent flow values ​​and a fifth average flow value corresponding to a fifth preset number of adjacent flow values ​​are calculated. If the fourth average flow values ​​greater than or equal to the fourth number among the fifth average flow values ​​are all within the second preset flow threshold range, it is determined that there is a gas flow abnormality, and the type of the flow abnormality is overflow.

10. A method for detecting gas anomalies, characterized in that: include: Get a single flow in a single collection cycle; Compare the acquired single flow with at least two preset flow thresholds to obtain the flow level to which the single flow belongs; When the single flow rate meets the preset rules, the corresponding alarm information is determined and sent according to the obtained flow value of one or more single flows and / or the distribution information of the flow level to which it belongs; The method further comprises: Obtaining a total flow rate according to the obtained single flow rate measurement; When both the single flow and the total flow meet the preset rules, the corresponding alarm information is determined and sent according to the flow values ​​of the multiple single flows obtained during the total flow measurement period and / or the flow level distribution information to which the flow values ​​of the multiple single flows belong; The at least two flow thresholds include a first flow threshold and a second flow threshold, wherein the second flow threshold is less than the first flow threshold, and the comparison of the acquired single flow with the preset at least two flow thresholds to obtain the flow level to which the single flow belongs specifically includes: According to the set at least two flow thresholds, at least two corresponding threshold intervals are obtained, and different threshold intervals correspond to different flow levels; Determining whether the single flow rate is less than or equal to the first flow rate threshold; If yes, further determining whether the single flow rate is less than or equal to the second flow rate threshold; Determine the threshold interval to which the single flow belongs according to the comparison result of the single flow with the first flow threshold and the second flow threshold, and obtain the flow level to which the single flow belongs; The obtaining of the total flow amount according to the obtained single flow measurement specifically includes: when the obtained single flow is less than or equal to the first flow threshold, accumulating the single flow to obtain the total flow amount.

11. The method according to claim 10, characterized in that The at least two flow thresholds include a first flow threshold and a second flow threshold, wherein the second flow threshold is less than the first flow threshold, and the method further includes: When the acquired single flow rate is less than or equal to the first flow rate threshold, the current flow rate at each moment is collected at different moments within a predetermined period, and each current flow rate is compared with the first flow rate threshold and / or the second flow rate threshold; Determine whether the proportion of the multiple current flows that is less than or equal to the first flow threshold reaches a predetermined proportion, and / or whether the distribution of flow levels to which the multiple current flows belong meets the predetermined situation. If so, determine the corresponding alarm information and send it.

12. The method according to claim 11, characterized in that The method further comprises: When it is determined whether the proportion of the multiple current flows that is less than or equal to the first flow threshold reaches a predetermined proportion, and / or whether the distribution of the flow levels to which the multiple current flows belong meets a predetermined situation, the result is no, then returning to execute the step of respectively collecting the current flow at each moment at different moments within a predetermined period when the acquired single flow is less than or equal to the first flow threshold, and accumulating the number of times the steps are executed; When the number of times the steps are executed reaches a preset value, the single flow in the next collection cycle is re-acquired.

13. The method according to any one of claims 10 to 12, characterized in that: The method further comprises: After obtaining the single flow each time, calculating the average value of at least two most recent single flows; Compare the acquired traffic average value with at least two preset traffic thresholds to obtain the traffic level to which the traffic average value belongs, and calculate the number of times the traffic meets the preset rules; When the number of times the preset rules are met is greater than the set threshold, the corresponding alarm information is determined and sent.

14. A gas anomaly detection device, characterized in that: include: A collection module, used to collect multiple gas flow values ​​within a preset sampling period; A determination module, used for determining whether there is a gas flow abnormality and the type of the flow abnormality according to the multiple flow values; An alarm processing module, used for determining whether to alarm and the alarm type according to the multiple flow values ​​and the type of flow anomaly; When the alarm processing module determines whether to alarm according to the multiple flow values ​​and the type of the abnormality, it is specifically used to: If the type of the abnormality is overflow, determining to trigger an alarm event; The alarm event carries the alarm type; When determining the alarm type according to the multiple flow values ​​and the type of the abnormality, the alarm processing module is specifically used to: Comparing all or part of the multiple flow values ​​with the threshold range corresponding to each over-flow level, respectively, to obtain second distribution data of the flow values ​​belonging to the over-flow level among the multiple flow values ​​in each over-flow level; according to the second distribution data, taking the alarm type corresponding to the over-flow level with the largest number of distributed flow values ​​as the corresponding alarm type; Alternatively, in the over-flow level with flow value distribution, the alarm type corresponding to the over-flow level with the highest level and the number of distributions reaching the preset number is used as the alarm type; or, The maximum flow value among the multiple flow values ​​is compared with the threshold range corresponding to each overflow level, and the alarm type corresponding to the overflow level within the threshold range where the maximum flow value is located is used as the alarm type corresponding to the target gas device.

15. A gas anomaly detection device, characterized in that: include: The collection module is used to obtain a single flow in a single collection cycle; A determination module, used for comparing the acquired single flow with at least two preset flow thresholds to obtain the flow level to which the single flow belongs; An alarm processing module, used for determining and sending corresponding alarm information according to the acquired flow values ​​of multiple single flows and / or the distribution information of the flow levels to which they belong when the single flow meets the preset rules; The determination module is further used to obtain the total flow rate according to the acquired single flow rate measurement; the alarm processing module is further used to determine and send the corresponding alarm information according to the flow values ​​of the one or more single flows acquired during the total flow rate measurement period and / or the flow level distribution information to which the flow values ​​of the one or more single flows belong when both the single flow rate and the total flow rate meet the preset rules; The at least two flow thresholds include a first flow threshold and a second flow threshold, wherein the second flow threshold is less than the first flow threshold, and the determination module is further used to: According to the set at least two flow thresholds, at least two corresponding threshold intervals are obtained, and different threshold intervals correspond to different flow levels; Determining whether the single flow rate is less than or equal to the first flow rate threshold; If yes, further determining whether the single flow rate is less than or equal to the second flow rate threshold; Determine the threshold interval to which the single flow belongs according to the comparison result of the single flow with the first flow threshold and the second flow threshold, and obtain the flow level to which the single flow belongs; The obtaining of the total flow amount according to the obtained single flow measurement specifically includes: when the obtained single flow is less than or equal to the first flow threshold, accumulating the single flow to obtain the total flow amount.

16. A gas anomaly detection device, characterized in that: include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the gas anomaly detection method according to any one of claims 1 to 9.

17. A gas anomaly detection device, characterized in that: include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the gas anomaly detection method according to any one of claims 10 to 14.

18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the gas anomaly detection method according to any one of claims 1 to 9 is implemented.

19. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the processor executes the computer-executable instructions, the gas anomaly detection method according to any one of claims 10 to 14 is implemented.

Citation Information

Patent Citations

  • Gas shutoff device

    CN102369395A

  • Method and system for judging metering accumulated value overlarge-increment abnormal state of metering equipment

    CN109253750A

  • A smart gas meter with IC card for safety control

    CN201607786U

  • Gas meter

    JP2006017514A