ChapterPDF Available

Visualization of Data from Network of Sensors: Appropriate Spatial Interpolation Method

Authors:

Abstract and Figures

Graphical presentation of the measured data is more popular than ever before. However, rich and colourful images are often misrepresentation of the measured quantities. In this paper we discuss proper mathematical technique for correct presentation of data from the network of sensors. Three common methods for spatial interpolation are demonstrated and compared using real data from the network of sensors (for air pollution with aerosols). Finally, best procedure is recommended and discussed in details. Keywords: network of sensors; spatial interpolation; Hilbert space; air pollution
Content may be subject to copyright.
29TH DAAAM INTERNATIONAL SYMPOSIUM ON INTELLIGENT MANUFACTURING AND AUTOMATION
DOI: 10.2507/29th.daaam.proceedings.076
VISUALIZATION OF DATA FROM NETWORK OF SENSORS:
APPROPRIATE SPATIAL INTERPOLATION METHOD
Adnan Masic, Dzevad Bibic, Boran Pikula, Emina Dzaferovic-Masic & Faruk Razic
This Publication has to be referred as: Masic, A[dnan]; Bibic, D[zevad]; Pikula, B[oran]; Dzaferovic-Masic, E[mina]
& Razic, F[aruk] (2018). Visualization of Data from Network of Sensors: Appropriate Spatial Interpolation Method,
Proceedings of the 29th DAAAM International Symposium, pp.0529-0533, B. Katalinic (Ed.), Published by DAAAM
International, ISBN 978-3-902734-20-4, ISSN 1726-9679, Vienna, Austria
DOI: 10.2507/29th.daaam.proceedings.076
Abstract
Graphical presentation of the measured data is more popular than ever before. However, rich and colourful images are
often misrepresentation of the measured quantities. In this paper we discuss proper mathematical technique for correct
presentation of data from the network of sensors. Three common methods for spatial interpolation are demonstrated and
compared using real data from the network of sensors (for air pollution with aerosols). Finally, best procedure is
recommended and discussed in details.
Keywords: network of sensors; spatial interpolation; Hilbert space; air pollution
1. Introduction
Number of sensors of various types that are connected to the internet is increasing rapidly. This fits into trends
popularly called “Internet of Things” and “Smart Cities”. Despite the fact that number of sensors is increasing, we will
never have a sensor at every single point of interest. Therefore, some sort of spatial interpolation is needed. The main
question is: if we have N sensors over certain geographical area, which spatial interpolation method is appropriate for
visualization of measured quantity over the entire area? In this paper we will try to answer that question using the real
data from the network of sensors that measure air pollution.
The simplest approach is to use bilinear interpolation [1]:
       
