8
FUZZY INFERENCE SYSTEMS FOR ESTIMATION OF AIR QUALITY INDEX ROMAI J., v.7, no.2(2011), 63–70 Daniel Dunea, Alexandru Alin Pohoat ¸˘ a, Emil Lungu Valahia University of Tˆargovi¸ ste, Romania [email protected], [email protected], emil [email protected] Abstract The paper provides a reliable method in assessing the Air Quality Index (AQI) by em- ploying fuzzy logic. Long-time series of sulfur dioxide (SO2), nitrogen dioxide (NO2) and particulate matter (PM10) obtained through continuous monitoring at Romanian argovis ¸te DB-1 station were inputted in a Mamdani fuzzy inference system (FIS) ob- taining the AQI output in a more comprehensive matter. The rules were structured by level of air pollutants concentration. All defined rules were evaluated in parallel in a ran- dom order. The triangular and trapezoidal membership functions fitted to the intended purpose of computational eciency. The AQI synthetic indicator allows the user a quick interpretation of the status of the surrounding air in residential areas. Keywords: fuzzy inference, air pollution, air quality index. 2010 MSC: 00A69. Presented at CAIM 2011. 1. INTRODUCTION This work presents the use of fuzzy techniques for Air Quality Index (AQI) as- sessments. In Romania, AQI is established on a scale from 1 to 6 (1-excellent, 6-very bad) using data acquired by automated stations of the National Network of Air Qual- ity Monitoring [1] . RNMCA comprises more than 140 automated stations for continuous monitoring of air quality managed by 41 local centers, which collect and transmit data from stations and AQI information to the public panel. The information is also transmitted after primary validation for certification at the National Reference Laboratory (LNR) in Bucharest. The selection of AQI is made taking into account the worst value from a set of spe- cific indices. Specific indices are established using 6 intervals of pollutant concen- trations such as sulfur dioxide (SO2), nitrogen dioxide (NO2), Ozone (O3), Carbon monoxide (CO) and particulate matter (PM10). At least three specific indices should generally be available to calculate the general AQI. Fuzzy inference methods assume that all the rules are activated at every cycle and contribute collectively to the solu- tion. It is a parallel one-shot inference, but the inference process can continue as the new inferred results can be fed again as inputs [5]. Methods based on the fuzzy sets theory should be applied in the context of environmental numbers. The boundaries 63

FUZZY INFERENCE SYSTEMS FOR ESTIMATION OF AIR …jromai/romaijournal/arhiva/2011/2/Dunea-et-al.pdfThe FISs of Mamdani type are suitable for air quality evaluation as both the inputs

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: FUZZY INFERENCE SYSTEMS FOR ESTIMATION OF AIR …jromai/romaijournal/arhiva/2011/2/Dunea-et-al.pdfThe FISs of Mamdani type are suitable for air quality evaluation as both the inputs

FUZZY INFERENCE SYSTEMS FOR ESTIMATIONOF AIR QUALITY INDEX

ROMAI J., v.7, no.2(2011), 63–70

Daniel Dunea, Alexandru Alin Pohoata, Emil LunguValahia University of Targoviste, [email protected], [email protected], emil [email protected]

Abstract The paper provides a reliable method in assessing the Air Quality Index (AQI) by em-ploying fuzzy logic. Long-time series of sulfur dioxide (SO2), nitrogen dioxide (NO2)and particulate matter (PM10) obtained through continuous monitoring at RomanianTargoviste DB-1 station were inputted in a Mamdani fuzzy inference system (FIS) ob-taining the AQI output in a more comprehensive matter. The rules were structured bylevel of air pollutants concentration. All defined rules were evaluated in parallel in a ran-dom order. The triangular and trapezoidal membership functions fitted to the intendedpurpose of computational efficiency. The AQI synthetic indicator allows the user a quickinterpretation of the status of the surrounding air in residential areas.

Keywords: fuzzy inference, air pollution, air quality index.2010 MSC: 00A69.Presented at CAIM 2011.

1. INTRODUCTIONThis work presents the use of fuzzy techniques for Air Quality Index (AQI) as-

sessments. In Romania, AQI is established on a scale from 1 to 6 (1-excellent, 6-verybad) using data acquired by automated stations of the National Network of Air Qual-ity Monitoring [1] .

