Gas anomaly detection method, device, equipment and storage medium
By collecting gas flow values within a preset period, analyzing the type of anomaly and determining the alarm type, the problems of singleness and inaccuracy of gas detection are solved, and the safety of gas use is guaranteed.
Patent Information
- Application Number
- CN202411361081.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-11-01
- Filing Date
- 2020-10-31
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2040-10-31
AI Technical Summary
Existing gas anomaly detection technology has problems of singleness and inaccurate detection, and cannot effectively ensure the safety of gas use.
By collecting multiple gas flow values within a preset sampling period, analyzing the type of flow anomaly, and determining whether to alarm and the type of alarm based on the flow value and type, a multi-dimensional combination judgment method is used to detect gas flow anomalies.
It realizes the diversified detection of gas anomalies, can accurately identify different types of anomalies and determine the corresponding alarm type, ensuring the safety of gas use.
Smart Images

Figure CN119197659B_ABST
Abstract
Description
[0001] This application is a divisional application of the original application with an 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, apparatus, device, 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] Currently, there are two methods for detecting gas anomalies to address gas safety: gas alarms and shut-off valves. Gas alarms use a catalytic principle to detect gas concentration. When the gas concentration in the air exceeds a set value, the detector triggers an alarm and emits an audible and visual alarm signal. Shut-off valves control overflow, isolating the burner from the gas pipeline when overflow occurs.
[0005] However, gas alarms have a short service life and are easily contaminated. They trigger an alarm immediately if the set value is exceeded. However, concentrations can fluctuate during gas use, leading to false triggering and inaccurate detection. Shut-off valves only function as overflow control and lack mechanical stability, making them prone to sticking or blocking. Consequently, existing technologies for detecting gas anomalies are limited and inaccurate, failing to effectively ensure safe 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 based on the multiple flow values;
[0010] Determining whether to issue an alarm and the type of alarm according to the multiple flow values and the type of flow anomaly;
[0011] The determining whether to issue an 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 determining of 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 overflow gear respectively, and obtain second distribution data of each flow value belonging to the overflow gear among the multiple flow values; according to the second distribution data, take the alarm type corresponding to the overflow gear with the largest number of distributed flow values as the corresponding alarm type; or, among the overflow gears with flow value distribution, take the alarm type corresponding to the overflow gear with the highest level and the number of distributions 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 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 corresponding alarm type.
[0017] In one 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, performing small flow setting 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 one possible design, performing micro flow setting according to the multiple flow values to obtain a corresponding target micro flow level includes:
[0021] Comparing all or part of the plurality of flow values with the threshold range corresponding to each small flow gear, respectively, to obtain first distribution data of the flow values belonging to the small flow gear in each small flow gear; or calculating a first average flow value corresponding to a first preset number of adjacent flow values from the plurality of flow values, and comparing each first average flow value with the threshold range corresponding to each small flow gear, respectively, to obtain first distribution data of each first average flow value belonging to the small flow gear in each small flow gear;
[0022] According to the first distribution data, a micro-flow rate bin with the largest number of flow rate values is determined as the target micro-flow rate bin, or a micro-flow rate bin with the largest number of flow rate values and a highest level is determined as the target micro-flow rate bin.
[0023] In a possible design, the determining whether to alarm according to the flow rate values and the type of the flow abnormality comprises:
[0024] If the type of the flow abnormality is a micro-flow leakage, a total flow rate of the target gas device in the preset sampling period is calculated according to the flow rate values.
[0025] When the total flow rate is greater than a preset total flow rate threshold, it is determined that an alarm event is triggered, and the alarm event is used to represent that alarm information carrying the alarm type is sent to a target terminal.
[0026] In a possible design, the determining whether to alarm according to the flow rate values and the type of the flow abnormality comprises:
[0027] All or part of the flow rate values are selected, and if any flow rate value in the all or part of the flow rate values is within a threshold range corresponding to the target micro-flow rate bin, the single flow rate value is determined as a qualified sample.
[0028] According to the number of qualified samples and the number of flow rate values, a qualified rate of the flow rate values in the target micro-flow rate bin is calculated.
[0029] If the qualified rate is greater than or equal to a preset qualified rate, it is determined that an alarm event is triggered.
[0030] The alarm event is used to represent that alarm information carrying the alarm type is sent to a target terminal.
[0031] In a possible design, the method further comprises:
[0032] If the qualified rate is less than a preset qualified rate, the following steps are repeated until the qualified rate is greater than or equal to a preset qualified rate or the number of preset sampling periods reaches a preset period number:
[0033] Flow rate values in a next preset sampling period are collected, a qualified rate corresponding to the next preset sampling period is calculated, and if the qualified rate is greater than or equal to a preset qualified rate, it is determined that an alarm event is triggered.
[0034] In a possible design, the determining whether to alarm according to the flow rate values and the type of the flow abnormality comprises:
[0035] Selecting all or part of the plurality of flow values, and determining that any one of the plurality of flow values is a qualified sample if it is within a threshold range corresponding to the target low flow level;
[0036] Calculating the pass rate of the plurality of flow values in the target low flow rate 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, determining that the target small flow rate gear is a stable small flow rate gear;
[0038] Calculating the total flow rate within the preset sampling period based on 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 one 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] Comparing each second average flow value with a threshold range corresponding to each excess flow gear, to obtain second distribution data of the second average flow value belonging to the excess flow gear in each excess flow gear;
[0043] According to the second distribution data, the flow rate level with the largest number of second average flow values distributed among the flow rate levels 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 rate levels with the second average flow value distribution, the alarm type corresponding to the flow rate level with the highest level and the number of distributions 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 one possible design, determining the alarm type according to the multiple flow values and the type of the flow anomaly includes:
[0046] Calculating a third average flow value corresponding to a third preset number of adjacent flow values according to the plurality of 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 overflow gear, and use the alarm type corresponding to the overflow gear within the threshold range where the target third average flow value is located as the alarm type.
[0048] In one possible design, determining whether there is a gas flow abnormality and the type of the flow abnormality based on 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 abnormality, and the type of the flow abnormality 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 excessive flow leakage;
[0051] Calculating, 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; if, among the fourth average flow values, fourth average flow values that are greater than or equal to the third number are all within a first preset flow threshold range, and if, among the fifth average flow values, fifth average flow values that are less than the fourth number are all within a second preset flow threshold range, determining that a gas flow anomaly exists, and the type of the flow anomaly is a slight flow leakage;
[0052] 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 a gas flow anomaly exists, 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 single flow rate within a single collection cycle;
[0055] Comparing 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 rate meets the preset rules, the corresponding alarm information is determined and sent according to the obtained flow rate 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 smaller than the first flow threshold, and the comparing the acquired single flow with the at least two preset 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] Determining the threshold interval to which the single flow belongs based on a comparison result of the single flow with the first flow threshold and the second flow threshold, and obtaining 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 the 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 the result of determining 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 is negative, returning to the step of 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 step is executed;
[0071] When the number of times the steps are executed reaches a preset value, the single flow rate in the next collection cycle is re-obtained.
[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 flow rates;
[0075] Comparing the obtained average flow rate with at least two preset flow rate thresholds to obtain the flow rate level to which the average flow rate belongs, and calculating the number of times the average flow rate 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, configured to determine whether there is a gas flow anomaly and the type of the flow anomaly based on the multiple flow values;
[0080] An alarm processing module, configured to determine whether to generate an alarm and the type of alarm according to the multiple flow values and the type of flow anomaly;
[0081] When the alarm processing module determines whether to issue an alarm based on the multiple flow values and the type of the abnormality, it is specifically configured to:
[0082] If the type of the abnormality is over-flow, it is determined to trigger an alarm event;
[0083] The alarm event carries the alarm type.
[0084] In a possible design, when determining the alarm type according to the plurality of flow values and the type of the abnormality, the alarm processing module is specifically configured to:
[0085] The plurality of flow values are compared with threshold ranges corresponding to respective over-flow grades respectively, to obtain second distribution data of flow values belonging to the over-flow grades in the respective over-flow grades; and the alarm type corresponding to the over-flow grade with the most distributed flow values is determined as the corresponding alarm type according to the second distribution data.
[0086] Alternatively, the alarm type corresponding to the over-flow grade with the most distributed flow values and the highest level is determined as the alarm type when the number of distributed flow values reaches a preset number in the over-flow grade; or
[0087] The maximum flow value in the plurality of flow values is compared with threshold ranges corresponding to respective over-flow grades, and the alarm type corresponding to the over-flow grade in the threshold range where the maximum flow value is located is determined as the alarm type corresponding to the target gas device.
[0088] In a possible design, when determining the alarm type according to the plurality of flow values and the type of the abnormality, the alarm processing module is specifically configured to:
[0089] If the type of the abnormality is micro-flow leakage, a preset number of flow values are obtained from the plurality of flow values, micro-flow grading is performed, and a corresponding target micro-flow grade is obtained.
[0090] The corresponding alarm type is determined according to the target micro-flow grade.
[0091] In a possible design, when performing micro-flow grading to obtain the corresponding target micro-flow grade, the alarm processing module is specifically configured to:
[0092] The plurality of flow values are compared with threshold ranges corresponding to respective micro-flow grades respectively, to obtain first distribution data of the preset number of flow values in the respective micro-flow grades; or first average flow values corresponding to a first preset number of flow values in the preset number of flow values are calculated, and each first average flow value is compared with a threshold range corresponding to a respective micro-flow grade, to obtain first distribution data of each first average flow value belonging to the micro-flow grade in the respective micro-flow grade.
[0093] According to the first distribution data, the micro-flow gear with the largest number of distributed flow values is determined among each micro-flow gear, and the micro-flow gear with the largest number of flow values is the target micro-flow gear; or, among the micro-flow gears with flow value distribution, the micro-flow gear with a distribution number that reaches a preset number and has the highest level is the target micro-flow gear.
[0094] In one possible design, when the alarm processing module determines whether to issue an alarm based on the multiple flow values and the type of the abnormality, it is specifically configured to:
[0095] If the type of the 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;
[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 one possible design, when the alarm processing module determines whether to issue an alarm based on the multiple flow values and the type of the abnormality, it is specifically configured to:
[0098] For all or part of the multiple flow values, if any one of the all or part of the flow values is within the threshold range corresponding to the target low flow level, then the single flow value is determined to be a qualified sample;
[0099] Calculating the pass rate of the plurality of flow values in the target low flow rate 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, it is determined that an alarm event is triggered;
[0101] The alarm event is used to indicate that an alarm message carrying the alarm type is sent to the target terminal.
[0102] In one possible design, the alarm processing module is further configured to:
[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 determine that an alarm event is triggered if the pass rate is greater than or equal to the preset pass rate.
[0105] In one possible design, when the alarm processing module determines whether to issue an alarm based on the multiple flow values and the type of the abnormality, it is specifically configured to:
[0106] For all or part of the multiple flow values, if any one of the all or part of the flow values is within the threshold range corresponding to the target low 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 low flow rate 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, determining that the target small flow rate gear is a stable small flow rate gear;
[0109] Calculating the total flow of the target gas device within the preset sampling period based on 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 one possible design, when determining the alarm type based on the multiple flow values and the type of the abnormality, the alarm processing module is specifically configured 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] Comparing each second average flow value with a threshold range corresponding to each excess flow gear, to obtain second distribution data of the second average flow value belonging to the excess flow gear in each excess flow gear;
[0114] Determine, based on the second distribution data, the overflow gear having the largest number of second average flow values among the overflow gears, and use the alarm type corresponding to the overflow gear having the largest number of second average flow values 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 one possible design, when determining the alarm type based on the multiple flow values and the type of the abnormality, the alarm processing module is specifically configured to:
[0118] Calculating a third average flow value corresponding to a third preset number of adjacent flow values according to the plurality of 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 overflow gear, and use the alarm type corresponding to the overflow gear within the threshold range where the target third average flow value is located as the alarm type.
[0120] In one possible design, the determining module is specifically configured to:
[0121] Determine whether there is abnormal gas flow and the type of abnormal flow 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 abnormality, and the type of the flow abnormality 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 overflow;
[0124] Calculating, 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; if, among the fourth average flow values, fourth average flow values that are greater than or equal to the third number are all within a first preset flow threshold range, and if, among the fifth average flow values, fifth average flow values that are less than the fourth number are all within a second preset flow threshold range, determining that a gas flow anomaly exists, and the type of the flow anomaly is a slight 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 a gas flow abnormality exists, 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 single traffic within a single collection cycle;
[0128] a determination module, configured to compare the acquired single flow with at least two preset flow thresholds to obtain a flow level to which the single flow belongs;
[0129] The alarm processing module is used to determine and send corresponding alarm information based on the acquired flow values of multiple single flows and / or the distribution information of the flow levels they belong to when the single flow meets the preset rules.
[0130] The determination module is further configured to obtain a total flow rate based on the acquired single flow rate measurement; the alarm processing module is further configured to determine and send corresponding alarm information based on the flow rate values of one or more single flows acquired during the total flow rate measurement period and / or the flow level distribution information to which the flow rate values of the multiple single flows belong when both the single flow rate and the total flow rate meet 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 smaller than the first flow threshold, and the determining module is further configured 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] Determining the threshold interval to which the single flow belongs based on a comparison result of the single flow with the first flow threshold and the second flow threshold, and obtaining 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 one possible design, the acquisition module is further configured to:
[0138] When the acquired single flow rate is less than or equal to a 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 the 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 obtained 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. 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 the multiple 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.
[0143] In one possible design, the determining module is further configured to:
[0144] After obtaining the single flow each time, calculating the average value of at least two most recent single flow rates;
[0145] Comparing the obtained average flow rate with at least two preset flow rate thresholds to obtain the flow rate level to which the average flow rate belongs, and calculating the number of times the average flow rate 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, comprising: 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, comprising: 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, which stores computer-executable instructions. When the processor executes the computer-executable 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, which stores computer-executable instructions. When the processor executes the computer-executable 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 this embodiment collect multiple flow values within a preset sampling period and analyze the multiple flow values to determine whether there is an anomaly. If an anomaly exists, the type of anomaly is determined based on the multiple flow values. Different types of anomalies can be detected, making the gas anomaly detection diverse and integrated. Moreover, based on the multiple flow values and the type of anomaly, it can be detected whether the gas anomaly scenario requires an alarm. If an alarm is required, the alarm type corresponding to the alarm is determined. Therefore, the gas anomaly detection in this application can detect multiple types of anomalies. At the same time, it 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] Figure 9 A flow chart of a gas anomaly detection method provided in another embodiment of the present application;
[0166] Figure 10 A flow chart of a gas anomaly detection method provided in yet another embodiment of the present application;
[0167] Figure 11 A flow chart of a gas anomaly detection method provided in another embodiment of the present application;
[0168] Figure 12 A schematic diagram of the structure of a gas anomaly detection device provided in an embodiment of the present application;
[0169] Figure 13 A schematic diagram of the structure of the gas anomaly detection device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0170] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0171] The terms "first", "second", "third", "fourth" and the like in the description and in the claims of the present application, and above-mentioned drawings, if any, are used to distinguish between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the use of the terms so-termed, data can be interchanged, where appropriate, to the embodiments of the present application described herein, for example, can be practiced in other than the illustrated or described order. In addition, the terms "comprising" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or apparatus that includes a list of steps or units, is not necessarily limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to such processes, methods, products or apparatus.
[0172] Currently, there are two ways to detect gas anomalies for gas safety: gas alarms and shut-off valves. The gas alarm uses catalytic principle to detect gas concentration. When the concentration of gas in the air exceeds the set value, the detector will be triggered and an audible and visual alarm signal will be sent out. However, the service life of the gas alarm is not long, it is easy to be contaminated, and it will trigger an alarm as soon as the set value is exceeded. Since the concentration detection may fluctuate during the use of gas, this will cause false triggering and inaccurate detection. The shut-off valve is used for over-flow control. When over-flow occurs, the burner is cut off from the gas pipeline. However, the shut-off valve can only be used for over-flow control, and the mechanical structure is not stable enough and is easy to be stuck or blocked. Therefore, the existing technology for detecting gas anomalies is single and not accurate, which cannot effectively ensure the safety of gas use.
[0173] Therefore, in view of the above problems, the technical concept of the present application is to collect multiple flow values of a gas flow metering device within a sampling period, to detect whether the gas flow metering device is a small flow leakage or an over-flow through multi-dimensional combination judgment, and then to determine whether to alarm the abnormal condition of the target gas device according to the type of the detected anomaly and the flow value obtained by metering, and to further determine the alarm type corresponding to the target gas device by abnormal profiling the abnormal condition of the target gas device. When the alarm triggering condition and the alarm type are both met, an alarm is initiated to the target terminal with the alarm type, so that the relevant departments can timely make safety treatment according to the alarm type. Since the detection is comprehensive, the safety of using gas can be ensured.
[0174] Referring to Figure 1 as shown, Figure 1A scenario diagram of the gas anomaly detection method provided in an embodiment of the present application is provided. The executor of the gas anomaly detection method can be a gas anomaly detection device 10, which is used to detect whether there is an anomaly in the gas device. If an anomaly exists, the type of anomaly is detected at the same time; then, based on the detected data and the type of anomaly, it is determined whether to initiate an alarm to the associated terminal (i.e., the target terminal 20). When determining to initiate an alarm, the alarm type is determined based on the detected data and the type of anomaly. Then, the gas anomaly detection device 10 sends the alarm information carrying the alarm type to the target terminal 20, so that the target terminal 20 can safely and effectively handle it according to the alarm type, thereby ensuring the safety of gas use.
[0175] The following specific embodiments are used to describe the technical solution of the present application in detail. 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, which may include:
[0177] S101. Collect multiple gas flow values within a preset sampling period.
[0178] In this embodiment, the executing entity can be a gas anomaly detection device, which can communicate with the terminal device. When a gas anomaly is detected, the anomaly can be reported to the terminal device. The terminal device here can be a client (such as an application) on a user terminal installed with a gas anomaly detection device, or it can 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 for flow metering under different metering principles may be different. It can be set according to the natural flow metering sampling period or it can be set manually. 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, and will not be described in detail here.
[0180] S102: Determine whether there is a gas flow anomaly and the type of the flow anomaly based on the multiple flow values.
[0181] In this embodiment, based on the plurality of flow values, there can be at least two ways to achieve:
[0182] The first way is to determine the type of flow abnormality of the target gas device according to the number of flow values in the first preset flow threshold range or in the second preset flow threshold range.
[0183] In a possible design, if the number of flow values greater than the first number in the plurality of flow values are all in the first preset flow threshold range, and the number of flow values in the second preset flow threshold range is less than the second number, it is determined that the gas using device has a small flow leakage, and the type of flow abnormality is a small flow leakage.
[0184] In this embodiment, for all or part of the plurality of flow values, each flow value is compared with the first preset flow threshold range and the second preset flow threshold range respectively, to determine whether each flow value is in the first preset flow threshold range or in the second preset flow threshold range. If the number of flow values in the first preset flow threshold range is greater than the first number, and the number of flow values in the second preset flow threshold range is less than the second number, it is determined that the type of flow abnormality is the type matched with the first preset flow threshold range, i.e., a small flow leakage.
[0185] In a possible design, if the number of flow values greater than or equal to the second number in the plurality of flow values are all in the second preset flow threshold range, it is determined that the target gas device has an over-flow, and the type of flow abnormality is an over-flow.
[0186] In this embodiment, for each flow value in the plurality of flow values, each flow value is compared with the first preset flow threshold range and the second preset flow threshold range respectively, to determine whether each flow value is in the first preset flow threshold range or in the second preset flow threshold range. If the number of flow values in the second preset flow threshold range is greater than or equal to the second number, regardless of whether the number of flow values in the first preset flow threshold range is greater than or equal to the first number, the type of flow abnormality is determined as the type in this scenario, i.e., the type matched with the second preset flow threshold range: over-flow.
[0187] For example, the number of the plurality of flow values is 10, the first number can be greater than or equal to 7 (for example, the first number is 7), the second number can be greater than or equal to 3 (for example, the second number is 3), the first preset flow threshold range can be less than or equal to 0.04 L / h, and the second preset flow threshold range can 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 small flow leakage scenario. When 7 or more flow values among 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 indicates 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 three 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 indicates that the flow anomaly scenario has a high risk of overflow. Therefore, the flow anomaly type of the target gas device is determined to be 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 based on the number of average flow values within a first preset flow threshold range or a second preset flow threshold range. In actual applications, the calculation of the average flow value can be based on comparisons with different preset flow thresholds, using different or the same number of adjacent values, and this is not limited here.
[0191] In a possible design, 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 third number in each of 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 in each of the fifth average flow values are all within the 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 or may not be equal. If they are equal, then it is sufficient to calculate multiple average flow values for one round, i.e., 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 the multiple flow values, or all flow values may be selected, without limitation herein. It should be noted that if a preset number of flow values is selected from the multiple flow values, then 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 greater than or equal to the third number among each fourth average flow value are all within the first preset flow threshold range, and the fifth average flow values less than the fourth number among each fifth average flow value 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 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 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. Based on the 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 of every two adjacent flow values is calculated (for example, Q1+Q2, Q2+Q3, Q3+Q4, ..., respectively) and the average of every three adjacent flow values is calculated (for example, Q1+Q2+Q3, Q2+Q3+Q4, Q3+Q4+Q5, ..., respectively), correspondingly obtaining 6 fourth average flow values and 5 fifth average flow values. For example, the third number is 5 and the fourth number is 3.
[0197] The benefit of this calculation is that it can not only avoid misjudgment caused by data fluctuations by using the mean calculation method, improve the accuracy of judgment, but also reduce the requirement for the number of collected samples.
[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 slight 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 slight 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 flow values among 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 this scenario is high. Therefore, it is determined that the abnormality type of the target gas device is overflow.
[0200] Therefore, both the first and second methods above determine the type of leak based on multiple flow values, avoiding the misjudgment of the type of anomaly determined by a single value. Therefore, this method of determining the type of anomaly is more accurate. Furthermore, the present application can also simultaneously determine multiple anomaly types, such as a small flow leak, an overflow, etc., unlike existing technologies that can only detect an overflow or small flow leak.
[0201] S103: Determine whether to issue an alarm and the alarm type according to the multiple flow values and the type of the flow anomaly.
[0202] In this embodiment, the type of flow anomaly can be combined with multiple flow values to determine whether to issue an alarm, using methods such as total flow or compliance rate. Furthermore, the type of flow anomaly can be divided into different levels based on multiple flow values, with different levels corresponding to different alarm types. This allows for targeted alarms, providing a basis for maintenance or emergency repairs related to gas usage anomalies and ensuring safety. The alarm type is identified with an alarm code, which can be used to identify different alarm messages.
[0203] The gas anomaly detection method provided in this embodiment collects multiple flow values within a preset sampling period and analyzes the multiple flow values to determine whether there is a gas anomaly. If there is an anomaly, the type of anomaly is determined based on the multiple flow values. Different types of anomalies can be detected, making the gas anomaly detection diverse. Moreover, based on the multiple flow values and the type of anomaly, it can be detected whether the gas anomaly scenario requires an alarm. If an alarm is required, the alarm type corresponding to the alarm is determined. Therefore, the gas anomaly detection in this application can detect multiple types of anomalies. At the same time, it 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.
[0204] Based on the above embodiment, determining 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 abnormality is a small flow leak, and the total flow detection method is used to determine whether to issue an alarm. This can be achieved by following the steps below:
[0206] Step a1: Calculate the total flow rate within the preset sampling period based on 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, where 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 amount, 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 is 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 leak is a small flow leak, and the compliance detection method is used to determine whether to issue an alarm. This can be achieved by following the steps below:
[0210] Step b1: select all or part of the multiple flow values, and compare them with the threshold values corresponding to the target micro flow level. For each flow value, when it meets the threshold range corresponding to the target micro 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 low 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 the 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 is more credible, and an alarm can be triggered.
[0215] Specifically, the pass rate of multiple flow values within the target low flow rate range is calculated to determine whether the alarm condition is met. The pass rate is calculated as follows: the number of all qualified samples divided by the number of flow values. When the pass rate is greater than or equal to a preset pass rate, the target low flow rate range is determined to be highly reliable and meets the alarm condition. An alarm event can be triggered, indicating that an alarm message 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 and pass rate of qualified samples among the multiple flow values within the preset sampling period are determined according to the above embodiment. When the pass rate is greater than or equal to the preset pass rate, it can be determined that the target low flow rate level has 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 in the embodiment corresponding to steps b1 to b3 above and will not be repeated here.
[0219] Scenario 13: The abnormality type is a small flow leakage. The matching rate combined with the total flow detection method is used to determine whether to issue an 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 micro flow level. For each flow value, if it meets the threshold range corresponding to the target micro 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 low flow range based on 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 low flow rate gear is determined to be a stable low 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, where 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 compliance rate among multiple flow values can be determined first. When the compliance rate is greater than or equal to the preset compliance 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 compliance rate and the total flow rate both meet the corresponding alarm conditions, an alarm event can be triggered. Among them, the compliance rate can be used as a basis for whether the target micro-flow rate gear is stable. The calculation of the compliance rate is similar to the process of the embodiment corresponding to steps b1 to b2 above, and will not be repeated here. In this scenario, if the compliance rate is greater than or equal to the preset compliance rate, it means that the target micro-flow rate gear is a stable micro-flow rate gear. On this basis, if the total flow rate is greater than the preset total flow rate threshold, it means that the triggering alarm condition has been met, and an alarm event can be triggered. Among them, the triggering process is the same as the triggering alarm event described in the above embodiment, and will not be repeated here.
[0226] Scenario 21: The abnormality type is overflow. The type of abnormality determines whether to issue an alarm. This can be achieved by following the steps below:
[0227] If the type of the abnormality is overflow, it is determined that an alarm event is triggered; the alarm event carries the alarm type.
[0228] In this embodiment, since the danger level of overflow is 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, the detection method for determining whether to alarm and the alarm type based on multiple flow values and the type of anomaly is not only comprehensive, but can also accurately trigger the alarm and 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 server uploading the alarm information; it can also be triggered by the client uploading the alarm information to the server of the gas operating organization. It should be noted that which device triggers the alarm event is not limited here.
[0230] Similarly, to further ensure safety, you can customize whether to enable the automatic valve shutoff function. If this function is enabled, the valve can be automatically shut off based on different abnormal scenarios when an abnormality is detected. The valve shutoff operation can be controlled by the gas metering device or remotely controlled by the gas operator's platform, without specific restrictions here. If this function is not enabled, the valve can be manually shut off based on different abnormal scenarios when an abnormality is detected.
[0231] Based on the above embodiment, the alarm type may be determined in combination with different abnormality types. The following describes in detail how to determine the alarm type through two scenarios.
[0232] Scenario 14: The abnormality type is a small flow leakage. The alarm type is determined by the small flow rate.
[0233] In this scenario, how to determine the alarm type based on 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 low 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. For example, the alarm code corresponding to small flow level 1 is used to indicate that the alarm information will be pushed the next day; the alarm code corresponding to small flow level 2 is used to indicate that the alarm information will be pushed before work the next day; the alarm code corresponding to 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. No specific limitations are made here, and it is only exemplary.
[0237] Exemplarily, 7 flow values are selected, and the selected 7 flow values are compared with the threshold range corresponding to the micro-flow gear respectively. The micro-flow gear is determined based on the comparison results to determine the micro-flow gear where the micro-flow leakage exists.
[0238] The micro flow rate setting and the corresponding target micro flow rate setting can be achieved in at least two ways:
[0239] Method 1: directly compare each flow value in a preset number of flow values with the threshold range corresponding to each small flow level. This can be achieved by the following steps:
[0240] Step e1: Compare each flow value of the preset number of flow values with the threshold range corresponding to each small flow level to obtain first distribution data of the preset number of flow values in each small flow level.
[0241] Step e2: determining the micro flow rate level with the largest number of distributed flow values among the micro flow rates according to the first distribution data, 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 in the preset number of flow values is compared with the threshold range corresponding to each small flow gear 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 gear is accumulated, namely 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 gear.
[0243] For example, among the 7 flow values, 4 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 determined as the small flow level for the target gas device with a small flow leak, 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 distributions reaching a preset number may be defined as the target micro flow level.
[0245] For example, 4 of the 7 flow values meet the threshold range corresponding to the micro-flow level 1, 2 meet the threshold range corresponding to the micro-flow level 2, and 1 meets the threshold range corresponding to the micro-flow level 3. If the preset number is set to 2 or more, the number of flow values distributed in the micro-flow level 1 and the micro-flow level 2 both meet the conditions. However, since the danger level corresponding to the micro-flow level 2 is higher, the micro-flow level 2 is used as the micro-flow level determined for the target gas device with micro-flow leakage, that is, the target micro-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 can be achieved by the following steps:
[0247] Step f1, 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 gear, to obtain the first distribution data of each first average flow value belonging to the small flow gear in each small flow gear.
[0248] Step f2: determining the micro flow rate level with the largest number of distributed flow values among the micro flow rates according to the first distribution data, 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 a first preset number of adjacent flow values according to the order of collection 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., a first average flow value. The obtained multiple first average flow values are then compared with the threshold range corresponding to each micro flow level to determine the threshold range that each average flow value complies with. The number of average flow values within the threshold range corresponding to each micro flow level is accumulated, i.e., first distribution data. The first distribution data is used to represent the distribution of the number of average flow values whose first average flow values corresponding to the preset number of flow values fall 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 leak, 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 abnormality type is overflow. Based on multiple flow values, the alarm type is determined by directly comparing them with the threshold ranges corresponding to each overflow gear. The overflow gear can include at least two gears, each of which corresponds to a different threshold range and a different alarm type. For example, overflow gear 1 (the corresponding threshold range can be greater than or equal to 3.2L / h and less than 4L / h) and overflow gear 2 (the corresponding threshold range can be greater than or equal to 4L / h). This can be achieved in at least two of the following ways:
[0253] Method 1: Determine the alarm type based on the distribution of multiple flow values in each overflow range. This can be achieved by the following steps:
[0254] Step g1: Compare the plurality of flow values with the threshold range corresponding to each excess flow level to obtain second distribution data of each flow value in each excess flow level.
[0255] Step g2: Based on the second distribution data, the alarm type corresponding to the overflow level with the largest number of distributed flow values is used as the alarm type corresponding to the target gas device;
[0256] In this embodiment, the multiple flow values are respectively 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 respectively 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 the 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 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 number of distributions reaching a preset number can be used as the alarm type.
[0258] Method 2: Use multiple flow values and use the higher value 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, if the leak type is an overflow leak, a higher flow rate indicates a higher level of safety hazard. The alarm type can be determined based on the overflow level that the maximum flow rate value among the multiple flow rates corresponds to. For example, if the maximum flow rate value among the multiple flow rates is within the threshold range corresponding to overflow level 2, the gas leak scenario presents a higher level of safety hazard. To ensure safety, the alarm type corresponding to the overflow level within the threshold range of the maximum flow rate value, such as overflow level 2, can be used as the alarm type for the target gas device.
[0261] Scenario 23: The abnormality type is overflow. Based on multiple flow values, multiple average flow values are determined. These average flow values are then 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 in Scenario 22 and is not repeated here.
[0262] Method 1: Determine the alarm type based on the distribution of multiple average flow values in each overflow range. This can be achieved by the following steps:
[0263] Step h1, calculating second average flow values corresponding to each second preset number of adjacent flow values according to the plurality of flow values.
[0264] Step h2, comparing each second average flow value with a threshold range corresponding to each over-flow bin to obtain second distribution data of each second average flow value in each over-flow bin.
[0265] Step h3, determining an over-flow bin with the largest number of flow values distributed in each over-flow bin according to the second distribution data, and taking an alarm type corresponding to the over-flow bin with the largest number of flow values distributed as an alarm type corresponding to the target gas device.
[0266] In this embodiment, each second preset number of adjacent flow values in the plurality of flow values can be averaged, or a preset number of flow values can be selected from the plurality of flow values, and then each second preset number of adjacent flow values in the preset number of flow values is averaged. This is not limited. For ease of understanding, a preset number of flow values is selected from the plurality of flow values, each second preset number of adjacent flow values is averaged to obtain a plurality of second average flow values, and then the plurality of second average flow values are compared with a threshold range corresponding to each over-flow bin to determine the distribution of the plurality of second average flow values in each over-flow bin. For example, the preset number is 7, and the second preset number is 3. Each three adjacent flow values is averaged to obtain five second average flow values, and then the five second average flow values are compared with a threshold range corresponding to each over-flow bin to determine the distribution of the five second average flow values in each over-flow bin. The specific comparison and type determination process is similar to steps g1 to g2, and will not be repeated here.
[0267] Method 2, determining an alarm type by a plurality of average flow values using the principle of not high but low. This can be achieved by the following steps:
[0268] Step i1, calculating second average flow values corresponding to each second preset number of adjacent flow values according to the plurality of flow values.
[0269] Step i2, comparing a maximum average flow value in each second average flow value with a threshold range corresponding to each over-flow bin, and taking an alarm type corresponding to an over-flow bin in which the maximum average flow value meets the threshold range as an alarm type corresponding to the target gas device.
[0270] In step i1, the process of calculating second average flow values corresponding to each second preset number of adjacent flow values is the same as that in step h1, and 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 gear. Similar to the process of method 2 in the above scenario 22, the alarm type corresponding to the overflow gear 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 gear 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 levels with average flow value distribution, the alarm type corresponding to the overflow level with the highest level and the number of distributions reaching a preset number may be used as the alarm type.
[0273] Scenario 24: Determine the alarm type based on any of multiple average flow values. This can be achieved by following the steps below:
[0274] Step j1: Calculate a third average flow value corresponding to a third preset number of adjacent flow values based on the plurality of flow values.
[0275] Step j2: 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 overflow gear, and use the alarm type corresponding to the overflow gear 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 adjacent third 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 of the target third average flow value is used as the alarm type corresponding to the target gas device. For example, in the order of collection, the average flow value corresponding to the first three flow values collected is used as the target third average flow value. Then, the threshold range within which the target third average flow value falls is determined, and the overflow level corresponding to the corresponding threshold range is used as the target overflow level. The alarm type corresponding to the target overflow level is then 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 alarm type, 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. This is for illustrative purposes only and is 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 used as an example to describe the following embodiments in detail.
[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 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 small flow setting based on scenario 1; scenario 2 is the process of determining the type of abnormality is 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 determining the alarm type based on scenario 2 by directly comparing multiple flow values with the threshold range corresponding to each excessive flow grade; scenario 23 is the process of determining multiple average flow values based on multiple flow values, and then comparing the multiple average flow values with the threshold range corresponding to each excessive flow grade to determine the alarm type; 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] Example 1: Combining Scenario 1, Scenario 11, Scenario 14, Scenario 2, Scenario 21 and Scenario 22, see Figure 3 shown.
[0282] Example 2: Combining Scenario 1, Scenario 12, Scenario 14, Scenario 2, Scenario 21 and Scenario 22, see Figure 4 shown.
[0283] Example 3: Combining Scenario 1, Scenario 13, Scenario 14, Scenario 2, Scenario 21 and Scenario 22, see Figure 5 shown.
[0284] Example 4: Combining Scenario 1, Scenario 11, Scenario 14, Scenario 2, Scenario 21 and Scenario 23, see Figure 6 shown.
[0285] Example 5: Combining Scenario 1, Scenario 12, Scenario 14, Scenario 2, Scenario 21 and Scenario 23, see Figure 7 shown.
[0286] Example 6: Combining Scenario 1, Scenario 13, Scenario 14, Scenario 2, Scenario 21 and Scenario 23, see Figure 8shown.
[0287] Example 7: Combining Scenario 1, Scenario 11, Scenario 14, Scenario 2, Scenario 21 and Scenario 24, see Figure 9 shown.
[0288] Example 8: Combining Scenario 1, Scenario 12, Scenario 14, Scenario 2, Scenario 21 and Scenario 24, see Figure 10 shown.
[0289] Example 9: Combining Scenario 1, Scenario 13, Scenario 14, Scenario 2, Scenario 21 and Scenario 24, see Figure 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: Compare 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 rate 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 acquisition period may correspond to the above-mentioned sampling period, a single flow may correspond to a single flow value; and the flow level may correspond to the above-mentioned flow grade.
[0295] The preset rules may be selected based on the requirements to form a combination of one or more of micro-flow compliance, over-flow compliance, and qualified rate compliance.
[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 their combined implementation methods 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 used to judge the flow rate of the gas meter to 0.04L / h as a leak), preventing overflow (the total amount control method is used 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 gas meter leakage. If the user uses gas normally during the leakage period, the normal gas usage situation 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. Figure 12 , Figure 12 A schematic structural diagram of a gas anomaly detection device provided in an embodiment of the present application; the gas anomaly detection device includes: 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; and 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 the abnormality is determined based on the multiple flow values, and different types of abnormal situations can be detected, making the gas abnormality detection diverse. Moreover, whether to alarm and the alarm type can be determined based on the multiple flow values and the type of the abnormality. It can be detected whether the gas abnormality scenario requires an alarm, and if an alarm is required, the alarm type corresponding to the alarm is determined. Therefore, the gas abnormality detection in this 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 occurs, 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 effects are similar and will not be described in detail in this embodiment.
[0302] In one possible design, when determining the alarm type based on the multiple flow values and the type of the abnormality, the alarm processing module 1203 is specifically configured 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 one possible design, when performing micro-flow setting and obtaining the corresponding target micro-flow level, the alarm processing module 1203 is specifically configured to:
[0306] Comparing each flow value in the preset number of flow values with a threshold range corresponding to each small flow gear to obtain first distribution data of the preset number of flow values in each small flow gear; or calculating a first average flow value corresponding to a first preset number of adjacent flow values in the preset number of flow values, and comparing each first average flow value with a threshold range corresponding to each small flow gear to obtain first distribution data of each first average flow value belonging to the small flow gear in each small flow gear;
[0307] According to the first distribution data, the micro-flow gear with the largest number of distributed flow values is determined among each micro-flow gear, and the micro-flow gear with the largest number of flow values is the target micro-flow gear; or, among the micro-flow gears with flow value distribution, the micro-flow gear with a distribution number that reaches a preset number and has the highest level is the target micro-flow gear.
[0308] In one possible design, when the alarm processing module 1203 determines whether to issue an alarm based on the multiple flow values and the type of the abnormality, it is specifically configured to:
[0309] If the type of the 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;
[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 one possible design, when the alarm processing module 1203 determines whether to issue an alarm based on the multiple flow values and the type of the abnormality, it is specifically configured 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 low flow level, the flow value is determined to be a qualified sample;
[0313] Calculating the pass rate of the plurality of flow values in the target low flow rate 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, it is determined that an alarm event is triggered;
[0315] The alarm event is used to indicate that an alarm message carrying the alarm type is sent to the target terminal.
[0316] In one possible design, the alarm processing module 1203 is further configured 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 determine that an alarm event is triggered if the pass rate is greater than or equal to the preset pass rate.
[0319] In one possible design, when the alarm processing module 1203 determines whether to issue an alarm based on the multiple flow values and the type of the abnormality, it is specifically configured 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 low 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 low flow rate 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, determining that the target small flow rate gear is a stable small flow rate gear;
[0323] Calculating the total flow of the target gas device within the preset sampling period based on 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 one possible design, when the alarm processing module 1203 determines whether to issue an alarm based on the multiple flow values and the type of the abnormality, it is specifically configured 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 one possible design, when determining the alarm type based on the multiple flow values and the type of the abnormality, the alarm processing module 1203 is specifically configured to:
[0329] Comparing all or part of the plurality of flow values with the threshold range corresponding to each excess flow level, respectively, to obtain second distribution data of the flow values belonging to the excess flow level among the plurality of flow values in each excess flow level; and determining, based on the second distribution data, the alarm type corresponding to the excess flow level having the largest number of distributed flow values as the corresponding alarm type;
[0330] Alternatively, in the overflow level with 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,
[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 one possible design, when determining the alarm type based on the multiple flow values and the type of the abnormality, the alarm processing module 1203 is specifically configured 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] Comparing each second average flow value with a threshold range corresponding to each excess flow gear, to obtain second distribution data of the second average flow value belonging to the excess flow gear in each excess flow gear;
[0335] Determine, based on the second distribution data, the overflow gear having the largest number of second average flow values among the overflow gears, and use the alarm type corresponding to the overflow gear having the largest number of second average flow values 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 one possible design, when determining the alarm type based on the multiple flow values and the type of the abnormality, the alarm processing module 1203 is specifically configured to:
[0339] Calculating a third average flow value corresponding to a third preset number of adjacent flow values according to the plurality of 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 overflow gear, and use the alarm type corresponding to the overflow gear within the threshold range where the target third average flow value is located as the alarm type.
[0341] In one possible design, the determining module 1202 is specifically configured to:
[0342] Determine whether there is abnormal gas flow and the type of abnormal flow 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 abnormality, and the type of the flow abnormality 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 overflow;
[0345] Calculating, 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; if, among the fourth average flow values, fourth average flow values that are greater than or equal to the third number are all within a first preset flow threshold range, and if, among the fifth average flow values, fifth average flow values that are less than the fourth number are all within a second preset flow threshold range, determining that a gas flow anomaly exists, and the type of the flow anomaly is a slight 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 a gas flow abnormality exists, 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 single traffic within a single collection cycle;
[0349] a determination module, configured to compare the acquired single flow with at least two preset flow thresholds to obtain a flow level to which the single flow belongs;
[0350] The alarm processing module is used to determine and send corresponding alarm information based on the acquired flow values of multiple single flows and / or the distribution information of the flow levels they belong to when the single flow meets the preset rules.
[0351] In one possible design, the determination module is also used to obtain the total flow rate based on the obtained single flow measurement; the alarm processing module is also used to determine and send the corresponding alarm information based on 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, when the single flow and the total flow rate both meet the preset rules.
[0352] In one 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 determining module is further configured 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] Determining the threshold interval to which the single flow belongs based on a comparison result of the single flow with the first flow threshold and the second flow threshold, and obtaining 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 one possible design, the acquisition module is further configured to:
[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 determining 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 the 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 obtained 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. 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 the multiple 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.
[0364] In one possible design, the determining module is further configured to:
[0365] After obtaining the single flow each time, calculating the average value of at least two most recent single flow rates;
[0366] Comparing the obtained average flow rate with at least two preset flow rate thresholds to obtain the flow rate level to which the average flow rate belongs, and calculating the number of times the average flow rate 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. Figure 13 This is a schematic diagram of the structure of the gas anomaly detection device provided in the embodiment of the present application. Figure 13As shown, the gas anomaly detection device of this embodiment includes: a processor 1301 and a memory 1302; wherein the memory 1302 is configured to store computer-executable instructions; and the processor 1301 is configured 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 of the above method embodiment.
[0369] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the gas anomaly detection method 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 merely schematic. For example, the division of the modules is merely 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, the functional modules in the various embodiments 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 a unit. The units 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 and includes a number of instructions for causing 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 being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor.
[0372] The memory may include high-speed RAM memory, and may also include non-volatile storage NVM, such as at least one disk storage, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, etc. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (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 buses in the drawings of this application are 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 static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general-purpose 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 an integral part of the processor. The processor and storage medium can be located in an application-specific integrated circuit (ASIC). Of course, the processor and storage medium can also exist as discrete components in an electronic device or a main control device.
[0374] Those skilled in the art will appreciate that all or part of the steps in the above-described method embodiments can be implemented using hardware associated with program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[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 them. 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 make equivalent replacements for some or all of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions 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 based on the multiple flow values; Determining whether to issue an alarm and the type of alarm according to the multiple flow values and the type of flow anomaly; The determining whether to issue an 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 determining of 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 overflow gear respectively, and obtain second distribution data of the flow values belonging to the overflow gear among the multiple flow values in each overflow gear; according to the second distribution data, take the alarm type corresponding to the overflow gear with the largest number of distributed flow values as the corresponding alarm type; or, among the overflow gears with flow value distribution, the alarm type corresponding to the overflow gear with the highest level and the number of distributions reaching a preset number is taken 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.
2. The method according to claim 1, characterized in that The determining of 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, performing small flow setting 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 issue an 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 issue an 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 low flow level, determining the single flow value as a qualified sample; Calculating the pass rate of the plurality of flow values in the target low flow rate 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, it is determined that an alarm event is triggered; The alarm event is used to indicate that an alarm message carrying the alarm type is sent to the 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 determine that an alarm event is triggered if the pass rate is greater than or equal to the preset pass rate.
6. The method according to claim 2, characterized in that The determining whether to issue an 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 low flow level, determining the single flow value as a qualified sample; Calculating the pass rate of the plurality of flow values in the target low flow rate 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 that the target small flow rate gear is a stable small flow rate gear; Calculating the total flow rate within the preset sampling period 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.
7. The method according to claim 1, characterized in that The determining of the alarm type according to the multiple flow values and the type of the flow anomaly includes: Calculating a second average flow value corresponding to a second preset number of adjacent flow values according to the plurality of flow values; Comparing each second average flow value with a threshold range corresponding to each excess flow gear, to obtain second distribution data of the second average flow value belonging to the excess flow gear in each excess flow gear; According to the second distribution data, the flow rate level with the largest number of second average flow values distributed among the flow rate levels 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 rate levels with the second average flow value distribution, the alarm type corresponding to the flow rate level with the highest level and the number of distributions 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 determining of the alarm type according to the multiple flow values and the type of the flow anomaly includes: Calculating a third average flow value corresponding to a third preset number of adjacent flow values according to the plurality of 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 overflow gear, and use the alarm type corresponding to the overflow gear 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 Determining whether there is a gas flow abnormality and the type of the flow abnormality based on the multiple flow values 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 overflow; Calculating, 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; if, among the fourth average flow values, fourth average flow values that are greater than or equal to the third number are all within a first preset flow threshold range, and if, among the fifth average flow values, fifth average flow values that are less than the fourth number are all within a second preset flow threshold range, determining that a gas flow anomaly exists, and the type of the flow anomaly is a slight 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 a gas flow abnormality exists, and the type of the flow abnormality is overflow.
10. A method for detecting gas anomalies, characterized in that: include: Get single flow rate within a single collection cycle; Comparing 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 rate 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 rate and the total flow rate 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 rate 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 smaller than the first flow threshold, and the comparing the acquired single flow with the at least two preset 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; Determining the threshold interval to which the single flow belongs based on a comparison result of the single flow with the first flow threshold and the second flow threshold, and obtaining 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 smaller 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 the 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 the result of determining 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 is negative, returning to the step of 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 step is executed; When the number of times the steps are executed reaches a preset value, the single flow rate in the next collection cycle is re-obtained.
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 flow rates; Comparing the obtained average flow rate with at least two preset flow rate thresholds to obtain the flow rate level to which the average flow rate belongs, and calculating the number of times the average flow rate 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, configured to determine whether there is a gas flow anomaly and the type of the flow anomaly based on the multiple flow values; An alarm processing module, configured to determine whether to generate an alarm and the type of alarm according to the multiple flow values and the type of flow anomaly; When the alarm processing module determines whether to issue an alarm based on the multiple flow values and the type of the abnormality, it is specifically configured 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 configured to: Comparing all or part of the plurality of flow values with the threshold range corresponding to each excess flow level, respectively, to obtain second distribution data of the flow values belonging to the excess flow level among the plurality of flow values in each excess flow level; and determining, based on the second distribution data, the alarm type corresponding to the excess flow level having the largest number of distributed flow values as the corresponding alarm type; Alternatively, in the overflow level with 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, 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. The device according to claim 14, characterized in that When determining the alarm type according to the multiple flow values and the type of the abnormality, the alarm processing module is specifically configured to: 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; According to the target small flow rate, the corresponding alarm type is determined.
16. The device according to claim 14 or 15, characterized in that When the alarm processing module determines whether to issue an alarm based on the multiple flow values and the type of the abnormality, it is specifically configured to: If the type of the 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; 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.
17. The device according to claim 15, characterized in that When the alarm processing module determines whether to issue an alarm based on the multiple flow values and the type of the abnormality, it is specifically configured to: For all or part of the multiple flow values, if any one of the all or part of the flow values is within the threshold range corresponding to the target low flow level, then the single flow value is determined to be a qualified sample; Calculating the pass rate of the plurality of flow values in the target low flow rate 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, it is determined that an alarm event is triggered; The alarm event is used to indicate that an alarm message carrying the alarm type is sent to the target terminal.
18. The device according to claim 17, characterized in that The alarm processing module is also used for: 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 determine that an alarm event is triggered if the pass rate is greater than or equal to the preset pass rate.
19. The device according to claim 15, characterized in that When the alarm processing module determines whether to issue an alarm based on the multiple flow values and the type of the abnormality, it is specifically configured to: For all or part of the multiple flow values, if any one of the all or part of the flow values is within the threshold range corresponding to the target low flow level, then the single flow value is determined to be a qualified sample; Calculating the pass rate of the plurality of flow values in the target low flow rate 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 that the target small flow rate gear is a stable small flow rate gear; Calculating the total flow of the target gas device within the preset sampling period 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.
20. The device according to claim 14, characterized in that When determining the alarm type according to the multiple flow values and the type of the abnormality, the alarm processing module is specifically configured to: Calculating a second average flow value corresponding to a second preset number of adjacent flow values according to the plurality of flow values; Comparing each second average flow value with a threshold range corresponding to each excess flow gear, to obtain second distribution data of the second average flow value belonging to the excess flow gear in each excess flow gear; Determine, based on the second distribution data, the overflow gear having the largest number of second average flow values among the overflow gears, and use the alarm type corresponding to the overflow gear having the largest number of second average flow values as the corresponding alarm type; 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, 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.
21. The device according to claim 14, characterized in that When determining the alarm type according to the multiple flow values and the type of the abnormality, the alarm processing module is specifically configured to: Calculating a third average flow value corresponding to a third preset number of adjacent flow values according to the plurality of 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 overflow gear, and use the alarm type corresponding to the overflow gear within the threshold range where the target third average flow value is located as the alarm type.
22. The device according to claim 14, characterized in that The determining module is specifically configured to: Determine whether there is abnormal gas flow and the type of abnormal flow by 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 overflow; Calculating, 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; if, among the fourth average flow values, fourth average flow values that are greater than or equal to the third number are all within a first preset flow threshold range, and if, among the fifth average flow values, fifth average flow values that are less than the fourth number are all within a second preset flow threshold range, determining that a gas flow anomaly exists, and the type of the flow anomaly is a slight 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 a gas flow abnormality exists, and the type of the flow abnormality is overflow.
23. A gas anomaly detection device, characterized in that: include: The collection module is used to obtain single traffic within a single collection cycle; a determination module, configured to compare the acquired single flow with at least two preset flow thresholds to obtain a flow level to which the single flow belongs; An alarm processing module is used to determine and send corresponding alarm information based on the acquired flow values and / or distribution information of the flow levels of the multiple single flows when the single flow meets the preset rules; The determination module is further configured to obtain a total flow rate based on the acquired single flow rate measurement; the alarm processing module is further configured to determine and send corresponding alarm information based on the flow rate values of one or more single flows acquired during the total flow rate measurement period and / or the flow level distribution information to which the flow rate values of one or more single flows belong when both the single flow rate and the total flow rate meet preset rules; The at least two flow thresholds include a first flow threshold and a second flow threshold, wherein the second flow threshold is smaller than the first flow threshold, and the determining module is further configured 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; Determining the threshold interval to which the single flow belongs based on a comparison result of the single flow with the first flow threshold and the second flow threshold, and obtaining 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.
24. The device according to claim 23, characterized in that The acquisition module is also used for: When the acquired single flow rate is less than or equal to a first flow rate threshold, the current flow rate at each moment is collected at different moments within a predetermined period; 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; 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 the 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.
25. The device according to claim 24, characterized in that 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. 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.
26. The device according to any one of claims 23 to 25, characterized in that The determining module is further configured to: After obtaining the single flow each time, calculating the average value of at least two most recent single flow rates; Comparing the obtained average flow rate with at least two preset flow rate thresholds to obtain the flow rate level to which the average flow rate belongs, and calculating the number of times the average flow rate meets the preset rules; 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.
27. 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.
28. 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 13.
29. 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 1 to 9 is implemented.
30. 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 13 is implemented.
Citation Information
Patent Citations
Gas shutoff device
CN102369395A
A smart gas meter with IC card for safety control
CN201607786U