The Research of a New Iteration of the Circular Algorithm

Publications

Share / Export Citation / Email / Print / Text size:

International Journal of Advanced Network, Monitoring and Controls

Xi'an Technological University

Subject: Computer Science, Software Engineering

GET ALERTS

eISSN: 2470-8038

DESCRIPTION

11
Reader(s)
13
Visit(s)
0
Comment(s)
0
Share(s)

SEARCH WITHIN CONTENT

FIND ARTICLE

Volume / Issue / page

Related articles

VOLUME 4 , ISSUE 1 (Sep 2019) > List of articles

The Research of a New Iteration of the Circular Algorithm

Shuping Xu * / Menyao Huang / Li Chen / Pei Xu

Keywords : Circular Iteration, Characteristic Absorption Peak, Iterative Algorithm, Gas Concentration

Citation Information : International Journal of Advanced Network, Monitoring and Controls. Volume 4, Issue 1, Pages 83-89, DOI: https://doi.org/10.21307/ijanmc-2019-039

License : (CC-BY-NC-ND 4.0)

Published Online: 25-September-2019

ARTICLE

ABSTRACT

It is a problem of spectra analysis of flue gas that how to separate and calculate the concentration of different kinds of gas from continuous mixed gas absorption spectrum signal. So based on experimental data, a new iteration of the circular algorithm is put forward on the basis of Lambert-Beer’s law. The algorithm uses different UV-light wavelengths at 190nm-290nm for different characteristics of UV light with different absorption peaks. The iteration is repeated until the concentration difference between adjacent two gases is less than a certain value. It is considered that the elemental gas The exact concentration, and through the programming to achieve the results. it has strong anti-jamming capability and is suitable for practical application of engineering.

I. INTRODUCTION

With the industrial production, centralized heating of boilers and the popularization of transportation tools, a large number of soot and toxic and harmful gases will be discharged. Hazardous substances accumulate gradually in the atmosphere and reach a certain concentration, which will make the normal composition of air change, thus endangering the health of human beings and various animals and plants. Various problems caused by air pollution have attracted the attention of environmental protection departments. In order to achieve accurate and real-time monitoring of environmental quality, ecological environment and pollution sources, and provide accurate basis for supervision and management of environmental protection departments at all levels and environmental decision-making of the government, a large number of modern environmental monitoring instruments are urgently needed.

At present, there are three main methods for gas detection of portable spectrometers in domestic and foreign markets: differential algorithm, electrochemical analysis and infrared spectroscopy. Differential absorption algorithm can accurately calculate the concentration of most gases, but it will lose the broadband continuous absorption information in the characteristic absorption of gases, leading to some gas concentration measurement can not come out. For example, the absorption spectrum of nitrogen dioxide molecule in the ultraviolet band is mostly gradual continuous absorption, so differential absorption algorithm may think that the absorption information of nitrogen dioxide is filtered out by scattering, resulting in the detection of nitrogen dioxide. If the absorption curves of nitric oxide and nitrogen dioxide have the same absorption peaks, the fitting absorption curves are superimposed at the measuring points, so it is still impossible to distinguish the two gases. The electrochemical analysis method has the advantages of simple structure and easy operation. It mainly depends on gas sensors, a gas sensor can only detect a corresponding gas, and the sensitivity of gas sensors is high, but after a period of time, the sensitivity of sensors to gas will decline, it is necessary to replace gas sensors in time, and gas sensors are expensive, which increases the use cost for users. The main principle of gas sensor is to use the oxidation or reduction reaction of gas to generate current, but if there are both oxidizing gas and reducing gas, the measurement results will be inaccurate. Infrared spectroscopy overcomes the shortcomings of electrochemical analysis, but can only measure the approximate concentration of nitrogen oxides, can not accurately measure the specific concentration of NO and NO2, and infrared spectroscopy for environmental humidity, temperature and other external conditions require higher technology is more complex.

Based on defects and deficiencies of the above gas detection methods, an iterative evolution gas solution algorithm is proposed in this paper. According to the good absorption of ultraviolet light by gas at the wavelength of 190-290 nm, the number of absorbed photons can be obtained by measuring the ultraviolet light absorbed by gas. The actual concentration of gas can be obtained from the number of photons by using the iterative gas calculation algorithm.