RNMCA comprises more than 140 automated stations for continuous monitoringof air quality managed by 41 local centers, which collect and transmit data fromstations and AQI information to the public panel. The information is also transmittedafter primary validation for certification at the National Reference Laboratory (LNR)in Bucharest.

The selection of AQI is made taking into account the worst value from a set of spe-cific indices. Specific indices are established using 6 intervals of pollutant concen-trations such as sulfur dioxide (SO2), nitrogen dioxide (NO2), Ozone (O3), Carbonmonoxide (CO) and particulate matter (PM10). At least three specific indices shouldgenerally be available to calculate the general AQI. Fuzzy inference methods assumethat all the rules are activated at every cycle and contribute collectively to the solu-tion. It is a parallel one-shot inference, but the inference process can continue as thenew inferred results can be fed again as inputs [5]. Methods based on the fuzzy setstheory should be applied in the context of environmental numbers. The boundaries

63

Page 2: FUZZY INFERENCE SYSTEMS FOR ESTIMATION OF AIR …jromai/romaijournal/arhiva/2011/2/Dunea-et-al.pdfThe FISs of Mamdani type are suitable for air quality evaluation as both the inputs

64 Daniel Dunea, Alexandru Alin Pohoata, Emil Lungu

between an acceptable and an unacceptable concentration is not to be considered assharp, but as fuzzy, with implications for subsequent action plans. The use of fuzzynumbers is proposed as a suitable technique for handling environmental criteria andtackling decisions made under uncertainty [8]. Fuzzy logic was successfully appliedfor various air quality assessments and predictions [2], [3], [4], [6], [7]. The literatureshows that fuzzy inference systems are frequently considered for short-term forecast-ing applied to emissions control or to AQI computations. These methods have someadvantages over deterministic approaches [9]. In this paper, large time series of SO2,NO2 and PM10 were used as inputs in a Mamdani fuzzy inference system (FIS) tomodel the AQI output in a more intuitive matter.

2. TECHNICAL DESCRIPTIONSpecific indices are established using 6 intervals of pollutant concentrations such

as:

Sulfur dioxide (SO2),

Nitrogen dioxide (NO2),

Ozone (O3),

Carbon monoxide (CO),

and particulate matter (PM10).

The most important air pollutants variables were selected for analysis (SO2, NO2and PM10) because they are primary pollutants emitted into the atmosphere directlyfrom various sources retaining the same chemical form and significantly affecting thehuman health and components of the ecosystem. Figure 1 presents six intervals ofconcentration corresponding to each index.

Fig. 1. Intervals of concentration for each variable and their corresponding specific index - AQI(1-excellent, 6-very bad)

Fuzzy inference takes inputs, applies fuzzy rules, and produces explicit outputs.The FISs of Mamdani type are suitable for air quality evaluation as both the inputsand the outputs of the FIS are represented by the values of linguistic variables [4].

Page 3: FUZZY INFERENCE SYSTEMS FOR ESTIMATION OF AIR …jromai/romaijournal/arhiva/2011/2/Dunea-et-al.pdfThe FISs of Mamdani type are suitable for air quality evaluation as both the inputs

Fuzzy inference systems for estimation of Air Quality Index 65

The primary mechanism relying on If-Then (facts - state/action) rules has defined aninput space into output space. Fuzzy inference permitted the reading of the inputvector values (3 inputs) and based on the set of rules , allocated the values of vectoroutput (a single output, which is the AQI). Numerical input values can be easilytranslated into descriptive words (e.g. excellent, very good, good, favorable, bad andvery bad).

Membership function Mf shows the extent to which a value from a domain is in-cluded in a fuzzy concept. There is no general method for designing form, numberand parameters of input and output membership functions. The design of input andoutput membership functions is based on the limits set by the government (see Figure1) and on the recommendations of environmental experts. The triangular and trape-zoidal membership functions fitted to the intended purpose. Consequently, selectedmembership functions, as specific curves, defined how each entry point in space be-longed to a degree of membership in the range 0 and 1.

Figure 2 shows five triangular and one-side trapezoidal Mfs for each of the threeinputs.

Fig. 2. Membership functions of the input variables (nitrogen dioxide - NO2; sulfur dioxide - SO2;particulate matter - PM10)

Figure 3 depicts the triangular functions responsible for the AQI modeling by levelof pollution.

