Calibration method and device for gas detection equipment, storage medium and electronic equipment
By determining the target distribution boundary and preset ratio in the gas detection equipment and identifying abnormal detection data, the problem of low accuracy of calibration results of gas detection equipment is solved, and the effective detection of gas detection equipment and the accuracy of calibration results is improved.
Patent Information
- Application Number
- CN202411097918.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-08-12
AI Technical Summary
The abnormal detection method of calibration results of gas detection equipment is too single, resulting in low calibration accuracy. The existing technology has failed to effectively solve the calibration differences in different equipment and environments.
The gas detection device detects the detected gas, determines the detection data, and performs a division operation to determine the target distribution boundary, and judges whether the target detection data satisfies the preset relationship based on the preset ratio, thereby identifying the abnormal detection data and determining the abnormal gas detection device.
It improves the accuracy of calibration results of gas detection equipment, timely identify and recalibrate abnormal equipment, and ensures the accuracy and credibility of calibration results.
Smart Images

Figure CN118624840B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular, to a calibration method and device for gas detection equipment, a storage medium, and an electronic device. Background Art
[0002] At present, in the relevant technology, the accuracy of the calibration results of the gas detection equipment is mainly verified manually according to a preset empirical value. However, since different gas detection equipment has its own differences and the calibration environment is not static, there are differences between the calibrations of different gas detection equipment, and there are also differences between the calibrations of gas detection equipment in different calibration environments. In summary, the reliability of abnormal detection of gas detection equipment is poor, that is, using the same empirical value to measure each calibration result is not accurate, resulting in a technical problem of low calibration accuracy.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present application provide a calibration method and device, a storage medium and an electronic device for a gas detection device, so as to at least solve the technical problem that the calibration accuracy is low due to the overly single method of abnormality detection on the calibration results of the gas detection device.
[0005] According to one aspect of an embodiment of the present application, a calibration method for a gas detection device is provided, comprising: using the gas detection device to detect a gas to be detected, determining a set of detection data, and performing a division operation on the set of detection data to determine a target distribution boundary; determining whether the number of target detection data satisfies a preset ratio according to a predetermined distribution boundary sequence, wherein an element in the distribution boundary sequence is determined by performing the division operation on a set of sample detection data, the target detection data represents detection data in the set of detection data that satisfies a first preset relationship with a sample distribution boundary, and the sample distribution boundary is jointly determined by the values of each element in the distribution boundary sequence; when the number of target detection data satisfies the preset ratio, determining abnormal detection data in the set of detection data that satisfies a second preset relationship with the target distribution boundary; and determining the gas detection device corresponding to the abnormal detection data as an abnormal gas detection device.
[0006] According to another aspect of an embodiment of the present application, a calibration device for a gas detection device is also provided, including: an execution module, used to use the gas detection device to detect the gas to be detected, determine a group of detection data, and perform a division operation on the group of detection data to determine a target distribution boundary; a first determination module, used to determine whether the number of target detection data meets a preset ratio according to a predetermined distribution boundary sequence, wherein an element in the distribution boundary sequence is determined by performing the division operation on a group of sample detection data, and the target detection data represents the detection data in the group of detection data that meets a first preset relationship with the sample distribution boundary, and the sample distribution boundary is jointly determined by the values of each element in the distribution boundary sequence; a second determination module, used to determine, when the number of the target detection data meets the preset ratio, abnormal detection data in the group of detection data that meets a second preset relationship with the target distribution boundary; a third determination module, used to determine the gas detection device corresponding to the abnormal detection data as an abnormal gas detection device.
[0007] Optionally, the device is used to detect the gas to be detected using a gas detection device to determine a set of detection data, and perform a partitioning operation on the set of detection data to determine a target distribution boundary in the following manner: use the gas detection device to detect the gas to be detected to determine the set of detection data; perform the partitioning operation on the set of detection data to determine a target upper quantile and a target lower quantile corresponding to the set of detection data; determine a target difference between the target upper quantile and the target lower quantile; determine a target distribution upper boundary based on the target upper quantile and the target difference, and determine a target distribution lower boundary based on the target lower quantile and the target difference; determine the target distribution boundary based on the target distribution upper boundary and the target distribution lower boundary.
[0008] Optionally, the device is also used to: add the target distribution boundary to the distribution boundary sequence when the number of the target detection data satisfies the preset ratio; or delete the abnormal detection data in the group of detection data to obtain a group of updated detection data, and perform the division operation on the group of updated detection data to determine the updated distribution boundary; add the updated distribution boundary to the distribution boundary sequence.
[0009] Optionally, the device is also used to: before determining whether the number of target detection data meets a preset ratio according to a predetermined distribution boundary sequence, obtain at least one group of sample detection data, perform the division operation on each group of sample detection data in the at least one group of sample detection data, and determine the sample upper quantile and sample lower quantile corresponding to each group of sample detection data in the at least one group of sample detection data; determine the sample difference between the sample upper quantile and the sample lower quantile; determine the upper boundary of the sample distribution according to the sample upper quantile and the sample difference, and determine the lower boundary of the sample distribution according to the sample lower quantile and the sample difference; determine the upper boundary of the sample distribution as an element in the distribution upper boundary sequence, and determine the lower boundary of the sample distribution as an element in the distribution lower boundary sequence, wherein the distribution boundary sequence includes the distribution upper boundary sequence and the distribution lower boundary sequence.
[0010] Optionally, the device is used to determine whether the number of target detection data meets a preset ratio according to a predetermined distribution boundary sequence in the following manner: determine an upper bound mean and an upper bound standard deviation of the distribution upper bound sequence according to the distribution boundary sequence, and determine a lower bound mean and a lower bound standard deviation of the distribution lower bound sequence; determine the sum of the upper bound mean and at least one of the upper bound standard deviations as the target upper bound of the sample distribution boundary, and determine the difference between the lower bound mean and at least one of the lower bound standard deviations as the target lower bound of the sample distribution boundary; determine the target detection data according to whether the data values of each detection data in the set of detection data meet the first preset relationship with the target upper bound and the target lower bound; obtain the number of the target detection data, and determine whether the number of the target detection data meets the preset ratio, wherein the value of the preset ratio is related to the method for determining the target detection data.
[0011] Optionally, the device is used to determine the target detection data according to whether the data value of each detection data in the set of detection data satisfies the first preset relationship with the target upper boundary and the target lower boundary in the following manner: when the data value of the first detection data in the set of detection data is less than or equal to the target upper boundary, and greater than or equal to the target lower boundary, it is determined that the first detection data satisfies the first preset relationship, and the first detection data is determined as the target detection data.
[0012] Optionally, the device is also used to: after determining whether the number of target detection data meets a preset ratio according to a predetermined distribution boundary sequence, if the number of target detection data does not meet the preset ratio, determine that the system is abnormal in the gas detection device; if the number of system abnormalities meets a preset number threshold, generate a target prompt message, wherein the target prompt message is used to indicate that an abnormality has occurred in the system of the gas detection device; if the number of system abnormalities does not meet the preset number threshold, reuse the gas detection device to detect the gas to be detected until the number of system abnormalities meets the preset number threshold.
[0013] Optionally, the device is used to determine the abnormal detection data in the group of detection data that satisfies the second preset relationship with the target distribution boundary when the number of the target detection data satisfies the preset ratio in the following manner: when the number of the target detection data satisfies the preset ratio, determine the abnormal detection data to be reviewed in the group of detection data that satisfies the second preset relationship with the target distribution boundary; use the abnormal gas detection equipment corresponding to the abnormal detection data to be reviewed to detect the gas to be detected, determine a group of review data, and perform the division operation on the group of review data to determine the review distribution boundary; determine the abnormal detection data in the group of review data that satisfies the second preset relationship with the review distribution boundary.
[0014] According to another aspect of the embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the calibration method of the gas detection device when running.
[0015] According to another aspect of the embodiment of the present application, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the calibration method of the gas detection device as described above.
[0016] According to another aspect of an embodiment of the present application, there is also provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the calibration method of the gas detection device through the computer program.
[0017] In an embodiment of the present application, a gas detection device is used to detect the gas to be detected, a group of detection data is determined, and a division operation is performed on the group of detection data to determine the target distribution boundary; whether the number of target detection data meets a preset ratio is determined according to a predetermined distribution boundary sequence, wherein an element in the distribution boundary sequence is determined by performing a division operation on a group of sample detection data, the target detection data represents detection data in a group of detection data that meets a first preset relationship with the sample distribution boundary, and the sample distribution boundary is jointly determined by the values of each element in the distribution boundary sequence; when the number of target detection data meets the preset ratio, a group of detection data is determined. Abnormal detection data that satisfies a second preset relationship with the target distribution boundary; the method of determining the gas detection device corresponding to the abnormal detection data as the abnormal gas detection device achieves the purpose of effectively detecting and identifying abnormal situations of the gas detection device, so as to improve the accuracy of the calibration results of the gas detection device, and timely determine the abnormal gas detection device through the processing and analysis of the detection data, so as to facilitate the recalibration of the abnormal gas detection device, and then, the calibration result is tested again to ensure the accuracy of the calibration result, thereby solving the technical problem of low calibration accuracy due to the overly single method of abnormal detection of the calibration results of the gas detection equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0019] Figure 1 is a schematic diagram of an application environment of an optional calibration method for gas detection equipment according to an embodiment of the present application;
[0020] Figure 2 is a flow chart of an optional calibration method for gas detection equipment according to an embodiment of the present application;
[0021] Figure 3 is a schematic diagram of an optional calibration method for a gas detection device according to an embodiment of the present application;
[0022] Figure 4 is a schematic diagram of another optional calibration method for a gas detection device according to an embodiment of the present application;
[0023] Figure 5 is a schematic diagram of another optional calibration method for a gas detection device according to an embodiment of the present application;
[0024] Figure 6 is a schematic structural diagram of an optional calibration device for gas detection equipment according to an embodiment of the present application;
[0025] Figure 7 is a schematic structural diagram of a calibration product of an optional gas detection device according to an embodiment of the present application;
[0026] Figure 8 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] The present application is described below in conjunction with embodiments:
[0030] According to one aspect of an embodiment of the present application, a calibration method for a gas detection device is provided. Optionally, in this embodiment, the calibration method for the gas detection device can be applied to Figure 1 In the hardware environment composed of the server 101 and the terminal device 103 shown in FIG. Figure 1As shown, the server 101 is connected to the terminal device 103 via a network, and can be used to provide services for the terminal device or an application 107 installed on the terminal device. The application 107 can be a video application, an instant messaging application, a browser application, an educational application, a game application, etc. A database 105 may be set up on the server or independently of the server to provide data storage services for the server 101, for example, a game data storage server. The above-mentioned network may include, but is not limited to, a wired network and a wireless network, wherein the wired network includes, a local area network, a metropolitan area network and a wide area network; the wireless network includes, Bluetooth, WIFI and other networks that implement wireless communication; the terminal device 103 may be a terminal configured with an application, and may include, but is not limited to, at least one of the following: a mobile phone (such as an Android phone, an iOS phone, etc.), a laptop computer, a tablet computer, a PDA, a MID (Mobile Internet Devices), a PAD, a desktop computer, a smart TV, an intelligent voice interaction device, a smart home appliance, a vehicle-mounted terminal, an aircraft, a virtual reality (VR) terminal, an augmented reality (AR) terminal, a mixed reality (MR) terminal and other computer devices; the above-mentioned server may be a single server, a server cluster consisting of multiple servers, or a cloud server.
[0031] Combination Figure 1 As shown, the calibration method of the gas detection device can be executed by an electronic device, which can be a terminal device or a server. The calibration method of the gas detection device can be implemented by the terminal device or the server separately, or by the terminal device and the server together.
[0032] The above is only an example and is not specifically limited in this embodiment.
[0033] Optionally, as an optional implementation, as Figure 2 As shown, the calibration method of the above-mentioned gas detection equipment includes:
[0034] S202, using a gas detection device to detect the gas to be detected, determining a group of detection data, and performing a division operation on the group of detection data to determine a target distribution boundary;
[0035] Optionally, in an embodiment of the present application, the above-mentioned gas detection equipment may include but is not limited to gas sensors, gas analyzers, gas detectors, gas detectors, gas detection systems, etc., and may include but is not limited to being used to detect the above-mentioned gases to be detected, such as oxygen, carbon dioxide, carbon monoxide, hydrogen sulfide, ammonia, etc. The above-mentioned set of detection data may include but is not limited to being used to indicate the concentration of the gas to be detected, etc.
[0036] For example, the embodiments of the present application may include but are not limited to applications in environmental monitoring, industrial production, safety protection and other fields.
[0037] Furthermore, the above-mentioned gas detection equipment may include but is not limited to several units, each of which can detect the gas to be detected, obtain the concentration of the gas to be detected, and convert it into a voltage value using the sensor module of the gas detection equipment, and determine these several voltage values as the above-mentioned set of detection data, or, it can also include but is not limited to directly determining the concentration of the detected gas to be detected as the above-mentioned set of detection data, and the present application does not limit this.
[0038] In an exemplary embodiment, Figure 3 is a schematic diagram of an optional calibration method for a gas detection device according to an embodiment of the present application, such as Figure 3 As shown, including but not limited to: when detecting the calibration result of the alarm threshold value of the gas detection device for the combustible gas, first use the gas cylinder containing the gas to be detected to supply gas to the combustible gas sampler, the control host sends a control instruction to the PLC controller (programmable logic controller) through the control bus, and after receiving the control instruction, the PLC controller controls the combustible gas sampler through the control bus to inject the combustible gas into the calibration chamber through the injection channel, and the above-mentioned gas detection device (several units) is placed in the calibration chamber in advance. The sensor module of the above-mentioned gas detection device detects the combustible gas and converts it into an electrical signal, for example, a voltage value, and converts it into an electrical signal. The above-mentioned set of detection data is transmitted to the control host through the communication bus and processed by the control host. The communication bus here may include but is not limited to 485 bus, etc. The control host determines whether there is any abnormality in this set of detection data. If there is no abnormality, the gas detection device can be instructed to record the corresponding detection data value and complete the calibration operation. Otherwise, the gas detection device corresponding to the abnormal detection data can be recalibrated, including but not limited to restarting the gas detection device and re-detecting the combustible gas through the sensor module, or cleaning the calibration chamber, re-injecting the combustible gas, and restarting the gas detection device to detect the combustible gas through the sensor module.
[0039] In another exemplary embodiment, when detecting the calibration result of the zero threshold value of the combustible gas by the gas detection device, it is not necessary to inject the combustible gas into the calibration chamber, and the gas detection device detects the combustible gas to determine the above set of detection data.
[0040] Exemplarily, after determining the above-mentioned set of detection data, the above-mentioned target distribution boundary can be determined according to the above-mentioned set of detection data. Specifically, it can include but is not limited to using box plot statistical methods, histogram methods, kernel density estimation methods, etc. The target distribution boundary includes a target upper distribution boundary and a target lower distribution boundary.
[0041] In an exemplary embodiment, the above division operation is performed on the above set of detection data by using a box plot statistical method as an example, which may include but is not limited to:
[0042] S1, obtain a set of detection data, recorded as {S1, S2, S3, ... Sn}, where n represents the total number of gas detection devices, S1 to Sn represent the detection data obtained by each of the n gas detection devices for detecting the gas to be detected;
[0043] S2, determine the target median, target upper quantile, and target lower quantile of {S1, S2, S3, ... Sn}, where 25% of the test data are less than the target upper quantile and 75% of the test data are greater than the target lower quantile;
[0044] S3, calculate the target difference between the target upper quantile and the target lower quantile, recorded as IQR;
[0045] S4, determine the value of the target upper distribution boundary as the target lower quantile - 1.5*IQR; determine the value of the target lower distribution boundary as the target upper quantile + 1.5*IQR.
[0046] Further, Figure 4 : is a schematic diagram of another optional calibration method for gas detection equipment according to an embodiment of the present application. By performing the above division operation on the above set of detection data through the box plot statistical method, a box plot representation corresponding to a set of detection data can be obtained as follows: Figure 4 As shown, it includes the target median, target upper quantile, target lower quantile, target upper distribution boundary and target lower distribution boundary.
[0047] S204, determining whether the amount of target detection data meets a preset ratio according to a predetermined distribution boundary sequence, wherein an element in the distribution boundary sequence is determined by performing a partitioning operation on a group of sample detection data, the target detection data represents detection data in a group of detection data that meets a first preset relationship with a sample distribution boundary, and the sample distribution boundary is jointly determined by the values of each element in the distribution boundary sequence;
[0048] Optionally, the above-mentioned distribution boundary sequence may include but is not limited to a distribution upper boundary sequence, a distribution lower boundary sequence, etc. The above-mentioned target detection data is the data in the above-mentioned set of detection data. The above-mentioned set of sample detection data can be understood as that the sample gas detection device detects the gas to be detected at a historical moment when the calibration environment is stable, and obtains the concentration of the gas to be detected detected, and uses the sensor module of the sample gas detection device to convert it into a voltage value, and determines these several voltage values as the above-mentioned set of sample detection data. Alternatively, it can also include but is not limited to directly determining the concentration of the detected gas to be detected as the above-mentioned set of sample detection data. The present application does not limit this. The sample gas detection device here and the above-mentioned gas detection device can be the same type of gas detection device.
[0049] Exemplarily, the above distribution boundary sequence may be determined including but not limited to using a box plot statistical method, a histogram method, a kernel density estimation method, and the like.
[0050] In an exemplary embodiment, the above-mentioned division operation is performed on the above-mentioned set of sample detection data by using a box plot statistical method to illustrate an example. The above-mentioned set of sample detection data may include several small groups of sample detection data obtained by detecting the gas to be detected by gas detection devices under multiple batches. These several small groups of sample detection data together constitute the above-mentioned set of sample detection data. For example, a set of sample detection data is composed of sample detection data of group A and sample detection data of group B. The sample detection data of group A is represented by {A1, A2, A3...An}, wherein n represents the total number of sample gas detection devices of group A, and A1 to An represent the sample detection data obtained by each of the n sample gas detection devices when detecting the gas to be detected. Similarly, the sample detection data of group B is represented by {B1, B2, B3...Bm}, and m represents the total number of sample gas detection devices of group B.
[0051] Furthermore, for the sample test data of group A {A1, A2, A3...An}, the box plot statistical method can be used to determine an upper sample distribution boundary A and a lower sample distribution boundary A; for the sample test data of group B {B1, B2, B3...Bm}, the box plot statistical method can be used to determine an upper sample distribution boundary B and a lower sample distribution boundary B. At this time, the above distribution boundary sequence is expressed as the distribution upper boundary sequence {sample upper distribution boundary A, sample upper distribution boundary B} and the distribution lower boundary sequence {sample lower distribution boundary A, sample lower distribution boundary B}.
[0052] For example, after determining the above distribution boundary sequence, the sample distribution boundary can be calculated based on the distribution boundary sequence, including but not limited to calculating the average value of the sample upper distribution boundary in the distribution upper boundary sequence in the distribution boundary sequence. , Standard Deviation ; Calculate the average value of the lower distribution boundary of the sample in the distribution lower bound sequence in the distribution boundary sequence , Standard Deviation Then, the distribution boundary sequence is processed according to the normal distribution, and the sample distribution boundary is obtained as .
[0053] Furthermore, the target detection data means that the data values in the above set of detection data fall within the sample distribution boundary. That is, if one of the detection data in the above set falls within the sample distribution boundary, the data is determined as the target detection data. Further, it is determined whether the number of target detection data meets the above preset ratio. The preset ratio can be flexibly set, and the present application does not impose any limitation on this.
[0054] For example, the preset ratio is 99%, which means that when the ratio of the number of the target detection data to the number of the set of detection data is greater than or equal to 99%, it means that the number of the target detection data meets the preset ratio.
[0055] In another exemplary embodiment, the target detection data may be determined as the data value in the above set of detection data that does not fall within the sample distribution boundary. Then, the preset ratio is set to 1%. At this time, if the ratio of the number of the above target detection data to the number of the above set of detection data is less than 1%, it means that the number of target detection data meets the preset ratio.
[0056] S206, when the number of target detection data meets the preset ratio, determining abnormal detection data in a group of detection data that meets a second preset relationship with the target distribution boundary;
[0057] S208: Determine the gas detection device corresponding to the abnormal detection data as an abnormal gas detection device.
[0058] Further, when it is determined that the number of the target detection data satisfies the preset ratio, each detection data may be individually detected from the group of detection data to determine the abnormal detection data.
[0059] Optionally, in an embodiment of the present application, the above-mentioned abnormal detection data can be understood as that the detection data is unavailable. Assuming that the gas detection device A detects the above-mentioned gas to be detected and obtains the detection data A, if the detection data A and the above-mentioned target distribution boundary satisfy the second preset relationship, it means that the gas detection device A needs to re-detect the gas to be detected to achieve secondary calibration until the detection data is not determined as the above-mentioned abnormal detection data, or the gas detection device A is determined as the above-mentioned abnormal gas detection device.
[0060] For example, Figure 4 As shown, the target distribution boundary includes a target upper distribution boundary and a target lower distribution boundary. If the detection data is data between the target upper distribution boundary and the target lower distribution boundary, it means that the detection data and the target distribution boundary do not satisfy the second preset relationship and will not be determined as abnormal detection data. Conversely, if the detection data is data outside the target upper distribution boundary and the target lower distribution boundary, it means that the detection data and the target distribution boundary satisfy the second preset relationship and will be determined as abnormal detection data.
[0061] It is understandable that when the gas detection device A is recalibrated, if the gas to be detected is repeatedly detected multiple times, the detection data obtained each time is abnormal detection data. When the number of detections reaches a preset threshold, the gas detection device A can be determined as an abnormal gas detection device, indicating that the gas detection device A cannot be put into normal use and requires maintenance or other operations.
[0062] In an exemplary embodiment, the present application may be applied to the field of combustible gas detector calibration technology, for example, in the application scenario of combustible gas detector calibration abnormality troubleshooting. Specifically, Figure 5 is a schematic diagram of another optional calibration method for gas detection equipment according to an embodiment of the present application, such as Figure 5 As shown, including but not limited to:
[0063] S502, calibration starts;
[0064] S504, waiting for the gas detection device to be preheated;
[0065] S506, the control host sends a zero point calibration instruction, and obtains a set of detection data A corresponding to the zero point without injecting combustible gas into the calibration chamber, wherein one detection data in the set of detection data A is obtained by a gas detection device detecting the gas in the calibration chamber;
[0066] S508, injecting combustible gas into the calibration chamber;
[0067] S510, waiting for the combustible gas concentration in the calibration chamber to reach the standard and be stable;
[0068] S512, the control host sends an alarm point calibration instruction to obtain a set of detection data B corresponding to the alarm point, wherein one detection data in the set of detection data B is obtained by a gas detection device detecting the combustible gas in the calibration chamber;
[0069] S514, exhausting the calibration chamber and waiting for the combustible gas concentration to decrease;
[0070] S516, uploading a set of detection data A and a set of detection data B to the control host for processing, and determining whether there is abnormal detection data in the set of detection data A and the set of detection data B;
[0071] S518, correcting the abnormal detection data, including but not limited to processing one group of detection data A and one group of detection data B by group, recalibrating the abnormal gas detection device corresponding to the abnormal detection data, if the abnormal gas detection device only has abnormal detection data corresponding to the zero point calibration, then execute the above S502 to S506, recalibrate, and upload to the control host again for corresponding processing; similarly, if the abnormal gas detection device only has abnormal detection data corresponding to the alarm point calibration, then execute the above S508 to S514, recalibrate, and upload to the control host again for corresponding processing;
[0072] S520, use the detection data corresponding to the gas detection equipment that has no abnormalities to calibrate the zero point and alarm point of the equipment, perform equipment maintenance on the abnormal gas detection equipment that has abnormalities and still fails the review, and the equipment calibration is completed.
[0073] Through the embodiments of the present application, a gas detection device is used to detect the gas to be detected, a group of detection data is determined, and a division operation is performed on the group of detection data to determine the target distribution boundary; whether the number of target detection data meets a preset ratio is determined according to a predetermined distribution boundary sequence, wherein an element in the distribution boundary sequence is determined by performing a division operation on a group of sample detection data, the target detection data represents detection data in a group of detection data that meets a first preset relationship with the sample distribution boundary, and the sample distribution boundary is jointly determined by the values of each element in the distribution boundary sequence; when the number of target detection data meets the preset ratio, a group of detection data is determined. Abnormal detection data that satisfies a second preset relationship with the target distribution boundary; the method of determining the gas detection device corresponding to the abnormal detection data as the abnormal gas detection device achieves the purpose of effectively detecting and identifying abnormal situations of the gas detection device, so as to improve the accuracy of the calibration results of the gas detection device, and timely determine the abnormal gas detection device through the processing and analysis of the detection data, so as to facilitate the recalibration of the abnormal gas detection device, and then, the calibration result is tested again to ensure the accuracy of the calibration result, thereby solving the technical problem of low calibration accuracy due to the overly single method of abnormal detection of the calibration results of the gas detection equipment.
[0074] As an optional scheme, the above-mentioned use of gas detection equipment to detect the gas to be detected, determine a set of detection data, and perform a division operation on the above-mentioned set of detection data to determine the target distribution boundary, including: using the above-mentioned gas detection equipment to detect the above-mentioned gas to be detected, and determine the above-mentioned set of detection data; performing the above-mentioned division operation on the above-mentioned set of detection data, and determining the target upper quantile and the target lower quantile corresponding to the above-mentioned set of detection data; determining the target difference between the above-mentioned target upper quantile and the above-mentioned target lower quantile; determining the upper boundary of the target distribution according to the above-mentioned target upper quantile and the above-mentioned target difference, and determining the lower boundary of the target distribution according to the above-mentioned target lower quantile and the above-mentioned target difference; determining the above-mentioned target distribution boundary based on the above-mentioned target distribution upper boundary and the above-mentioned target distribution lower boundary.
[0075] Exemplarily, the above-mentioned set of test data is first sorted according to the size of data values to determine the median of the above-mentioned set of test data. Then, the median is used as a basis for division to divide the above-mentioned set of test data into two series, neither of which includes the median. Furthermore, the median of the series in which the data with the smallest value in the above-mentioned set of test data is located is determined as the above-mentioned target lower quantile, and the median of the series in which the data with the largest value in the above-mentioned set of test data is located is determined as the above-mentioned target upper quantile.
[0076] In an exemplary embodiment, taking a set of detection data {2, 4, 6, 8, 10} as an example, the target median is 6, 25% of the detection data is smaller than the target upper quantile, therefore, the target upper quantile is 3, 75% of the detection data is larger than the target lower quantile, therefore, the target lower quantile is 9, and the target difference represents the difference between the target upper quantile and the target lower quantile, which is 6.
[0077] Further, the upper boundary of the target distribution can be determined as the target upper quantile + n*target difference, and the lower boundary of the target distribution can be determined as the target lower quantile - m*target difference, or, the upper boundary of the target distribution can be determined as the target upper quantile - n*target difference, and the lower boundary of the target distribution can be determined as the target lower quantile + m*target difference, and the value of the upper boundary of the target distribution is greater than the value of the lower boundary of the target distribution. Here, n and m can be set flexibly, and the present application does not limit this.
[0078] Through the embodiments of the present application, a gas detection device is used to detect the gas to be detected to determine a set of detection data; a partitioning operation is performed on a set of detection data to determine a target upper quantile and a target lower quantile corresponding to a set of detection data; a target difference between the target upper quantile and the target lower quantile is determined; an upper boundary of a target distribution is determined based on the target upper quantile and the target difference, and a lower boundary of a target distribution is determined based on the target lower quantile and the target difference; a target distribution boundary is determined based on the target distribution upper boundary and the target distribution lower boundary to ensure the accuracy and availability of the target distribution boundary.
[0079] As an optional scheme, the above method also includes: when the number of the above target detection data satisfies the above preset ratio, adding the above target distribution boundary to the above distribution boundary sequence; or deleting the above abnormal detection data in the above set of detection data to obtain a set of updated detection data, and performing the above division operation on the above set of updated detection data to determine the updated distribution boundary; adding the above updated distribution boundary to the above distribution boundary sequence.
[0080] In an exemplary embodiment, the amount of the target detection data satisfies the preset ratio, assuming that the target distribution boundary is the target distribution upper boundary Q H(m+1) and the lower boundary Q of the target distribution L(m+1) , and at this time, the above distribution boundary sequence is the distribution upper bound sequence {Q H1 , Q H2 , Q H3 ...Q Hm} and the distribution upper bound sequence {Q L1 , Q L2 , Q L3 ...Q Lm}, then the target distribution upper boundary Q H(m+1) Add to the distribution upper bound sequence. After adding, the distribution upper bound sequence is updated to {Q H1 , Q H2 , Q H3 ...Q Hm , Q H(m+1)}; Set the target distribution lower boundary Q L(m+1) Add to the distribution lower bound sequence. After adding, the distribution lower bound sequence is updated to { Q L1 , Q L2 , Q L3 ...Q Lm , Q L(m+1)}.
[0081] In another exemplary embodiment, if the above-mentioned abnormal detection data exists in the above-mentioned set of detection data, the abnormal detection data can be deleted first to obtain the above-mentioned set of updated detection data, thereby further improving the updating accuracy of the distribution boundary sequence and ensuring that when the calibration results of the gas detection equipment are verified using the distribution boundary sequence, the obtained verification results are more credible. Then, the above-mentioned division operation is performed again on a set of updated detection data to obtain the above-mentioned updated distribution boundary.
[0082] Specifically, the above division operation can be performed using the box plot statistical method to obtain the updated distribution upper boundary Q Hx and update the lower bound Q Lx , the upper boundary Q of the distribution will be updated Hx and update the lower bound Q Lx Determined as the above updated distribution boundary, at this time, the above distribution boundary sequence is the distribution upper bound sequence { Q H1 , Q H2 , Q H3 ...Q Hm} and the distribution upper bound sequence {Q L1、 Q L2、 Q L3 ...Q Lm}, the target distribution upper boundary Q Hx Add to the distribution upper bound sequence. After adding, the distribution upper bound sequence is updated to {Q H1 , Q H2 , Q H3 ...Q Hm , Q Hx}; Set the target distribution lower boundary Q Lx Add to the distribution lower bound sequence. After adding, the distribution lower bound sequence is updated to {Q L1、 Q L2、 Q L3 ...Q Lm, Q Lx}.
[0083] As an optional scheme, before determining whether the number of target detection data meets the preset ratio according to the predetermined distribution boundary sequence, the method further includes: obtaining at least one group of sample detection data, performing the above-mentioned division operation on each group of sample detection data in the above-mentioned at least one group of sample detection data, and determining the sample upper quantile and sample lower quantile corresponding to each group of sample detection data in the above-mentioned at least one group of sample detection data; determining the sample difference between the above-mentioned sample upper quantile and the above-mentioned sample lower quantile; determining the upper boundary of the sample distribution according to the above-mentioned sample upper quantile and the above-mentioned sample difference, and determining the lower boundary of the sample distribution according to the above-mentioned sample lower quantile and the above-mentioned sample difference; determining the above-mentioned sample distribution upper boundary as an element in the distribution upper boundary sequence, and determining the above-mentioned sample distribution lower boundary as an element in the distribution lower boundary sequence, wherein the above-mentioned distribution boundary sequence includes the above-mentioned distribution upper boundary sequence and the above-mentioned distribution lower boundary sequence.
[0084] Exemplarily, the above-mentioned group of sample test data is first sorted by the size of data values to determine the median of the above-mentioned group of sample test data. Then, the median is used as a basis for division to divide the above-mentioned group of sample test data into two series, neither of which includes the median. Furthermore, the median of the series where the data with the smallest value in the above-mentioned group of sample test data is located is determined as the above-mentioned sample lower quantile, and the median of the series where the data with the largest value in the above-mentioned group of sample test data is located is determined as the above-mentioned sample upper quantile.
[0085] Furthermore, the upper boundary of the sample distribution can be determined as the upper quantile of the sample + n*sample difference, and the lower boundary of the sample distribution can be determined as the lower quantile of the sample - m*sample difference, or, the upper boundary of the sample distribution can be determined as the upper quantile of the sample - n*sample difference, and the lower boundary of the sample distribution can be determined as the lower quantile of the sample + m*sample difference, and the value of the upper boundary of the sample distribution is greater than the value of the lower boundary of the sample distribution. Here, n and m can be set flexibly, and the present application does not limit this.
[0086] As an optional scheme, the above-mentioned determination of whether the number of target detection data meets the preset ratio according to a predetermined distribution boundary sequence includes: determining the upper bound mean and upper bound standard deviation of the above-mentioned distribution upper bound sequence according to the above-mentioned distribution boundary sequence, and determining the lower bound mean and lower bound standard deviation of the above-mentioned distribution lower bound sequence; determining the sum of the above-mentioned upper bound mean and at least one of the above-mentioned upper bound standard deviations as the target upper bound of the above-mentioned sample distribution boundary, and determining the difference between the above-mentioned lower bound mean and at least one of the above-mentioned lower bound standard deviations as the target lower bound of the above-mentioned sample distribution boundary; determining the above-mentioned target detection data according to whether the data values of each detection data in the above-mentioned set of detection data meet the above-mentioned first preset relationship with the above-mentioned target upper bound and the above-mentioned target lower bound; obtaining the number of the above-mentioned target detection data, and determining whether the number of the above-mentioned target detection data meets the above-mentioned preset ratio, wherein the value of the above-mentioned preset ratio is related to the determination method of the above-mentioned target detection data.
[0087] Exemplarily, the distribution boundary sequence is composed of an upper bound sequence and a lower bound sequence. The upper bound sequence includes a number of data, the average value of which is the upper bound mean, and then the upper bound standard deviation is determined by the data and the upper bound mean. Similarly, the lower bound sequence includes a number of data, the average value of which is the lower bound mean, and then the lower bound standard deviation is determined by the data and the lower bound mean.
[0088] Furthermore, after obtaining the upper bound mean and upper bound standard deviation, the target upper bound of the sample distribution boundary can be determined as the sum of the upper bound mean, m, and the upper bound standard deviation, where the value of m can be flexibly set, for example, m is 3. Similarly, after obtaining the lower bound mean and lower bound standard deviation, the target lower bound of the sample distribution boundary can be determined as the difference of the lower bound mean, n, and the lower bound standard deviation, where the value of n can be flexibly set, for example, n is 3.
[0089] Exemplarily, if the target upper boundary value is 1 and the target lower boundary value is 6, that is, the sample distribution boundary is [1, 6]. At this time, the above set of detection data is expressed as {1, 2, 3, 8}, then the data "1, 2, 3" represents data that satisfies the above first preset relationship, that is, the target detection data is expressed as {1, 2, 3}.
[0090] Furthermore, the number of target detection data is 3, and the number of data in a group of detection data is 4. At this time, assuming that the above-mentioned preset ratio is 50%, at this time, the ratio of the number of target detection data to the number of data in a group of detection data is greater than the preset ratio, that is, the number of target detection data meets the preset ratio.
[0091] It should be noted that the value of the preset ratio here is related to the method of determining the above-mentioned target detection data, which can be understood as follows: if the target detection data represents data in the above-mentioned set of detection data whose values fall between the above-mentioned target upper boundary and the above-mentioned target lower boundary, then the preset ratio is the preset ratio A; conversely, if the target detection data represents data in the above-mentioned set of detection data whose values do not fall between the above-mentioned target upper boundary and the above-mentioned target lower boundary, then the preset ratio is the preset ratio B; the sum of the preset ratio A and the preset ratio B here is 1, which further expands the method of determining the target detection data and increases the flexibility of the steps for determining the target detection data. By setting different preset ratios A and preset ratios B, the target detection data can be more finely divided and screened according to the specific situation, thereby better meeting actual needs.
[0092] As an optional scheme, the above-mentioned target detection data is determined based on whether the data value of each detection data in the above-mentioned set of detection data satisfies the above-mentioned first preset relationship with the above-mentioned target upper boundary and the above-mentioned target lower boundary, including: when the data value of the first detection data in the above-mentioned set of detection data is less than or equal to the above-mentioned target upper boundary, and greater than or equal to the above-mentioned target lower boundary, determining that the above-mentioned first detection data satisfies the above-mentioned first preset relationship, and determining the above-mentioned first detection data as the above-mentioned target detection data.
[0093] Optionally, in an embodiment of the present application, the first detection data may be any one of the above-mentioned set of detection data.
[0094] In an exemplary embodiment, assuming that the target upper boundary is 100, the target lower boundary is 50, and the first detection data is 75, since 75 is less than or equal to 100 and greater than or equal to 50, the first detection data satisfies the first preset relationship, and therefore, the first detection data 75 can be determined as the target detection data.
[0095] In another exemplary embodiment, assuming that the target upper boundary is 10 and the target lower boundary is 5, in a set of detection data, and the first detection data is 8, the first detection data satisfies the first preset relationship, so it can be determined that the first detection data is the target detection data.
[0096] As an optional scheme, after determining whether the number of target detection data meets the preset ratio according to the predetermined distribution boundary sequence, the method further includes: if the number of target detection data does not meet the preset ratio, determining that the system of the gas detection device is abnormal; if the number of system abnormalities meets the preset number threshold, generating a target prompt message, wherein the target prompt message is used to indicate that the system of the gas detection device is abnormal; if the number of system abnormalities does not meet the preset number threshold, reusing the gas detection device to detect the gas to be detected until the number of system abnormalities meets the preset number threshold.
[0097] Optionally, in an embodiment of the present application, the above-mentioned system abnormality may include but is not limited to the above-mentioned distribution boundary sequence being erroneous and unavailable, the calibration environment being unstable, or problems with data transmission, etc., and the above-mentioned target prompt message may include but is not limited to being displayed through text, voice, image, video, etc.
[0098] Furthermore, in the case that the number of the above-mentioned target detection data does not meet the above-mentioned preset ratio, the above-mentioned gas detection device can be re-controlled to detect the above-mentioned gas to be detected. If the number of repeated detections reaches the above-mentioned preset number threshold, at this time, the number of the above-mentioned target detection data still does not meet the above-mentioned preset ratio, it means that the number of system abnormalities meets the preset number threshold, and the gas detection device or the control host automatically generates the above-mentioned target prompt message. For example, the target prompt message is "Warning: The distribution boundary sequence has an error and is unavailable!" or "Warning: The calibration environment is unstable, please check whether there is a gas leak in the calibration chamber!", etc., indicating that the calibration system needs to be checked. The calibration system here can be as follows Figure 3 shown.
[0099] It can be understood that if the number of system abnormalities does not meet the preset number threshold, if the number of target detection data still does not meet the above-mentioned preset ratio at this time, the above-mentioned gas detection equipment can continue to be controlled to detect the above-mentioned gas to be detected until the number of system abnormalities meets the preset number threshold, or the system abnormality no longer occurs.
[0100] Through the embodiments of the present application, when the number of target detection data does not meet a preset ratio, the system abnormality of the gas detection equipment is determined; when the number of system abnormalities meets a preset number threshold, a target prompt message is generated; when the number of system abnormalities does not meet the preset number threshold, the gas detection equipment is reused to detect the gas to be detected until the number of system abnormalities meets the preset number threshold, thereby improving the detection accuracy and stability of the gas detection equipment. At the same time, automatic prompts are given through target prompt messages of system abnormalities to ensure that problems can be discovered and solved in a timely manner, thereby improving work efficiency and production quality.
[0101] As an optional scheme, when the number of the above-mentioned target detection data satisfies the above-mentioned preset ratio, determining the abnormal detection data in the above-mentioned group of detection data that satisfies the second preset relationship with the above-mentioned target distribution boundary, includes: when the number of the above-mentioned target detection data satisfies the above-mentioned preset ratio, determining the abnormal detection data to be reviewed in the above-mentioned group of detection data that satisfies the above-mentioned second preset relationship with the above-mentioned target distribution boundary; using the abnormal gas detection equipment corresponding to the above-mentioned abnormal detection data to be reviewed to detect the above-mentioned gas to be detected, determine a group of review data, and perform the above-mentioned division operation on the above-mentioned group of review data to determine the review distribution boundary; determining the above-mentioned abnormal detection data in the above-mentioned group of review data that satisfies the above-mentioned second preset relationship with the above-mentioned review distribution boundary.
[0102] Optionally, the abnormal gas detection device detects the gas to be detected, and the detected detection data is the abnormal detection data to be reviewed.
[0103] Exemplarily, assuming that the above-mentioned set of target detection data includes 100 detection data, according to the above-mentioned preset ratio, the abnormal detection data that satisfies the second preset relationship with the target distribution boundary is determined as the above-mentioned set of abnormal detection data to be reviewed, and then, including but not limited to performing the above-mentioned division operation on a set of abnormal detection data to be reviewed, to obtain the above-mentioned review distribution boundary, which includes the review distribution upper boundary and the review distribution lower boundary, and then, determine whether there is the above-mentioned abnormal detection data that satisfies the above-mentioned second preset relationship with the above-mentioned review distribution boundary in the review data, if so, continue to detect, otherwise, if there is no above-mentioned abnormal detection data that satisfies the above-mentioned second preset relationship with the above-mentioned review distribution boundary in the review data, it means that the detection data is normal, and the abnormal gas detection equipment is calibrated according to the current detection data. In addition, if the above-mentioned gas to be detected is detected repeatedly for multiple times, if the detection data detected each time satisfies the second preset relationship, it is considered that the abnormal gas detection equipment is indeed faulty and needs equipment maintenance, etc.
[0104] In an exemplary embodiment, the process of determining whether there is abnormal detection data in the review data that satisfies the second preset relationship with the review distribution boundary may include but is not limited to being the same as the process of determining whether there is abnormal detection data in the detection data that satisfies the second preset relationship with the target distribution boundary, which will not be repeated here.
[0105] In another exemplary embodiment, for the sake of calibration efficiency, the above-mentioned division operation may not be performed on the above-mentioned set of review data, but the target distribution boundary corresponding to the above-mentioned set of detection data may be directly used to determine whether there is the above-mentioned abnormal detection data in the review data that satisfies the above-mentioned second preset relationship with the target distribution boundary. The present application does not impose any limitation on this.
[0106] In an exemplary embodiment, the present application may include but is not limited to applications in the field of combustible gas detector calibration technology. For example, in an application scenario for combustible gas detector calibration anomaly detection, while performing basic detection on the calibration data (the above-mentioned set of detection data), the calibration data is subjected to specific anomaly detection, so that the calibration system can automatically adapt to sample differences and environmental changes of the detector (the above-mentioned gas detection equipment), and detect systemic risks of the calibration system through holistic anomaly detection logic.
[0107] Specifically, if Figure 3 As shown, the control host controls the combustible gas sampler through the PLC controller to extract the calibration gas from the gas cylinder and inject it into the calibration chamber. At the same time, the sampling speed is controlled in real time through the sampling pipeline. Calibration is performed after the concentration is stable. After the zero point calibration and the alarm point calibration, the control host will obtain the calibration data of all detectors in the calibration chamber in this calibration through the 485 bus. Then, the calibration data is analyzed and processed, abnormal detection and detection parameter detection and correction are performed for the next calibration.
[0108] It should be noted that the basic conditions of each calibration are close but different, including but not limited to the differences in the detector samples themselves, changes in the calibration environment, etc., which will affect the calibration data, and the calibration data basically conforms to the normal distribution law. Compared with the calibration data, the abnormal data in the calibration data is usually far away from the median of the calibration data. Therefore, a single calibration data in the calibration data is compared with the calibration data itself to resist the changes in environmental factors. Compared with directly comparing with the empirical set values in the relevant technology, the calibration results are more stable and reliable. In addition, considering the particularity of each calibration, when a calibration data has an overall deviation due to systematic reasons (such as: drastic changes in temperature and humidity, distortion of the sample injector, location of the detector, uneven concentration, etc.), each calibration data can be subjected to overall abnormality detection to determine the accuracy of its calibration results, which may include but not be limited to the following steps:
[0109] S1, assuming that the calibration data is as follows: {A1, A2, A3...An}, the median Q, upper quantile Q2, lower quantile Q1, and distribution lower bound Q of the calibration data are determined by the box plot statistical method. L And the upper bound Q H, where 25% of the data in the calibration data is greater than the upper quantile Q2, 25% of the data is less than the lower quantile Q1, and the remaining 50% of the data is concentrated between Q2 and Q1. The difference between Q2 and Q1 is defined as IQR, the lower bound QL of the distribution is defined as Q1-1.5*IQR, and the upper bound QH of the distribution is defined as Q2+1.5*IQR. Data samples falling outside the upper and lower bounds of the distribution can be identified as abnormal data because they are too far from the median of the calibration data. After m times of sample collection and statistical analysis, the upper and lower bound sequences of the distribution (the above-mentioned distribution boundary sequence) can be obtained, including the upper bound sequence {Q H1 , Q H2 , Q H3 ...Q Hm} and the distribution lower bound sequence {Q L1 , Q L2 , Q L3 ...Q Lm};
[0110] S2, if there is no systematic anomaly in the calibration data, then the upper and lower bounds of the distribution should fall within the reasonable range of the upper and lower bounds of the distribution sequence. Specifically: calculate the upper and lower bounds of the distribution sequence {Q H1 , Q H2 , Q H3 ...Q Hm} and the distribution lower bound sequence {Q L1 , Q L2 , Q L3 ...Q Lm The average value μ QH , μ QL and standard deviation σ QH , σ QL For example, according to the normal distribution principle, 99% of reasonable data should fall within 3 standard deviations of the mean value of the upper and lower bound sequences of the distribution. If it is unreasonable, the calibration process needs to be started again for review to eliminate contingency. If the number of failed reviews reaches the threshold, human intervention is required to check whether there is any abnormality in the calibration system.
[0111] S3, if S2 determines that there is no systemic risk in this calibration, then the abnormal detectors (abnormal gas detection equipment) can be detected and checked based on the upper and lower limits of the distribution (the above-mentioned target distribution boundaries). The abnormal detectors that have been checked can also be reviewed to eliminate contingency. Since the normal calibration system is dynamically stable, for example, factors such as ambient temperature and humidity will fluctuate back and forth in a small range during continuous and multiple calibrations, which will affect the overall abnormal judgment of the calibration data. In order to resist this fluctuation, when the calibration data meets the overall judgment, its upper and lower limits of the distribution can be updated to the upper and lower limit sequence of the distribution, so that the upper and lower limit sequence of the distribution can be updated over the time dimension.
[0112] Through the present application, anomaly detection is performed on the calibration data obtained from a single calibration, which is more reliable and stable than the traditional direct comparison with the empirical set value. The calibration data of a single calibration is placed in the upper and lower bound sequence of the distribution for overall anomaly detection, thereby avoiding the overall anomaly of the calibration data caused by systemic risks. At the same time, anomalies of the calibration system can also be detected. In addition, new calibration data is used to continuously update and correct the upper and lower bound sequence of the distribution in the time dimension, thereby resisting the influence of the fluctuation of system factors over time on the accuracy of the detection and judgment of abnormal calibration data.
[0113] It is understandable that in the specific implementation of this application, related data such as user information is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0114] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0115] According to another aspect of the embodiments of the present application, a calibration device for a gas detection device is provided for implementing the calibration method for the gas detection device. Figure 6 As shown, the device comprises:
[0116] An execution module 602 is used to detect the gas to be detected using a gas detection device, determine a set of detection data, and perform a partitioning operation on the set of detection data to determine a target distribution boundary;
[0117] A first determination module 604 is used to determine whether the amount of target detection data meets a preset ratio according to a predetermined distribution boundary sequence, wherein an element in the distribution boundary sequence is determined by performing a partitioning operation on a group of sample detection data, the target detection data represents detection data in a group of detection data that meets a first preset relationship with a sample distribution boundary, and the sample distribution boundary is jointly determined by the values of each element in the distribution boundary sequence;
[0118] A second determination module 606 is used to determine abnormal detection data in a group of detection data that satisfies a second preset relationship with the target distribution boundary when the number of target detection data satisfies a preset ratio;
[0119] The third determination module 608 is used to determine the gas detection device corresponding to the abnormal detection data as an abnormal gas detection device.
[0120] As an optional scheme, the above-mentioned device is used to detect the gas to be detected using a gas detection device in the following manner, determine a set of detection data, and perform a division operation on the above-mentioned set of detection data to determine the target distribution boundary: use the above-mentioned gas detection device to detect the above-mentioned gas to be detected, and determine the above-mentioned set of detection data; perform the above-mentioned division operation on the above-mentioned set of detection data, and determine the target upper quantile and the target lower quantile corresponding to the above-mentioned set of detection data; determine the target difference between the above-mentioned target upper quantile and the above-mentioned target lower quantile; determine the upper boundary of the target distribution according to the above-mentioned target upper quantile and the above-mentioned target difference, and determine the lower boundary of the target distribution according to the above-mentioned target lower quantile and the above-mentioned target difference; determine the above-mentioned target distribution boundary based on the above-mentioned target distribution upper boundary and the above-mentioned target distribution lower boundary.
[0121] As an optional scheme, the above-mentioned device is also used to: when the number of the above-mentioned target detection data satisfies the above-mentioned preset ratio, add the above-mentioned target distribution boundary to the above-mentioned distribution boundary sequence; or delete the above-mentioned abnormal detection data in the above-mentioned group of detection data to obtain a group of updated detection data, and perform the above-mentioned division operation on the above-mentioned group of updated detection data to determine the updated distribution boundary; add the above-mentioned updated distribution boundary to the above-mentioned distribution boundary sequence.
[0122] As an optional scheme, the above-mentioned device is also used for: before determining whether the number of target detection data satisfies a preset ratio according to a predetermined distribution boundary sequence, obtaining at least one group of sample detection data, performing the above-mentioned division operation on each group of sample detection data in the above-mentioned at least one group of sample detection data, and determining the sample upper quantile and sample lower quantile corresponding to each group of sample detection data in the above-mentioned at least one group of sample detection data; determining the sample difference between the above-mentioned sample upper quantile and the above-mentioned sample lower quantile; determining the upper boundary of the sample distribution according to the above-mentioned sample upper quantile and the above-mentioned sample difference, and determining the lower boundary of the sample distribution according to the above-mentioned sample lower quantile and the above-mentioned sample difference; determining the above-mentioned sample distribution upper boundary as an element in the distribution upper boundary sequence, and determining the above-mentioned sample distribution lower boundary as an element in the distribution lower boundary sequence, wherein the above-mentioned distribution boundary sequence includes the above-mentioned distribution upper boundary sequence and the above-mentioned distribution lower boundary sequence.
[0123] As an optional scheme, the above-mentioned device is used to determine whether the number of target detection data meets the preset ratio according to a predetermined distribution boundary sequence in the following manner: determine the upper bound mean and upper bound standard deviation of the above-mentioned distribution upper bound sequence according to the above-mentioned distribution boundary sequence, and determine the lower bound mean and lower bound standard deviation of the above-mentioned distribution lower bound sequence; determine the sum of the above-mentioned upper bound mean and at least one of the above-mentioned upper bound standard deviations as the target upper bound of the above-mentioned sample distribution boundary, and determine the difference between the above-mentioned lower bound mean and at least one of the above-mentioned lower bound standard deviations as the target lower bound of the above-mentioned sample distribution boundary; determine the above-mentioned target detection data according to whether the data value of each detection data in the above-mentioned set of detection data satisfies the above-mentioned first preset relationship with the above-mentioned target upper bound and the above-mentioned target lower bound; obtain the number of the above-mentioned target detection data, and determine whether the number of the above-mentioned target detection data meets the above-mentioned preset ratio, wherein the value of the above-mentioned preset ratio is related to the determination method of the above-mentioned target detection data.
[0124] As an optional scheme, the above-mentioned device is used to determine the above-mentioned target detection data according to whether the data value of each detection data in the above-mentioned set of detection data satisfies the above-mentioned first preset relationship with the above-mentioned target upper boundary and the above-mentioned target lower boundary in the following manner: when the data value of the first detection data in the above-mentioned set of detection data is less than or equal to the above-mentioned target upper boundary, and greater than or equal to the above-mentioned target lower boundary, it is determined that the above-mentioned first detection data satisfies the above-mentioned first preset relationship, and the above-mentioned first detection data is determined as the above-mentioned target detection data.
[0125] As an optional scheme, the above-mentioned device is also used for: after determining whether the number of target detection data satisfies a preset ratio according to a predetermined distribution boundary sequence, if the number of the above-mentioned target detection data does not satisfy the above-mentioned preset ratio, determining that the system of the above-mentioned gas detection equipment is abnormal; if the number of the above-mentioned system abnormalities meets a preset number threshold, generating a target prompt message, wherein the above-mentioned target prompt message is used to indicate that the system of the above-mentioned gas detection equipment has an abnormality; if the number of the above-mentioned system abnormalities does not meet the preset number threshold, reusing the above-mentioned gas detection equipment to detect the above-mentioned gas to be detected until the number of the above-mentioned system abnormalities meets the above-mentioned preset number threshold.
[0126] As an optional scheme, the above-mentioned device is used to determine the abnormal detection data in the above-mentioned group of detection data that satisfies the second preset relationship with the above-mentioned target distribution boundary in the following manner when the number of the above-mentioned target detection data satisfies the above-mentioned preset ratio: when the number of the above-mentioned target detection data satisfies the above-mentioned preset ratio, determine the abnormal detection data to be reviewed in the above-mentioned group of detection data that satisfies the above-mentioned second preset relationship with the above-mentioned target distribution boundary; use the abnormal gas detection equipment corresponding to the above-mentioned abnormal detection data to be reviewed to detect the above-mentioned gas to be detected, determine a group of review data, and perform the above-mentioned division operation on the above-mentioned group of review data to determine the review distribution boundary; determine the above-mentioned abnormal detection data in the above-mentioned group of review data that satisfies the above-mentioned second preset relationship with the above-mentioned review distribution boundary.
[0127] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program that has a predetermined function and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories), or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0128] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0129] According to one aspect of the present application, a computer program product is provided. The computer program product includes a computer program.
[0130] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0131] Figure 7 The structure block diagram of a computer system for implementing an electronic device according to an embodiment of the present application is schematically shown.
[0132] It should be noted that Figure 7 The computer system 700 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0133] like Figure 7As shown, the computer system 700 includes a central processing unit 701 (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory 702 (ROM) or the program loaded from the storage part 708 to the random access memory 703 (RAM). Various programs and data required for system operation are also stored in the random access memory 703. The central processing unit 701, the read-only memory 702 and the random access memory 703 are connected to each other through a bus 704. The input / output interface 705 (Input / Output interface, i.e., I / O interface) is also connected to the bus 704.
[0134] The following components are connected to the input / output interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the input / output interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed so that a computer program read therefrom is installed into the storage section 708 as needed.
[0135] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the central processor 701, various functions defined in the system of the present application are executed.
[0136] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the central processor 701, various functions provided by the embodiment of the present application are performed.
[0137] According to another aspect of the embodiment of the present application, an electronic device for implementing the calibration method of the above-mentioned gas detection device is also provided. The electronic device may be Figure 1 The terminal device or server shown in the figure. This embodiment is described by taking the electronic device as a terminal device as an example. Figure 8 As shown, the electronic device includes a memory 802 and a processor 804. The memory 802 stores a computer program, and the processor 804 is configured to execute the steps in any of the above method embodiments through the computer program.
[0138] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.
[0139] Optionally, in this embodiment, the above-mentioned processor can be configured to execute the methods in each embodiment of the present application through a computer program.
[0140] Alternatively, a person skilled in the art may understand that: Figure 8 The structure shown is for illustration only. Figure 8 The structure of the electronic device is not limited. Figure 8 More or fewer components (such as network interfaces, etc.) as shown in, or with Figure 8 Different configurations shown.
[0141] Among them, the memory 802 can be used to store software programs and modules, such as the program instructions / modules corresponding to the calibration method and device of the gas detection equipment in the embodiment of the present application. The processor 804 executes various functional applications and data processing by running the software programs and modules stored in the memory 802, that is, realizing the calibration method of the gas detection equipment mentioned above. The memory 802 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 802 may further include a memory remotely located relative to the processor 804, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 802 can be specifically, but not limited to, used to store the above-mentioned set of detection data and other information. As an example, such as Figure 8 As shown, the memory 802 may include, but is not limited to, the acquisition module 602, the first determination module 604, the second determination module 606, and the third determination module 608 in the calibration device of the gas detection device. In addition, it may also include, but is not limited to, other module units in the calibration device of the gas detection device, which will not be repeated in this example.
[0142] Optionally, the transmission device 806 is used to receive or send data via a network. Specific examples of the network may include a wired network and a wireless network. In one example, the transmission device 806 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 806 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0143] In addition, the electronic device further comprises: a display 808 for displaying the above set of detection data; and a connection bus 810 for connecting various module components in the electronic device.
[0144] In other embodiments, the terminal device or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the multiple nodes through network communication. The nodes may form a peer-to-peer network, and any form of computing device, such as a server, terminal or other electronic device, may become a node in the blockchain system by joining the peer-to-peer network.
[0145] According to one aspect of the present application, a computer-readable storage medium is provided, and a processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the calibration method of the gas detection device provided in various optional implementations of the calibration aspects of the above-mentioned gas detection device.
[0146] Optionally, in this embodiment, the above-mentioned computer-readable storage medium can be configured to store data for executing the methods in various embodiments of the present application.
[0147] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0148] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0149] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for one or more electronic devices to execute all or part of the steps of the methods described in each embodiment of the present application.
[0150] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0151] In the several embodiments provided in the present application, it should be understood that the disclosed application can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components 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 through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0152] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0153] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0154] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A calibration method for gas detection equipment, It is characterized in that include: Using a gas detection device to detect the gas to be detected, determining a set of detection data, and performing a partitioning operation on the set of detection data to determine a target distribution boundary, wherein the target distribution boundary is determined based on a target upper quantile and a target lower quantile corresponding to the set of detection data; Determine whether the ratio of the number of target detection data to the number of the group of detection data satisfies a preset ratio according to a predetermined distribution boundary sequence, wherein an element in the distribution boundary sequence is determined by performing the division operation on a group of sample detection data, the target detection data represents detection data in the group of detection data that satisfies a first preset relationship with a sample distribution boundary, the sample distribution boundary is jointly determined by the values of each element in the distribution boundary sequence, and the elements in the distribution boundary sequence are determined based on the sample upper quantile and the sample lower quantile corresponding to the group of sample detection data; When the ratio of the number of the target detection data to the number of the group of detection data satisfies the preset ratio, determining abnormal detection data in the group of detection data that satisfies a second preset relationship with the target distribution boundary; The gas detection device corresponding to the abnormal detection data is determined as an abnormal gas detection device.
2. The method according to claim 1, It is characterized in that The method of using a gas detection device to detect the gas to be detected, determining a set of detection data, and performing a division operation on the set of detection data to determine a target distribution boundary includes: Using the gas detection device to detect the gas to be detected, and determining the set of detection data; Performing the division operation on the set of detection data to determine the target upper quantile and the target lower quantile corresponding to the set of detection data; determining a target difference between the target upper quantile and the target lower quantile; Determine a target distribution upper boundary according to the target upper quantile and the target difference, and determine a target distribution lower boundary according to the target lower quantile and the target difference; The target distribution boundary is determined based on the target distribution upper boundary and the target distribution lower boundary.
3. The method according to claim 1, It is characterized in that The method further comprises: When the ratio of the number of the target detection data to the number of the set of detection data satisfies a preset ratio, adding the target distribution boundary to the distribution boundary sequence; or The abnormal detection data in the set of detection data is deleted to obtain a set of updated detection data, and the partitioning operation is performed on the set of updated detection data to determine an updated distribution boundary; and the updated distribution boundary is added to the distribution boundary sequence.
4. The method according to claim 1, It is characterized in that Before determining whether the ratio of the number of target detection data to the number of the set of detection data satisfies a preset ratio according to the predetermined distribution boundary sequence, the method further includes: Acquire at least one group of sample test data, perform the division operation on each group of sample test data in the at least one group of sample test data, and determine the sample upper quantile and the sample lower quantile respectively corresponding to each group of sample test data in the at least one group of sample test data; Determining a sample difference between the sample upper quantile and the sample lower quantile; Determine the upper boundary of the sample distribution according to the sample upper quantile and the sample difference, and determine the lower boundary of the sample distribution according to the sample lower quantile and the sample difference; The sample distribution upper boundary is determined as an element in a distribution upper boundary sequence, and the sample distribution lower boundary is determined as an element in a distribution lower boundary sequence, wherein the distribution boundary sequence includes the distribution upper boundary sequence and the distribution lower boundary sequence.
5. The method according to claim 4, It is characterized in that The determining, according to a predetermined distribution boundary sequence, whether a ratio of the number of target detection data to the number of the set of detection data satisfies a preset ratio includes: Determine the upper bound mean and upper bound standard deviation of the upper bound sequence of the distribution according to the distribution boundary sequence, and determine the lower bound mean and lower bound standard deviation of the lower bound sequence of the distribution; Determine the sum of the upper bound mean and at least one of the upper bound standard deviations as the target upper bound of the sample distribution boundary, and determine the difference between the lower bound mean and at least one of the lower bound standard deviations as the target lower bound of the sample distribution boundary; Determine the target detection data according to whether the data value of each detection data in the set of detection data satisfies the first preset relationship with the target upper boundary and the target lower boundary; The number of the target detection data is obtained, and it is determined whether the ratio of the number of the target detection data to the number of the set of detection data satisfies the preset ratio, wherein the value of the preset ratio is related to the determination method of the target detection data.
6. The method according to claim 5, It is characterized in that The determining the target detection data according to whether the data value of each detection data in the set of detection data satisfies the first preset relationship with the target upper boundary and the target lower boundary includes: When the data value of the first detection data in the set of detection data is less than or equal to the target upper boundary and greater than or equal to the target lower boundary, it is determined that the first detection data satisfies the first preset relationship, and the first detection data is determined as the target detection data.
7. The method according to claim 1, It is characterized in that After determining whether the ratio of the number of target detection data to the number of the set of detection data satisfies a preset ratio according to the predetermined distribution boundary sequence, the method further includes: In the case where the ratio of the number of the target detection data to the number of the set of detection data does not satisfy the preset ratio, determining that the system of the gas detection device is abnormal; When the number of system anomalies meets a preset number threshold, generating a target prompt message, wherein the target prompt message is used to indicate that an abnormality has occurred in the system of the gas detection device; When the number of system anomalies does not meet the preset number threshold, the gas detection device is reused to detect the gas to be detected until the number of system anomalies meets the preset number threshold.
8. The method according to claim 1, It is characterized in that In the case where the ratio of the number of the target detection data to the number of the group of detection data satisfies a preset ratio, determining abnormal detection data in the group of detection data that satisfies a second preset relationship with the target distribution boundary includes: When the ratio of the number of the target detection data to the number of the group of detection data satisfies a preset ratio, determining the abnormal detection data to be reviewed in the group of detection data that satisfies the second preset relationship with the target distribution boundary; Using an abnormal gas detection device corresponding to the abnormal detection data to be reviewed to detect the gas to be detected, determine a group of review data, and perform the division operation on the group of review data to determine a review distribution boundary; Determine the abnormal detection data in the set of review data that satisfies the second preset relationship with the review distribution boundary.
9. A calibration device for gas detection equipment, It is characterized in that include: An execution module, configured to detect the gas to be detected using a gas detection device, determine a set of detection data, and perform a partitioning operation on the set of detection data to determine a target distribution boundary, wherein the target distribution boundary is determined based on a target upper quantile and a target lower quantile corresponding to the set of detection data; A first determination module is used to determine whether the ratio of the number of target detection data to the number of the group of detection data meets a preset ratio according to a predetermined distribution boundary sequence, wherein an element in the distribution boundary sequence is determined by performing the division operation on a group of sample detection data, the target detection data represents detection data in the group of detection data that meets a first preset relationship with a sample distribution boundary, the sample distribution boundary is jointly determined by the values of each element in the distribution boundary sequence, and the elements in the distribution boundary sequence are determined based on the sample upper quantile and the sample lower quantile corresponding to the group of sample detection data; A second determination module is used to determine abnormal detection data in the set of detection data that satisfies a second preset relationship with the target distribution boundary when the ratio of the number of the target detection data to the number of the set of detection data satisfies a preset ratio; The third determination module is used to determine the gas detection device corresponding to the abnormal detection data as an abnormal gas detection device.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes a stored computer program, wherein the computer program can be executed by an electronic device to perform the method described in any one of claims 1 to 8.
11. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 8 are implemented.
12. An electronic device comprising a memory and a processor, It is characterized in that A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 8 through the computer program.