(1)
where a0, a1, a2 and a3 are coefficients which can be calculated by knowing values of function f at four different points
around (four sensors from the network). Obviously, this is not the best method, due to the nature of sensors (inevitable
errors during the measurements) and local disturbances (very localized source of air pollution for example).
- 0529 -
29TH DAAAM INTERNATIONAL SYMPOSIUM ON INTELLIGENT MANUFACTURING AND AUTOMATION
More natural approach is inversed distance weighting [2]. This is a multivariate interpolation with a known
scattered set of points. The assigned values to unknown points are calculated with a weighted average of the values
available at the known points. This method gives few options of choosing parameters, so that the nature of the
measurements is represented properly.
Next candidate is the procedure called kriging [3] (name given from the master thesis of Danie Krige [4]). Kriging
is a method of interpolation for which the interpolated values are modelled by a Gaussian process governed by prior
covariance. The kriging estimation may also be seen as a (sort of) spline in a Hilbert space. When performing kriging,
the user must specify the function which describes the degree of spatial dependence of a spatial random field this is
called variogram. Under suitable assumptions, kriging gives the best linear unbiased prediction of the intermediate
values [5].
2. Case study
Network of 13 sensors which measure the concentration of aerosols smaller than 10 m (PM10) was installed in and
around the city of Sarajevo. Daily average values of PM10 for 30/08/2018 are chosen for this study. Figure 1 illustrates
the location of sensors, while table 1 shows calculated average values of PM10 for each sensor. The method for data
acquisition is explained in [6] and [7], while the calibration of PM10 sensor was described in [8].
Fig. 1. Location of sensors
latitude
longitude
PM10 (g/m3)
43.89488
18.37228
33.51
43.82361
18.54752
26.09
43.86172
18.41277
34.47
43.84860
18.37393
39.53
43.85390
18.39553
37.80
43.85284
18.38026
41.12
43.84482
18.32074
41.66
43.85846
18.44020
32.04
43.86775
18.42296
33.27
43.95983
18.27251
47.09
43.94594
18.25530
46.14
43.85121
18.36727
41.40
43.82605
18.34702
40.01
Table 1. Daily average values of PM10 for 30/8/2018
- 0530 -
29TH DAAAM INTERNATIONAL SYMPOSIUM ON INTELLIGENT MANUFACTURING AND AUTOMATION
3. Spatial interpolation methods
Bilinear interpolation was applied in figure 2. Akima library for R programming language was used for calculations
of interpolated values. Contour lines (for values of PM10) were added, together with locations of sensors. There is no
interpolation outside the polygon of sensors. We can also see that this spatial interpolation of PM10 doesn’t look natural
because values from sensors around the city linearly propagate all the way to the city center.
Fig. 2. Bilinear interpolation
Figure 3 shows inverse distance weighting (IDW) interpolation with three different power factors (1, 2 and 3).
Calculations were performed in R programming language again. Contour lines look more natural now. However, we
don’t know a priori which power factor is correct.
  
  
  
Fig. 3. Inverse distance weighting interpolation with three different power coefficients
- 0531 -
29TH DAAAM INTERNATIONAL SYMPOSIUM ON INTELLIGENT MANUFACTURING AND AUTOMATION
Now we proceed to the kriging. As noted above, first thing we need to do is to choose the proper variogram. Figure
4 shows the dependence of semivariance on distance, for the selected dataset. We can see from the graph that the
Gaussian fit is the best option. Using the Gaussian fit from figure 4 we can finally perform kriging interpolation. Figure
5 shows the result of this operation. We can also estimate quality of interpolation by means of cross-validation: it
removes each data location, one at a time and predicts the associated data value. R programming language was used for
plotting kriging interpolation and cross-validation errors in figure 5. We would like to note that IDW and kriging
techniques can be used to extrapolate data as well. Please note the location of sensors in figure 1: we can’t have good
estimation in the region where we don’t have sensors at all!
Fig. 4. Variogram and Gaussian fit
kriging interpolation
cross-validation errors
Fig. 5. Kriging interpolation and cross-validation
- 0532 -
29TH DAAAM INTERNATIONAL SYMPOSIUM ON INTELLIGENT MANUFACTURING AND AUTOMATION
4. Conclusion
Three different techniques for interpolation of data from network of sensors were analysed: bilinear, IDW and
kriging interpolation. They produced significantly different contour lines of PM10 concentrations from the same
dataset. Bilinear interpolation should not be used for such cases (where we have non-trivial spatial correlation of data).
IDW interpolation gives more natural contour lines, but it requires parameters that we don’t know a priori. The final
conclusion is very clear: kriging is the preferable method. If the variogram fit is chosen properly, kriging is the best
interpolation technique among these three (and probably best of all, for most general applications).
As a suggestion for further research we propose:
- Extension of network of sensors to more different places,
- Measurement of various episodes of air pollution, especially during the winter,
- Analysis of more variables such as altitude, humidity etc.
5. Acknowledgments
This research was supported by the Ministry of Education of Sarajevo Canton and the University of Sarajevo -
Faculty of Mechanical Engineering. We would like to thank to Mr. Damir Muslić for his generous contribution to our
project by writing core part of the in-house developed software.
6. References
[1] Press, W. H.; Flannery, B. P.; Teukolsky, S. A. & Vetterling, W. T. (1992). Numerical Recipes in C: The Art of
Scientific Computing, Second Edition. Cambridge University Press. ISBN-13: 978-0521431088, New York
[2] Łukaszyk, S. (2004). A New Concept of Probability Metric and its Applications in Approximation of Scattered
Data Sets. Computational Mechanics, 33 (2004) 299304, DOI: 10.1007/s00466-003-0532-2
[3] Cressie, N. A. C. (1990). The Origins of Kriging, Mathematical Geology, 22 (1990) 239252
[4] Krige, D. G. (1951). A Statistical Approach to Some Mine Valuations and Allied Problems at the Witwatersrand,
Master's thesis, University of Witwatersrand, South Africa
[5] Oliver, M. A. (1990). Kriging: A Method of Interpolation for Geographical Information Systems. International
Journal of Geographic Information Systems, 4 (1990) 313332
[6] Masic, A.; Pikula, B. & Bibic, D. (2017). Mobile Measurements of Particulate Matter Concentrations in Urban
Area, Proceedings of the 28th DAAAM International Symposium, pp.0452-0456, B. Katalinic (Ed.), Published by
DAAAM International, ISBN 978-3-902734-11-2, ISSN 1726-9679, Vienna, Austria DOI:
10.2507/28th.daaam.proceedings.063
[7] Masic, A.; Bibic, D.; Pikula, B.; Dzaferovic-Masic, E. & Musemic, R. (2018). Experimental Study of Temperature
Inversions Above Urban Area Using Unmanned Aerial Vehicle, Thermal Science (2018)
[8] Masic, A.; Pikula, B.; Bibic, D.; Musemic, R. & Halac, A. (2018). Calibration and Assessment of Low-cost Dust
sensors, Proceedings of the 29th DAAAM International Symposium, B. Katalinic (Ed.), Published by DAAAM
International, ISSN 1726-9679, Vienna, Austria, in press
- 0533 -
... During the flight of the drone, which is in our case limited to 30 minutes, a discrete set of points is obtained. Spatial interpolation methods were employed afterward, using our previously explained methodology [21]. ...
Chapter
Full-text available
A novel method for terrain mapping is presented in this paper. It is based on low-cost open source components, which brings this innovative technique to a much wider group of researchers than ever before. The in-house developed drone was used together with a commercially available LiDAR sensor to produce a terrain mapping platform. This system was tested in two field locations with good results. In some aspects of performance, the drone surpassed commercially available solutions that are much more expensive and closed. Keywords: LiDAR; drone; terrain mapping; inertial measurement unit; global navigation satellite system.
Conference Paper
Full-text available
Sažetak: U ovom radu predstavljamo mrežu senzora koncentracije lebdećeih čestica (PM) koja je zasnovana na principu internet oblaka i daje mjerenja visoke prostorne i vremenske rezolucije u realnom vremenu. Mreža je razvijena na Mašinskom fakultetu u Sarajevu i intenzivno je testirana u protekle tri godine. Dobijeni su dobri koeficijenti korelacije prilikom poređenja sa referentnim (gravimetrijskim) i ekvivalentnim (atenuator beta zračenja) instrumentima smještenim u blizini Mašinskog fakulteta. Abstract: In this paper we present the network of sensors for particulate matter (PM) concentration measurements which is implemented as a cloud-based service for high resolution (both spatial and temporal) real-time measurements. The network is developed at the Faculty of mechanical engineering in Sarajevo and has been intensively tested over the last three years. The results are good in terms of correlation coefficients when compared to the reference (gravimetric) and equivalent (beta attenuation monitor) instruments located nearby.
Chapter
Full-text available
Nanoparticles with diameters from 10 nm to 1000 nm were analyzed using the scanning mobility particle sizer (SMPS) continuously from October 2020 till May 2021. Mass spectrometry was performed in 129 channels. Measurements of some other air pollution parameters were used for comparison and analysis. A large number of nanoparticles was detected in the period of strong air pollution, as expected. However, a surprisingly large number of nanoparticles was detected in spring and summer, where other parameters of air pollution were good. Keywords: SMPS; nanoparticles; air pollution; mass spectrometry.
Chapter
Full-text available
To provide the reference dataset for particulate matter concentrations, a long-term campaign of continuous gravimetric measurements of PM10 and PM2.5 concentrations was performed. Strict implementation of standard EN12341:2014 was fulfilled. Daily and monthly concentrations of both PM10 and PM2.5 were measured with the highest possible accuracy. Ratio PM2.5/PM10 was determined and analyzed. Different distribution of particles was observed during the winter period, where most of the particulate matter originates from burning fossil fuel, and during an episode of Sahara dust, occasionally observed in spring and summer. Keywords: PM10; PM2.5; gravimetric measurement; Sahara dust.
Chapter
Full-text available
Continuous measurement of black carbon (BC) concentrations in ambient air was performed using the optical-based instrument called aethalometer. The attenuation of light by BC was measured at 7 different wavelengths. This gives not only the pure concentration of BC in the ambient air but also dependence of attenuation on the wavelength of light, from which the Angstrom exponent can be derived. Based on the Angstrom exponent, we can estimate the percentage of BC that originates from solid fuel (wood and coal burning) or liquid fuel (diesel). Thus, a simple source apportionment analysis is presented. Keywords: black carbon; source apportionment; fossil fuels; biomass burning.
Article
Full-text available
Vertical temperature profiles represent a very important factor for various analytical and numerical studies, such as weather forecasts, air pollution models and computational fluid dynamics simulations. These temperature profiles are especially important during the winter periods, when temperature inversions occur. The cities in the natural valleys, such as the city of Sarajevo, are strongly affected by this phenomenon. In this paper, a method for quantitative characterization of vertical temperature profiles, which is based on the in-house developed data acquisition system and the unmanned aerial vehicle, is presented. Comprehensive calibration and verification procedure was performed and explained in details. Field measurements were focused on the winter period and extreme temperature inversion scenarios. The correlation with the air pollution in the city, for the same period, was discussed as well.
Article
A new operator named probability metric (PM) for defining the distance between random values or random vectors is proposed. Although the PM is a generalisation of the metric operator it does not satisfy the first metric axiom. Two particular forms of PM, for normal and uniform probability distributions are presented. Numerical example demonstrates the efficiency of PM in Shepard-Liszka approximation of residual stresses state discrete data, obtained from a strain gauge experiment. Possible applications of PM include fringe pattern analysis. The PM can be also employed in quantum mechanics issues to estimate the distance of two quantum particles expressed by their wave functions.
Article
In this article, kriging is equated with spatial optimal linear prediction, where the unknown random-process mean is estimated with the best linear unbiased estimator. This allows early appearances of (spatial) prediction techniques to be assessed in terms of how close they came to kriging.
Article
Geographical information systems could be improved by adding procedures for geostatistical spatial analysis to existing facilities. Most traditional methods of interpolation are based on mathematical as distinct from stochastic models of spatial variation. Spatially distributed data behave more like random variables, however, and regionalized variable theory provides a set of stochastic methods for analysing them. Kriging is the method of interpolation deriving from regionalized variable theory. It depends on expressing spatial variation of the property in terms of the variogram, and it minimizes the prediction errors which are themselves estimated. We describe the procedures and the way we link them using standard operating systems. We illustrate them using examples from case studies, one involving the mapping and control of soil salinity in the Jordan Valley of Israel, the other in semi-arid Botswana where the herbaceous cover was estimated and mapped from aerial photographic survey.
Calibration and Assessment of Low-cost Dust sensors
  • A Masic
  • B Pikula
  • D Bibic
  • R Musemic
  • A Halac
Masic, A.; Pikula, B.; Bibic, D.; Musemic, R. & Halac, A. (2018). Calibration and Assessment of Low-cost Dust sensors, Proceedings of the 29th DAAAM International Symposium, B. Katalinic (Ed.), Published by DAAAM International, ISSN 1726-9679, Vienna, Austria, in press