II. THE PINCIPLE AND COMPUTATIONAL PROCEDURE OF ITERATIVE ALGORITHMS

A. Algorithm Principle

Mixed gases have characteristic absorption peaks in the range of ultraviolet wavelength 190-290 nm. Gas absorbance has multiple superposition. Assuming that some elementary gas does not absorb other gases on its best characteristic absorption peak, the corresponding table of absorbance and concentration of this single substance gas is searched to obtain the initial concentration of the gas, and then switch to another characteristic absorption peak. The photon number of the gas is subtracted from the total photon number measured, and the initial concentration of another gas is obtained. By analogy, the initial concentration of each gas is obtained one by one. Then, the characteristic absorption peak of the first gas is returned to, and the absorption photon number of other gases is subtracted from the total photon number absorbed, and the iterative concentration of the first gas is obtained again. By analogy, the initial concentration of each elemental gas is obtained again. By repeating the iteration until the difference of gas concentration between two adjacent times is less than a certain value, it is considered that the concentration of the elemental gas is obtained.

B. Algorithm Steps

  • 1) The initial concentration c1 of the first elementary gas in the mixed gas is solved. According to the characteristic absorption peak of the gas at wavelength λ1, the number of photons B Sλ1 of absorbed by the gas is read. Solving the value of Rλ1DλSλ1Dλ10.21307_ijanmc-2019-039-ieqn1.jpg (Rλ is the number of incident photons; Sλ is the number of photons passing through the medium.; Dλ is the number of photons in dark spectrum (Also known as dark spectral noise); λ is the wavelength of a certain ultraviolet wave, K is a constant, c is the concentration of elemental gas), The initial concentration c1 of the elemental gas was obtained by inquiring the comparison table of absorbance and gas concentration..

  • 2) The initial concentration c2 of the second primary gas in the mixed gas is solved. too, Select the characteristic absorption peak λ2 of the elemental gas and read the absorption photon number Sλ2 of the elemental gas. Assuming that there are only two gases in this band, According to the formula

    (1)
    RλDλSλDλ=Rλ1DλSλ1Dλ*Rλ2DλSλ2Dλ 10.21307_ijanmc-2019-039-eqn1.jpg

    the absorbance of the second gas is calculated, and the concentration of the second gas is calculated by querying the absorbance and concentration table again, as the initial concentration c2 of the second gas.

  • 3) Solve the concentration of other elemental gases in mixed gases. Methods 1 and 2. Selecting the characteristic peak absorption wavelength of other elemental gases and reading the number of absorbed photons at that wavelength. The absorbance was calculated by formula

    (2)
    A=RλDλSλDλ=Rλ1DλSλ1Dλ*Rλ2DλSλ2Dλ*Rλ3DλSλ3Dλ**RλnDλSλnDλ 10.21307_ijanmc-2019-039-eqn2.jpg

    (A is absorbance), and the initial concentration of gas was obtained by looking up the table.

  • 4) Iterative Recursion of the Concentration of the First Element Gas. The concentration of all elemental gases obtained at present is substituted into the formula

    (3)
    RλDλSλDλ=Rλ1DλSλ1Dλ×Rλ2DλSλ2Dλ×Rλ3DλSλ3Dλ××RλnDλSλnDλ 10.21307_ijanmc-2019-039-eqn3.jpg

    and the corresponding Sλ1 of wavelength λ1 is read again. The iterative concentration c1 of the first elemental gas is obtained by checking the corresponding table of concentration absorbance.

  • 5) Repeat 2) and 3) to find the iteration concentration cm1 of the elemental gas M.

  • 6) Calculate the error of the calculation results of the same elemental gas in the adjacent two times. The first-order iteration error of each elemental gas is calculated.

    (4)
    Δm1=|c0mcm1| 10.21307_ijanmc-2019-039-eqn4.jpg

  • 7) Repeat 4, 5 and 6 until the error of two iterations of the same gas concentration is less than 3%.

    (5)
    Δn<ΔG 10.21307_ijanmc-2019-039-eqn5.jpg

The last calculated gas concentration is regarded as the final concentration of various elemental gases.

III. ALGORITHM VERIFICATION