The structure of production rules was developed using Fuzzy Logic Toolbox mod-ule of MATLAB. The rules were structured by level of air pollutants concentration(more than 80 rules). Figures 4 and 5 highlight the windows of rule editor and ruleviewer in Matlab showing some of the developed rules and the relationship betweeninputs and AQI output.

Page 4: FUZZY INFERENCE SYSTEMS FOR ESTIMATION OF AIR …jromai/romaijournal/arhiva/2011/2/Dunea-et-al.pdfThe FISs of Mamdani type are suitable for air quality evaluation as both the inputs

66 Daniel Dunea, Alexandru Alin Pohoata, Emil Lungu

Fig. 3. Output functions of the fuzzy inference system

Fig. 4. Rule editor of Matlab showing several rules that control the FIS

Fig. 5. Rule viewer with the relationship between inputs and output

2.1. LARGEST OF MAXIMUM (LOM)DEFUZZIFICATION

There are numerous defuzzification methods. Each defuzzification method outputsdifferent results. There is no exact rule on selection of defuzzification for certainapplications.

Page 5: FUZZY INFERENCE SYSTEMS FOR ESTIMATION OF AIR …jromai/romaijournal/arhiva/2011/2/Dunea-et-al.pdfThe FISs of Mamdani type are suitable for air quality evaluation as both the inputs

Fuzzy inference systems for estimation of Air Quality Index 67

LOM was selected due to the nature of the problem: the air quality is establishedby the maximum of the pollution indices that makes the usual Center Of Gravity(COG) method unsuitable.

In fuzzyfication, an operator transforms crisp data into fuzzy sets, so that data canbe processed by the rule-base. The fuzzification process can be described as:

A˜ = fuzzifier(x0) (1)

where x0 = [x1, x2, ..., xn]T is an input vector and A˜ = [A˜1, A˜2, ...A˜n]T are fuzzy sets,and fuzzyfier represents a fuzzyfication operator. The Mamdani implication of max-min fuzzy inference is given by:

µB˜k (z) = max[min[µA˜

k1(input(x1)), µA˜

k2(input(x2))]], k = 1, ..., r (2)

where µB˜k (z) is the height of the aggregated fuzzy set for the r rules. The aggregated

fuzzy set is defuzzified to yield crisp output as represented by:

z∗ = de f uzzi f ier(Z˜k) (3)

where z∗ is the crisp output and Z˜k is the fuzzy set resulted from aggregation, and“defuzzifier” represents the defuzzification operator.

The LOM defuzzyfication is done in two steps. First the largest height in the unionis determined:

hgt(Z˜k) = supz∈Z

µB˜k (z) (4)

Where supremum (sup) is the least upper bound. Then, the largest of maximum iscalculated:

z∗ = supz∈Z

{z ∈ Z | µB˜

k (z) = hgt(Z˜k)}

(5)

3. EXPERIMENTAL RESULTSThe set of fuzzy rules algorithm developed in Matlab has performed the following

steps:

scalar representing the system input - 3 variables were transformed into mem-bership functions through the fuzzyfying functions;

the information was transferred to the inference engine;

values of membership functions were transformed into output by defuzzyfica-tion of the scalar value, representing the output indicator which evaluates theair quality status (0 - excellent quality; 1 - bad quality).

In this paper, we have selected for presentation only a segment of 1871 valuesfor each input from the existing database in order to show a clear image of the FIS

Page 6: FUZZY INFERENCE SYSTEMS FOR ESTIMATION OF AIR …jromai/romaijournal/arhiva/2011/2/Dunea-et-al.pdfThe FISs of Mamdani type are suitable for air quality evaluation as both the inputs

68 Daniel Dunea, Alexandru Alin Pohoata, Emil Lungu

0 168 336 504 672 840 1008 1176 1344 1512 1680 1848 20000

0.1666666666

0.333333

0.5

0.666666

0.833333

11

Time (hours)

AQI y mean y median

Excelent

Favourable

Satisfactory

Very Bad

Fig. 6. FIS-generated AQI timeline evolution corresponding to the hourly time series of pollutants(3 inputs with n = 1871 each)

capabilities. Figure 6 offers information regarding the fluctuations of AQI during 78days randomly selected from the database. Numerous exceedings over the 0.5 levelhave occurred corresponding to low quality of the surrounding air near the station.FIS output was statistically analyzed determining central tendency, dispersion anddistribution indicators.

81540

85

433

588

110

2

584

