Sensors (Oct 2023)
An Edge Transfer Learning Approach for Calibrating Soil Electrical Conductivity Sensors
Abstract
Smart agriculture utilizes Internet of Things (IoT) technologies to enable low-cost electrical conductivity (EC) sensors to support farming intelligence. Due to aging and changes in weather and soil conditions, EC sensors are prone to long-term drift over years of operation. Therefore, regular recalibration is necessary to ensure data accuracy. In most existing solutions, an EC sensor is calibrated by using the standard sensor to build the calibration table. This paper proposes SensorTalk3, an ensemble approach of machine learning models including XGBOOST and Random Forest, which can be executed at an edge device (e.g., Raspberry Pi) without GPU acceleration. Our study indicates that the soil information (both temperature and moisture sensor data) plays an important role in SensorTalk3, which significantly outperforms the existing calibration approaches. The MAPE of SensorTalk3 can be as low as 1.738%, compared to the 7.792% error of the original sensor. Our study indicates that when the errors of uncalibrated moisture and temperature sensors are not larger than 8.3%, SensorTalk3 can accurately calibrate EC. SensorTalk3 can perform model training during data collection at the edge node. When all training data are collected, AI training is also finished at the edge node. Such an AI training approach has not been found in existing edge AI approaches. We also proposed the dual-sensor detection solution to determine when to conduct recalibration. The overhead of this solution is less than twice the optimal detection scenario (which cannot be achieved practically). If the two non-standard sensors are homogeneous and stable, then the optimal detection scenario can be approached. Conventional methods require training calibration AI models in the cloud. However, SensorTalk3 introduces a significant advancement by enabling on-site transfer learning in the edge node. Given the abundance of farming sensors deployed in the fields, performing local transfer learning using low-cost edge nodes proves to be a more cost-effective solution for farmers.
Keywords