Fig. 1 is the absorption spectra of NO, SO2 NH3 and NO2 mixed gases. Among them, N2 is a zero gas whose spectral line is called zero gas line. Zero gas is not absorbed in ultraviolet light of 190-290 nm. Because there is Rayleigh scattering in the gas to be detected, the influence of scattering can be eliminated by using the zero-gas line spectrum as the reference spectrum.

Figure 1.

Mixed gas UV spectral absorption curve

10.21307_ijanmc-2019-039-f001.jpg

From the observation in Fig. 1, we can see that NO and NH3 can find non-interference absorption wavelengths. These two wavelengths are just the absorption peaks of NO and NH3, and there is no NO absorption at the NO absorption peak, and there is no NH3 absorption at the NO absorption peak. So it is easy to distinguish the two gases if we only distinguish them. The problem now is that SO2 and NO2 both absorb at the absorption peaks of these two gases. At the wavelength of 220 nm, the maximum absorption peaks of NO and NO2 are close, and SO2 absorbs a lot of ultraviolet light in this section. So if we can know the concentration of SO2 and NO2 beforehand, we can use the superposition of absorbance to subtract the absorbance of NO and NH3 from the total absorbance of SO2 and NO2. We can get the absorbance of NO and NH3 by looking up tables. Therefore, in order to obtain the specific concentration of various elemental gases in mixed gases, the concentration of SO2 and NO2 must be required first, and then the concentration of NO and NH3 can be calculated. In this way, the concentration of four kinds of elemental gases in the mixture can be calculated.

A. Calculating the Concentrations of SO2 and NO2

NO2 and SO2 interfere with each other in the whole working band. Now it is assumed that there are two kinds of elemental gases in the mixture, NO2 and SO2, respectively. It is now known that the absorption spectra of mixed gases at 231.33 nm and 273.33 nm, and the absorbance of gases NO2 and SO2 at 231.33 nm and 273.33 nm (231.33 nm and 273.33 nm, respectively, are the maximum absorbance of gases NO2 and SO2 at this point). Now calculate the respective concentrations of NO2 and SO2.

Figure 2.

Absorption spectra of SO2 and NO2

10.21307_ijanmc-2019-039-f002.jpg
TABLE I.

SPECTRAL TABLES FOR SO2 AND NO2 AT WAVELENGTH 273.33NM AND WAVELENGTH 231.33NM

10.21307_ijanmc-2019-039-tbl1.jpg

Fig. 3 is the flow chart of the iterative algorithm for the concentration of NO2 and SO2 mixed gases. After several iterations, the real concentrations of these two gases can be calculated from the mixture.

Figure 3.

NO2 and SO2 gas concentration iterative algorithm flow chart

10.21307_ijanmc-2019-039-f003.jpg
Figure 4.

SO2 concentration and the number of iterations curve

10.21307_ijanmc-2019-039-f004.jpg
Figure 5.

NO2 concentration and the number of iterations curve

10.21307_ijanmc-2019-039-f005.jpg

After two iterations, the numerical value of the algorithm tends to be stable, and the precise gas concentrations of NO2 and SO2 are basically obtained.

B. Calculating the Gas Concentrations of NO and NH3

There is no interference between NO and NH3 at their maximum absorption peaks, so the total absorbance and the concentration of NO2 and SO2 can be calculated according to the superposition of ultraviolet light. Assuming that the concentrations of NO2 and SO2 in mixed gases are c1 and c2, respectively, and the concentrations of NO and NH3 are c3 and c4, the multivariate superposition of absorbance at wavelength 225.88 nm can be obtained as follows:

(6)
A=A1+A2+A3 10.21307_ijanmc-2019-039-eqn6.jpg

A1 is the absorbance of NO2 at 225.8 nm in c1 concentration, A2 is the absorbance of SO2 at 225.8 nm in c2 concentration, A is the total absorbance of mixed gas at 225.88 nm and A3 is the total absorbance of NO at 225.88 nm.

(7)
A3=AA1A2=lg(I0I)A1A2 10.21307_ijanmc-2019-039-eqn7.jpg

I0 is the spectral intensity at 225.88 nm through zero gas, I is the transmission intensity at 225.88 nm through the mixture gas to be measured, the intensity can be obtained directly by spectrometer, A2 and A3 are calculated by the concentration of SO2 and NO2. In this way, the absorbance A3 of NO at 225.88 nm can be obtained, and then the concentration of NO can be calculated according to the corresponding table between the concentration of NO at 225.88 nm and the absorbance. The absorbance A4 of NH3 can be obtained by the same method at 208.23 nm, and the concentration of NH3 can be calculated according to the corresponding relationship between NH3 concentration and absorbance at 208.23 nm.

C. Composition of Platform Experiment System

Ultraviolet flue gas analyzer consists of three parts: flue gas data acquisition module, data processing module and data display module.

Figure 6.

Experimental system composition diagram

10.21307_ijanmc-2019-039-f006.jpg

The data acquisition module is composed of ultraviolet light source and marine optical Maya2000 Pro ultraviolet spectrometer. Ultraviolet light source outputs stable ultraviolet light. Ultraviolet light passes through the optical fiber through the detected gas. After the gas is fully absorbed, the remaining ultraviolet light is transmitted into the ultraviolet spectrometer by the optical fiber. After the optical processing and photoelectric conversion of the gas by the spectrometer, the gas information becomes an electrical signal, waiting for the data processing module to read. In this system, the ultraviolet spectrometer is actually a flue gas acquisition sensor. Data processing module is composed of embedded development board. The embedded development board reads the gas information from the ultraviolet spectrometer, calculates the actual concentration of the elemental gas through the iterative algorithm, and visualizes it through the data display module. This is the composition and working principle of the experimental system.

D. Absorption Spectroscopy of Elemental Gas and Zero Gas

N2 is introduced into the system, and its absorption spectrum is measured when the gas concentration is stable. After that, the number of photons absorbed by NO2, NO, SO2 and NH3 gases was measured in turn, and the curve was drawn by using the number and wavelength of photons.

Figure 7.

Four gas photon spectrum line graph

10.21307_ijanmc-2019-039-f007.jpg

E. Data Verification

The following data are obtained when a mixture of SO2 and NO is injected into the experimental system.

Table 2 shows the number of absorbed photons and dark noise photons at 271.98 and 225.94 nm measured by ultraviolet spectrometer in a mixture of SO2 and NO2 at 100 ppm, respectively.

TABLE II.

200PPM SO2 AND NO GAS SPECTRAL DATA

10.21307_ijanmc-2019-039-tbl2.jpg

Table 3 shows the number of absorbable photons at 271.98 nm and 225.94 nm for zero and mixed gases, as well as the number of dark spectral noise photons measured by spectrometer. In practical calculation, the number of photons measured should be subtracted from the number of photons of dark spectral noise to obtain the actual number of photons of zero gas and mixed gas.

TABLE III.

SPECTRAL DATA FOR MIXED GAS

10.21307_ijanmc-2019-039-tbl3.jpg

Based on the above data, the photon number absorption curves of elemental gases at their maximum absorption peaks are fitted.

Figure 8-11 is a curve drawn by a single gas at the maximum absorption wavelength of ultraviolet light. Analysis table of experimental results

Figure 8.

Fitting curve of SO2 at 271.98 nm

10.21307_ijanmc-2019-039-f008.jpg
Figure 9.

Fitting curve of NO at 225.94 nm

10.21307_ijanmc-2019-039-f009.jpg
Figure 10.

Fitting curve of NO at 271.98 nm

10.21307_ijanmc-2019-039-f010.jpg
Figure 11.

Fitting curve of NH3 at 271.98 nm

10.21307_ijanmc-2019-039-f011.jpg

In Table 4, the standard value is the concentration of the standard elemental gas put in the test, and the measured value is the concentration of the elemental gas calculated from the mixed gas using an iterative algorithm. From the experimental results, it can be seen that the maximum error of the measured value is less than the standard value, and the maximum error of the accuracy is 1.94%, which is much less than the original design standard of 3%, which is within the normal standard.

TABLE IV.

ANALYSIS OF RESULTS

10.21307_ijanmc-2019-039-tbl4.jpg

IV. SOFTWARE IMPLEMENTATION

The software algorithm is written in JavaScript, including the analysis and implementation process of the iterative algorithm gas. The main code is as follows:

  • /*

  • *Iterative calculation of gas concentration

  • */

  • function GetGasC() {

  • //1. Obtain absorbance from NO2

  • var NO2A_1 = GetAByWa(gasWavebanc[‘NO2’]);

  • //2. Find the concentration of this point

  • var NO2C_1, NO2A_2, SO2A_2, SO2C_2, SO2A_1, ONA_3, NH3A_4, ONC_3, NH3C_4;

  • for(var i = 0; i < 2; i++) {

  • NO2C_1=GetCByA_Data(NO2_data_231, NO2A_1);

  • //3. Calculate the absorbance of NO2 at 273.33. //NO2A_2;

  • NO2A_2= getAByC_Data(NO2_data_273, NO2C_1);

  • //4. Obtain the total absorbance of SO2 in the optimum band and subtract the absorbance of NO2 here.

  • SO2A_2=GetAByWa(gasWavebanc[“SO2”])

  • -NO2A_2;

  • //5. Looking up Table to Find DeSO2C_1

  • SO2C_2 = GetCByA_Data(SO2_data_273, SO2A_2);

  • //6. The absorbance of SO2 at 231.33 was obtained by //looking up the table.

  • SO2A_1 = getAByC_Data(SO2_data_231, SO2C_2);

  • //7. NO2A_1 is the total absorbance minus the

  • //absorbance of SO2A_1 at 231.33.

  • NO2A_1 = NO2A_1 - SO2A_1;

  • }

  • currentGasC_NO2 = NO2C_1;

  • currentGasC_SO2 = SO2C_2;

  • //The absorbance of NO at the optimum band is the

  • //total absorbance S-SO2 absorbance minus the

  • //absorbance of NO2.

  • ONA_3 = GetAByWa(gasWavebanc[“NO”]) - getAByC_Data(NO2_data_225, NO2C_1) - getAByC_Data(SO2_data_225, SO2C_2);

  • //Concentration of NO obtained

  • currentGasC_NO = GetCByA_Data(NO_data_225, ONA_3);

  • NH3A_4 = GetAByWa(gasWavebanc[“NH3”]) - getAByC_Data(NO2_data_208, NO2C_1) - getAByC_Data(SO2_data_208, SO2C_2);

  • currentGasC_NH3 = GetCByA_Data(NH3_data_208, NH3A_4);

  • $(“#NO2_C”).html(“No2” + currentGasC_NO2);

  • $(“#SO2_C”).html(“So2” + currentGasC_SO2);

  • $(“#NO_C”).html(“NO” + currentGasC_NO);

  • $(“#NH3_C”).html(“NH3” + currentGasC_NH3);

  • }

V. CONCLUSION

Aiming at the detection requirement of main harmful components in air pollution, a fast iteration algorithm of mixed flue gas is designed by using the continuous frequency division method of ultraviolet grating in the experimental system, and the effectiveness of the algorithm is verified. Ultraviolet spectrometer is used as a sensor. The embedded development board reads and calculates the gas concentration. The analysis and calculation of the algorithm are realized by programming. The results show that the iterative algorithm can accurately measure the concentration of flue gas and keep the error within 3%. It can meet the design requirements and solve many kinds of gases at the same time. It is suitable for practical engineering applications.

ACKNOWLEDGMENT

Thank you, Shaanxi Education Department. This work was supported in part by a grant from Shaanxi Provincial Department of Education Project (15JF019).

The authors wish to thank the cooperators. This research is partially funded by the Project funds in shanxi province department of education (15JF019), a the Project funds in engineering laboratory project (GSYSJ2018011) and the project funds in innovation and entrepreneurship training for college students (1070214033)

ABOUT THE AUTHOR

Xu Shuping (1974-), Female, Professor, School of Computer Science and Engineering, Xi’an Technological University, majoring in embedded and computer control. Email: 563937848@qq.com, Mobile: 13772148209.

References


  1. Chen Zhi-gang. Discussion on Experimental Application of Lambert-Beer Law[J]. Acta Metrologica Sinica. 2015(1)
  2. Pop, Paul. Embedded systems design: Optimization challenges. Lecture Notes in Computer Science, 2014, 35(24):16-20
    [CROSSREF]
  3. Shi Bao-song Sun Shou-hong Zhang Wei. Application of CCD in the portable spectrometer[J]. Electronic Measurement Technology. 2016(11)
  4. Limited ARM Development Guide 2000-2001. ARM DOI.2013.06.
  5. Tang Qu. “Research and design of ultraviolet flue gas analyzer [J]”. Nanjing University of Technology. 2013
  6. Jiang Xuqian. “Design of portable ultraviolet flue gas analyzer [J]”. Nanjing University of Technology. 2012
  7. Chen Bin. “Design of ultraviolet flue gas analyzer [J]”. Nanjing University of Technology. 2016
  8. Juwu, Wu Yihui. Micro-miniaturization of spectrometer [J]. Journal of Instrumentation, 2013. 22 (4): 131-133
  9. Yu Zhiqiang, Wenzhi Yu, Xie Yingke, Zhou Suyi. The control system of multi-parameter water quality tester based on raspberry pie [J]. Instrumentation technology and Sensors, 2015 (06): 20-23.
  10. Han Xiao, Wenzhi Yu, Xie Yingke, Wei Kanglin, Zhou Xiaofeng. Software design of control and signal processing system for multi-parameter water quality tester [J]. Instrumentation technology and Sensors, 2014 (08): 20-22
XML PDF Share

FIGURES & TABLES

Figure 1.

Mixed gas UV spectral absorption curve

Full Size   |   Slide (.pptx)

Figure 2.

Absorption spectra of SO2 and NO2

Full Size   |   Slide (.pptx)

Figure 3.

NO2 and SO2 gas concentration iterative algorithm flow chart

Full Size   |   Slide (.pptx)

Figure 4.

SO2 concentration and the number of iterations curve

Full Size   |   Slide (.pptx)

Figure 5.

NO2 concentration and the number of iterations curve

Full Size   |   Slide (.pptx)

Figure 6.

Experimental system composition diagram

Full Size   |   Slide (.pptx)

Figure 7.

Four gas photon spectrum line graph

Full Size   |   Slide (.pptx)

Figure 8.

Fitting curve of SO2 at 271.98 nm

Full Size   |   Slide (.pptx)

Figure 9.

Fitting curve of NO at 225.94 nm

Full Size   |   Slide (.pptx)

Figure 10.

Fitting curve of NO at 271.98 nm

Full Size   |   Slide (.pptx)

Figure 11.

Fitting curve of NH3 at 271.98 nm

Full Size   |   Slide (.pptx)

REFERENCES

  1. Chen Zhi-gang. Discussion on Experimental Application of Lambert-Beer Law[J]. Acta Metrologica Sinica. 2015(1)
  2. Pop, Paul. Embedded systems design: Optimization challenges. Lecture Notes in Computer Science, 2014, 35(24):16-20
    [CROSSREF]
  3. Shi Bao-song Sun Shou-hong Zhang Wei. Application of CCD in the portable spectrometer[J]. Electronic Measurement Technology. 2016(11)
  4. Limited ARM Development Guide 2000-2001. ARM DOI.2013.06.
  5. Tang Qu. “Research and design of ultraviolet flue gas analyzer [J]”. Nanjing University of Technology. 2013
  6. Jiang Xuqian. “Design of portable ultraviolet flue gas analyzer [J]”. Nanjing University of Technology. 2012
  7. Chen Bin. “Design of ultraviolet flue gas analyzer [J]”. Nanjing University of Technology. 2016
  8. Juwu, Wu Yihui. Micro-miniaturization of spectrometer [J]. Journal of Instrumentation, 2013. 22 (4): 131-133
  9. Yu Zhiqiang, Wenzhi Yu, Xie Yingke, Zhou Suyi. The control system of multi-parameter water quality tester based on raspberry pie [J]. Instrumentation technology and Sensors, 2015 (06): 20-23.
  10. Han Xiao, Wenzhi Yu, Xie Yingke, Wei Kanglin, Zhou Xiaofeng. Software design of control and signal processing system for multi-parameter water quality tester [J]. Instrumentation technology and Sensors, 2014 (08): 20-22

EXTRA FILES

COMMENTS