6

AQI Distribution

1.000.800.600.400.200.00

Fre

qu

ency

600

400

200

0

 Mean =0.41 

Std. Dev. =0.191 N =1,871

Fig. 7. Air Quality Index frequency (0.9-1.0 interval means worst conditions of air quality)

Figure 7 shows the AQI frequency. Of particular interest from the environmentalpoint of view are the values occurring in the upper intervals. The presented FISmight be able to “trigger” alarms helping residents through early warnings when badair quality conditions might occur. Analyzed data showed the occurrence of worstconditions (8 times) and also worrisome situations when AQI was in bad conditions(55 times). The developed FIS can be a useful tool for air quality control taking intoaccount that the analyzed pollutant time series were randomly selected, but situationsof concern were detected.

The standardized skewness and kurtosis values were within the range expected fordata from a normal distribution (-2, 2).

Page 7: FUZZY INFERENCE SYSTEMS FOR ESTIMATION OF AIR …jromai/romaijournal/arhiva/2011/2/Dunea-et-al.pdfThe FISs of Mamdani type are suitable for air quality evaluation as both the inputs

Fuzzy inference systems for estimation of Air Quality Index 69

Fig. 8. Statistical indicators of the AQI time series (n = 1871)

4. CONCLUSIONThe concepts underlying fuzzy technology are successfully used in air quality

modeling, allowing an alternative approach in solving specific environmental prob-lems when the objectives or constraints are not precisely defined, and necessary infor-mation is missing, is sporadic or discontinuous. The AQI synthetic indicator allowsthe user a quick interpretation of the status of the surrounding air (imissions). Byintegrating three pollutant time series into single indicator, the FIS provided a betterand comprehensive image of the air pollution status within the area of interest com-pared to classical pollution report using individual pollutant concentrations. Someissues might occur if using more than three variables due to the number incrementof adjacent rules. Future work will focus on the following directions: Due to thelarge number of FIS rules a simplification is required and thus we will consider theutilization of parallel fuzzy systems that will reduce both the rules number as well asthe processing time. We will test the adequacy of a time delay neural network imple-mentation selecting the structure according to the best forecasting properties usingFIS-generated AQI as input.

References

[1] [RNMCA] - National Network of Air Quality Monitoring, http://www.calitateaer.ro

[2] D. Dunea, Developing an expert system applied for air quality assessments, The Scientific Bul-letin of the Electrical Engineering Faculty, Bibliotheca Publishing House, , 2008, online at:http://www.buletinfie.ro/en/numere2008/Art13%20-%20(S2),%20Dunea,%2069-74.pdf

[3] B. Fisher , Fuzzy Environmental Decision-Making: Applications to Air Pollution, AtmosphericEnvironment, Vol.37, 2003, pp.1865-1877.

[4] P. Hajek ,V. Olej , Air Quality Indices and their Modelling by Hierarchical Fuzzy Inference Sys-tems, WSEAS TRANSACTIONS on ENVIRONMENT and DEVELOPMENT, Issue 10, Volume5, 2009.

[5] N. K., Kasabov, Foundations of neural networks, fuzzy systems, and knowledge engineering, ABradford Book, The MIT Press, Cambridge, Massachusetts, London, England, 1998.

Page 8: FUZZY INFERENCE SYSTEMS FOR ESTIMATION OF AIR …jromai/romaijournal/arhiva/2011/2/Dunea-et-al.pdfThe FISs of Mamdani type are suitable for air quality evaluation as both the inputs

70 Daniel Dunea, Alexandru Alin Pohoata, Emil Lungu

[6] E.G. Onkal, , I. Demir and H. Hiz, Assessment of urban air quality in Istanbul using fuzzysynthetic evaluation, J. Atmos. Environ. 38: 3809-3815, 2004.

[7] M. Oprea, D. Dunea , 2010. SBC-MEDIU: a multi-expert system for environmental diagnosis.Environmental Engineering and Management Journal, 9 (2), pp. 205-213, 2010.

[8] M. Saeedi, H. Fakhraee and M. Rezaei Sadrabadi, A Fuzzy Modified Gaussian Air PollutionDispersion Model. Research Journal of Environmental Sciences, 2: 156-169, 2008.

[9] P. Zannetti , Air Pollution Modelling, Theories, Computational Methods and Available Software,Van Nostrand Reinhold, New York, 1990.