Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2017 Jun 5;17(6):1290.
doi: 10.3390/s17061290.

Machine Learning-Based Calibration of Low-Cost Air Temperature Sensors Using Environmental Data

Affiliations

Machine Learning-Based Calibration of Low-Cost Air Temperature Sensors Using Environmental Data

Kyosuke Yamamoto et al. Sensors (Basel). .

Abstract

The measurement of air temperature is strongly influenced by environmental factors such as solar radiation, humidity, wind speed and rainfall. This is problematic in low-cost air temperature sensors, which lack a radiation shield or a forced aspiration system, exposing them to direct sunlight and condensation. In this study, we developed a machine learning-based calibration method for air temperature measurement by a low-cost sensor. An artificial neural network (ANN) was used to balance the effect of multiple environmental factors on the measurements. Data were collected over 305 days, at three different locations in Japan, and used to evaluate the performance of the approach. Data collected at the same location and at different locations were used for training and testing, and the former was also used for k-fold cross-validation, demonstrating an average improvement in mean absolute error (MAE) from 1.62 to 0.67 by applying our method. Some calibration failures were noted, due to abrupt changes in environmental conditions such as solar radiation or rainfall. The MAE was shown to decrease even when the data collected in different nearby locations were used for training and testing. However, the results also showed that negative effects arose when data obtained from widely-separated locations were used, because of the significant environmental differences between them.

Keywords: agriculture; artificial neural network; low-cost sensor; machine learning; sensor calibration.

PubMed Disclaimer

Conflict of interest statement

The authors declare no conflict of interest.

Figures

Figure 1
Figure 1
Appearance of the air temperature sensor of the Automated Meteorological Data Acquisition System (AMeDAS). The sensor is covered by a radiation shield made of stainless steel. There is 5-ms1 air flow in the radiation shield generated by a forced aspiration system.
Figure 2
Figure 2
Appearance of the low-cost air temperature sensor.
Figure 3
Figure 3
Location map of experimental sites and sensor setups (Pin1: tanashi-117; Pin2: tanashi-118; Pin3: sensor measuring reference air temperature for Tokyo site; Pin4: sagatea-111; Pin5: AMeDAS in Saga site). (a) Experimental sites in Japan; (b) sensor setup in Saga; (c) sensor setup in Tokyo.
Figure 3
Figure 3
Location map of experimental sites and sensor setups (Pin1: tanashi-117; Pin2: tanashi-118; Pin3: sensor measuring reference air temperature for Tokyo site; Pin4: sagatea-111; Pin5: AMeDAS in Saga site). (a) Experimental sites in Japan; (b) sensor setup in Saga; (c) sensor setup in Tokyo.
Figure 4
Figure 4
Appearance of Stevenson screens (photographed by Nachoman-au, distributed under a CC BY-SA3.0 license).
Figure 5
Figure 5
Structure of the neural network.
Figure 6
Figure 6
Indoor air temperatures measured by low-cost and high-accuracy (reference) sensors. The indoor experiment was conducted for 15 days, and the air temperatures were very close in the whole period.
Figure 7
Figure 7
MAE between air temperatures from high-accuracy sensor and low-cost sensor (original), linear regression-based calibration (linear) and ANN-based calibration (ANN).
Figure 8
Figure 8
R-squared values between air temperatures from high-accuracy sensor and low-cost sensor (original), linear regression-based calibration (linear) and ANN-based calibration (ANN).
Figure 9
Figure 9
Examples of successful calibration. (a) 25 January 2015; (b) 28 September 2015.
Figure 10
Figure 10
Average and diurnal temperatures before and after calibration. “Low-cost sensor”, “linear” and “ANN” indicate original values, linear regression-based calibration values and ANN-based calibration values of the observations by the low-cost sensors respectively. (a) Daily average temperature; (b) diurnal range of temperature.
Figure 11
Figure 11
Histogram of relative error between reference and calibrated air temperatures.
Figure 12
Figure 12
Examples of calibration failure. (a) 24 March 2015; (b) 14 April 2015; (c) 4 September 2015.
Figure 12
Figure 12
Examples of calibration failure. (a) 24 March 2015; (b) 14 April 2015; (c) 4 September 2015.
Figure 13
Figure 13
Box plots of differences between air temperatures measured by the high-accuracy and low-cost sensors at different hours. Bar plots represent mean solar radiation in each hour. (a) sagatea-111; (b) tanashi-117; (c) tanashi-118.

References

    1. Cardinali C. Monitoring the observation impact on the short-range forecast. Q. J. R. Meteorol. Soc. 2009;135:239–250. doi: 10.1002/qj.366. - DOI
    1. Wang Z.Y., Zheng Y.C., Li J.X. Early Warning Systems for Natural Disaster Reduction. Springer; Berlin/Heidelberg, Germany: 2003. Early Warning Systems for the Reduction of Natural Disasters in China; pp. 15–18.
    1. Kumar K., Parida M., Katiyar V. Short Term Traffic Flow Prediction for a Non Urban Highway Using Artificial Neural Network. Proc. Soc. Behav. Sci. 2013;104:755–764. doi: 10.1016/j.sbspro.2013.11.170. - DOI
    1. Pierce F., Elliott T. Regional and on-farm wireless sensor networks for agricultural systems in Eastern Washington. Comp. Electron. Agric. 2008;61:32–43. doi: 10.1016/j.compag.2007.05.007. - DOI
    1. Hwang J., Shin C., Yoe H. Study on an agricultural environment monitoring server system using Wireless Sensor Networks. Sensors. 2010;10:11189–11211. doi: 10.3390/s101211189. - DOI - PMC - PubMed