Gas safety testing methods and related equipment
By acquiring and detecting gas types and concentrations, and using a pre-set model to predict future gas concentrations, the problem of the inability to prevent gas anomalies in a timely manner in existing technologies is solved, thus improving construction safety.
Patent Information
- Application Number
- CN202411646608.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-18
- Publication Date
- 2025-11-14
- Estimated Expiration
- 2044-11-18
AI Technical Summary
In existing technologies, workers can only test the gas concentration and composition of the area to be tested. When gas abnormalities are detected, they cannot be prevented in time, resulting in low construction safety.
By acquiring the gas to be tested, using a gas sensor to detect the gas type and concentration, and using a preset gas concentration prediction model to predict the future gas concentration, the gas safety inspection result is determined based on the current and future gas concentrations.
It enables early detection of gas anomalies, improves construction safety, and ensures the safety of workers.
Smart Images

Figure CN119667080B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of gas safety testing technology, and in particular to gas safety testing and related equipment. Background Technology
[0002] With the rapid development of technology, gas safety testing is crucial for ensuring workplace safety. In some industries, such as chemical, power, and coal mining, toxic and harmful gases such as hydrogen sulfide, ammonia, and carbon monoxide may be present in the air. Timely monitoring of these gas concentrations allows for timely emergency measures to be taken before accidents occur, ensuring the safety of workers.
[0003] In existing gas safety inspection technologies, during construction, workers can only inspect the gas concentration and composition of the area to be inspected. When gas abnormalities are detected, workers cannot take timely preventative measures, resulting in low construction safety.
[0004] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention
[0005] The main purpose of this application is to provide a gas safety inspection method and related equipment, which aims to solve the technical problem that staff cannot take timely preventive measures when gas anomalies occur.
[0006] To achieve the above objectives, this application proposes a gas safety testing method, which includes:
[0007] Obtain the gas to be detected;
[0008] The gas to be detected is detected using a gas sensor to obtain the various gas types contained in the gas to be detected and the current gas concentration corresponding to each gas type;
[0009] Based on a preset gas concentration prediction model, the various gas types, and the current gas concentration, predict the future gas concentration of each gas type;
[0010] Based on the various gas types, the current gas concentration, and the future gas concentration, the gas safety inspection result of the gas to be tested is determined.
[0011] In one embodiment, the step of determining the gas safety inspection result of the gas to be detected based on the multiple gas types, the current gas concentration, and the future gas concentration further includes:
[0012] Based on the various gas types, determine whether there is a toxic gas in the gas to be detected;
[0013] If present, determine whether the current concentration of the toxic gas is greater than or equal to a preset toxic gas concentration threshold. If the concentration of the toxic gas is greater than or equal to the preset toxic gas concentration threshold, then the test result of the current gas is determined to be a hazardous gas. Alternatively, if the current concentration of the toxic gas is less than the preset toxic gas concentration threshold, determine the oxygen concentration in the current gas concentration, and determine whether the oxygen concentration is less than a preset oxygen concentration threshold. If the oxygen concentration is less than the preset oxygen concentration threshold, then the test result of the current gas is determined to be a low-oxygen gas. If the oxygen concentration is greater than or equal to the preset oxygen concentration threshold, then the test result of the current gas is determined to be a safe gas.
[0014] Based on the safe gas, the hazardous gas, and the low-oxygen gas, the current gas safety inspection results are obtained;
[0015] Based on the current gas safety inspection results, the various gas types, and the future gas concentration, the inspection result of the gas to be tested is determined.
[0016] In one embodiment, the step of determining the test result of the gas to be tested based on the current gas safety test result, the multiple gas types, and the future gas concentration further includes:
[0017] Based on the various gas types and the future gas concentration, the future gas safety inspection results are determined, wherein the future gas safety inspection results include safe gases, hazardous gases, and low-oxygen gases;
[0018] Based on the current gas safety inspection results and the future gas safety inspection results, the gas safety inspection result of the gas to be tested is determined. Specifically, if both the current gas safety inspection results and the future gas safety inspection results indicate the presence of a hazardous gas, then the gas to be tested is determined to be a hazardous gas. If both the current gas safety inspection results and the future gas safety inspection results indicate the presence of a low-oxygen gas and the absence of a hazardous gas, then the gas to be tested is determined to be a low-oxygen gas.
[0019] In one embodiment, the step of obtaining the gas to be detected further includes:
[0020] Obtain the area to be inspected;
[0021] Based on a preset area size, the area to be inspected is divided into blocks to obtain multiple target areas;
[0022] Gas is extracted from any one of the multiple target regions to obtain the gas to be detected.
[0023] In one embodiment, prior to the step of predicting gas concentration based on a preset gas concentration model, the method further includes:
[0024] Obtain a first gas concentration and a second gas concentration, wherein the second gas concentration is the gas concentration of the first gas concentration after n minutes;
[0025] Determine the current gas concentration prediction model;
[0026] Based on the current gas concentration prediction model and the first gas concentration, predict the third gas concentration n minutes after the first gas concentration.
[0027] Subtracting the third gas concentration from the second gas concentration yields the gas concentration difference.
[0028] Determine whether the gas concentration difference is greater than a preset gas concentration threshold. If the gas concentration difference is greater than the preset gas concentration threshold, adjust the parameters of the current gas concentration prediction model.
[0029] Based on the current gas concentration prediction model with adjusted parameters, the process returns to the step of predicting the third gas concentration n minutes later based on the current gas concentration prediction model and the first gas concentration, until the gas concentration difference is less than or equal to a preset gas concentration threshold, and the preset gas concentration prediction model is obtained.
[0030] In one embodiment, before the step of determining the gas safety inspection result of the gas to be detected based on the multiple gas types, the current gas concentration, and the future gas concentration, the method further includes:
[0031] An interface is constructed to display the gas safety test results of the gas to be tested, wherein the interface displays the gas safety test results of the gas to be tested, the various gas types, the current gas concentration, and the future gas concentration.
[0032] Furthermore, to achieve the above objectives, this application also proposes a gas safety testing device, which includes:
[0033] Acquisition module, the acquisition module is used to acquire the gas to be detected;
[0034] A gas detection module is used to detect the gas to be detected using a gas sensor, and to obtain the multiple gas types contained in the gas to be detected and the current gas concentration corresponding to each gas type;
[0035] The prediction module is used to predict the future gas concentration of each gas type based on a preset gas concentration prediction model, the multiple gas types, and the current gas concentration.
[0036] The determining module is used to determine the gas safety inspection result of the gas to be tested based on the multiple gas types, the current gas concentration, and the future gas concentration.
[0037] In one embodiment, the determining module includes:
[0038] The judgment unit determines whether there is a toxic gas in the gas to be detected based on the multiple gas types.
[0039] The testing unit, if present, determines whether the current concentration of the toxic gas is greater than or equal to a preset toxic gas concentration threshold. If the concentration of the toxic gas is greater than or equal to the preset toxic gas concentration threshold, the test result of the current gas is determined to be a hazardous gas. Alternatively, if the current concentration of the toxic gas is less than the preset toxic gas concentration threshold, the oxygen concentration in the current gas is determined, and it is determined whether the oxygen concentration is less than a preset oxygen concentration threshold. If the oxygen concentration is less than the preset oxygen concentration threshold, the test result of the current gas is determined to be a low-oxygen gas. If the oxygen concentration is greater than or equal to the preset oxygen concentration threshold, the test result of the current gas is determined to be a safe gas.
[0040] The unit for obtaining current gas safety inspection results is used to obtain current gas safety inspection results based on the safe gas, the hazardous gas, and the low-oxygen gas.
[0041] The first determining unit is used to determine the test result of the gas to be tested based on the current gas safety test result, the multiple gas types and the future gas concentration.
[0042] In one embodiment, the determining module further includes:
[0043] The second determining unit is used to determine the future gas safety inspection result based on the multiple gas types and the future gas concentration, wherein the future gas safety inspection result includes safe gas, dangerous gas and low oxygen gas;
[0044] The third determining unit is used to determine the gas safety inspection result of the gas to be tested based on the current gas safety inspection result and the future gas safety inspection result. Specifically, if both the current and future gas safety inspection results indicate the presence of a hazardous gas, the gas to be tested is determined to be a hazardous gas; if both the current and future gas safety inspection results indicate the presence of a safe gas, the gas to be tested is determined to be a safe gas; and if both the current and future gas safety inspection results indicate the presence of a low-oxygen gas and the absence of a hazardous gas, the gas to be tested is determined to be a low-oxygen gas.
[0045] In one embodiment, the module to be acquired includes:
[0046] The first acquisition unit is used to acquire the area to be inspected;
[0047] The second acquisition unit is used to divide the area to be inspected into blocks based on a preset area size to obtain multiple target areas;
[0048] A gas unit to be detected is obtained by extracting gas from any one of the plurality of target regions to obtain the gas to be detected.
[0049] In one embodiment, the prediction module includes:
[0050] The third acquisition unit is used to acquire the first gas concentration and the second gas concentration, wherein the second gas concentration is the gas concentration of the first gas concentration after n minutes;
[0051] The fourth determining unit is used to determine the current gas concentration prediction model;
[0052] The prediction unit is used to predict the third gas concentration n minutes later based on the current gas concentration prediction model and the first gas concentration;
[0053] The calculation unit is used to subtract the third gas concentration from the second gas concentration to obtain the gas concentration difference.
[0054] An adjustment unit is used to determine whether the gas concentration difference is greater than a preset gas concentration threshold. If the gas concentration difference is greater than the preset gas concentration threshold, the parameters of the current gas concentration prediction model are adjusted.
[0055] The training unit is used to return a step of predicting the third gas concentration n minutes later based on the current gas concentration prediction model with adjusted parameters and the first gas concentration, until the gas concentration difference is less than or equal to a preset gas concentration threshold, and obtain the preset gas concentration prediction model.
[0056] In one embodiment, the determining module further includes:
[0057] A construction unit is used to construct an interface for displaying the gas safety test results of the gas to be tested, wherein the interface displays the gas safety test results of the gas to be tested, the various gas types, the current gas concentration, and the future gas concentration.
[0058] In addition, to achieve the above objectives, this application also proposes a gas safety testing device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the gas safety testing method as described above.
[0059] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the gas safety testing method described above.
[0060] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the gas safety testing method described above.
[0061] One or more technical solutions proposed in this application have at least the following technical effects:
[0062] This application proposes a gas safety inspection method and related equipment. In related technologies, when inspecting a gas, workers can only inspect the gas concentration and composition of the current area to be inspected. When an abnormality is detected, workers cannot take timely preventative measures, resulting in low construction safety. In this application, firstly, the gas safety inspection equipment acquires the gas to be tested. Then, the gas safety inspection equipment uses a gas sensor to detect the gas to be tested, obtaining the multiple gas types contained in the gas and the current gas concentration corresponding to each gas type. Further, based on a preset gas concentration prediction model, the multiple gas types, and the current gas concentration, the gas safety inspection equipment predicts the future gas concentration of each gas type. Finally, based on the multiple gas types, the current gas concentration, and the future gas concentration, the gas safety inspection result of the gas to be tested is determined.
[0063] It is understood that in this application, the gas safety inspection equipment uses a preset gas concentration prediction model to predict the future gas concentration. Based on the future gas concentration and the current gas concentration, the gas safety inspection result of the gas to be tested is obtained. As a result, the staff can detect gas anomalies in advance and improve construction safety. Attached Figure Description
[0064] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0065] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0066] Figure 1 This is a flowchart illustrating an embodiment of the gas safety testing method of this application.
[0067] Figure 2 This is a flowchart illustrating Embodiment 2 of the gas safety testing method of this application;
[0068] Figure 3 This is a flowchart illustrating Embodiment 3 of the gas safety testing method of this application;
[0069] Figure 4 This is a schematic diagram of the module structure of the gas safety testing device according to an embodiment of this application;
[0070] Figure 5 This is a schematic diagram of the equipment structure of the hardware operating environment involved in the gas safety testing method in this application embodiment.
[0071] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0072] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.
[0073] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.
[0074] The main solution in this application embodiment is:
[0075] In this embodiment, for ease of description, the following description will focus on gas safety inspection as the main performance indicator.
[0076] Because existing technology can only test the gas concentration and composition in the current testing area, workers cannot take timely preventative measures when gas abnormalities are detected, resulting in low construction safety.
[0077] This application provides a solution that involves acquiring a gas to be tested, detecting the gas using a gas sensor, obtaining multiple gas types contained in the gas and their corresponding current concentrations, predicting the future concentration of each gas type based on a preset gas concentration prediction model, the multiple gas types, and the current gas concentration, and determining the gas safety inspection result of the gas to be tested based on the multiple gas types, the current gas concentration, and the future gas concentration. This application uses a preset gas concentration prediction model to predict future gas concentrations, and obtains the gas safety inspection result of the gas to be tested based on the future gas concentration and the current gas concentration. Therefore, workers can detect gas anomalies in advance, improving construction safety.
[0078] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or an electronic device or gas safety testing device capable of performing the above functions. The following description uses a gas safety testing device as an example to illustrate this embodiment and the subsequent embodiments.
[0079] Based on this, embodiments of this application provide a gas safety testing method, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the gas safety testing method of this application.
[0080] In this embodiment, the gas safety inspection method includes steps S100-400:
[0081] Step S100: Obtain the gas to be detected;
[0082] In this embodiment, the executing entity is a gas safety testing device. This gas safety testing device can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or an electronic device capable of performing the above functions. The gas safety testing device includes a gas testing sensor.
[0083] In this embodiment, a specific application scenario could be:
[0084] In a relatively large, enclosed space (the construction area), workers need to conduct gas detection to determine if the gas in the construction area is safe. The worker then clicks the "Gas Safety Inspection" button. Once the gas safety inspection equipment detects that the button has been clicked, it uses gas sampling equipment to collect a sample of the gas to be tested from the construction area. This gas sampling equipment includes, but is not limited to, gas sampling pumps and aspirating samplers.
[0085] Specifically, the step of obtaining the gas to be detected further includes steps S110 to S130:
[0086] Step S110: Obtain the area to be inspected;
[0087] It is understandable that the area to be inspected is the construction area.
[0088] Step S120: Based on the preset area size, the area to be inspected is divided into blocks to obtain multiple target areas;
[0089] Understandably, the gas safety testing equipment first collects detailed data on the area to be tested. This detailed data may include data on geographical and physical features such as topography, buildings, roads, and rivers. This detailed data can be obtained through methods such as field measurements, satellite imagery, aerial photography, and LiDAR scanning.
[0090] After the gas safety testing equipment collects detailed data of the area to be tested, the collected detailed data needs to be processed to extract useful information. Then, based on the useful information, the area to be tested is divided into blocks to obtain multiple target areas.
[0091] Understandably, before starting the segmentation, the size of each target area (preset area size) needs to be determined. The preset area size can be set based on specific standards, requirements, or planning specifications. For example, in gas safety testing, different area sizes might be preset based on the gas concentration and the margin of error in the gas safety test results. For a large area, using testing equipment to test the gas results in a larger margin of error and lower reliability. For a small area, using testing equipment to test the gas results in a smaller margin of error, but the gas safety test efficiency is lower. Therefore, selecting appropriate target areas can ensure the reliability of the test results while improving testing efficiency.
[0092] Step S130: Extract gas from any one of the plurality of target regions to obtain the gas to be detected.
[0093] Understandably, after the gas safety testing equipment divides the plan into blocks to obtain multiple target areas, it determines the location for gas collection in each target area. The gas safety testing equipment uses a gas sampling device to extract gas at the gas collection location. Gas is extracted from each target area to obtain the gas to be tested. The gas extracted from each target area is stored separately.
[0094] Step S200: Use a gas sensor to detect the gas to be detected, and obtain the multiple gas types contained in the gas to be detected and the current gas concentration corresponding to each gas type;
[0095] Understandably, the first step is to place the gas sensor in the gas to be tested so that it can come into contact with it. After detecting the gas, the gas sensor determines the type of gas based on its characteristics. For example, one type of gas sensor might be specifically designed to detect carbon monoxide (CO), while another might be designed to detect methane (CH4). After determining the gas type, the sensor also measures the concentration of each gas, that is, the proportion or abundance of each gas in the gas to be tested.
[0096] It should be noted that a gas sensor is a device that converts the concentration of a gas into an electrical signal. It interacts with the gas through physical or chemical means, thereby detecting the presence and concentration of the gas. There are various types of gas sensors; in this application, an electrochemical gas sensor is used.
[0097] Additionally, it should be noted that gas sensors may be interfered with by other gases during actual detection. Therefore, in this application, gas sensors that only detect fixed gases are used, such as gas sensors specifically designed for detecting carbon monoxide or ammonia.
[0098] Step S300: Based on the preset gas concentration prediction model, the multiple gas types, and the current gas concentration, predict the future gas concentration of each gas type;
[0099] It should be noted that the preset gas concentration prediction model is a mathematical model used to predict future gas concentrations based on input data (such as current gas concentration).
[0100] Step S400: Based on the multiple gas types, the current gas concentration, and the future gas concentration, determine the gas safety inspection result of the gas to be tested.
[0101] Understandably, after obtaining the various gas types, the current gas concentration, and the future gas concentration, the gas safety testing equipment determines the oxygen concentration in the gas to be tested, determines whether a toxic gas is present in the gas to be tested, and determines the concentration of the toxic gas. Based on the oxygen concentration, the presence of a toxic gas, and the concentration of the toxic gas if it is present, the test result of the gas to be tested is determined.
[0102] It should be noted that there are three types of gas test results: low-oxygen gas, hazardous gas, and safe gas. Low-oxygen gas indicates that the tested gas does not contain non-toxic gases, or that the concentration of toxic gases in the tested gas is within the safe range, but the oxygen content is too low to be suitable for worker survival. Hazardous gas indicates that the tested gas contains toxic gases. Safe gas indicates that the oxygen concentration in the tested gas is suitable for worker survival, and that the tested gas does not contain non-toxic gases, or that the concentration of toxic gases in the tested gas is within the safe range.
[0103] Specifically, the step of determining the gas safety inspection result of the gas to be tested based on the multiple gas types, the current gas concentration, and the future gas concentration further includes steps S410 to S440:
[0104] Step S410: Based on the multiple gas types, determine whether there is a toxic gas in the gas to be detected;
[0105] Understandably, toxic gases refer to gases that are harmful to human health. They can damage the respiratory, nervous, and cardiovascular systems, and at certain concentrations, can even be fatal. Toxic gases include: carbon monoxide (CO), sulfur dioxide (SO2), nitrogen oxides (NOx), ammonia (NH3), chlorine (Cl2), hydrogen cyanide (HCN), and hydrogen sulfide (H2S).
[0106] It should be noted that toxic gases only have an impact on human health when their concentration reaches a certain level; the impact of low concentrations of toxic gases on human health is almost negligible.
[0107] Step S420: If present, determine whether the current concentration of the toxic gas is greater than or equal to a preset toxic gas concentration threshold. If the concentration of the toxic gas is greater than or equal to the preset toxic gas concentration threshold, then determine that the test result of the current gas is a hazardous gas; or, if the current concentration of the toxic gas is less than the preset toxic gas concentration threshold, determine the oxygen concentration in the current gas concentration, and determine whether the oxygen concentration is less than a preset oxygen concentration threshold. If the oxygen concentration is less than the preset oxygen concentration threshold, then determine that the test result of the current gas is a low-oxygen gas; if the oxygen concentration is greater than or equal to the preset oxygen concentration threshold, then determine that the test result of the current gas is a safe gas.
[0108] It is understood that in this embodiment, when there is a toxic gas in the gas to be detected, and the concentration of the toxic gas is greater than or equal to a preset toxic gas concentration threshold, the test result is determined to be a dangerous gas. The preset toxic gas concentration threshold refers to the lowest concentration value at which the toxic gas can affect human health.
[0109] In this embodiment, when a toxic gas is present in the gas to be detected, but the concentration of the toxic gas is less than a preset toxic gas concentration threshold, it is determined whether the oxygen concentration in the current gas concentration is less than the preset oxygen concentration threshold. If it is less, the test result is determined to be a low-oxygen gas; if it is greater than or equal to the threshold, the test result is determined to be a safe gas.
[0110] Step S430: Based on the safe gas, the hazardous gas, and the low-oxygen gas, obtain the current gas safety inspection result;
[0111] Understandably, after determining the test results, the test results should be saved as the current gas safety test results.
[0112] Step S440: Based on the current gas safety inspection results, the multiple gas types, and the future gas concentration, determine the inspection result of the gas to be tested.
[0113] Specifically, the step of determining the test result of the gas to be tested based on the current gas safety test result, the multiple gas types, and the future gas concentration further includes steps S441 to S442:
[0114] Step S441: Based on the multiple gas types and the future gas concentration, determine the future gas safety inspection result, wherein the future gas safety inspection result includes safe gas, hazardous gas, and low-oxygen gas;
[0115] It should be noted that the method for determining the second test result is the same as the method for determining the first test result, which can be referred to in the above introduction and will not be repeated hereafter.
[0116] Step S442: Based on the current gas safety inspection result and the future gas safety inspection result, determine the gas safety inspection result of the gas to be tested. Specifically, if both the current and future gas safety inspection results indicate the presence of a hazardous gas, then the gas to be tested is determined to be a hazardous gas; if both the current and future gas safety inspection results indicate the presence of a safe gas, then the gas to be tested is determined to be a safe gas; if both the current and future gas safety inspection results indicate the presence of a low-oxygen gas and no hazardous gas, then the gas to be tested is determined to be a low-oxygen gas.
[0117] One or more technical solutions proposed in this application have at least the following technical effects:
[0118] This application proposes a gas safety inspection method and related equipment. In related technologies, when inspecting a gas, workers can only inspect the gas concentration and composition of the current area to be inspected. When an abnormality is detected, workers cannot take timely preventative measures, resulting in low construction safety. In this application, firstly, the gas safety inspection equipment acquires the gas to be tested. Then, the gas safety inspection equipment uses a gas sensor to detect the gas to be tested, obtaining the multiple gas types contained in the gas and the current gas concentration corresponding to each gas type. Further, based on a preset gas concentration prediction model, the multiple gas types, and the current gas concentration, the gas safety inspection equipment predicts the future gas concentration of each gas type. Finally, based on the multiple gas types, the current gas concentration, and the future gas concentration, the gas safety inspection result of the gas to be tested is determined.
[0119] It is understood that in this application, the gas safety inspection equipment uses a preset gas concentration prediction model to predict the future gas concentration. Based on the future gas concentration and the current gas concentration, the gas safety inspection result of the gas to be tested is obtained. As a result, the staff can detect gas anomalies in advance and improve construction safety.
[0120] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to that in Embodiment 1 above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 2 Before step S300, the gas safety inspection method further includes steps S310 to S360:
[0121] Step S310: Obtain the first gas concentration and the second gas concentration, wherein the second gas concentration is the gas concentration of the first gas concentration after n minutes;
[0122] It is understandable that n can be 1, 2, 3, 4, 5, etc.
[0123] Step S320: Determine the current gas concentration prediction model;
[0124] Step S330: Based on the current gas concentration prediction model and the first gas concentration, predict the third gas concentration n minutes later.
[0125] Step S340: Subtract the third gas concentration from the second gas concentration to obtain the gas concentration difference;
[0126] Step S350: Determine whether the gas concentration difference is greater than a preset gas concentration threshold. If the gas concentration difference is greater than the preset gas concentration threshold, adjust the parameters of the current gas concentration prediction model.
[0127] It is understood that if the gas concentration difference is greater than the preset gas concentration threshold, it indicates that the prediction ability of the current gas concentration prediction model does not meet the requirements; if the gas concentration difference is less than or equal to the preset gas concentration threshold, it indicates that the prediction ability of the current gas concentration prediction model meets the requirements.
[0128] Step S360: Based on the current gas concentration prediction model after parameter adjustment, return to the step of predicting the third gas concentration n minutes later based on the current gas concentration prediction model and the first gas concentration, until the gas concentration difference is less than or equal to the preset gas concentration threshold, and obtain the preset gas concentration prediction model.
[0129] In this embodiment, the current gas concentration prediction model is trained to reduce the difference between the prediction results of the current gas concentration prediction model and the actual results, thereby improving the accuracy of the prediction values.
[0130] Based on the first and second embodiments of this application, in the third embodiment of this application, the content that is the same as or similar to the first and second embodiments described above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 3 Before step S400, the gas safety inspection method further includes step A10:
[0131] Step A10: Construct an interface to display the gas safety test results of the gas to be tested, wherein the interface displays the gas safety test results of the gas to be tested, the various gas types, the current gas concentration, and the future gas concentration.
[0132] It is understood that, in this embodiment, the gas safety testing equipment constructs an interface to display the gas safety testing results of the gas to be tested. The page displays the gas safety testing results of each target area, the various gas types, the current gas concentration, and the future gas concentration.
[0133] It should also be noted that target areas where the gas safety inspection result indicates hazardous gas will be marked in red; target areas where the gas safety inspection result indicates oxygen-deficient gas will be marked in yellow; and target areas where the gas safety inspection result indicates safe gas will be marked in green.
[0134] In this embodiment, the gas safety inspection results of each target area are directly displayed, which is more intuitive and makes it easier for staff to understand the changes in the gas in the target area.
[0135] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the gas safety testing method of this application. Any simple modifications based on this technical concept are within the protection scope of this application.
[0136] This application also provides a gas safety detection device, please refer to... Figure 4 The gas safety testing device includes:
[0137] Acquisition module 10, the acquisition module is used to acquire the gas to be detected;
[0138] Gas detection module 20, the gas detection module is used to detect the gas to be detected using a gas sensor, and obtain the multiple gas types contained in the gas to be detected and the current gas concentration corresponding to each gas type;
[0139] Prediction module 30, the prediction module is used to predict the future gas concentration of each gas type based on a preset gas concentration prediction model, the multiple gas types and the current gas concentration;
[0140] The determining module 40 is used to determine the gas safety inspection result of the gas to be tested based on the multiple gas types, the current gas concentration, and the future gas concentration.
[0141] In one embodiment, the determining module includes:
[0142] The judgment unit determines whether there is a toxic gas in the gas to be detected based on the multiple gas types.
[0143] The testing unit, if present, determines whether the current concentration of the toxic gas is greater than or equal to a preset toxic gas concentration threshold. If the concentration of the toxic gas is greater than or equal to the preset toxic gas concentration threshold, the test result of the current gas is determined to be a hazardous gas. Alternatively, if the current concentration of the toxic gas is less than the preset toxic gas concentration threshold, the oxygen concentration in the current gas is determined, and it is determined whether the oxygen concentration is less than a preset oxygen concentration threshold. If the oxygen concentration is less than the preset oxygen concentration threshold, the test result of the current gas is determined to be a low-oxygen gas. If the oxygen concentration is greater than or equal to the preset oxygen concentration threshold, the test result of the current gas is determined to be a safe gas.
[0144] The unit for obtaining current gas safety inspection results is used to obtain current gas safety inspection results based on the safe gas, the hazardous gas, and the low-oxygen gas.
[0145] The first determining unit is used to determine the test result of the gas to be tested based on the current gas safety test result, the multiple gas types and the future gas concentration.
[0146] In one embodiment, the determining module further includes:
[0147] The second determining unit is used to determine the future gas safety inspection result based on the multiple gas types and the future gas concentration, wherein the future gas safety inspection result includes safe gas, dangerous gas and low oxygen gas;
[0148] The third determining unit is used to determine the gas safety inspection result of the gas to be tested based on the current gas safety inspection result and the future gas safety inspection result. Specifically, if both the current and future gas safety inspection results indicate the presence of a hazardous gas, the gas to be tested is determined to be a hazardous gas; if both the current and future gas safety inspection results indicate the presence of a safe gas, the gas to be tested is determined to be a safe gas; and if both the current and future gas safety inspection results indicate the presence of a low-oxygen gas and the absence of a hazardous gas, the gas to be tested is determined to be a low-oxygen gas.
[0149] In one embodiment, the module to be acquired includes:
[0150] The first acquisition unit is used to acquire the area to be inspected;
[0151] The second acquisition unit is used to divide the area to be inspected into blocks based on a preset area size to obtain multiple target areas;
[0152] A gas unit to be detected is obtained by extracting gas from any one of the plurality of target regions to obtain the gas to be detected.
[0153] In one embodiment, the prediction module includes:
[0154] The third acquisition unit is used to acquire the first gas concentration and the second gas concentration, wherein the second gas concentration is the gas concentration of the first gas concentration after n minutes;
[0155] The fourth determining unit is used to determine the current gas concentration prediction model;
[0156] The prediction unit is used to predict the third gas concentration n minutes later based on the current gas concentration prediction model and the first gas concentration;
[0157] The calculation unit is used to subtract the third gas concentration from the second gas concentration to obtain the gas concentration difference.
[0158] An adjustment unit is used to determine whether the gas concentration difference is greater than a preset gas concentration threshold. If the gas concentration difference is greater than the preset gas concentration threshold, the parameters of the current gas concentration prediction model are adjusted.
[0159] The training unit is used to return a step of predicting the third gas concentration n minutes later based on the current gas concentration prediction model with adjusted parameters and the first gas concentration, until the gas concentration difference is less than or equal to a preset gas concentration threshold, and obtain the preset semantic segmentation model.
[0160] In one embodiment, the determining module further includes:
[0161] A construction unit is used to construct an interface for displaying the gas safety test results of the gas to be tested, wherein the interface displays the gas safety test results of the gas to be tested, the various gas types, the current gas concentration, and the future gas concentration.
[0162] The gas safety testing device provided in this application, employing the gas safety testing method in the above embodiments, can solve the technical problem of gas safety testing. Compared with the prior art, the beneficial effects of the gas safety testing device provided in this application are the same as those of the gas safety testing method provided in the above embodiments, and other technical features in the gas safety testing device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0163] This application provides a gas safety testing device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, which are executed by the at least one processor to enable the at least one processor to perform the gas safety testing method in Embodiment 1 above.
[0164] The following is for reference. Figure 5 The diagram illustrates a structural schematic of a gas safety testing device suitable for implementing embodiments of this application. The gas safety testing device in these embodiments may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), and vehicle terminals (e.g., vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 5 The gas safety testing equipment shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments of this application.
[0165] like Figure 5As shown, the gas safety testing equipment may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 into a random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the gas safety testing equipment. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touchscreen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1003 including, for example, magnetic tape, hard disk, etc.; and communication devices 1009. Communication device 1009 allows the gas safety testing equipment to communicate wirelessly or wiredly with other equipment to exchange data. Although the figure shows gas safety testing equipment with various systems, it should be understood that implementation or possession of all the systems shown is not required. More or fewer systems may be implemented alternatively.
[0166] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0167] The gas safety testing equipment provided in this application, employing the gas safety testing method described in the above embodiments, can solve the technical problems of gas safety testing. Compared with the prior art, the beneficial effects of the gas safety testing equipment provided in this application are the same as those of the gas safety testing method provided in the above embodiments, and other technical features of this gas safety testing equipment are the same as those disclosed in the previous embodiment method, and will not be repeated here.
[0168] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0169] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0170] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the gas safety testing method in the above embodiments.
[0171] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0172] The aforementioned computer-readable storage medium may be included in the gas safety testing equipment; or it may exist independently and not be assembled into the gas safety testing equipment.
[0173] The aforementioned computer-readable storage medium carries one or more programs, which, when executed by the gas safety testing equipment, cause the gas safety testing equipment to:
[0174] Obtain the gas to be detected;
[0175] The gas to be detected is detected using a gas sensor to obtain the various gas types contained in the gas to be detected and the current gas concentration corresponding to each gas type;
[0176] Based on a preset gas concentration prediction model, the various gas types, and the current gas concentration, predict the future gas concentration of each gas type;
[0177] Based on the various gas types, the current gas concentration, and the future gas concentration, the gas safety inspection result of the gas to be tested is determined.
[0178] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0179] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0180] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0181] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described gas safety testing method, thereby solving the technical problem of gas safety testing. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the gas safety testing method provided in the above embodiments, and will not be repeated here.
[0182] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the gas safety testing method described above.
[0183] The computer program product provided in this application can solve the technical problem of gas safety inspection. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the gas safety inspection method provided in the above embodiments, and will not be repeated here.
[0184] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.
Claims
1. A gas safety testing method, characterized in that, The gas safety inspection method includes: Obtain the gas to be detected; The gas to be detected is detected using a gas sensor to obtain the various gas types contained in the gas to be detected and the current gas concentration corresponding to each gas type; Based on a preset gas concentration prediction model, the various gas types, and the current gas concentration, predict the future gas concentration of each gas type; Based on the various gas types, the current gas concentration, and the future gas concentration, the gas safety inspection result of the gas to be tested is determined; The step of determining the gas safety inspection result of the gas to be tested based on the multiple gas types, the current gas concentration, and the future gas concentration further includes: Based on the various gas types, determine whether there is a toxic gas in the gas to be detected; If present, determine whether the current concentration of the toxic gas is greater than or equal to a preset toxic gas concentration threshold. If the concentration of the toxic gas is greater than or equal to the preset toxic gas concentration threshold, then the test result of the current gas is determined to be a hazardous gas. If the current concentration of the toxic gas is less than the preset toxic gas concentration threshold, determine the oxygen concentration in the current gas concentration and determine whether the oxygen concentration is less than a preset oxygen concentration threshold. If the oxygen concentration is less than the preset oxygen concentration threshold, then the test result of the current gas is determined to be a low-oxygen gas. If the oxygen concentration is greater than or equal to the preset oxygen concentration threshold, then the test result of the current gas is determined to be a safe gas. Based on the safe gas, the hazardous gas, and the low-oxygen gas, the current gas safety inspection results are obtained; Based on the current gas safety inspection results, the various gas types, and the future gas concentration, the inspection result of the gas to be tested is determined; The step of determining the test result of the gas to be tested based on the current gas safety test result, the multiple gas types, and the future gas concentration further includes: Based on the various gas types and the future gas concentration, the future gas safety inspection results are determined, wherein the future gas safety inspection results include safe gases, hazardous gases, and low-oxygen gases; Based on the current gas safety inspection results and the future gas safety inspection results, the gas safety inspection result of the gas to be tested is determined. Specifically, if both the current gas safety inspection results and the future gas safety inspection results indicate the presence of a hazardous gas, then the gas to be tested is determined to be a hazardous gas. If both the current gas safety inspection results and the future gas safety inspection results indicate the presence of a low-oxygen gas and the absence of a hazardous gas, then the gas to be tested is determined to be a low-oxygen gas.
2. The gas safety testing method as described in claim 1, characterized in that, The step of obtaining the gas to be detected further includes: Obtain the area to be inspected; Based on a preset area size, the area to be inspected is divided into blocks to obtain multiple target areas; Gas is extracted from any one of the multiple target regions to obtain the gas to be detected.
3. The gas safety testing method as described in claim 1, characterized in that, Before the step based on the preset gas concentration prediction model, the method further includes: Obtain a first gas concentration and a second gas concentration, wherein the second gas concentration is the gas concentration of the first gas concentration after n minutes; Determine the current gas concentration prediction model; Based on the current gas concentration prediction model and the first gas concentration, predict the third gas concentration n minutes after the first gas concentration. Subtracting the third gas concentration from the second gas concentration yields the gas concentration difference. Determine whether the gas concentration difference is greater than a preset gas concentration threshold. If the gas concentration difference is greater than the preset gas concentration threshold, adjust the parameters of the current gas concentration prediction model. Based on the current gas concentration prediction model with adjusted parameters, the process returns to the step of predicting the third gas concentration n minutes later based on the current gas concentration prediction model and the first gas concentration, until the gas concentration difference is less than or equal to a preset gas concentration threshold, and the preset gas concentration prediction model is obtained.
4. The gas safety testing method as described in claim 1, characterized in that, Before the step of determining the gas safety inspection result of the gas to be tested based on the multiple gas types, the current gas concentration, and the future gas concentration, the method further includes: An interface is constructed to display the gas safety test results of the gas to be tested, wherein the interface displays the gas safety test results of the gas to be tested, the various gas types, the current gas concentration, and the future gas concentration.
5. A gas safety testing device, characterized in that, The device includes: Acquisition module, the acquisition module is used to acquire the gas to be detected; A gas detection module is used to detect the gas to be detected using a gas sensor, and to obtain the multiple gas types contained in the gas to be detected and the current gas concentration corresponding to each gas type; The prediction module is used to predict the future gas concentration of each gas type based on a preset gas concentration prediction model, the multiple gas types, and the current gas concentration; The determining module is used to determine the gas safety inspection result of the gas to be tested based on the multiple gas types, the current gas concentration, and the future gas concentration. The determining module is further configured to implement: Based on the various gas types, determine whether there is a toxic gas in the gas to be detected; If present, determine whether the current concentration of the toxic gas is greater than or equal to a preset toxic gas concentration threshold. If the concentration of the toxic gas is greater than or equal to the preset toxic gas concentration threshold, then the test result of the current gas is determined to be a hazardous gas. If the current concentration of the toxic gas is less than the preset toxic gas concentration threshold, determine the oxygen concentration in the current gas concentration and determine whether the oxygen concentration is less than a preset oxygen concentration threshold. If the oxygen concentration is less than the preset oxygen concentration threshold, then the test result of the current gas is determined to be a low-oxygen gas. If the oxygen concentration is greater than or equal to the preset oxygen concentration threshold, then the test result of the current gas is determined to be a safe gas. Based on the safe gas, the hazardous gas, and the low-oxygen gas, the current gas safety inspection results are obtained; Based on the current gas safety inspection results, the various gas types, and the future gas concentration, the inspection result of the gas to be tested is determined; The determining module is further configured to implement: Based on the various gas types and the future gas concentration, the future gas safety inspection results are determined, wherein the future gas safety inspection results include safe gases, hazardous gases, and low-oxygen gases; Based on the current gas safety inspection results and the future gas safety inspection results, the gas safety inspection result of the gas to be tested is determined. Specifically, if both the current gas safety inspection results and the future gas safety inspection results indicate the presence of a hazardous gas, then the gas to be tested is determined to be a hazardous gas. If both the current gas safety inspection results and the future gas safety inspection results indicate the presence of a low-oxygen gas and the absence of a hazardous gas, then the gas to be tested is determined to be a low-oxygen gas.
6. A gas safety testing device, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the gas safety testing method as described in any one of claims 1 to 4.
7. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the gas safety inspection method as described in any one of claims 1 to 4.
8. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the steps of the gas safety testing method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Mine air quality monitoring system based on LSTM neural network
CN115310367A
Four-in-one oxygen content increasing flue gas parameter acquisition system
CN117554567A