Abstract
The purpose of this paper was to predict the path loss characterization of the ground-to-air (G2A) communication channel between the ground sensor (GS) and unmanned aerial vehicle (UAV) using machine learning (ML) models in smart farming (SF) scenarios. Two ML algorithms such as support vector regression (SVR) and artificial neural network (ANN) were studied to analyze the measured data in different scenarios with Napier and Ruzi grass farms as the measurement locations. The proposed empirical GS-to-UAV two-ray (GUT-R) model and the ML models were compared to characterize path loss prediction models. The performances of the path loss prediction models were evaluated using the statistical error indicators in different measurement locations and UAV trajectories. To obtain the statistical error indicators, the accuracy path loss results of UAV trajectory at 2 m altitudes showed the SVR model (MAE = 1.252 dB, RMSE = 3.067 dB, and R2 = 0.972) and the ANN model (MAE = 1.150 dB, RMSE = 2.502 dB, and R2 = 0.981) for the Napier scenario. In the Ruzi scenario, the SVR model (MAE = 1.202 dB, RMSE = 2.962 dB, and R2 = 0.965) and the ANN model (MAE = 1.146 dB, RMSE = 2.507 dB, and R2 = 0.983) were presented. For UAV trajectory at 5 m altitudes, the SVR model (MAE = 2.125 dB, RMSE = 4.782 dB, and R2 = 0.933) and the ANN model (MAE = 2.025 dB, RMSE = 4.439 dB, and R2 = 0.950) were resulted in the Napier scenario. In the Ruzi scenario, the SVR model (MAE = 2.112 dB, RMSE = 4.682 dB, and R2 = 0.935) and the ANN model (MAE = 2.016 dB, RMSE = 4.407 dB, and R2 = 0.954) were displayed. The proposed ML models using SVR and ANN can optimally predict the path loss characterization in SF scenarios, where the accuracy was 95% for the SVR and 97% for the ANN.
1. Introduction
SF is a global trend to produce new opportunities for agricultural farming. For agriculture 4.0, the solution of SF needs automation systems, robotics, information services, information and communication technologies (ICT), UAV-used cases (both fixed- and rotary-wing), artificial intelligence (AI), big data analytics, and the Internet of things (IoT). UAV-based communications are the solution to raise the services in SF because it has rapidly expanded to all areas of agriculture, including pesticide and fertilizer spraying, seed sowing, monitoring, growth assessment, and mapping [1]. UAV applications in SF, such as mapping, spraying, planting, harvesting, irrigation, and crop monitoring, are also existent. For mapping, UAVs can be used to conduct 3-dimensional (3D) mapping of agricultural fields, including the surveying area of farmland, soil monitoring, and status of the crop with a high-resolution map [2]. Additionally, the planting application can be carried out by UAV [3]. Such a system is used to distribute seeds and plant nutrients when sowing to provide perfect conditions for plant growth. Moreover, the UAV can identify the areas where water is scarce based on image processing and data acquisition for the irrigation system. The use of UAVs equipped with spectral sensors can obtain data for water management and irrigation system [4]. In [5], simultaneous localization and mapping (SLAM) technology in real-time mapping was presented using LiDAR to obtain data for low altitude imaginary. It can recognize the position and identify obstacles when the UAV tasks are performed. To monitor the data acquisition, UAVs are equipped with multifunctional sensors in a mobility network, especially in areas lacking mobile station networks in the field [6].
Focusing on UAV-based communications in SF scenarios, such as air-to-ground (A2G) communication or ground-to-air (G2A) communication, has been described using UAVs to communicate with IoT devices or GS such as soil moisture sensors, humidity sensors, or multienvironmental sensors. To realize reliable communications, an analytical channel model between GS and UAV requires the propagation characteristic under certain SF scenarios [7]. The received signal strength indicator (RSSI) and path loss model are significantly essential parameters for link budget analysis. For the GS-to-UAV communication link, the power signal strength is limited at GS when the signal is transmitted from GS to the receiver on the UAV. Consequently, an adequate coverage zone for GS is limited. In this situation, the communication link will be degraded, particularly when the signal propagates through free space or dense crops. For that reason, the transmission link quality and propagation performance variable must be considered when the multiple GS are deployed in SF. The propagation characteristics of GS-to-UAV are severely impacted by the surrounding environments. Both RSSI and path loss characteristics are the link budget parameters that are employed for critical network design aspects such as the proper level of UAV trajectory and GS locations, coverage prediction, coverage zone, etc. However, the complex SF environment in such networks makes path loss prediction more difficult. Hence, a precise path loss model in the wireless channel must be addressed to predict the propagation characteristics in SF [8]. Likewise, highly accurate models are required to predict the path loss model and guarantee efficiency between GS and UAV communications. Hereby, ML models are the solution for highly accurate prediction models. Moreover, the application of ML models can be used as the new data prediction models in several works [9–15].
To survey the related works of the path loss prediction models, the model of ML-based ANN and RF algorithms was presented in [16]. The performance indices show that the proposed RF model had the best performance than the ANN model. Although the performance of the ANN model could not outperform the RF, the study in [17] shows that it can be optimized for the path loss prediction in a very high frequency (VHF) wireless channel. The use of multilayer perceptron (MLP) was accomplished at nine hidden neurons and hyperbolic tangent sigmoid activation function, and the LM learning algorithm was optimized with the probabilistic parameters such as mean absolute error (MAE), mean square error (MSE), root mean square error (RMSE), standard deviation (SD), and the coefficient of determination or R-square (R2) values. In [18], the ANN algorithm was presented to predict the path loss characterized at 450 MHz, 850 MHz, 1800 MHz, and 2600 MHz for the heterogeneous network (HetNet), where the results of MAE were close to zero and SD was less than 7 dB. In [19], four ML methods such as backpropagation neural network (BPNN), SVR, RF, and AdaBoost were used to predict path loss models for aircraft cabin scenarios. The results showed that the best performance for the lowest prediction error was achieved by the RF method. Thus, it can be seen that the RF method would be suitable for the optimal path loss of measured data in an indoor environment or small-scale fading scenarios. Additionally, the performance of SVR has similar results to BPNN for outdoor environments or large-scale fading scenarios [20, 21]. Thus, the path loss model using deep learning neural network was proposed to improve the prediction error for 5G mobile communication [22]. At the 2.6 GHz frequency band, the proposed model with deep neural network (DNN) was studied by comparing the ray-tracing model and the uMa 38.901 model. The results show that the DNN method can reduce the prediction error by 4.7 dB when it is compared with the ray-tracing model and empirical model for the satellite image application. In [23], the authors presented the multiple linear regression model to predict the path loss model for millimeter-wave (MmWave) urban communication. In [24], the accuracy of path loss prediction was proposed using the DNN method to obtain observation data for the ray-tracing model. Toward this end, ML techniques are capable of assessing the wireless channel. In particular, the survey on ML techniques for UAV-based communications was presented in [25]. Nevertheless, there are a few considerations of ML models for predicting the path loss characterization in SF scenarios.
Using ML techniques in SF to predict the path loss characteristics is performed to the reliable communication between the GS location and UAV trajectory.
The major contributions and novelties of this paper are as follows: (1)The new channel model called GS-to-UAV communications in SF is presented by investigating RSSI and path loss characteristics.(2)RSSI and path loss characteristics are predicted using two ML models such as SVR and ANN models. The SVR and ANN models are considered because these algorithms are appropriate to evaluate the data driven in the large-scale fading scenarios. Also, the path loss prediction is a supervised regression problem; thus, it can be solved by SVR and ANN algorithms.(3)The validation model and results are evaluated with the statistical error indicators such as MAE, RMSE, and R2 and compared with the empirical GUT-R path loss model.
The remainder of this paper is organized as follows. The methodology is presented in Section 2 where the measurement setup, the empirical GUT-R model, and the ML models are described. Section 3 presents the results of the comparative performance of RSSI-based prediction models and path-loss-based prediction models. Finally, the conclusion is described in Section 4.
2. Methodology
The application of the GS and UAV-enabled communication in SF is described in this section. Due to the limit of radiation energy from the GS, UAV as a mobile base station (MBS) can be equipped with a transceiver module to transmit signals for multiple GS. Figure 1 shows the system model of soil moisture monitoring using multiple GS and a single UAV-based communication for SF. The system model illustrates that multiple GS are installed in the large-scale farm for sensing the soil moisture values. The GS consists of solar cell panels to supply the energy for the capacitive soil moisture sensor and the module microcontroller unit or MCU node. Thus, the communication link between GS and UAV is based on Wi-Fi standard IEEE 802.11 g. The voltage and current of the GS module are used at 3.3 V and 240 mA, respectively. The benefit of this system model is helping the users monitor soil moisture data as rapidly in the large-scale farm [26].

To evaluate the RSSI and path loss characterization between the GS and UAV of the system model, the measurement setup, GUT-R model, and ML model are described in Sections 2.1, 2.2, and 2.3, respectively.
2.1. Measurement Setup
The geometric 3D model for the measurement setup is considered using the Cartesian coordinate system, as shown in Figure 2. The Cartesian system represents the position of GS installation and UAV altitude. The UAV altitudes in -axis, , were set at 2 m and 5 m. Additionally, the height of GS, , was set at 1.5 m, while the horizontal distance, , was set from the GS point until 20 m. In the measurement, the UAV was equipped with a Wi-Fi module transceiver to communicate with the GS.

In order to measure the RSSI and path loss characteristics, we consider a single GS test kit position at the Cartesian or Napier33 position as well as the GS position at the Cartesian or Ruzi13 position. In this experiment, the GS test kit and UAV were connected using Wi-Fi 2.4 GHz frequency wireless links, and the measurement data of RSSI can record through the Internet by the application program interface (API) software as shown in Figure 3. After that, the path loss values can be calculated in the offline postprocessing. Figure 4 shows the top view of the measurement location and side view of the measurement setup in the Napier scenario. The dimension of the Napier scenario was 25 m wide and 45 m long. Figure 5 shows the top view of the measurement location and the side view of the Ruzi scenario, while the dimension of the Ruzi scenario was 30 m wide and 50 m long. Table 1 shows the measurement setup parameters. In this work, the measurement locations were experimentally performed at the Tropical Animal Research Institute, Ramkhamhaeng University, Thailand.



2.2. GUT-R Model
The propagation characteristics between GS and UAV can be investigated using the empirical GUT-R model. Figure 6 shows the geometrics of the GUT-R model where the total received -field at the UAV is and then the result of the direct line-of-sight (LOS) component, , and the ground reflected component, . The expression is as follows:

The traveling two waves are noted at UAV: the direct wave that travels distance, , and the reflected wave that travels distance, . The -field due to the LOS at the UAV can be expressed as follows:and the -field for the ground reflected wave, which has a propagation distance of , can be expressed as follows:where is the carrier frequency and is the free-space -field at a reference distance from the GS; then, . denotes the reflection coefficient for ground.
The can be expressed as the sum of equations (2) and (3) as follows:where denotes the perfect ground reflection component.
Considering the UAV altitude and GS height , the path difference between the LOS and ground reflection path can be expressed as follows:
The phase difference between the two-ray model components and the time delay between the arrival of the two components can be given as follows:
When the distance is larger, the reflection distance is very small, and the amplitudes of and are identical and differ only in phase that can be expressed as follows:
The total for the received -field, , in the case of long distance, , can be expressed as follows:
In terms of the power received, , it is related to the square of the -field. The received power at the horizontal distance, , from the GS for the two-ray model can be expressed as follows:where and represent the antenna gain of GS and the antenna gain of the receiver at the UAV, respectively. is the power transmitted from the GS. In equation (11), we note that at large distances, , the received power falls off with the distance raised that is more rapid path loss in free space. At the large values of , the path loss for the GUT-R model can be expressed in dB as follows:
At short distances, , it can be obtained using equation (4) to compute the total -field. When the substitution in equation (6) is evaluated for , then has appeared.
2.3. Machine Learning Model
The procedure of ML-based RSSI and path loss prediction model is shown in Figure 7. In this section, the data sets are considered as RSSI and path loss from the measured data collection that is separated as the training data set 80% and test data set 20%, respectively. For such procedure of ML-based prediction model, four sections including the preparation of training and test sets, model selection of SVR and ANN algorithms, model training, and the evaluation by calculating the statistical error indicators such as MAE, RMSE, and R2 are performed to build the validation model [27–29]. After the validation model has been built, RSSI and path loss measured data can be generated with new data inputs to predict the output observation using the prediction models.

The model selection of SVR and ANN algorithms is performed in Algorithms 1 and 2.
|
|
In thenext step, the evaluated data by the statistical error indicators such as MAE, RMSE, and R2 for RSSI and path loss are expressed as follows:where represents the total number of test data sets and and are the test data sets. The and are the average of the predicted value.
3. Evaluation
In this section, the results of RSSI and path loss characterization of the GUT-R model, the measurement data, the proposed SVR model, and the proposed ANN model are shown. In Section 3.1, the comparative performance results of RSSI-based prediction models are described. The comparative performance of path loss-based prediction models is shown in Section 3.2, and the discussion is described in Section 3.3.
3.1. RSSI-Based Prediction Models
In Figure 8, the RSSI level is powered at 10 dBm to −32 dBm for UAV trajectory at 2 m altitudes in the Napier scenario. The horizontal distance between UAV and GS (Napier33 position) is separated from 0 m to 20 m. It can be observed that the measured data is related to the GUT-R model that depends on free-space loss. Besides, the validation models from the SVR and ANN model curves can predict the RSSI measured data where the statistical errors of the ANN model are smaller than the SVR model as shown in Table 2. To consider the propagation effect of this scenario, we observe that there is some power fluctuated from ground reflection at 3 m to 5 m distance, which is reflected into the UAV. Thus, this position may fluctuate the power more than others. As a result of the prediction model, it is clear that the MAE of the SVR model is 1.636 dBm and 1.596 dBm for the ANN model. While the RMSEs of the SVR and ANN models are 3.336 dBm and 3.196 dBm, respectively. The R2 of the SVR and ANN models are 0.957 and 0.964, respectively. As a result, it is clear that the ANN model outperforms the SVR model slightly because the predictive curve of ANN model can approach the measured data better than the SVR curve.

In Figure 9, the measured data of RSSI level is 5 dBm to −28 dBm in the Ruzi scenario. We observe that the effect from ground reflection occurs at a 2 m distance. To perform the statistical errors, it can be seen that the MAE of the SVR model is 1.121 dBm and 1.112 dBm for the ANN model. The RMSEs of the SVR and ANN models are 1.870 dBm and 1.628 dBm, respectively. The R2 of the SVR and ANN models are 0.974 and 0.981, respectively, as shown in Table 2. As a result, the performance of both the SVR and ANN models can absolutely predict the measured data in this scenario.

For UAV trajectory at 5 m altitudes, the GUT-R model curve is 2 dBm to −58 dBm, while the measured data is 2 dBm to −70 dBm as shown in Figures 10 and 11, respectively. It can be seen that the measured data is independent of the ground reflection because of the large distance, . To perform the statistical error indicators, the MAE of the SVR model is 1.785 dBm and 1.698 dBm for the ANN model. The RMSEs of the SVR and ANN models are 3.718 dBm and 3.219 dBm, respectively. The R2 of the SVR and ANN models are 0.979 and 0.988, respectively. Similarly, in Figure 10, the MAE of the SVR model is 1.734 dBm and 1.456 dBm for ANN model. The RMSEs of the SVR and ANN models are 3.266 dBm and 2.743 dBm, respectively. The R2 of the SVR and ANN models are 0.977 and 0.983, respectively. The statistical error indicators of RSSI when UAV trajectory is at 5 m altitudes are shown in Table 3.


3.2. Path Loss-Based Prediction Models
Figure 12 shows the path loss comparison of the GUT-R model, the measured data, and the prediction models when the UAV trajectory is at 2 m altitudes in the Napier scenario. The path loss-based GUT-R model ranges from −24 dB to 38 dB in this scenario; however, it can be seen that the measured data is varied from −20 dB to 40 dB. The MAE between the GUT-R model and the measured data is 12.214 dB and 14.334 dB of RMSE, respectively, as shown in Table 4. Additionally, we can show the performance results of the SVR and ANN models that are used to train the training set of the measured data. It can be seen that the performance MAE of the SVR model is 1.252 and 1.150 for the ANN model. The performance RMSEs of the SVR and ANN models are 3.067 and 2.502. R2 of the SVR and ANN models are 0.972 and 0.981, respectively. Although the prediction errors of both the SVR and ANN models are slightly different, the ANN-based prediction model can better predict the path loss precisely in the Napier scenario.

The comparison of path loss characteristics in the Ruzi scenario for the UAV trajectory at 2 m altitudes is shown in Figure 13. We observe that the measured data increases at 10 m to 20 m of the separation distance, and the path loss ranges from 25 dB to 32 dB. This phenomenon may occur from the scattering surrounding environments. All path loss statistical error indicators are shown in Table 4 for the Ruzi scenario when UAV trajectory is at 2 m altitudes.

When the UAV trajectory is at 5 m altitudes, the path loss-based GUT-R model varies from −22 dB to 23 dB because the influence of ground reflection ray in terms of is decreased as shown in Figure 14. Obviously, the prediction model using the ANN model in the blue curve is from 0 dB to 66 dB. According to the comparison result between the SVR and ANN models, the ANN model can predict the measured data better than the SVR model. Likewise, the RMSE values for the SVR and ANN models are better than the GUT-R model when the accuracy of R2 is 0.267 for the GUT-R model, 0.933 for the SVR model, and 0.950 for the ANN model as shown in Table 5.

In Figure 15, the comparison of the measured data and GUT-R model for the Ruzi scenario shows that the RMSE is high up to 32.523 dB and the accuracy of R2 is 0.121. On the other hand, the prediction errors of the SVR and ANN models are better than the GUT-R model, where the RMSE is 4.682 dB for the SVR model and 4.407 dB for the ANN model.

3.3. Discussion
The result of the path loss characteristic using the empirical GUT-R model depends on parameters such as the antenna gain, GS height, the UAV height, and the horizontal separation distance. Meanwhile, the actual path loss measured data is greater than the GUT-R model because the measured data might increase in terms of insertion loss and mismatch polarization loss between GS and UAV antennas. Thus, the consideration of mismatch polarization loss for GS and UAV communications is crucial.
The performance of the ANN model provides better than the SVR model slightly in both the Napier and Ruzi farms of this work. To discuss the performance of the SVR model, the number of control of the iterative data processing model was done at 230 iterations using MATLAB simulation. To minimize the prediction error between the training and test sets, SVR adopts an insensitive loss function of the predicted value output and , respectively. The loss function is influenced by a priori information about the noise distribution affecting the data sets. To this end, the R2 of the SVR model is 0.951, or the performance percentage is 95%. To discuss the ANN model, we found that two input layers as , one hidden layer where the best number of neurons were four and one output layer, were given a proper prediction model in this work. The hyperplane of RBF-NN can control the iteration of weighting between the training and test sets as easily, which is optimally weighted as 200 iterations. Thus, the R2 of the ANN model is 0.967, or the performance percentage is 97%.
In this work, the performance of the ANN model can smoothly predict the accuracy path loss characteristics better than the SVR model, for example, SF scenarios. Furthermore, we compared the performance of the R2 value with the previous works for the path loss prediction models in SF environments, in [8, 30, 31], as shown in Table 6.
4. Conclusions
In this paper, the path loss characteristics in realistic propagation SF scenarios for GS-to-UAV-enabled communication were studied by deploying ML models as the prediction models. The measurement data such as RSSI and path loss characteristics are experimentally investigated in different measurement locations such as Napier and Ruzi farm SF scenarios. To predict the accuracy model and build the validation models, the measured data of RSSI and path loss data sets are separated as the training and test sets for the supervised ML models. The performance results show that the supervised method ML models based on SVR and ANN can accurately predict the path loss characterization in SF. It can show that the accuracy is 95% for the SVR model and 97% for the ANN model. The performance of the SVR model is less than the ANN model at least 2% for this work. Furthermore, we show that the ML-based prediction models are more accurate than the empirical GUT-R model. This work is useful for seeking an accurate and reliable channel model for the network planning of GS and UAV communications in SF scenarios.
Data Availability
The data used to support the findings of this study are available from the corresponding author upon request.
Conflicts of Interest
The authors declare that there are no conflicts of interest concerning the publication of this paper.
Acknowledgments
This work was financially supported by the KMITL research fund and TSRI in the Fundamental Fund (FF) scholarship. Furthermore, the authors would like to thank the Tropical Animal Research Institute, Ramkhamhaeng University, Thailand.