Next Article in Journal
Competitiveness and Cereal Self-Sufficiency in Western Balkan Countries
Previous Article in Journal
The Combined Effect of Two Alternaria Mycotoxins (Alternariol and Alternariol Monomethyl Ether) on Porcine Epithelial Intestinal Cells
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Development and Experimentation of a Real-Time Greenhouse Positioning System Based on IUKF-UWB

1
College of Mechanical and Electrical Engineering, Xinjiang Agricultural University, Urumqi 830052, China
2
School of Agricultural Equipment Engineering, Jiangsu University, Zhenjiang 212013, China
*
Author to whom correspondence should be addressed.
Agriculture 2024, 14(9), 1479; https://doi.org/10.3390/agriculture14091479
Submission received: 19 July 2024 / Revised: 22 August 2024 / Accepted: 27 August 2024 / Published: 30 August 2024
(This article belongs to the Section Agricultural Technology)

Abstract

:
To mitigate the challenges posed by the confined spatial environment of greenhouses and various obstacles that frequently cause non-line-of-sight (NLOS) communication issues in ultra-wideband (UWB) localization systems, leading to localization difficulties and low accuracy, we propose a real-time greenhouse localization system that recognizes UWB ranging values prior to correction. First, the initial ranging value is obtained through double-sided two-way ranging (DS-TWR). Subsequently, a communication state identifier is designed based on the residual distribution of ranging values across two UWB communication modes. A correction model is then established by analyzing the causes of ranging value deviations. Finally, the NLOS localization deviation is corrected using an improved unscented Kalman filter (IUKF) algorithm. Experimental results in the greenhouse environment demonstrate that the proposed algorithm enhances positioning accuracy by 68% compared to the uncorrected localization method, offering a valuable reference for localization services in greenhouse settings.

1. Introduction

The swift advancement of intelligent agricultural facilities and greenhouse Internet of Things (IoT) technology has significantly heightened the demand for real-time, reliable, and high-precision Location-Based Services (LBSs) within greenhouse environments [1,2,3]. For instance, the autonomous navigation agricultural robots used for crop protection [4] and agricultural machinery require rapid positioning for task scheduling [5,6,7]. In outdoor environments, the Real-Time Kinematic (RTK) can deliver centimeter-level positioning services for agricultural machinery [8]. However, the rapid signal attenuation of GPS in indoor environments renders it incapable of providing precise positioning services for greenhouses [9]. The primary technologies employed to offer positioning services in greenhouse environments include WiFi [10], Bluetooth [11], ZigBee [12], and ultra-wideband (UWB) [13,14,15]. WiFi positioning technology offers lower accuracy and necessitates the prior deployment of numerous Access Point (AP) devices, making it challenging to adapt to complex environments with numerous obstacles, such as greenhouses. Bluetooth positioning technology offers low power consumption and cost benefits, but it is vulnerable to environmental interference, leading to reduced positioning accuracy in complex indoor environments. ZigBee positioning technology also boasts low power consumption and cost efficiency but suffers from reduced positioning accuracy and data security. Conversely, UWB technology offers high precision, strong penetration capabilities, and robust interference resistance. This makes it highly promising for positioning in greenhouse environments [16,17]. The integration of greenhouse IoT technology with UWB positioning technology can facilitate efficient data collection, communication, and display. This integration enables the real-time acquisition of location information for objects of interest [18,19]. This fusion is essential to improve the stability of fully automated navigation, the accuracy of path planning, and the efficiency of scheduling agricultural machinery in greenhouse environments.
Under line-of-sight (LOS) conditions, UWB exhibits exceptional positioning performance, achieving centimeter-level accuracy. However, in non-line-of-sight (NLOS) conditions, UWB modules suffer from multipath effects, resulting in a significant decrease in positioning accuracy [20,21,22]. Compared to other indoor positioning services, the complex interference from plants and metal frameworks within greenhouse environments presents a more severe NLOS challenge for UWB positioning technology. Therefore, accurately identifying UWB communication status and designing appropriate correction models are crucial measures to further enhance UWB positioning accuracy in NLOS environments. To address the challenge posed by NLOS ranging interference in UWB positioning systems, scholars have proposed the following effective methods. On the one hand, a hybrid ranging method based on time of arrival (TOA) and time difference of arrival (TDOA), combined with angle of arrival (AOA), is utilized to enhance UWB ranging accuracy and thereby mitigate system positioning errors [23,24]. On the other hand, extracting useful signal properties from channel impulse response (CIR) through machine learning methods such as support vector machines (SVM) [25], multilayer perceptron (MLP) [26] and convolutional neural networks (CNNs) [27] can identify and reject NLOS signals. However, these methods necessitate extensive initial data collection and substantial computational power. Therefore, some scholars have proposed a cooperative localization method [28] that reduces NLOS range errors using an inertial navigation system (INS) and offsets the rapid cumulative error of the INS with a UWB inertial navigation system. On one hand, wireless distributed IoT technology in greenhouse environments has limited energy capacity [29]. When UWB positioning data are reliable, this collaborative positioning method enhances navigation accuracy and provides more comprehensive attitude data. Additionally, in greenhouse environments, the energy capacity of wireless distributed IoT technology is limited. Therefore, it is imperative to develop a UWB real-time positioning correction algorithm that maintains stable accuracy and conserves computing power in continuous non-line-of-sight greenhouse environments.
In this study, an IUKF-UWB based real-time greenhouse localization system is proposed using IoT and UWB communication technologies. This localization system aims to improve the robot localization accuracy in greenhouse crop growing intensive environments. In this study, our main work is as follows:
(1)
A real-time greenhouse IoT positioning system with a three-tier architecture is designed to upload the collected ranging information to the cloud for processing and computation in order to reduce the energy consumption of distributed wireless IoT terminals in greenhouses and to enhance the system’s life cycle.
(2)
Using DS-TWR to obtain real-time distance information between the anchor and the tags carried by the robot, and designing the communication type identification method to recognize the ranging communication type of the UWB in the current state.
(3)
Based on the ranging deviation propagation characteristics of UWB signals in a greenhouse environment, IUKF is proposed to construct the error compensation function in the non-line-of-sight state in order to improve the positioning accuracy of the localization system in the NLOS situation.

