Background
The detector for the poisonous and harmful gas for the mine is suitable for field detection in various places such as underground coal mines, metallurgy, coking, environment monitoring, tunnel operation and the like, and can realize concentration measurement of the poisonous and harmful gas in tunnels or in places where people cannot reach. The mining toxic and harmful gas detector comprises various types, and can realize the concentration measurement of different toxic and harmful gases, for example, the mining toxic and harmful gas detector for carbon monoxide can be used for detecting the concentration of the toxic and harmful gas of carbon monoxide in a place.
The existing detection method of the detector for the mine poisonous and harmful gas adopts an ideal straight line calibration method, namely, a formula y is kx + b for calibration, and through zero point compensation, b is 0 after calibration, k is the slope of a straight line formed by a calibration point and a zero point, y is the concentration of the mine poisonous and harmful gas, and x is a signal output by a mine poisonous and harmful gas sensor. In fact, the mine toxic and harmful gas detector belongs to an electrochemical gas sensor, the electrochemical gas sensor has a nonlinear characteristic, the relation between an output electric signal value and gas concentration is also nonlinear, and the input-output relation of a peripheral signal conditioning circuit of the electrochemical sensor is also nonlinear, so that the mine toxic and harmful gas detection alarm adopting the electrochemical sensor has large deviation between a detection result and an actual concentration value, and the detection result is inaccurate.
In order to solve the problem that the detection result of the existing mine toxic and harmful gas detector is inaccurate, the conventional method is to improve the precision on related hardware, but the improvement of the hardware precision can increase the production cost of the mine toxic and harmful gas detector.
Disclosure of Invention
The mining poisonous and harmful gas detection alarm device aims to solve the problem that in the prior art, the detection precision of the concentration of poisonous and harmful gas is improved by improving the precision of relevant hardware, so that the production cost of the relevant mining poisonous and harmful gas detection alarm device is increased. The invention provides a mining poisonous and harmful gas concentration detection method based on a single-point calibration fitting algorithm and a mining poisonous and harmful gas concentration detection alarm instrument.
In a first aspect, the invention provides a mining toxic and harmful gas concentration detection method based on a single-point calibration fitting algorithm, which comprises the following steps:
acquiring an actual output value of a mine toxic and harmful gas sensor, and carrying out normalization processing on the actual output value of the mine toxic and harmful gas sensor to obtain target data corresponding to the actual output value of the mine toxic and harmful gas sensor;
bringing the target data and gas concentration values corresponding to 4 preset reference points into a target function to obtain a gas concentration value corresponding to an actual output value of the mining toxic and harmful gas sensor; the objective function is:
y=(1-t)3y0+3t(1-t)2y1+3t2(1-t)y2+t3y3
wherein, y0For the gas concentration value, y, corresponding to the 1 st predetermined reference point1The gas concentration value, y, corresponding to the 2 nd predetermined reference point2Gas concentration value, y, corresponding to the 3 rd predetermined reference point3For the gas concentration value, y, corresponding to the 4 th preset reference point0<y1<y2<y3T is the target data, and y is a gas concentration value.
In a second aspect, the invention provides a mining poisonous and harmful gas concentration detection alarm, which includes a processor, a memory and an alarm program stored in the memory and operable on the processor, wherein the processor executes the alarm program to implement the mining poisonous and harmful gas concentration detection method based on the single-point calibration fitting algorithm according to the first aspect.
Compared with the prior art, the invention has the following beneficial effects: the mining poisonous and harmful gas concentration detection method has the advantages that the acquired actual output values of the mining poisonous and harmful gas sensors are normalized to obtain target data, the target data and mining poisonous and harmful gas concentration values corresponding to 4 preset reference points are brought into a target function to obtain gas concentration values, the mining poisonous and harmful gas concentration detection method detects the mining poisonous and harmful gas concentration through a single-point calibration fitting algorithm, and the mining poisonous and harmful gas concentration detection precision is improved on the premise of not increasing the hardware cost. Moreover, the curve generated by the objective function is a continuous curve, the phenomena of jumping and oscillation do not exist, and the jumping and oscillation phenomena existing in the existing multipoint calibration, broken line and direct +/-value compensation method can be solved.
Further, in the detection method and the detection alarm apparatus, the normalizing the actual output value of the mine toxic and harmful gas sensor to obtain the target data corresponding to the actual output value of the mine toxic and harmful gas sensor includes:
subtracting the actual output value of the mining toxic and harmful gas sensor from the output value of the mining toxic and harmful gas sensor in the environment with zero gas concentration to obtain a first difference value; subtracting the actual output value of the mining toxic and harmful gas sensor from the output value of the mining toxic and harmful gas sensor in the environment with the gas concentration being the full-scale value of the alarm instrument to obtain a second difference value, and recording the ratio of the first difference value to the second difference value as target data.
Further, in the above-mentioned detection method and detection alarm, y0Is 0, y1Full range value y of 0.25 times of alarm20.5 times of full range value, y of alarm3Is the full range value of the alarm instrument.
Further, in the above-mentioned detection method and detection alarm, y00.1 times of full range value, y of the alarm instrument1Full range value y of 0.25 times of alarm20.5 times of full range value, y of alarm3Is the full range value of the alarm instrument.
Further, in the detection method and the detection alarm, the actual output value of the mining toxic and harmful gas sensor is the value of the output value of the electrochemical mining toxic and harmful gas sensor after signal conditioning circuit, AD conversion and data processing.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Referring to fig. 1, a schematic flow chart of the mining toxic and harmful gas concentration detection method based on the single-point calibration fitting algorithm according to the embodiment is shown, and the mining toxic and harmful gas detection method includes the following steps:
step S101, acquiring an actual output value of the mine toxic and harmful gas sensor, and carrying out normalization processing on the actual output value of the mine toxic and harmful gas sensor to obtain target data corresponding to the actual output value of the mine toxic and harmful gas sensor.
As shown in fig. 2, the process of obtaining the actual output value of the sensor for mining toxic and harmful gas in this embodiment is as follows: the mining toxic and harmful gas sensor detects toxic and harmful gas with a certain concentration, and the output value of the mining toxic and harmful gas sensor is subjected to conditioning circuit, AD conversion and data processing to obtain the actual output value of the mining toxic and harmful gas sensor.
In this embodiment, a gas concentration value corresponding to the actual output value of the mining toxic and harmful gas sensor is subsequently calculated according to an objective function, specifically, the actual output value of the mining toxic and harmful gas sensor is normalized, and objective data obtained after the normalization is brought into the objective function. In this embodiment, a single-point calibration fitting algorithm is adopted, which is based on a data fitting approximation method, and the target function obtaining process is as follows:
the following 4-point data fitting formula can be derived according to the series principle and the binomial principle in higher mathematics:
P(t)=(1-t)3P0+3t(1-t)2P1+3t2(1-t)P2+t3P3
wherein: p0=(x0,y0),P1=(x1,y1),P2=(x2,y2),P3=(x3,y3),y0=0*FS,y1=0.25*FS,y2=0.5*FS,y31 × FS, which is a full-scale value of the mine toxic and harmful gas detector, is a known constant, and has a dimension of a concentration unit of the mine toxic and harmful gas to be detected; from this known quantity, y can be determined using the above formulai,yiThe dimension of (a) is the concentration unit of the poisonous and harmful gas in the mine to be detected, xiIs and yiCorresponding actual output value, x of the mine poisonous and harmful gas sensoriAnd t is a normalized variable to be solved, and t is a dimensionless variable, wherein i is 0,1,2 and 3.
The concentration value of the mine poisonous and harmful gas in the environment to be detected is y, the actual output value of the sensor corresponding to y is x, normalization processing is carried out on x, t is the per unit value of x is obtained, t is dimensionless, and the per unit value can be obtained according to a formula
To obtain t.
x0Can be obtained in the environment with the concentration of toxic and harmful gas of 0, x3Can be obtained in the environment that the concentration of poisonous and harmful gas is the full scale value of the detector, namely FS.
Find formula P (t) ═ (1-t)3P0+3t(1-t)2P1+3t2(1-t)P2+t3P3The y-axis component of (a) can result in the objective function:
y=(1-t)3y0+3t(1-t)2y1+3t2(1-t)y2+t3y3
in this example y0Is 0, as other implementation modes, in order to accurately detect the concentration value of the small mining poisonous and harmful gas under the condition of low concentration of the environment, the embodiment sets y0At a smaller value greater than 0, e.g. y00.1FS or 0.05 FS.
This embodiment achieves a zero point P in clean air0=(x0,y0) Then obtaining a full scale point P according to the introduced standard gas of the FS concentration3=(x3,y3) P may also be calculated from the characteristics of the sensor and conditioning circuitry3=(x3,y3) Without the need for actual venting.
And S102, bringing the target data and the gas concentration values corresponding to the 4 preset reference points into a target function to obtain the gas concentration value corresponding to the output value of the mining poisonous and harmful gas sensor.
In this embodiment, FS is 1000, y0=0,y1=250,y2=500,y3The data have the same mining poisonous and harmful gas dimension unit, and are mining poisonous and harmful gas units of the same grade.
And (3) substituting the gas concentration values of the 4 calibration points into an objective function to obtain:
y=(1-t)3*0.1+3t(1-t)2*250+3t2(1-t)*500+t3*1000
and normalizing the actual output value of the mine toxic and harmful gas sensor according to the normalization mode in the step S101 to obtain target data t corresponding to the actual output value of the mine toxic and harmful gas sensor, substituting the target data t into the formula, and obtaining a y value, namely the concentration value of the mine toxic and harmful gas.
The concentration value of the mining poisonous and harmful gas obtained by the embodiment can be used for displaying to remind a user of the concentration value of the poisonous and harmful gas in the current environment; and the concentration value of the obtained gas can be compared with a set toxic and harmful gas concentration threshold value, and when the obtained gas concentration value is greater than the set toxic and harmful gas concentration threshold value, an alarm is given out to warn danger.
In this embodiment, when FS is 1000, and is another value, y corresponds to another embodiment0、y1、y2And y3As well as may be changed.
The method comprises the steps of obtaining a target function based on a data fitting algorithm, selecting 4 reference points to obtain gas concentration values of the 4 reference points, carrying out normalization processing on obtained actual output values of the mining toxic and harmful gas sensor to obtain target data, and bringing the target data and the gas concentration values of the 4 reference points into the target function to obtain gas concentration values corresponding to the actual output values of the mining toxic and harmful gas sensor; the method can accurately test the concentration value of the gas to be detected in the environment under the condition that only one standard mine toxic and harmful gas is calibrated or standard gas calibration is not needed, so that the alarm has a single-point calibration or calibration-free function; the embodiment improves the detection precision of the concentration of the mining poisonous and harmful gas through the single-point fitting algorithm, improves the detection precision under the condition that the cost of the mining poisonous and harmful gas detection alarm is not changed, and is beneficial to popularization of products. Moreover, the curve generated by the objective function of the embodiment is a continuous curve, and has no jump and oscillation phenomena, so that the jump and oscillation phenomena existing in the existing multipoint calibration, broken line and direct +/-value compensation method can be solved.
Embodiment of mining poisonous and harmful gas concentration detection alarm
The mining poisonous and harmful gas concentration detection alarm instrument of the embodiment comprises a processor, a memory and an alarm instrument program which is stored in the memory and can run on the processor, wherein the processor executes the alarm instrument program to realize the mining poisonous and harmful gas concentration detection method based on the single-point calibration fitting algorithm in the mining poisonous and harmful gas concentration detection method based on the single-point calibration fitting algorithm. The method for detecting the concentration of the toxic and harmful gas for mines based on the single-point calibration fitting algorithm has been described in the embodiment of the method for detecting the concentration of the toxic and harmful gas for mines based on the single-point calibration fitting algorithm, and is not described herein again.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein.