Next Article in Journal
Validation of Walking Speed Estimation from Trunk Mounted Accelerometers for a Range of Walking Speeds
Next Article in Special Issue
AMBtalk: A Cardiovascular IoT Device for Ambulance Applications
Previous Article in Journal
The Optimal Selection of Mother Wavelet Function and Decomposition Level for Denoising of DCG Signal
Previous Article in Special Issue
Security Privacy and Policy for Cryptographic Based Electronic Medical Information System
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Comparing Kriging Estimators Using Weather Station Data and Local Greenhouse Sensors

Geomatics Department, National Cheng Kung University, Tainan 701, Taiwan
*
Author to whom correspondence should be addressed.
Sensors 2021, 21(5), 1853; https://doi.org/10.3390/s21051853
Submission received: 30 January 2021 / Revised: 24 February 2021 / Accepted: 2 March 2021 / Published: 6 March 2021
(This article belongs to the Special Issue State-of-the-Art Sensors Technology in Taiwan)

Abstract

:
In order to minimize the impacts of climate change on various crops, farmers must learn to monitor environmental conditions accurately and effectively, especially for plants that are particularly sensitive to the weather. On-site sensors and weather stations are two common methods for collecting data and observing weather conditions. Although sensors are capable of collecting accurate weather information on-site, they can be costly and time-consuming to install and maintain. An alternative is to use the online weather stations, which are usually government-owned and free to the public; however, their accuracy is questionable because they are frequently located far from the farmers’ greenhouses. Therefore, we compared the accuracy of kriging estimators using the weather station data (collected by the Central Weather Bureau) to local sensors located in the greenhouse. The spatio-temporal kriging method was used to interpolate temperature data. The real value at the central point of the greenhouse was used for comparison. According to our results, the accuracy of the weather station estimator was slightly lower than that of the local sensor estimator. Farmers can obtain accurate estimators of environmental data by using on-site sensors; however, if they are unavailable, using a nearby weather station estimator is also acceptable.

1. Introduction

Weather conditions are the primary factors that have always affected plant growth and agricultural development. However, in recent years, the impacts of climate change have been obvious, such as increased temperatures, highly variable and shifting precipitation patterns, reduced snowpack on mountains, and increased frequency and intensity of extreme weather [1]. Numerous studies have shown that climate change has affected the development of plant crops. For example, in Nepal, the food supply has been affected by increases in CO2 and temperature, and unstable precipitation [2]. Overall, among mountains (35%), hills (42%), and terai (23%) areas in Nepal, the crops such as rice, wheat, and maze in the Terai area (south of the outer foothills of the Himalayas) have decreased in the past decades. Similarly, in California, these abnormal weather patterns impact on agriculture in many ways, including increased pest and disease pressure and crop yield decline. Due to those reasons, climate change brings a negative impact on the agricultural industry [1]. Therefore, in order to come up with an effective strategy for optimizing crop performances under these abnormal weathers, monitoring these weather conditions is critical.
As previously mentioned, installing on-site sensors and getting data from weather stations are two common methods to collect/observe these weather conditions. Although the sensor could be installed on-site in order to observe accurate weather information, the installation and its management are time-consuming and costly. As an alternative option, the government weather station data could be used in this case, since it is open to the public for free. However, their accuracy is questionable because the locations of these stations are far from the greenhouse. Therefore, in this study two different data sets were used to compare the accuracy of kriging estimators: First, multiple sensors were installed and dispersed throughout an Oncidium greenhouse in order to collect the actual/real local weather data. In addition, this study also utilized the online weather station data from the open data website Central Weather Bureau. The estimators were compared using these two datasets. The data were analyzed over a period of several months in order to determine how seasonal changes affect our study results. If both types of estimators yield similar numbers, farmers with limited budgets can use weather station data to monitor temperature instead of installing their own onsite sensors. Also, researchers will be able to apply historical data from weather stations to represent past weather conditions and use them for time series analysis.

2. Literature Review

Environmental factors have a significant impact on agriculture on a global scale. For this reason, it is essential to understand the environmental conditions which affect crop production. In addition, this information will help researchers predict and control dangerous conditions (such as air pollution) [3]. Therefore, determining the accuracy of weather information in a certain location is vital to the health of crops and to the livelihoods of farmers. The most direct way to accomplish this goal is to install the sensors and collect the necessary data. However, due to a limited budget and time, the farmers were unable to install the sensors seamlessly cover the whole study area [4]. An alternative is to use spatial interpolation methods to obtain weather information at a particular place where it can’t be attained directly. For example, several traditional interpolation methods have been commonly used to transform weather point data to spatial distribution, such as the inverse distance weighting method (IDW) and the kriging method. The IDW method is relatively straightforward to compute, but the spatial variation of relationships between points cannot be explored and the accuracy of the estimation is limited [5]. In comparison, to estimate the structure of spatial variance, the kriging approach uses variogram analysis and takes into account spatial autocorrelation [6,7]. Recently, some researchers have focused on the accuracy and the performance of these spatial interpolation methods. For example, Oktavia et al. [4] and Zhang et al. [7] used IDW and kriging spatial interpolation for thermal monitoring of a data center and evaluated the accuracy of these two methods based on the Root Mean Squared Error (RMSE) value. Their results showed that the kriging method performed better.
Kriging, which has been widely used for spatial interpolation [8], has the key advantage of incorporating spatial correlation data, leading to a high accuracy rate. Kriging itself is a category of stochastic interpolation methods that include ordinary kriging, simple kriging, co-kriging, universal kriging, regression kriging, and residual kriging [9]. These approaches have been used in a number of researches. For instance, Wu et al. [10] used the residual kriging approach with input variables of longitude, latitude, and elevation to approximate the average monthly temperature in the United States. Liang et al. [11] used the co-kriging method to model the nitrate-nitrogen daily concentration in an agricultural river. Based on the application in the previous study, kriging was a suitable method for our study since our target predictive variable was the temperature, which has spatial variance [12].
Several researchers who have used spatio-temporal kriging to interpolate temperature in the space-time field discovered that it is more accurate than spatial kriging [13]. The additional advantage of spatio-temporal kriging resides in the model’s versatility. This method not only interpolates at unobserved spatial locations but also at unobserved instances of time [14]. This reason makes spatio-temporal kriging an appropriate method to cover the gaps of a time series model not only dependent on the time series, but also including all of its spatial neighbors. In sum, the purpose of this study was to compare the spatio-temporal kriging result by using two different datasets in two different seasons.

3. Data and Methods

3.1. Study Area & Study Data