2. Materials and Methods

2.1. System Composition and Design

In this study, we present a three-layer architecture IoT localization system for the real-time remote localization of greenhouse plant protection robots. The IUKF-UWB algorithm is designed to improve the positioning accuracy and stability of the greenhouse robot. As shown in Figure 1, the three-layer architecture designed in this study includes a greenhouse equipment layer, network transmission layer, and remote application layer.
As illustrated in Figure 2a, the greenhouse equipment layer in a real-time greenhouse positioning system utilized four UWB wireless transceivers designated as anchors. Additionally, one UWB wireless transceiver, referred to as a tag, was installed on the greenhouse mobile carrier for localization. The anchors were positioned at the corners of the perimeter edges of the greenhouse localization area.
This study has integrated and developed a low-power UWB wireless transceiver development board for the system, as shown in Figure 2b. This development board features an STM32F103T8U6 MCU (STMicroelectronics, Geneva, Switzerland) as the main control chip, a DWM1000 module (Decawave, Dublin, Ireland) for the UWB signal transceiver, and an ESP8266 (Espressif, Shenzhen, China) for remote communication. The DWM1000 module operates at a center frequency of 6489.6 MHz, suitable for civilian use, with a bandwidth of 499.2 to 900 MHz and a data output rate of 6.8 Mbps. To optimize UWB signal transmission and reception in greenhouse conditions, the development board is equipped with an external rod antenna, providing an effective range of up to 80 m.
The UWB positioning system comprises three or more localization anchors and a mobile tag that requires localization. By measuring the distances between the tag and each anchor, the location of the tag can be determined through the geometric relationships, achieving localization. The UWB ranging method employed in this experiment is based on the double-sided two-way ranging (DS-TWR) technique. This technique utilizes the time-of-flight (ToF) of signals propagated between anchors and tags to measure the distance between them, theoretically mitigating the time synchronization issue between devices without relying on clock synchronization. The working principle of the DS-TWR algorithm is illustrated in Figure 3. As illustrated in Figure 3, the ranging process begins with the tag to be positioned, sending a UWB signal (Poll) sequentially to the four anchors. Upon receiving the signal, each anchor responds with a signal (Resp) back to the tag. The tag then delays for a specified period before sending a final signal (Final), which the anchors receive, thus completing a DS-TWR cycle.
According to the ranging principle of DS-TWR in Figure 3, the ToF between the tag and the four anchors can be derived from the following equation.
T tof 0 = T round 10 T round 20 - T reply 10 T reply 20 T round 10 + T round 20 + T reply 10 + T reply 20 T tof 1 = T round 11 T round 21 - T reply 11 T reply 21 T round 11 + T round 21 + T reply 11 + T reply 21 T tof 2 = T round 12 T round 22 - T reply 12 T reply 22 T round 12 + T round 22 + T reply 12 + T reply 22 T tof 3 = T round 13 T round 23 - T reply 13 T reply 23 T round 13 + T round 23 + T reply 13 + T reply 23
where Tround1i is the return time from the tag sending a signal to the anchors, and Treply1i is the response time from the anchors sending a signal to the tag.
The distance information between the tag and the four anchors can be derived from
d = T tof i × c
where c is the velocity of electromagnetic wave propagation in the standard state.

2.2. UWB Ranging Correction Model

The complexity of crop growth in greenhouse environments may cause obstructions between UWB anchors and tags during communication, resulting in a significant increase in time of flight. Hence, the real-time monitoring of communication between UWB anchors and tags, the accurate identification of the current communication state, and the application of different models to correct various communication states are feasible for achieving precise real-time positioning in the greenhouse system. The block diagram of the UWB-IUKF algorithm is shown in Figure 4. In this study, the residuals of the ranging values are calculated to achieve the discrimination of the LOS and NLOS of the system; second, the discrimination results are corrected by using the NLOS correction model and the NLOS correction model, respectively; and finally, the optimal estimation of the coordinate values of the greenhouse robot is obtained.

2.2.1. UWB Communication State Discrimination Method

During communication in the LOS state, the error term of the ranging result obtained by UWB only contains Gaussian noise with a mean of zero; when communicating in the NLOS state, the error term of the ranging result obtained by UWB includes both Gaussian noise with a mean of zero and varying nonlinear random errors [30]. Consequently, in LOS conditions, the overall measurement residuals of the system are relatively small; however, in NLOS states, the estimated Euclidean range from the tags to the anchors will generally deviate from the true range. Hence, in NLOS conditions, the system will exhibit larger measurement residuals.
In practical applications, leveraging this characteristic, this study has designed a UWB communication state discriminator, resulting in overall residuals greater than those observed under LOS conditions when NLOS measurements are present in the system. The communication state discriminator and the tag coordinate calculation algorithm are described as follows:
Firstly, as illustrated in Figure 3, under the DS-TWR algorithm, each anchor communicates sequentially with the tag, recording time differences. Assuming the coordinates of the four localization anchors are (x1, y1, z1), (x2, y2, z2), (x3, y3, z3) and (x4, y4, z4), and the coordinates of the mobile tag to be localized are (x, y, z), a set of nonlinear equations can be derived based on their spatial relationships:
( x x 1 ) 2 + ( y y 1 ) 2 + ( z z 1 ) 2 = d 1 2 ( x x 2 ) 2 + ( y y 2 ) 2 + ( z z 2 ) 2 = d 2 2 ( x x 3 ) 2 + ( y y 3 ) 2 + ( z z 3 ) 2 = d 3 2 ( x x 4 ) 2 + ( y y 4 ) 2 + ( z z 4 ) 2 = d 4 2
where d1, d2, d3, and d4 represent the original UWB ranging values.
To facilitate calculation, Equation (2) can be simplified into the following linear matrix:
a x = b
where a is 2 ( x 1 x 2 ) 2 ( y 1 y 2 ) 2 ( z 1 z 2 ) 2 ( x 1 x 3 ) 2 ( y 1 y 3 ) 2 ( z 1 z 3 ) 2 ( x 1 x 4 ) 2 ( y 1 y 4 ) 2 ( z 1 z 4 ) . x is x y z T , which is the matrix representation of the mobile tag coordinate values. b is x 1 2 x 2 2 + y 1 2 y 2 2 + z 1 2 z 2 2 + d 2 2 d 1 2 x 1 2 x 3 2 + y 1 2 y 3 2 + z 1 2 z 3 2 + d 3 2 d 1 2 x 1 2 x 4 2 + y 1 2 y 4 2 + z 1 2 z 4 2 + d 4 2 d 1 2 .
By using the maximum likelihood estimation to solve Equation (4), the estimated position of the tag can be obtained:
x ^ = ( a T a ) - 1 a T b
Since the positions of the four anchors were known, the range between the currently estimated position of the tag and the four anchors can be calculated using the estimated position of the tag.
  d ^ i = x ^ p i , i = 1 , 2 , 3 , 4
where pi represents the coordinates of the anchors, which are specifically denoted as x i y i z i T , i = 1 , 2 , 3 , 4 .
The residual of range measurement can be written as
ε i = d ^ i d i
The overall range measurement residual of the UWB system is
ε = 1 n i = 1 n ε i 2
Hence, the residual threshold differentiating between LOS and NLOS communications can be determined through practical greenhouse experiments. The communication status discrimination model can be written as
M = 0 1 ( ε < α T ε ) ( ε < α T ε )
where M represents the communication status between the UWB anchors and tag, where M = 0 corresponds to an LOS communication status and M = 1 corresponds to an NLOS communication status. T ε denotes the discrimination threshold value, which is the maximum range measurement residual under LOS conditions for the current environment. This threshold value does not change with the growth of greenhouse crops. ε represents the discrimination coefficient, which is used to adjust the sensitivity of the discrimination model to NLOS conditions. The specific value of α can be adjusted according to the actual positioning scenario.

2.2.2. LOS Correction Model

Under LOS conditions, UWB signals propagate in a straight line through the air, and the range between the UWB anchor and the positioning tag is directly proportional to the signal flight time. Formula (1) can be used to calculate the range measurement result by multiplying the UWB signal flight time by the propagation speed. However, in practical measurement scenarios, due to factors such as latitude and longitude, air quality, etc., the propagation speed of UWB signals in the air is not exactly equal to the speed of light. Therefore, there still exists an error in the range measurement results of UWB under LOS communication. Before proceeding with positioning, it is necessary to correct this error.
After modifying Formula (1), an LOS condition UWB range correction model can be established. The mathematical relationship between the UWB ranging result d and the corrected result d0 can be represented by the following linear polynomial:
d =   c d 0 + β
where c’ is the ratio of the electromagnetic wave propagation speed in the current environment to the propagation speed in a vacuum. Moreover, the constant term β represents the zero offset for the measured range. These two parameters need to be determined according to the actual usage scenarios of UWB and can be estimated through experiments.
Based on Equation (9), the corrected model under LOS conditions can be written as
d ^ i = 1   c d i β   c
where d ^ i is the corrected ranging value between the tag and anchor i, while d i is the original ranging values between the tag and anchor i.

2.2.3. NLOS Correction Model

To alleviate the error in the original ranging values caused by NLOS communication due to obstructions between tags and anchors in the complex greenhouse environment, this paper presents a modified unscented Kalman filter (UKF) algorithm as an NLOS correction model. When the communication status discriminator identifies non-line-of-sight conditions in the current TOF ranging measurements, the NLOS correction model is applied for correction.
The UKF algorithm is a filtering technique applicable to nonlinear systems. Similar to the classic Kalman filter (KF) and the extended Kalman filter (EKF), it computes the difference between the predicted estimate and the actual measurements to obtain the optimal Kalman gain. It then acquires an accurate state vector and covariance matrix. The standard UKF algorithm calculation process is divided into the following steps [31,32,33]:
Step 1: Initialization.
For different times t, the initial ranging values measured by UWB are selected as the observation vector Zt, and the state vector is Xt. The UWB nonlinear system can be described as follows:
X t = F ( X t 1 ) + ω t 1 Z t = H ( X t ) + ν t
where ω t 1 represents the process noise at time t; ν t is the measurement noise; F(x) is the state transition equation; and H(x) is the observation equation.
Step 2: Obtain sigma points.
First, given the initial values of the state vector X(t − 1) and the initial covariance matrix Z(t − 1), generate a set of Sigma sampling points as follows:
ξ 0 ( t 1 ) = X ( t 1 ) ξ i ( t 1 ) = X ( t 1 ) + ( ( n + λ ) Z ( t 1 ) ) i , i = 1 , n ξ i ( t 1 ) = X ( t 1 ) ( ( n + λ ) Z ( t 1 ) ) i , i = n + 1 , 2 n
where n represents the dimensionality of the system; ξ i ( t 1 ) is the number of i sampling points at the moment t − 1; λ is a scaling factor to reduce the total prediction error.
Step 3: Prediction process.
The next-step predictive value of the Sigma sampling points ξ i ( t ) can be described as
ξ i ( t ) = F ξ i ( t 1 ) , i = 0 , 1 , 2 n
The one-step predictive value of the state vector X ( t t 1 ) and the covariance Z t t 1 can be written as
X ( t t 1 ) = i = 0 2 n W i m ξ i ( t )
Z ( t t 1 ) = i = 0 2 n W i c [ ξ i ( t ) X ( t t 1 ) ] [ ξ i ( t ) X ( t t 1 ) T ] + Q ( t 1 )
where Q ( t 1 ) represents the covariance matrix of the process noise. W i m and W i c are the mean weight factor and the variance weight factor, respectively, in the UKF.
Step 4: Utilize the unscented transformation (UT), and generate a new set of Sigma points based on the one-step predictive values.
ξ 0 ( t t 1 ) = X ( t t 1 ) ξ i ( t t 1 ) = X ( t t 1 ) + ( ( n + λ ) Z ( t t 1 ) ) i , i = 1 , n ξ i ( t t 1 ) = X ( t t 1 ) ( ( n + λ ) Z ( t t 1 ) ) i , i = n + 1 , 2 n
Step 5: Update process.
Bring the new set of sigma points into the observation equation to obtain the following predicted observations.
Z ( t t 1 ) = H   ξ i ( t )
Utilize weighted summation to calculate the mean and covariance of the system’s predicted values.
Z ^ ( t t 1 ) = i = 0 2 n ( W i m Z ( t t 1 ) )
P Z t Z t = i = 0 2 n W i c [ Z ( t t 1 ) Z ^ ( t t 1 ) ] [ Z ( t t 1 ) Z ^ ( t t 1 ) ] T + R ( t )
P X t Z t = i = 0 2 n W i c [ Z ( t t 1 ) Z ^ ( t t 1 ) ] [ Z ( t t 1 ) Z ^ ( t t 1 ) ] T
The unscented Kalman filter gain can be written as
K ( t ) = P X t Z t P Z t Z t 1
Calculate the updated system state and covariance.
X ^ ( t ) = X ^ ( t t 1 ) + K ( t ) Z t Z ^ ( t t 1 )
P ( t ) = P ( t t 1 ) K ( t ) P Z t Z t K ( t ) T
In a previous study, when four UWB anchors were used for localization in a greenhouse environment, the closer the tags were to the geometric center of the height planes of the four anchors, the smaller the deviation of the measured ranging values from the actual range, and the further they were from the geometric centers, the larger the deviation from the actual range [34]. The improved untraceable Kalman filter algorithm (IUKF) constructs a state error compensation function based on the characteristics of UWB measurement error and the actual greenhouse positioning environment. When the communication state discriminator recognizes the NLOS communication, it adopts the measurement value of the current estimated value of the previous moment value as the reference of the UKF state, calculates the amount of compensation for the state error at this time, and compensates for the amount of the UKF state.
Assuming the geometric center of the horizontal plane formed by the four anchors is (x0, y0), and the measured coordinates of the tag at the previous moment are (xt−1, yt−1), the deviation of the tag’s position from the geometric center at that moment can be calculated as the difference between the two points:
Δ x = x t 1 x c Δ y = y t 1 y c
Taking into account the size of the deviation in the coordinates on the horizontal plane and the error characteristics of UWB in the greenhouse environment, correction coefficients Kx and Ky are set separately. The compensation for the tag’s coordinates is determined as
T offset = K X Δ x , K y Δ y T
Using the tag’s coordinate compensation, the original nonlinear system of UWB can be written as
X t = F ( X t 1 ) + T offset + ω t 1 P t = H ( X t ) + ν t
The next-step prediction value for Sigma points in Step 3 of the UKF is modified as follows, while the other steps remain as per the standard UKF filtering algorithm.
ξ i ( t ) = F ξ i ( t 1 ) + T offset , i = 0 , 1 , 2 n
To characterize the positioning accuracy of the proposed greenhouse remote positioning system presented in this paper, the study introduces Mean Absolute Error (MAE) and Root Mean Square Error (RMSE) as evaluation criteria. MAE and RMSE can be solved by the following equations:
MAE = 1 n i = 1 n   x ^ i x i + y ^ i y i
RMSE = 1 n 1 i = 1 n x ^ i x i 2 + y ^ i y i 2

2.3. Remote Operation Interface

As shown in Figure 5, to facilitate remote visualization of the localization process and acquisition of experimental data, this study has orchestrated a web-based operation interface utilizing Visual Studio Code (version 1.71). The interface predominantly comprises: an anchor coordinates setup zone that allows for the definition of initial anchor coordinates; a map attribute configuration zone capable of inserting positioning background maps and adjusting relevant parameters to align with the actual deployment environment; a positioning mode setting zone that offers the ability to switch between tagging modes, initiate positioning functions, and output logs of tag positioning; a real-time display area for tag coordinate information; and a visual display area for the relative range between tags and anchors. In an endeavor to minimize the energy consumption of the distributed UWB node network and thus elongate the lifespan of the greenhouse positioning system, the firmware programmed into the UWB development boards is solely responsible for measuring the TOF between each anchor and tag and then relaying this information to an ESP8266 module via a TTL serial port. Subsequently, the ESP8266 module employs the TCP protocol to transmit the TOF data to an Alibaba Cloud server, where the communication status determination, correction processes, and computation of positioning coordinates are executed.

3. Results

3.1. Test Environment and Equipment

In order to verify the positioning accuracy of the UWB correction model proposed in this paper and the robustness of the IUKF algorithm in the NLOS environment, this study carried out static accuracy test experiments and dynamic accuracy test experiments in the pepper planting area of the Venlo greenhouse at the Institute of Agricultural Mechanization, Xinjiang Academy of Agricultural Sciences (IAAS), respectively. This study only considered the positioning results on a two-dimensional plane, with base station A0 as the origin, the direction of the line connecting A0 to A1 as the positive x-axis direction, and the direction of the line connecting A0 to A3 as the positive y-axis direction. A two-dimensional Cartesian positioning system coordinate system was established, and the coordinate markers of each point in the coordinate system were all in meters (m). As shown in Figure 6, the experimental site in the greenhouse is 7 × 7 m, in which 6 rows of chili peppers using soilless cultivation were uniformly planted. The height of the top of the chili pepper plants ranged from 1.5 to 1.85 m, and the height of the metal support used for soilless cultivation was 0.7 m. The deployment location of the base station in the greenhouse is shown in Figure 6, where the heights of A0 (0,0), A1 (0,7), and A2 (7,7) are set to 1.7 m; the height of A3 (0,7) is 1.9 m; and the test plant protection robot uses a DC power supply to drive four motor tires to move forward in a straight line. Each motor tire is equipped with a steering motor above it to drive the motor tire to turn, enabling the plant protection robot to turn at right angles in place. The height of the label carried on the plant protection robot is 1.1 m. The log output includes the raw ranging values during the positioning process through the remote operation interface.
The static accuracy test experiment adopts the five-point sampling method, and five target points are selected as the monitoring points of the static accuracy test among the soilless cultivated pepper crops in the greenhouse. The horizontal and vertical range between each target point and the origin A0 are taken as the actual coordinates of the target point, and the real coordinates of the selected target points can be referred to the blue markers in Figure 6, which are labeled tag target1 to tag target5 according to the direction of the trajectory exercise. The plant protection robot is operated to the target points by controlling the plant protection robot, and the time of the localization test for each target point is one minute. The localization system measures the average coordinate value at the target point in one minute as the measurement value for the static accuracy test, and the final positioning errors were calculated by comparing the measured values with the real coordinate values.
In the dynamic accuracy test experiment, the mobile cart carrying the UWB tag started from the yellow marked point (1.1, 1), as shown in Figure 6. It moved at a constant speed of 0.5 m/s through all the crop rows within the UWB coverage area following the path planned in Figure 6. The UWB positioning data during the experiment were downloaded via the log button on the web operation interface. The actual test scene is as shown in Figure 7.

3.2. Analysis of Experiment Results

The analyzed localization errors data of the static accuracy test experiment are shown in Table 1; in the localization of each target point, the maximum longitudinal deviation comes from the target point 5, with a localization error of 0.159 m, the maximum lateral deviation comes from the localization of the target point 1, with a localization error of 0.155 m, and the root mean square error of localization for each point is less than 0.15 m. At the same time, by the localization error data given in Table 1, it is not difficult to find that during the localization process, the closer the tag is to the geometric centers of the four anchors, the errors are smaller.
In the dynamic accuracy test experiment, we use the traditional least squares (LS), EKF, UKF, and IUKF algorithms for coordinate resolution of the tags, respectively, and the performance results of the four localization resolution algorithms as well as the real reference trajectory of the plant protection robot’s motion are shown in Figure 8.
As shown in the positioning results of Figure 8, due to the obstruction from the pepper plants as the experiment progresses, using the least squares method to directly analyze the UWB positioning coordinates leads to significant nonlinear deviations in the cart’s positioning results. Compared to the least squares method, the nonlinear filtering algorithms EKF and UKF provide more ideal filtering effects on the cart’s trajectory, resulting in a smaller overall error in the output positioning trajectory data.
Moreover, as clearly demonstrated in the enlarged parts a and b of Figure 9, the IUKF algorithm shows an advantage in processing the UWB positioning system by producing trajectories that are closer to the true path and displaying better filtering performance even under significant fluctuations in UWB positioning. This indicates that when there is a large residual between the measurement predictive value and the actual value, the IUKF algorithm compensates for the ranging errors in NLOS conditions by improving the correction coefficients. Additionally, the trajectory produced by the IUKF algorithm is smoother compared to the standard UKF algorithm, better balancing the contributions of compensation and measurements to the filtering estimate overall.
In the dynamic accuracy test experiment, the positioning results of the trolley in the positioning coordinate system under the x-axis and y-axis changes are shown in Figure 9a. As can be seen from the figure, as the test proceeds, the coordinate value of the cart in the x-axis shows a step-like increase, and the coordinate of the y-axis remains basically unchanged during the x-axis increase; the coordinate value of the y-axis varies back and forth between 1 and 6 m. The trend of the cart coordinate value is consistent with the planning path in Figure 6. The time period selected by the red box in Figure 9a is the time period when the mobile tag is affected by a serious NLOS due to passing through the vegetated area, which leads to a large deviation from the actual coordinates when the least squares method is directly used to solve the coordinate values. Figure 9b shows a zoom-in view of the x-axis localization results of the mobile tag in 30~46 s. The localization error of the uncorrected localization algorithm reaches the maximum when the test is carried out to the 36.25 s. After calculation of the point relative to the real trajectory under the localization coordinate system, the Euclidean range error is 0.684 m, while the maximum Euclidean range error of the IUKF algorithm near that moment is only 0.225 m.
To visually demonstrate the effectiveness of the IUKF algorithm proposed in this paper in suppressing UWB positioning errors, this paper introduces a Cumulative Distribution Function (CDF) graph, as shown in Figure 10, which records the probability distribution of error variables. The horizontal axis represents the location error, and the vertical axis represents the cumulative distribution function, indicating the percentage of a certain range of errors in the total error. From Figure 9, it can be seen that the IUKF algorithm proposed in this paper reaches the maximum error point the fastest and converges quickly. By introducing a correction coefficient in the filtering process to update the measurement noise, the IUKF algorithm effectively suppresses the fluctuation of UWB positioning points and has a stronger ability to predict and update noise. Compared to the least squares method, which does not correct ranging values, nonlinear filtering algorithms such as EKF and UKF are better at suppressing positioning errors; compared to the EKF and UKF algorithms, the accuracy of the IUKF algorithm improved by 42% and 34%, respectively.
Table 2 presents the statistical analysis results of the positioning errors from the dynamic accuracy testing experiment, including the maximum error, minimum error, MAE, and RMSE. The maximum error using the least squares method reached 0.684 m with an MAE of 0.383 m and an RMSE of 0.416 m. The positioning errors under the EKF and UKF algorithms are similar, with RMSE values of 0.235 m and 0.203 m, respectively. The IUKF algorithm achieved a maximum error, MAE, and RMSE of 0.225 m, 0.114 m, and 0.134 m, respectively. Therefore, it can be concluded that in an actual greenhouse environment, the IUKF algorithm proposed in this paper outperforms the traditional EKF and UKF algorithms in terms of root mean square error, maximum error, and average error, and it significantly surpasses the traditional least-squares method, meeting the practical requirements of greenhouse applications.

4. Discussion

The dense vegetation environment of a greenhouse brings serious continuous non-line-of-sight interference, and the UWB will cause a decrease in ranging accuracy due to the multipath effect and signal attenuation during the localization process, which ultimately leads to bias in the localization results. This paper proposes a first recognition and then correction on the basis of non-line-of-sight recognition of the untraceable Kalman filter algorithm to increase the correction coefficient and thus compensate for the measured value, in the actual greenhouse experiments, indicating the stability and accuracy of the performance, to meet the actual greenhouse plant protection robot’s location information needs.
The AliCloud server adopts advanced hardware equipment and optimized software architecture, with excellent performance and reliability, and it has a more mature application base in the greenhouse Internet of Things field. When selecting cloud servers, we can fully consider the configuration suitability and demand, cost and application environment, application background, and development prospects of cloud servers in the field. In this study, the remote Ali cloud computing service greatly reduces the energy consumption of the greenhouse environment terminal and further improves the use cycle of the greenhouse IoT.
In addition, among the filtering algorithms, the EKF algorithm can also be used for nonlinear filtering, but the UKF algorithm can approximate the posterior mean and covariance with second-order or more than second-order Taylor’s accuracy when using the UT transform to process the nonlinear filtering, whereas the EKF does not reach the second-order or more than second-order accuracy. And compared with the linearization process of EKF and the cumbersome Jacobi matrix calculation, the IUKF proposed in this study has higher filtering accuracy and less computational effort than EKF. Compared with the traditional EFK algorithm, the accuracy of this paper’s algorithm can be improved by 42%.
In future work, the fusion of UWB positioning technology with inertial sensors, LiDAR, and visual localization can be fully considered to achieve higher accuracy positioning in greenhouse environments. When taking into account the improvement of accuracy, the actual cost situation is fully considered so that the research results can be generalized.

5. Conclusions

In this paper, a greenhouse localization system based on IUKF-UWB is designed to realize the remote real-time localization service of a greenhouse plant protection robot under complex greenhouse conditions. The designed remote operating system can process the ranging data uploaded by the UWB positioning system and output the test logs. Under the same conditions of energy consumption, this study demonstrated longer usage time. In the greenhouse test, when the plant protection robot passes through the area with lush vegetation, the non-line-of-sight localization error is better mitigated, so that the localization result can be better close to the real movement trajectory; the analyzed test results show that the root mean square error of UWB localization without distance correction is 0.416 m, and after the correction of this paper’s method, the localization error is 0.134 m, which is a reduction of 68%, and it can provide reliable and stable localization information for continuous NLOS situations in a greenhouse environment.

Author Contributions

Conceptualization, M.L. and H.M.; methodology, M.L. and H.M.; software, M.L. and H.G.; data curation, M.L.; Writing—original draft preparation, M.L.; Writing—review and editing, M.L., H.G. and M.Z.; funding acquisition, H.M.; project administration, H.M.; All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Major Science and Technology Projects in Xinjiang Autonomous Region (Grant No. 2022A02005-5).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Fang, L.; Chen, H.; Xu, J. Research on multi-sensor positioning and number identification method of greenhouse based on hall effect. Comput. Electron. Agric. 2023, 209, 107818. [Google Scholar] [CrossRef]
  2. Huang, Z.; Jacky, T.L.; Zhao, X.; Fukuda, H.; Shiigi, T.; Nakanishi, H.; Suzuki, T.; Ogawa, Y.; Kondo, N. Position and orientation measurement system using spread spectrum sound for greenhouse robots. Biosyst. Eng. 2020, 198, 50–62. [Google Scholar] [CrossRef]
  3. Jiang, S.; Wang, S.; Yi, Z.; Zhang, M.; Lv, X. Autonomous navigation system of greenhouse mobile robot based on 3D Lidar and 2D Lidar SLAM. Front. Plant Sci. 2022, 13, 815218. [Google Scholar] [CrossRef] [PubMed]
  4. Grimstad, L.; Zakaria, R.; Le, T.D.; From, P.J. A novel autonomous robot for greenhouse applications. In Proceedings of the 2018 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Madrid, Spain, 1–5 October 2018; pp. 1–9. [Google Scholar]
  5. Xie, B.; Jin, Y.; Faheem, M.; Gao, W.; Liu, J.; Jiang, H.; Cai, L.; Li, Y. Research progress of autonomous navigation technology for multi-agricultural scenes. Comput. Electron. Agric. 2023, 211, 107963. [Google Scholar] [CrossRef]
  6. Qun, R. Intelligent control technology of agricultural greenhouse operation robot based on fuzzy PID path tracking algorithm. INMATEH-Agric. Eng. 2020, 62, 181–190. [Google Scholar] [CrossRef]
  7. Yao, L.; Hu, D.; Zhao, C.; Yang, Z.; Zhang, Z. Wireless positioning and path tracking for a mobile platform in greenhouse. Int. J. Agric. Biol. Eng. 2021, 14, 216–223. [Google Scholar] [CrossRef]
  8. Huang, Y.; Fu, J.; Xu, S.; Han, T.; Liu, Y. Research on Integrated Navigation System of Agricultural Machinery Based on RTK-BDS/INS. Agriculture 2022, 12, 1169. [Google Scholar] [CrossRef]
  9. Aslan, M.F.; Durdu, A.; Sabanci, K.; Ropelewska, E.; Gültekin, S.S. A comprehensive survey of the recent studies with UAV for precision agriculture in open fields and greenhouses. Appl. Sci. 2022, 12, 1047. [Google Scholar] [CrossRef]
  10. Salamah, A.H.; Tamazin, M.; Sharkas, M.A.; Khedr, M. An enhanced WiFi indoor localization system based on machine learning. In Proceedings of the 2016 International Conference on Indoor Positioning and Indoor Navigation (IPIN), Alcala de Henares, Spain, 4–7 October 2016; pp. 1–8. [Google Scholar]
  11. Rodrigues, B.; Halter, C.; Franco, M.; Scheid, E.J.; Killer, C.; Stiller, B. BluePIL: A Bluetooth-based PassIve localization method. In Proceedings of the 2021 IFIP/IEEE International Symposium on Integrated Network Management (IM), Bordeaux, France, 17–21 May 2021; pp. 28–36. [Google Scholar]
  12. Bianchi, V.; Ciampolini, P.; De Munari, I. RSSI-based indoor localization and identification for ZigBee wireless sensor networks in smart homes. IEEE Trans. Instrum. Meas. 2018, 68, 566–575. [Google Scholar] [CrossRef]
  13. Li, M.-G.; Zhu, H.; You, S.-Z.; Tang, C.-Q. UWB-based localization system aided with inertial sensor for underground coal mine applications. IEEE Sens. J. 2020, 20, 6652–6669. [Google Scholar] [CrossRef]
  14. Poulose, A.; Han, D.S. UWB indoor localization using deep learning LSTM networks. Appl. Sci. 2020, 10, 6290. [Google Scholar] [CrossRef]
  15. Ridolfi, M.; Van de Velde, S.; Steendam, H.; De Poorter, E. Analysis of the scalability of UWB indoor localization solutions for high user densities. Sensors 2018, 18, 1875. [Google Scholar] [CrossRef] [PubMed]
  16. Long, Z.; Xiang, Y.; Lei, X.; Li, Y.; Hu, Z.; Dai, X. Integrated indoor positioning system of greenhouse robot based on uwb/imu/odom/lidar. Sensors 2022, 22, 4819. [Google Scholar] [CrossRef] [PubMed]
  17. Ridolfi, M.; Kaya, A.; Berkvens, R.; Weyn, M.; Joseph, W.; Poorter, E.D. Self-calibration and collaborative localization for UWB positioning systems: A survey and future research directions. ACM Comput. Surv. (CSUR) 2021, 54, 1–27. [Google Scholar] [CrossRef]
  18. Bagagiolo, G.; Matranga, G.; Cavallo, E.; Pampuro, N. Greenhouse robots: Ultimate solutions to improve automation in protected cropping systems—A review. Sustainability 2022, 14, 6436. [Google Scholar] [CrossRef]
  19. Chen, Z.; Wang, H.; Zhou, M.; Zhu, J.; Chen, J.; Li, B. Design and Experiment of an Autonomous Navigation System for a Cattle Barn Feed-Pushing Robot Based on UWB Positioning. Agriculture 2024, 14, 694. [Google Scholar] [CrossRef]
  20. Kong, Q. NLOS Identification for UWB Positioning Based on IDBO and Convolutional Neural Networks. IEEE Access 2023, 11, 144705–144721. [Google Scholar] [CrossRef]
  21. Xiangze, L.; Xiang, W.; Caixin, L.; Jing, G.; Jinlin, X.; Enlai, Z. Location information collection and optimization for agricultural vehicle based on UWB. Nongye Jixie Xuebao/Trans. Chin. Soc. Agric. Mach. 2018, 49, 23–29. [Google Scholar]
  22. Ma, D.; Zhao, K.; Zheng, Z.; Yu, C.; Wang, Y.; Yao, Y. Indoor positioning with adaptive wavelet denoise enhancement and trend surface analysis based multipath map. IEEE Sens. J. 2022, 22, 15191–15198. [Google Scholar] [CrossRef]
  23. Liu, C.; Yang, J.; Wang, F. Joint TDOA and AOA location algorithm. J. Syst. Eng. Electron. 2013, 24, 183–188. [Google Scholar] [CrossRef]
  24. Taponecco, L.; D’Amico, A.A.; Mengali, U. Joint TOA and AOA estimation for UWB localization applications. IEEE Trans. Wirel. Commun. 2011, 10, 2207–2217. [Google Scholar] [CrossRef]
  25. Bouza, M.; Altieri, A.O.; Galarza, C.G. UWB target classification using SVM. In Proceedings of the 2018 IEEE Biennial Congress of Argentina (ARGENCON), San Miguel de Tucuman, Argentina, 6–8 June 2018; pp. 1–8. [Google Scholar]
  26. Zaarour, N.; Kandil, N.; Hakem, N.; Despins, C. Comparative experimental study on modeling the path loss of an UWB channel in a mine environment using MLP and RBF neural networks. In Proceedings of the 2012 International Conference on Wireless Communications in Underground and Confined Areas, Clermont-Ferrand, France, 28–30 August 2012; pp. 1–6. [Google Scholar]
  27. Jiang, C.; Shen, J.; Chen, S.; Chen, Y.; Liu, D.; Bo, Y. UWB NLOS/LOS classification using deep learning method. IEEE Commun. Lett. 2020, 24, 2226–2230. [Google Scholar] [CrossRef]
  28. Cui, B.; Chen, W.; Weng, D.; Wei, X.; Sun, Z.; Zhao, Y.; Liu, Y. Observability-Constrained Resampling-Free Cubature Kalman Filter for GNSS/INS with Measurement Outliers. Remote Sens. 2023, 15, 4591. [Google Scholar] [CrossRef]
  29. Tang, P.; Liang, Q.; Li, H.; Pang, Y. Application of Internet-of-Things Wireless Communication Technology in Agricultural Irrigation Management: A Review. Sustainability 2024, 16, 3575. [Google Scholar] [CrossRef]
  30. Li, Y.; Gao, Z.; Xu, Q.; Yang, C. Comprehensive Evaluations of NLOS and Linearization Errors on UWB Positioning. Appl. Sci. 2023, 13, 6187. [Google Scholar] [CrossRef]
  31. Qiao, D.; Zhang, Z.; Liu, F.; Sun, B. Location optimization model of a greenhouse sensor based on multisource data fusion. Complexity 2022, 1, 3258549. [Google Scholar] [CrossRef]
  32. Khalaf, W.; Chouaib, I.; Wainakh, M. Novel adaptive UKF for tightly-coupled INS/GPS integration with experimental validation on an UAV. Gyroscopy Navig. 2017, 8, 259–269. [Google Scholar] [CrossRef]
  33. Tan, C.; Cai, Y.; Wang, H.; Sun, X.; Chen, L. Vehicle State Estimation Combining Physics-Informed Neural Network and Unscented Kalman Filtering on Manifolds. Sensors 2023, 23, 6665. [Google Scholar] [CrossRef]
  34. Yang, X.; Wang, J.; Song, D.; Feng, B.; Ye, H. A novel NLOS error compensation method based IMU for UWB indoor positioning system. IEEE Sens. J. 2021, 21, 11203–11212. [Google Scholar] [CrossRef]
Figure 1. System framework diagram. 1. plant protection robot; 2. UWB anchor; 3. local computer; 4. Alibaba cloud server; 5. cloud database; 6. remote computer display; 7. remote phone display.
Figure 1. System framework diagram. 1. plant protection robot; 2. UWB anchor; 3. local computer; 4. Alibaba cloud server; 5. cloud database; 6. remote computer display; 7. remote phone display.
Agriculture 14 01479 g001
Figure 2. The framework of UWB localization system (a) and the UWB wireless transceiver platform (b).
Figure 2. The framework of UWB localization system (a) and the UWB wireless transceiver platform (b).
Agriculture 14 01479 g002
Figure 3. Double-sided two-way ranging method.
Figure 3. Double-sided two-way ranging method.
Agriculture 14 01479 g003
Figure 4. Block diagram of UWB-IUKF.
Figure 4. Block diagram of UWB-IUKF.
Agriculture 14 01479 g004
Figure 5. Positioning system remote operation interface. 1. Real-time display area of tag position relative distance; 2. Real-time display area of tag position coordinates; 3. Map attribute setting; 4. Positioning mode setting; 5. Anchors coordinate setting area.
Figure 5. Positioning system remote operation interface. 1. Real-time display area of tag position relative distance; 2. Real-time display area of tag position coordinates; 3. Map attribute setting; 4. Positioning mode setting; 5. Anchors coordinate setting area.
Agriculture 14 01479 g005
Figure 6. UWB anchors and target points distribution.
Figure 6. UWB anchors and target points distribution.
Agriculture 14 01479 g006
Figure 7. Experimental scenarios in greenhouse.
Figure 7. Experimental scenarios in greenhouse.
Agriculture 14 01479 g007
Figure 8. Performance comparison of four positioning algorithms; (a) and (b) zoomed-in view.
Figure 8. Performance comparison of four positioning algorithms; (a) and (b) zoomed-in view.
Agriculture 14 01479 g008
Figure 9. Positioning results; (a) X-Y versus time overall; (b) zoomed-in view.
Figure 9. Positioning results; (a) X-Y versus time overall; (b) zoomed-in view.
Agriculture 14 01479 g009
Figure 10. The error CDF diagram of four algorithms.
Figure 10. The error CDF diagram of four algorithms.
Agriculture 14 01479 g010
Table 1. Static positioning errors.
Table 1. Static positioning errors.
Target PointsLongitudinal DeviationLateral Deviation
Max (m)MAE (m)RMSE (m)Max (m)MAE (m)RMSE (m)
Tag10.1530.0940.1010.1550.0970.106
20.1380.0900.0940.1460.0930.097
30.1250.0720.0760.1280.0700.079
40.1440.0960.1040.1410.0930.098
50.1590.0970.1030.1380.0980.092
Table 2. Dynamic positioning errors.
Table 2. Dynamic positioning errors.
Positioning MethodMax (m)MAE (m)RMSE (m)
LS0.6840.3830.416
EKF0.3120.2140.235
UKF0.2640.1830.203
IUKF0.2050.1140.134
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Li, M.; Gao, H.; Zhao, M.; Mao, H. Development and Experimentation of a Real-Time Greenhouse Positioning System Based on IUKF-UWB. Agriculture 2024, 14, 1479. https://doi.org/10.3390/agriculture14091479

AMA Style

Li M, Gao H, Zhao M, Mao H. Development and Experimentation of a Real-Time Greenhouse Positioning System Based on IUKF-UWB. Agriculture. 2024; 14(9):1479. https://doi.org/10.3390/agriculture14091479

Chicago/Turabian Style

Li, Minghua, Hongyan Gao, Mingxue Zhao, and Hanping Mao. 2024. "Development and Experimentation of a Real-Time Greenhouse Positioning System Based on IUKF-UWB" Agriculture 14, no. 9: 1479. https://doi.org/10.3390/agriculture14091479

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