In this study, the temperature data collected from the sensors and the weather stations from the Central Weather Bureau (CWB) were utilized for the spatio-temporal kriging (http://e-service.cwb.gov.tw (accessed on 5 March 2021)). There were 24 weather stations, the locations of which are indicated by the blue points in Figure 1. The study area was located in the Xinshe District in Taichung City, indicated by the red point. The distance between the greenhouse and the nearest weather station is approximately four km while the farthest weather station is located 48 km from the greenhouse.
The weather stations are able to observe several weather parameters such as station pressure, sea surface pressure, temperature, dew point temperature and relative humidity, wind speed, wind direction, visibility, and cloud amount. Table 1 is an example of one-day data obtained from weather stations. The first column is station name, the date column is the record day, the ObsTime column is the hour of record time, StnPres column is the station average air pressure, Temperature is the average temperature, T.max column is the maximum temperature, T.min column is the minimum temperature, RH column is the average relative humidity, WS column is the average wind speed, precp column is the average precipitation, and sunshine is the light intensity. The weather station provides several weather conditions, such as temperature in degrees Celsius, station air pressure in hPa, relative humidity in percentage, wind speed in m/s, precipitation in mm, and light intensity.
However, in this study, only temperature data were used for the analysis. Temperature data from the weather stations were downloaded from the CWB Observation Data Inquiry System online. As previously mentioned, the study periods were from 14–20 June 2020 and 14–20 September 2020. These study periods were chosen by considering the sensor performance in two different seasons (Summer and Autumn) and that the observation days with no missing data fell within the study period. On the other hand, the sensors themselves were installed at the end of March 2020 and became fully functional in May 2020. Therefore, this study only covers two seasons during the study period. The raw data from the website is updated hourly, so it was collected 24 times per day at each station within the fourteen days. The temperature value data was also collected from the 44 sensors installed in the greenhouse. The sensors measure the temperature every five minutes, so data was collected 288 times by each sensor per day.
The system consists mainly of three main parts: user interface, gateway, and sensor nodes. Figure 2 shows the system structure that illustrates how the environment monitoring system for the greenhouse operates. The sensors, each of which are numbered, are uniformly distributed and deployed throughout the greenhouse to collect environmental information such as temperature, luminosity, and humidity. The data collected by the sensor nodes are transmitted to the gateways via Bluetooth. This study follows the concept of a star network topology where the gateways are deployed in the center of the greenhouse and used to collect the data from sensor nodes, store the data, process, and integrate data [15]. In addition, the gateways are connected to a WiFi network and use a message queuing telemetry transport (MQTT) protocol to transfer data from the gateway to the cloud. The user interface, which is a cloud-based web application, allows users to monitor the environmental data measured by each sensor node in real-time. Figure 3 illustrates the greenhouse with an area of approximately 5400   m 2 ( = 180   m × 30   m ) and the sensor’s deployment location.
Bluetooth wireless sensors (shown in Figure 4) from the Xiaomi Corporation were installed throughout the greenhouse (Figure 5) to measure environmental information such as soil moisture and conductivity, as well as light and temperature. This brand was chosen due to its cost-effectiveness compared to other sensors, reliability, and accuracy of up to 0.5 °C. Please see https://www.mi.com/flowermonitor (accessed on 5 March 2021) for more details regarding these particular sensors. Moreover, this type is compatible with the Xiaomi Smart Home App, which means that it will be more convenient for farmers. The parameters of these sensors are shown in Table 2. Regarding battery life, in normal circumstances the battery life could exceed one year if the measurement data is stored only once every 20 min to the receiver (the default scan interval is 1200 s). However, in order to ensure the consistency of the observations and prevent missing data, regular maintenance such as battery replacement was performed every three months from the time the sensors were fully operational in May 2020. It must be noted that the sensor data was set to be recorded every five minutes to reduce the missing rate, which resulted in shorter battery life.
The data collected by the sensors were uploaded to a website and downloaded using a computer, the layout of which is shown in Figure 6. For example, real-time environmental data including temperature, soil moisture, and luminosity is displayed from top to bottom. Each collection sensor is assigned its own color, which makes it easier to determine if a particular sensor is not functioning correctly. The middle panel of the platform is where the management and setting interfaces are located, to which sensors can be added or removed and where the time intervals for recording the environmental components can be set. As previously stated, for this study, the intervals were set to five minutes. The sensor data for a specific date can be downloaded on the left panel. The white section at the bottom is for downloading, and the start and end dates are displayed in the blank section at the upper left corner of the screen.
The measurements of sensor “bs34” were chosen as the real values at the center of the greenhouse, and the temperature data from the other 43 sensors were selected as the spatio-temporal kriging estimator. The reasons for choosing bs34 as the reference for the actual temperature value are because it is located at the centroid of the greenhouse which is far enough away from factors that might affect the temperature, such as the shadows of nearby buildings, and this sensor had no missing data during the study period. Another estimator was based on the 24 weather stations. Thus, the temperature values measured by sensor “bs34” on June 14th—20th and September 14th—20th were the true values that were used to estimate the error by comparing the results obtained from different input data. The dataset itself was filtered which resulted in fewer than 10% missing observations and outliers. The descriptive statistics of the raw data are shown in Table 3.

3.2. Spatio-Temporal Kriging

Kriging is a common method for obtaining unbiased estimators in a particular location for spatial interpolation. Ordinary kriging is the most commonly used kriging method in different subjects. The basic concept of the calculation of it is shown as Equation (1), where Z ( x ) represents the estimator at the point x , ω i represents the weight of each sample point, and n means the number of the sample point.
Z ( x ) = i = 1 n ω i Z ( x i )
To determine whether the estimation is unbiased, the weight sum ( ω i ) should equal to 1, as shown in Equation (2).
i = 1 n ω i = 1
Ordinary kriging interpolation considers the 2-D distance between sample points, also called known/observed points. The coordinates and the Z-values of the known points are used to calculate the semi-variogram for obtaining the weight, which is used to predict the unknown point. The calculation of the variogram can be written as Equation (3), where γ ^ ( h ) represents the semi-variogram, N ( h ) is the number of the pairs of sample point which separated by distance h (Euclidean Distance),   Z ( s i ) and Z ( s j ) is the estimator at the coordinate s i and s j . Then, the semi-variogram is fitted and can be used to calculate the weight for getting an unknown value of a certain location.
γ ^ ( h ) = 1 2 N ( h ) N ( h ) { [ Z ( s i ) Z ( s j ) ] } 2
The illustration of the semi-variogram is shown in Figure 7. The x-axis in Figure 7 represents the distance h, the y-axis is the semi-variance, and it shows that the model levels out at a certain distance. The range is the distance where the model first flattens, the value at which the semi-variogram model attains the range (the value on the y-axis) is called the sill, the nugget is the intercept on the y-axis when the distance equal to 0, and the partial sill is the sill minus the nugget. According to McBratney and Webster [16], the semi-variogram value will be 0 when the separation distance is also equal to zero. However, at an extremely small distance of separation, the semi-variogram usually shows a nugget effect higher than 0. The nugget effect could be attributed to spatial variance or measurement errors at distances shorter than the sample interval. Measurement error occurs due to an error underlying in the measurement instrument. Natural phenomena could still vary spatially across a variety of scales. Microscale variations smaller than the sample interval will appear as part of the nugget effect.
In this study, a method known as spatio-temporal kriging was used to spatially interpolate the temperature data over time. This method takes time into account during the kriging process by adapting the covariance function. Unlike the standard 2-D kriging technique, spatial-temporal kriging not only considers the coordinates but also the element of time [14]. Specifically, for each point s i , there is a time t i associated with it to calculate the variance between this point and another point of interest with a spatial separation of h as well as their temporal separation u . Thus, the spatio-temporal variogram can be calculated using Equation (4).
γ ^ ( h , u ) = 1 2 N ( h . u ) N ( h , u ) { [ Z ( s i , t i ) Z ( s j , t j ) ] } 2
After utilizing Equation (4), the weight of each point with a known value can be calculated using the spatio-temporal variogram and the unknown value of a certain location can be determined via interpolation.
For this study, the “sp”, “gstat”, “spacetime” packages for use with software “Rstudio” were selected to process the spatial-temporal kriging. First, the spatio-temporal variogram was constructed based on the sample data collected for predictions, which is similar to a normal 2-D kriging experiment. The simple sum metric model was chosen as the most effective for fitting the model to our variogram. It combines the spatial, temporal and joint nugget effects to restrict the spatial, temporal, and joint variograms into a nugget-free model. Thus, a single spatio-temporal nugget and the variogram can be written as Equation (5) [14].
γ ( h , u ) = n u g · 1 h > 0 u > 0 + γ s ( h ) + γ t ( u ) + γ j o i n t ( h 2 + ( k · u ) 2 )
where γ ( h , u ) represents the spatio-temporal variogram, γ s ( h ) symbolizes the spatial variogram, γ t ( u ) is the temporal variogram, γ j o i n t ( h 2 + ( k · u ) 2 ) represents the joint variogram, and k denotes the spatio-temporal anisotropy scaling parameter. The selected variogram fitting model was used to calculate the weight of the location with a known value for prediction, which allowed for the interpolation of that particular location.
The ten-fold cross-validation technique was utilized to evaluate the kriging method’s performance [17]. This method is one of the cross-validation methods that is commonly used in order to assess the quality of kriging prediction. The sensor data was divided into groups of ten with approximately the same sensor numbers. Then, one data group was set aside as the testing dataset while the remaining nine were utilized as the training datasets. The kriging test was conducted using the training dataset to predict the values of the test dataset. This process was repeated until predictions were determined for all groups. This is primarily used to assess how accurate the kriging model would be in reality. In order to test the prediction accuracy of the kriging, the R-square and RMSE measurements were determined by comparing the prediction values to the observations.

3.3. Data Preprocessing

The weather station data was measured automatically per hour, and the sensor data was calculated every five minutes. As mentioned previously, the goal of the study was to compare the accuracy of the spatio-temporal kriging results using these two types of data. Therefore, all the sensor data was converted into the same format for comparison. In order to convert the sensor data into a per-hour format, the average hourly temperature data of each sensor was calculated. With regard to the missing data, the null value was replaced with each individual average.

3.4. Comparison

To compare the accuracy of the spatio-temporal kriging predictions using weather station data and sensor data, in this study the Root Mean Square Error (RMSE) and Mean Absolute Error (MAE) values were compared. Then, the real and predicted temperatures from the weather station and sensor data could also be projected and analyzed as to whether they were affected by the different seasons. Equation (6) was used to calculate the RMSE, and Equation (7) calculates the MAE.
R M S E = 1 n i = 1 n ( y i y i ^ ) 2
M A E = 1 n i = 1 n | ( y i y i ^ ) |
where n represents the number of samples, y i is the true value (the temperature value measured by sensor bs34), and y i ^ symbolizes the predicted value (the interpolation result of spatio-temporal kriging based on the weather station and sensor data). The smaller the value, the more accurate the predicted result.

4. Results

4.1. Cross-Validation Results

The kriging results illustrate the temperature variations in the greenhouse that were recorded using sensors, as shown in Figure 8. The average temperatures on July 14th from 12:00 a.m.—00:55 a.m. (Figure 8a) and on September 14th from 12:00 a.m. —00:55 a.m. (Figure 8b) were utilized as the sample, which as shown in the legend, and measured in degrees Celsius. As seen in Figure 7, the average temperatures in July, especially in the northern, middle, and southern sections of the greenhouse, were slightly higher than those in September, which was expected. Furthermore, there were fewer variances in September than in June, largely because there were more missing data on September 14th than on June 14th. Since in this study the missing data were filled in with the averages of all sensor measurements, the temperature distribution, shown in Figure 8b, was less than that in Figure 8a.
Validation is crucial for evaluating a model’s robustness and performance. For this study, the R-square and RMSE values from the results of the k-fold cross-validation were utilized as the parameters to evaluate the kriging from the sensor observations [17]. Figure 9 shows scatterplots of the observed and predicted temperatures (based on 95% prediction intervals). The kriging consistently performed well in both seasons with R-squares of 0.59 and 0.62 (RMSE 0.3, and 0.19) in summer (Figure 9a) and autumn, respectively (Figure 9b).

4.2. Comparison Result

To estimate the temperature at the center of the greenhouse (sensor # bs34) on June 14th—20th and September 14th—20th, the temperature data from the nearby weather stations and 43 greenhouse sensors were used to determine the spatio-temporal kriging respectively. The temperature value, measured by sensor bs34, was set as the true value and the difference between the predicted and the true value was the error. To compare the model performance, the RMSE and the MAE were calculated, as shown in Table 4. The temperature value that was measured by sensor bs34 was designated as y i in Equations (6) and (7) and the kriging results from the sensors and the CWB weather station were defined as y i ^ . The RMSE was calculated by dividing the sum of the square from the difference between each bs34 observation and the kriging result with the number of sample sizes within one week (4032 sample for CWB sensor data; 7392 sample for sensor data). In addition, the results from adding the absolute value to the subtracted true value and the kriging predicted value were divided by the number of sample sizes from a week of data were calculated in order to obtain the MAE value.
In addition, the true value and the two estimators were plotted on the graphs below to compare the differences in the results between June and September. Figure 9 shows the line chart of the true and the predicted values based on the weather station and sensor data. The blue line is the predicted value from the weather station data, the orange line is the predicted value from the sensor data, and the gray line shows the observed value from sensor bs34 (real value). The x-axis is the time, and the y-axis is the temperature. As shown in Figure 10, the sensor data prediction on June 14th—20th was closer to the true value than the one on September 14th—20th. During this week, the weather station data prediction was a bit higher than that from the sensor data.

5. Conclusions

According to Table 4, the RMSE and the MAE from the sensor data predictions were all lower than from the weather station data. Thus, the spatio-temporal kriging sensor data results were more accurate than the weather station data. Moreover, the RMSE and MAE values of the sensor data prediction in September were obviously higher than in June. The possible reason for this is that the missing rate (percentage of the data missing in dataset) of the sensor data in September was higher than in June. These results indicate that fewer sample points used for the spatio-temporal kriging will obtain less accurate results, as seen in September.
As shown in Figure 10, the trend of the predicted value from the sensor data and true value were similar on June 14th—20th. The RMSE and MAE were also similar. Moreover, the prediction based on sensor data in June was more accurate than the one in September. On June 14th—20th, the prediction based on weather station data was a bit higher than that from the true value and sensor data, except from 9 a.m. to 12 a.m. As indicated in all figures, most of the predictions from sensor data were lower than those from weather station data. The possible reason is that several fans are installed in the greenhouse and only operated during summer. When the results in summer (June) and autumn (September) were compared, there were no obvious differences between them. Moreover, there was a more significant difference between that from the sensor estimator and the true value at noon (11 a.m. to 12 a.m.) than from the CWB estimators on 6/17 and 9/20. The possible reason is that the daily average was used to fill the missing value at and these two days have more missing values than usual.
According to our results, the local-sensor kriging method performed better than the weather station data. It must be noted that the distance between the known and the unknown point will affect the accuracy of the spatio-temporal kriging result. The sample size and original value of the data integrity will also affect the accuracy of the result. Thus, future scholars may wish to focus on defining the optimal sample size of sensors for the kriging method and analyze the difference between the kriging estimators. Another limitation is the high consumption rate of the sensor battery. When some sensors are out of battery, the missing value increases and then reduces the accuracy of the kriging result. The researchers also suggest future work could include long-term observation of seasonal and yearly temperature.

Author Contributions

Conceptualization, P.-F.K.; methodology, T.-E.H.; validation, T.-E.H. and I.G.B.P.; formal analysis, T.-E.H. and I.G.B.P.; data curation, T.-E.H.; writing—original draft preparation, T.-E.H. and I.G.B.P.; writing—review and editing, P.-F.K., T.-E.H. and I.G.B.P.; visualization, T.-E.H.; supervision, P.-F.K.; project administration, P.-F.K. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Ministry of Science and Technology Taiwan, grant number MOST 108-2321-B-055-002 and MOST 109-2124-M-006-002.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

This study has been supported by the Ministry of Science and Technology Taiwan under research on wisdom technology in promoting the industry efficiency and establishing the expert system of oncidium.

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.

References

  1. Pathak, T.B.; Maskey, M.L.; Dahlberg, J.A.; Kearns, F.; Bali, K.M.; Zaccaria, D. Climate change trends and impacts on California Agriculture: A detailed review. Agronomy 2018, 8, 1–27. [Google Scholar] [CrossRef] [Green Version]
  2. Malla, G. Climate change and its impact on Nepalese agriculture. J. Agric. Environ. 2008, 9, 62–71. [Google Scholar] [CrossRef] [Green Version]
  3. van Zoest, V.; Osei, F.B.; Hoek, G.; Stein, A. Spatio-temporal regression kriging for modelling urban NO2 concentrations. Int. J. Geogr. Inf. Sci. 2020, 34, 851–865. [Google Scholar] [CrossRef] [Green Version]
  4. Oktavia, E.; Mustika, I.W. Inverse distance weighting and kriging spatial interpolation for data center thermal monitoring. In Proceedings of the 2016 1st International Conference on Information Technology, Information Systems and Electrical Engineering (ICITISEE), Yogyakarta, Indonesia, 23–24 August 2016; pp. 69–74. [Google Scholar]
  5. Lu, G.Y.; Wong, D.W. An adaptive inverse-distance weighting spatial interpolation technique. Comput. Geosci. 2008, 34, 1044–1055. [Google Scholar] [CrossRef]
  6. Matheron, G. Principles of geostatistics. Econ. Geol. 1963, 58, 1246–1266. [Google Scholar] [CrossRef]
  7. Zhang, J.; Li, X.; Yang, R.; Liu, Q.; Zhao, L.; Dou, B. An extended kriging method to interpolate near-surface soil moisture data measured by wireless sensor networks. Sensors 2017, 17, 1390. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  8. Li, C.; Lu, Z.; Ma, T.; Zhu, X. A simple kriging method incorporating multiscale measurements in geochemical survey. J. Geochem. Explor. 2009, 101, 147–154. [Google Scholar] [CrossRef]
  9. Oliver, M.A.; Webster, R. Kriging: A method of interpolation for geographical information systems. Int. J. Geogr. Inf. Syst. 1990, 4, 313–332. [Google Scholar] [CrossRef]
  10. Wu, T.; Li, Y. Spatial interpolation of temperature in the United States using residual kriging. Appl. Geogr. 2013, 44, 112–120. [Google Scholar] [CrossRef]
  11. Liang, X.; Schilling, K.; Zhang, Y.-K.; Jones, C. Co-Kriging Estimation of Nitrate-Nitrogen Loads in an Agricultural River. Water Resour. Manag. 2016, 30, 1771–1784. [Google Scholar] [CrossRef]
  12. Appelhans, T.; Mwangomo, E.; Hardy, D.R.; Hemp, A.; Nauss, T. Evaluating machine learning approaches for the interpolation of monthly air temperature at Mt. Kilimanjaro, Tanzania. Spat. Stat. 2015, 14, 91–113. [Google Scholar] [CrossRef] [Green Version]
  13. Sha, L. Geostatistical space-time modeling for temperature estimation. In Proceedings of the 2012 First International Conference on Agro-Geoinformatics (Agro-Geoinformatics), Shanghai, China, 2–4 August 2012; pp. 1–5. [Google Scholar]
  14. Pebesma, E.; Heuvelink, G. Spatio-temporal interpolation using gstat. RFID J. 2016, 8, 204–218. [Google Scholar]
  15. Pahuja, R.; Verma, H.K.; Uddin, M. A wireless sensor network for greenhouse climate control. IEEE Pervasive Comput. 2013, 12, 49–58. [Google Scholar] [CrossRef]
  16. Mcbratney, A.B.; Webster, R. Choosing functions for semi-variograms of soil properties and fitting them to sampling estimates. J. Soil Sci. 1986, 37, 617–639. [Google Scholar] [CrossRef]
  17. Mercer, L.D.; Szpiro, A.A.; Sheppard, L.; Lindström, J.; Adar, S.D.; Allen, R.W.; Avol, E.L.; Oron, A.P.; Larson, T.; Liu, L.J.; et al. Comparing universal kriging and land-use regression for predicting concentrations of gaseous oxides of nitrogen (NOx) for the Multi-Ethnic Study of Atherosclerosis and Air Pollution (MESA Air). Atmos. Environ. 2011, 45, 4412–4420. [Google Scholar] [CrossRef] [PubMed] [Green Version]
Figure 1. The locations of weather stations.
Figure 1. The locations of weather stations.
Sensors 21 01853 g001
Figure 2. Greenhouse environment monitoring system structure.
Figure 2. Greenhouse environment monitoring system structure.
Sensors 21 01853 g002
Figure 3. Distribution of sensors and gateways in the Oncidium greenhouse.
Figure 3. Distribution of sensors and gateways in the Oncidium greenhouse.
Sensors 21 01853 g003
Figure 4. Xiaomi sensor.
Figure 4. Xiaomi sensor.
Sensors 21 01853 g004
Figure 5. Sensor installation placement.
Figure 5. Sensor installation placement.
Sensors 21 01853 g005
Figure 6. The website that records the sensor data.
Figure 6. The website that records the sensor data.
Sensors 21 01853 g006
Figure 7. The illustration of semi-variogram.
Figure 7. The illustration of semi-variogram.
Sensors 21 01853 g007
Figure 8. The kriging results for the greenhouse temperatures (a) June 14th from 12:00 a.m.—00:55 a.m. (summer); (b) September 14th from 12:00 a.m.—00:55 a.m. (autumn).
Figure 8. The kriging results for the greenhouse temperatures (a) June 14th from 12:00 a.m.—00:55 a.m. (summer); (b) September 14th from 12:00 a.m.—00:55 a.m. (autumn).
Sensors 21 01853 g008
Figure 9. Sample of scatterplots of the observed and predicted greenhouse temperatures (a) June 14th from 12:00 a.m.—00:55 a.m. (summer); (b) September 14th from 12:00 a.m.—00:55 a.m. (autumn)
Figure 9. Sample of scatterplots of the observed and predicted greenhouse temperatures (a) June 14th from 12:00 a.m.—00:55 a.m. (summer); (b) September 14th from 12:00 a.m.—00:55 a.m. (autumn)
Sensors 21 01853 g009
Figure 10. Line chart of the predicted and true values.
Figure 10. Line chart of the predicted and true values.
Sensors 21 01853 g010aSensors 21 01853 g010bSensors 21 01853 g010c
Table 1. Weather station data.
Table 1. Weather station data.
StationDateObs TimeStnPresTemperatureT.MaxT.MinRHWSPrecpSunShine
4674906/14/2020161002.226.134.124.4850.6320.0
4677706/14/202091008.930.732.427.1704.30.01.0
C0F0006/14/20204976.324.733.024.31000.00.0...
C0F8506/14/202011969.530.532.423.0613.20.0...
C0F8616/14/202023786.016.124.513.61000.00.0
C0F9306/14/202001998.928.235.126.7940.40.0...
C0F9706/14/202017994.927.033.625.2901.60.5...
C0F9A06/14/20204963.224.934.823.4850.50.0...
C0F9I06/14/20201988.427.132.525.6861.30.0...
C0F9L06/14/202018983.626.633.125.9990.513.0...
C0F9M06/14/20207985.328.833.025.8670.60.0...
C0F9N06/14/2020241005.926.935.725.7901.40.0...
C0F9O06/14/202023994.227.835.827.3810.00.0...
C0F9Q06/14/20201992.826.433.825.0891.30.0...
C0F9S06/14/20202998.827.633.926.0910.70.0...
C0F9T06/14/202010100032.133.726.5611.70.0
C0F9U06/14/2020101004.632.734.426.6612.00.0...
C0F9V06/14/20206954.225.232.623.5821.00.0...
Table 2. Parameters of the Xiaomi sensors.
Table 2. Parameters of the Xiaomi sensors.
Size120.5 mm × 24.5 mm × 12.5 mm
Wireless ConnectionBluetooth 4.1 BLE
Operating Voltage3 V
BatteryCR2032 button cell battery
Table 3. Statistical descriptions of the raw data for temperatures.
Table 3. Statistical descriptions of the raw data for temperatures.
June 14th—20thSeptember 14th—20th
CWBSensorbs34CWBSensorbs34
Min.12.620.5921.1212.120.621.19
Q126.622.7622.8526.52322.98
Median28.623.9323.7228.324.5124.12
Mean28.2326.0426.0528.1126.31425.86
Q330.830.0030.1630.530.3129.57
Max.35.737.8134.0635.735.0332.77
Stdv3.683.733.833.792.853.21
Unit: degrees Celsius.
Table 4. RMSE and MAE (hourly temperatures).
Table 4. RMSE and MAE (hourly temperatures).
RMSEMAE
DateCWBSensorsCWBSensors
June 14th—20th3.011.102.630.47
September 14th—20th2.661.872.261.72
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Kuo, P.-F.; Huang, T.-E.; Putra, I.G.B. Comparing Kriging Estimators Using Weather Station Data and Local Greenhouse Sensors. Sensors 2021, 21, 1853. https://doi.org/10.3390/s21051853

AMA Style

Kuo P-F, Huang T-E, Putra IGB. Comparing Kriging Estimators Using Weather Station Data and Local Greenhouse Sensors. Sensors. 2021; 21(5):1853. https://doi.org/10.3390/s21051853

Chicago/Turabian Style

Kuo, Pei-Fen, Tzu-En Huang, and I Gede Brawiswa Putra. 2021. "Comparing Kriging Estimators Using Weather Station Data and Local Greenhouse Sensors" Sensors 21, no. 5: 1853. https://doi.org/10.3390/s21051853

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop