Next Article in Journal
Performance Measurement and Analysis of Building Information Modeling (BIM) Applications in the Railway Infrastructure Construction Phase
Previous Article in Journal
Investigation on Response of Site of Typical Soil–Rock Composite Strata in Changchun Induced by Shield Construction of Parallel Twin Tunnels
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Study on the Deployment of Ultra-Wideband Positioning Base Stations in Pig Farms

1
School of Engineering, Jiangxi Agriculture University, Nanchang 330045, China
2
Engineering Research Center of Animal Husbandry Facility Technology Exploitation, Jiangxi Agriculture University, Nanchang 330045, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2024, 14(2), 501; https://doi.org/10.3390/app14020501
Submission received: 31 October 2023 / Revised: 19 December 2023 / Accepted: 28 December 2023 / Published: 5 January 2024

Abstract

:
A novel indoor positioning method for a pigsty based on ultra-wideband (UWB) technology is proposed via reasonably arranging the base stations and positioning tags, which can provide strong support for the accurate positioning of specific pig pens in the pig house. The distribution of Dilution of Precision (DOP) values is analyzed in different deployment schemes which include the amount, the height, the deployment shape, and the distance of the base stations through positioning simulation. Moreover, the positioning effect of dynamic following positioning, the root-mean-square error (RMSE), and the variance of static positioning are measured. It is noteworthy that the Kalman filtering algorithm is adopted to smooth the dynamic following positioning experimental data for reducing the positioning error. The simulated results show that the DOP values decrease with the increase in height and distance, and these results and laws are consistent with the experimental results. However, the DOP values are best reached when the height is from 1.75 m to 2.75 m, and the distance is over 3.00 m. Furthermore, the DOP values of quadrilateral deployment are smaller than the ones of triangular deployment. In addition, the variance of static positioning and dynamic following positioning is decreased by utilizing the Kalman filtering algorithm. Therefore, the excellent positioning system and its solutions in a pigsty can be provided by our proposed indoor positioning method.

1. Introduction

The concept of intelligent farming has received increasing attention and research in today’s intensive, large-scale pig production environment. The use of machines over manual labor has emerged as the prevailing trend for efficient farming practices, which represents an inevitable trajectory towards the development of intelligent farming [1]. The current application of machine vision, deep learning, Internet of Things (IoT), artificial intelligence (AI), and other advanced technologies in pig farming robots has effectively freed up labor by facilitating cleaning, inspection and feeding, as well as epidemic prevention and control [2,3,4,5]. Improving production efficiency while reducing the risk of interspecies disease transmission has been demonstrated to have significant practical value and promising development prospects [6]. Navigation and positioning are the enabling technology for robots, as satellite signals cannot cover indoor pig farms. Therefore, the development of high-precision indoor positioning technology is of great importance for breeding robots.
The ultra-wideband (UWB) positioning system offers several advantages, including low system complexity, strong anti-jamming capabilities, high transmission rates, and low power consumption. It enables precise positioning and range accuracy in the decimeter or even centimeter range [7], making it suitable for the localization of breeding robots in pig farms. By deploying positioning base stations throughout the farm and equipping the robots with positioning tags, staff can accurately determine the robot’s position using a host computer. The accuracy of the tag position does not only depend on the localization algorithm, but the base station placement scheme has a great influence on the localization accuracy [8,9,10]. Some studies propose an optimization method based on the base station placement to improve the localization accuracy [11,12,13].
Dilution of Precision (DOP) is a critical parameter for evaluating positioning accuracy. It quantifies the relative geometric relationship between range error and positioning accuracy under equivalent range error conditions at the same base station. A lower DOP value indicates higher positioning accuracy [14,15]. Root-mean-square error (RMSE) measures the difference between observed and true values and is an indicator of positioning error. A smaller RMSE value indicates a smaller error and thus evaluates the position estimation accuracy of UWB indoor positioning tags [16]. Variance is used to quantify the degree of dispersion in positioning data.
By studying the principles and methods of base station deployment, this study achieves precise tag positioning by optimizing the deployment scheme, improving accuracy and stability, and providing a guarantee for high-precision positioning of breeding robots in pig farms. The paper introduces accuracy factors and their relationship with positioning accuracy, and investigates the effect of base station geometry on positioning accuracy [14,17].
A study was carried out using GDOP analysis to compare the results of mobile device positioning in different locations within a circular area with simulation results. The resolved positioning in the closed area away from the base stations, which agrees well with the simulation results, provides valuable insights for precise positioning design and testing [18]. Guo Y discovered that even if the range error is small, the localization error in a confined area is large. Therefore, a localization algorithm combining Kalman filtering (KF) and DOP is proposed to improve the accuracy and stability in such environments [19].
Albaidhani proposed a novel positioning algorithm specifically tailored for indoor applications, which was evaluated using mean-square error (MSE) and dilution of precision (DOP) as criteria to optimize base station placement and improve positioning accuracy [20]. In one study, the accuracy factor was calculated and simulated under different numbers of pseudo-satellites, and the optimal observation matrix was determined by eigenvalue analysis, with a four-satellite layout identified as optimal [21]. Based on various accuracy factors, the author proposes a four-dimensional model that includes the elevation angle, azimuth angle, and observation time as independent variables, with the relative accuracy factor as the dependent variable. This model aims to improve positioning accuracy and provide assurance for optimal satellite deployment [22]. The positioning trajectories and real trajectories of various factors were compared and analyzed through experiments, leading to the conclusion that UWB dynamic positioning is influenced by the position of positioning tags, travel speed, pedestrian interference, and the highest accuracy is in locating the center of the base station area [23]. Through real and simulated positioning experiments, this study analyzed the distribution of accuracy factors for different deployment schemes. It was concluded that the accuracy factor of test points is influenced by the regional coverage, number and height of deployed base stations, and that the accuracy of terminal positioning can be improved by increasing the number of base stations and the height angle within a closed area surrounded by base stations [24].

2. UWB Positioning Principles

The UWB positioning system used in this study utilizes the Time of Arrival (TOA) technique, which estimates the time delay from the node to be located to the reference base stations, thereby determining the distance between them. The main advantage of the TOA positioning method is its ability to exploit the high time-division rate inherent in ultra-wideband signals to accurately detect signal time delays at the receiver end, thereby allowing the distances between nodes and reference base stations to be estimated. Once these distances are estimated, the coordinates of the target node can be calculated using a basic UWB positioning algorithm. In three-dimensional space, the TOA positioning model follows a spherical representation that requires a minimum of four base stations for accurate localization. In addition, precise clock synchronization between base stations has a significant impact on positioning accuracy.
The coordinate of the jth base station is x j , y j , z j . Solving for label coordinates x , y , z . Assuming the synchronization condition, i.e., no clock difference, when there are n measured values, R j represent the distance between the tag and jth base station
R j = x x j 2 + y y j 2 + z z j 2
L as a measured value which can be expressed as:
L = f x , y , z
According to Taylor’s theorem:
L = f x 0 , y 0 , z 0 + L x 0 d x 1 ! + L y 0 d y 1 ! + L z 0 d z 1 ! + + n L x n 0 d x n n ! + n L y n 0 d y n n ! + n L z n 0 d z n n ! + R n
The partial derivative at x 0 , y 0 , z 0 is:
L x 0 = x j x 0 x 0 x j 2 + y 0 y j 2 + z 0 z j 2 = x j x 0 R j , 0
Assume a x j = x j x 0 R j , 0 as the cosine of the direction of the coordinates solved by the positioning algorithm with respect to the base stations coordinates j:
f x , y , z f x 0 , y 0 , z 0 = L x 0 d x + L y 0 d y + L z 0 d z
r = a x j x + a y j y + a z j z
where x is the vector of offset of the true position of the tag from the positioning algorithm solver, r is the vector offset of the true range to the range values corresponding to the linearization point.
r = H x
r = r 1 r 2 r n = a x 1 a y 1 a z 1 a x 2 a y 2 a z 2 a x n a y n a z n x y z
According to the ordinary least square (OLS)
x = H T H 1 H T r
dx is the position error, dr is the range measurement error
d x = H T H 1 H T d r
The covariance of dx is:
c o v d x = E d x d x T = E H T H 1 H T d r d r T H H T H 1 = H T H 1 H T c o v d r H H T H 1 = H T H 1 σ r 2
c o v d r = I σ r 2
In the measurements, the errors are random, independent in zero mean, and the RMS in common.
σ r is the root-mean-square (RMS), the error covariance matrix is:
Q = σ r 2 I
H = a x 1 a y 1 a z 1 a x 2 a y 2 a z 2 a x n a y n a z n
The matrix of weight coefficients I is:
I = H T H 1 = i 11 i 12 i 13 i 21 i 22 i 23 i 31 i 32 i 33
Q = σ r 2 I = σ r 2 i 11 i 12 i 13 i 21 i 22 i 23 i 31 i 32 i 33 = q 11 q 12 q 13 q 21 q 22 q 23 q 31 q 31 q 33

3. Positioning Results Assessment

The DOP, HDOP, VDOP, PDOP are an important basis for evaluating positioning results [17,18,25,26] GDOP is defined as the ratio of the root-mean-square (RMS) position error to the RMS ranging error. Similarly, Horizontal DOP (HDOP), Vertical DOP (VDOP), and Position DOP (PDOP) can be defined.
DOP (Dilution Of Precision) defined as:
D O P = σ x σ r
HDOP (Horizontal Dilution Of Precision)
H D O P = H T H 1 1,1 + H T H 1 2,2 = i 11 + i 22
VDOP (Vertical Dilution Of Precision)
V D O P = H T H 1 2,2 = i 33
PDOP (Position Dilution Of Precision)
P D O P = H T H 1 1,1 + H T H 1 2,2 + H T H 1 3,3 = i 11 + i 22 + i 33
GDOP (Geometric Dilution Of Precision)
G D O P = σ r 2 i 11 + i 22 + i 33 = q 11 + q 22 + q 33

4. Experimental Analyses

To conduct a comprehensive analysis of the positioning environment in pig farms, it is generally recommended to deploy positioning base stations along the corridor or on the walls. This study proposes multiple deployment schemes for base stations and evaluates their impact on positioning results by measuring the Dilution of Precision (DOP) value through both simulation experiments and real-world tests. The height of the positioning terminal is set at 100 cm.

4.1. Simulation and Analysis

(1)
Different heights of base stations
A comparative analysis is conducted to examine the impact of varying base station heights on positioning accuracy while maintaining fixed base station spacing and deployment shape conditions. The layout of the base stations is illustrated in Figure 1, wherein A0 to A3 represent the respective coordinate positions of each base station. The base stations are set at heights of 0 cm, 75 cm, 125 cm, 175 cm, 225 cm, and 275 cm, respectively.
The HDOP value near the center point location is relatively smaller within the enclosed area of the base stations, as depicted in Figure 2 and supported by statistical data. Conversely, the VDOP and PDOP values tend to be larger in this region. Near the base stations, however, both VDOP and PDOP values are smaller compared to those near the center point location. Outside the closed area surrounded by the base stations, all DOP values increase with distance.
The following can be obtained through Table 1:
The maximum, minimum, and average DOP values of Scenarios a and b are equal to those of the other scenarios. HDOP exhibits the smallest maximum, minimum, and average values among all DOPs, while VDOP and PDOP demonstrate the largest maximum, minimum, and average values. Conversely, Scenario f exhibits the highest maximum, minimum, and average HDOP values compared to VDOP and PDOP. The differences in maximum HDOP values among scenarios do not exceed 0.3; however, there are greater disparities in maximum VDOP and PDOP values between Scenarios b and c compared to other scenarios.
In summary, given a fixed shape and spacing of the base stations’ arrangement, appropriate adjustment of the height difference between the base stations and positioning point can effectively reduce DOP values. Specifically, increasing the height of the base stations will result in larger HDOP values but smaller VDOP and PDOP values. The optimal height range for the base stations is between 175 cm and 275 cm.
(2)
Different distances of base station
A comparative analysis was conducted to examine the impact of varying distances between base stations on positioning accuracy, considering a fixed square deployment pattern with the base station height set at 175 cm. The spacing between base station deployments were as follows: 150 cm, 300 cm, 450 cm, 600 cm, 750 cm, and 900 cm. The layout of the base stations is illustrated in Figure 3, wherein A0 to A3 represent the respective coordinate positions of each base station. a, b, c, d, e, f, represent scenarios with the base stations spacing of 150, 300, 450, 600, 750, and 900, respectively.
Based on Figure 4 and statistical analysis, within the square area surrounded by the base stations, Schemes b to f exhibit a smaller HDOP value as the center point gets closer, while the VDOP and PDOP values increase. As for proximity to the base stations, the VDOP and PDOP values decrease while the VDOP values increase as the center point approaches. The scheme shows that when the distance between base stations is 150 cm, all three DOP values are smaller when closer to the center. Outside of this enclosed area, the DOP values increase.
Table 2 shows the following:
As the side length of the base stations gets bigger and bigger, the HDOP value decreases gradually, and the VDOP and PDOP values increase gradually; for Scenario f, the maximum, minimum, and average values of HDOP are the smallest, and the maximum and average values of VDOP and PDOP are the largest, but the minimum values of VDOP and PDOP for the six scenarios are basically the same.
The following summary can be obtained: when the base stations’ height and layout shape are fixed, appropriate adjustment of the base station spacing can reduce the DOP value; the larger the range of the base stations, the HDOP maximum and minimum values will be smaller; the VDOP and PDOP minimum value does not change much; the base stations’ spacing in 150 cm DOP value is relatively large; and the spacing in the range of 300 cm and above is better.
(3)
Different shapes of the base station arrangements
Comparison and analysis of the impact of different base station layouts on positioning accuracy are conducted under fixed base station spacing and height conditions. The base stations are arranged in four scenarios: an equilateral triangle with a side length of 600 cm (Scenario a), a square with a side length of 600 cm (Scenario b), a rectangle measuring 600 cm in length and 300 cm in width (Scenario c), and a rectangle measuring 300 cm in length and 600 cm in width (Scenario d). The layout and coordinates of the base stations are illustrated in Figure 5, A0 to A3 are the location coordinates of the base stations in the plan.
From Figure 6 the HDOP values exhibit a decreasing trend towards the central point location within the enclosed area formed by the base stations, while they increase in proximity to the base stations. Similarly, both VDOP and PDOP values are observed to decrease near the base stations. Conversely, outside this enclosed area, DOP values demonstrate an increasing pattern with greater distances from the center.
This can be obtained through Table 3:
Scenario b, when the base stations are laid out as a square, the DOP value is the smallest. In scenario a, when the equilateral triangle, the DOP value is the largest, and when the aspect ratio of rectangles is the inverse of each other, the DOP values are the same.
The conclusion can be drawn that when the base stations are deployed in a square configuration, the DOP value is minimized, resulting in optimal positioning accuracy. In comparison, deploying the base stations in a rectangular arrangement yields slightly higher DOP values for the longer side than for the shorter side, indicating relatively higher accuracy along the longer side.

4.2. Analysis of Real Measurement Experiments

The actual measurement experiments were conducted using LinkTrack P-A module hardware, which was utilized for both static fixed-point localization and dynamic following localization in an unobstructed open field enclosed by the base stations. Additionally, the size of the test site was adjusted based on the experimental variables required.
(1)
Static positioning analysis
For the square quadrilateral area surrounded by four base stations, measurements were taken at points located approximately 75 cm from each base station, as well as at the midpoint between two adjacent base stations and the midpoint of the quadrilateral itself, resulting in a total of thirteen data points. Similarly, for the square trilateral area enclosed by three base stations, measurements were obtained near 75 cm from each base stations, at the midpoint between two adjacent base stations, and at the centroid of the triangle formed by these three stations, yielding a total of ten data points. Each fixed point was sampled within a duration of three minutes with a sampling frequency set to 10 Hz.
a.
Different heights of base stations
The UWB positioning effect is evaluated by enclosing the base stations in a square configuration with a spacing of 300 cm while varying the height of the base station at intervals of 0 cm, 75 cm, 125 cm, 175 cm, 225 cm, and 275 cm. The layout of the base stations are illustrated in Figure 7, wherein A0 to A3 represent the respective coordinate positions of each base station.
Figure 7, Figure 8 and Figure 9 show that when H is 0 cm or 275 cm, the deviation of each point is larger; when H is 175 cm or 225 cm, the deviation is smaller, and the root-mean-square error is within 15 for more points; when H is 125 cm or 175 cm, the variance is smaller for both, and within 2 for more points; when H is 275 cm, the variance is larger for more points. The same height and point location show that the X and Y coordinate variances are approximate.
Table 4 shows that H is 75 cm for the X maximum value and the average value of the smallest, H is 125 cm for the X minimum value of the smallest, H is 0 cm for the X minimum value of the largest, H is 275 cm for the average value of the largest, H is 225 cm for the Y maximum value of the smallest, H is 125 cm for the Y minimum value and the average value of the smallest, H is 275 cm for the Y maximum value for the average value of the largest, and H is 0 cm for the Y minimum value of the smallest.
Table 5 shows that when H is 0 cm, X maximum value and average value are minimum; when H is 125 cm, the X minimum value is minimum; when H is 275 cm, the X maximum value and average value are maximum; when H is 175 cm, the X minimum value is maximum; when H is 0 cm, the Y maximum value and average value is minimum; when H is 125 cm, the Y minimum value is minimum; when H is 275 cm, the Y maximum value, average value is maximum and the Y minimum value is maximum. The difference between the X and Y variance values at the same point in the same height case is not significant.
b.
Different distance of base stations
Comparison and analysis of the impact of different base station spacing on positioning accuracy is conducted in the case of a base station height of 175 cm and a fixed square deployment pattern. Due to significant fluctuations observed when deploying base stations closer together, calibration becomes impractical. Therefore, the base station deployment spacings considered are 300 cm, 600 cm, and 900 cm squares. The layout of the base stations are illustrated in Figure 10, wherein A0 to A3 represent the respective coordinate positions of each base station.
Figure 10, Figure 11 and Figure 12 show that there is not much difference in the root-mean-square error of each point of the three spacing cases. When L = 600 cm and 900 cm, the variance of each point is smaller, basically within 1.5; while when L = 300 cm, the variance of each point is above 1.5.
Table 6 shows that when L is 600 cm, the maximum value of X is the smallest; when L is 900 cm, the minimum value of X and the average value are the smallest; when L is 300 cm, the maximum value of Y is the smallest; when L is 900 cm, the minimum value of Y is the smallest; and when L is 600 cm, the average value of Y is the smallest.
Table 7 shows that when L is 900 cm, the X and Y maximum and minimum and average values are the smallest; with the same spacing, the X and Y variance value of the same point does not differ much. The larger the spacing, the smaller the variance, that is, the more stable the positioning.
c.
Different shapes of base station arrangements
After comparison and analysis of the effect of different shapes of base station layout on positioning accuracy in the case of fixed base station spacing and base station height, the base station layout is set up as an equilateral triangle with a side length of 600 cm (Scenario a), a square with a side length of 600 cm (Scenario b), a rectangle with a length of 600 cm and a width of 300 cm (Scenario c), and a rectangle with a length of 300 cm and a width of 600 cm (Scenario d), respectively. The layout of the base stations are illustrated in Figure 13, wherein A0 to A3 represent the respective coordinate positions of each base station.
The results depicted In Figure 13, Figure 14 and Figure 15 demonstrate that when the base stations are arranged in a square configuration, the majority of points exhibit a root-mean-square error below 15, with X and Y variances exhibiting close proximity and minimal values. Conversely, when the base stations are arranged as a triangle or rectangle, individual points display significantly larger root-mean-square errors and variances. Specifically, for rectangular configurations where the width exceeds the length, the X variance of identical points is smaller than their corresponding Y variance, whereas for rectangles where the length surpasses the width, the Y variance of identical points is smaller than their corresponding X variance.
Table 8 shows that the X maximum, minimum, and mean of Scenario c are all the largest, the X maximum and mean of the square are all the smallest, and the X minimum of Scenario d is the smallest; the maximum and mean of Y of Scenario b are all the largest, and the Y maximum, minimum and mean of Scenario c are all the smallest.
Table 9 shows that the maximum, minimum, and mean values of X and Y are minimum for Scenario b; the maximum, minimum, and mean values of X are maximum for Scenario d; and the maximum, minimum, and mean values of Y are minimum for Scenario c.
(2)
Dynamic positioning analysis
Dynamic experimental site selection was conducted in the 6 m × 12 cm open hall, following a predetermined path. Four UWB modules were used as base stations, fixed at a height of 175 cm. A UWB module was attached to a bracket rod and secured to the machine trolley, positioning it at a fixed distance of 1m from the ground. The trolley was operated remotely using a set path for dynamic positioning tests. The positioning system operated at a frequency of 10 Hz, with NAssistant V1.0 software on the host PC supporting UWB positioning. The machine car is the ROS machine car of WHEELTEC, controlled by Jetson TX1. Positioning data was recorded and saved, as depicted in Figure 16.
The observation from Figure 16 reveals that the vertical coordinate offset in UWB following positioning is relatively small, while the horizontal coordinate offset is significant. Moreover, the positioning effect is more favorable when the trajectory moves horizontally rather than vertically. It should be noted that UWB positioning involves discrete points, and employing Kalman filtering can effectively smooth and correct these discrete positioning points.

5. Conclusions

The UWB positioning effect in different deployment environments is investigated through MATLAB R2021a simulation positioning experiments and UWB measurement experiments. The impact of base stations’ deployment height, distance between base stations, and shape of the base station deployment on the UWB positioning effect is analyzed. Additionally, the effects of base station deployment on the DOP value and positioning error are simulated and analyzed. Static measurement experiments further analyze the effects of base station deployment on each point location’s positioning effect, as well as variance and root-mean-square error. Based on these analyses, the following conclusions can be drawn:
(1)
In the simulation experiment, within the enclosed area surrounded by base stations, there is an inverse relationship between proximity to the center and HDOP value, as well as proximity to the base stations and VDOP/PDOP values. Moreover, VDOP and PDOP values within this closed area are smaller than the average. Conversely, outside of this enclosed area, DOP values increase with distance from the center. The optimal height range for base stations is determined to be between 175 cm and 275 cm. Additionally, a spacing of more than 300 cm between base stations yields better positioning accuracy. When arranging base stations in a square formation, superior positioning results can be achieved compared to a rectangular layout where longer sides exhibit better performance than shorter sides.
(2)
In the actual experiment, when the base stations are arranged in a square configuration with a side length of 300 cm, adjusting the height of the base stations has an impact on the positioning accuracy. Specifically, at heights of 0 cm and 275 cm, there is significant and fluctuating positioning deviation observed. However, optimal results are achieved when the height of the base stations ranges from 175 cm to 225 cm.
(3)
When the base stations are arranged in a square configuration with a height of 175 cm, the positioning effect can be influenced by adjusting the spacing between base stations. Smaller spacing leads to significantly larger root-mean-square errors at individual points; when the spacing is less than 300 cm, there is a calibration deviation of more than 100 cm within the base stations themselves, resulting in calibration failure and inaccurate positioning. Spacing equal to or greater than 300 cm provides a wider UWB accuracy range, with increased stability in positioning as spacing increases.
(4)
When the base stations are deployed in a triangular, square, and rectangular configuration with a height of 175 cm and a spacing of 600 cm, the variance of the X and Y coordinates is consistently smaller for the square configuration, indicating superior stability in positioning. Conversely, both the triangular and rectangular configurations exhibit larger deviations among individual points. Furthermore, when deployed as a rectangle, it is observed that longer sides yield better positioning accuracy compared to shorter sides.
(5)
The deviation of the midpoint within the closed graph of the base station deployment is minimized, resulting in an enhanced positioning effect.
(6)
During the positioning process, the UWB system generates discrete coordinate points in the host computer software, which can be further optimized using a Kalman filter to refine the trajectory.
(7)
The results of the two experiments demonstrate that the positioning accuracy can be enhanced and optimized by adjusting the vertical deployment height, inter-base station spacing, and geometric configuration of base stations.
In conclusion:
Different heights of the base stations: the appropriate height is between 175 cm and 225 cm.
Different distance of the base stations: spacing in the range of 300 cm and above is better.
Different shape of the base station arrangements: when the base stations are deployed as a square, the DOP is the smallest and the positioning effect is the best.
In the practical application scenario, the deployment of base stations is constrained by environmental limitations and inevitably influenced by various factors such as multipath effects, non-line-of-sight propagation, and interference from multiple sites. These factors can lead to significant deviations in positioning accuracy. Therefore, the subsequent experiment aims to investigate the impact of each interfering object within the farm on positioning accuracy based on specific deployments and establish a low-impact deployment model to enhance farm positioning precision.

Author Contributions

Conceptualization, H.H. (Huiyue Hu) and X.Y.; methodology, H.H. (Huiyue Hu) and X.Y.; software, H.H. (Huiyue Hu) and L.L.; validation, H.H. (Huiyue Hu), X.Y. and R.L.; formal analysis, H.H. (Huiyue Hu) and X.Y.; investigation, L.L. and H.H (Haibin Hu).; resources, H.H. (Huiyue Hu), R.L. and H.H. (Haibin Hu); data curation, H.H. (Huiyue Hu), X.Y. and L.L.; writing—original draft preparation, H.H. (Huiyue Hu) and R.L.; writing—review and editing, H.H. (Huiyue Hu), X.Y. and R.L.; supervision, R.L.; project administration, X.Y. and R.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

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. The data are not publicly available due to privacy concerns for the participants involved in the study.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Minghui, Q.; Fei, P.; Yu, Q. Post-pandemic Digital Economic Developments in China’s Rural Areas. Chin. J. Agric. Resour. Reg. Plan. 2021, 42, 62–71. [Google Scholar]
  2. Andersen, N.A.; Braithwaite, I.D.; Blanke, M.; Sorensen, T. Combining a novel computer vision sensor with a cleaning robot to achieve autonomous pig house cleaning. In Proceedings of the 44th IEEE Conference on Decision and Control, Seville, Spain, 15 December 2005; pp. 8331–8336. [Google Scholar]
  3. Li, D.; Chen, Y.F.; Li, X.J.; Pu, D. Research Advance on Computer Vision in Behavioral Analysis of Pigs. J. Agric. Sci. Technol. 2019, 21, 59–69. [Google Scholar]
  4. Liu, F.; Wu, W.; Liu, X.; Wang, X.; Fang, Y.; Li, G.; Du, X. Progress of computer vision and deep learning methods for pig’s identity and behavior recognition. J. Huazhong Agric. Univ. 2023, 42, 47–56. [Google Scholar]
  5. Lei, X. Design and development of pig feed formulation system based on internet of things technology. Feed Res. 2021, 44, 104–108. [Google Scholar]
  6. Wang, Z.; Yang, K.; Li, L.; Liu, J.; Liu, Y. Effect of Animal Disease Risk on Application of Digital Intelligence Technology in Large-scale Pig farms. Chin. J. Agric. Resour. Reg. Plan. 2023, 44, 65–72. [Google Scholar]
  7. Zhao, R.; Zhang, H.; Wei, Q.; Lu, J. UWB Positioning Technology and Intelligent Manufacturing Applications; China Machine Press: Beijing, China, 2020; Volume 1. [Google Scholar]
  8. Sharma, C.; Wong, Y.F.; Soh, W.-S.; Wong, W.-C. Access point placement for fingerprint-based localization. In Proceedings of the 2010 IEEE International Conference on Communication Systems, Singapore, 17–19 November 2010; pp. 238–243. [Google Scholar]
  9. Alsmady, A.; Awad, F. Optimal Wi-Fi access point placement for RSSI-based indoor localization using genetic algorithm. In Proceedings of the 2017 8th International Conference on Information and Communication Systems (ICICS), Irbid, Jordan, 4–6 April 2017; pp. 287–291. [Google Scholar]
  10. Moretto, A.; Hernandez, I.B. Indoor positioning through fingerprinting technics: How many beacons should be deployed and where? In Proceedings of the 2017 20th International Symposium on Wireless Personal Multimedia Communications (WPMC), Bali, Indonesia, 17–20 December 2017; pp. 522–528. [Google Scholar]
  11. Pan, H.; Qi, X.; Liu, M.; Liu, L. An UWB-based indoor coplanar localization and anchor placement optimization method. Neural Comput. Appl. 2022, 34, 16845–16860. [Google Scholar] [CrossRef]
  12. Pan, H.; Qi, X.; Liu, M.; Liu, L. Indoor scenario-based UWB anchor placement optimization method for indoor localization. Expert Syst. Appl. 2022, 205, 117723. [Google Scholar] [CrossRef]
  13. Pan, H.; Qi, X.; Liu, M.; Liu, L. Map-aided and UWB-based anchor placement method in indoor localization. Neural Comput. Appl. 2021, 33, 11845–11859. [Google Scholar] [CrossRef]
  14. Langley, R.B. Dilution of precision. GPS World 1999, 10, 52–59. [Google Scholar]
  15. Yuhong, L.; Ning, G.; Jianhua, L. Performance Evaluation of a Single Carrier UWB System with MSE Channel Estimation. Chin. J. Electron. 2010, 19, 150–154. [Google Scholar]
  16. Yu, M. Research and Simulation on the Ultra Wide Band Wireless Positioning Algorithms. Master’s Thesis, Ocean University of China, Qingdao, China, 2013. [Google Scholar]
  17. Li, B.; Dempster, A.G.; Wang, J. 3D DOPs for positioning applications using range measurements. Wirel. Sens. Netw. 2011, 3, 334–340. [Google Scholar] [CrossRef]
  18. Sharp, I.; Yu, K.; Guo, Y.J. GDOP analysis for positioning system design. IEEE Trans. Veh. Technol. 2009, 58, 3371–3382. [Google Scholar] [CrossRef]
  19. Guo, Y.; Li, W.; Yang, G.; Jiao, Z.; Yan, J. Combining Dilution of Precision and Kalman Filtering for UWB Positioning in a Narrow Space. Remote Sens. 2022, 14, 5409. [Google Scholar] [CrossRef]
  20. Albaidhani, A.; Alsudani, A. Anchor selection by geometric dilution of precision for an indoor positioning system using ultra-wide band technology. IET Wirel. Sens. Syst. 2021, 11, 22–31. [Google Scholar] [CrossRef]
  21. Song, Q.; Zhang, B.; Li, S. Study of Configuration Technology of Ground Pseudolite. Comput. Meas. Control 2013, 21, 743–746. [Google Scholar]
  22. Liu, C.; Gao, J.X.; Yu, Z.Y.; Wang, J. An optimal pseudolites location model of GPS/pseudolites integrated relative positioning. J. China Univ. Min. Technol. 2012, 41, 120–126. [Google Scholar]
  23. Li, H.B.; Wang, J.; Wang, C.Y. Discussion on affection factors of UWB indoor kinematic positioning. J. Navig. Position. 2018, 6, 45–48. [Google Scholar]
  24. Wang, C.; Wang, J. Study of base station layout of ultra wideband emergency positioning. Sci. Surv. Mapp. 2019, 44, 174–181. [Google Scholar]
  25. Feng, G.; Shen, C.; Long, C.; Dong, F. GDOP index in UWB indoor location system experiment. In Proceedings of the 2015 IEEE SENSORS, Busan, Republic of Korea, 1–4 November 2015; pp. 1–4. [Google Scholar]
  26. Yarlagadda, R.; Ali, I.; Al-Dhahir, N.; Hershey, J. Gps gdop metric. IEE Proc. Radar Sonar Navig. 2000, 147, 259–264. [Google Scholar] [CrossRef]
Figure 1. Coordinates of base stations when height is different.
Figure 1. Coordinates of base stations when height is different.
Applsci 14 00501 g001
Figure 2. Mesh and contour plot of HDOP, VDOP, and PDOP. (Note: In this figure, the mesh plot of DOP, the X and Y coordinates are the location of the base stations; the Z coordinate is the value of the DOP.)
Figure 2. Mesh and contour plot of HDOP, VDOP, and PDOP. (Note: In this figure, the mesh plot of DOP, the X and Y coordinates are the location of the base stations; the Z coordinate is the value of the DOP.)
Applsci 14 00501 g002aApplsci 14 00501 g002b
Figure 3. Coordinates of base stations when distance is different.
Figure 3. Coordinates of base stations when distance is different.
Applsci 14 00501 g003
Figure 4. Mesh and contour plot of HDOP, VDOP, and PDOP. Note: a-A0, a-A1, a-A2, a-A3 in Figure 3 is the base stations’ layout location. In this figure, the mesh plot of DOP, the X and Y coordinates are the location of the base stations; the Z coordinate is the value of DOP.
Figure 4. Mesh and contour plot of HDOP, VDOP, and PDOP. Note: a-A0, a-A1, a-A2, a-A3 in Figure 3 is the base stations’ layout location. In this figure, the mesh plot of DOP, the X and Y coordinates are the location of the base stations; the Z coordinate is the value of DOP.
Applsci 14 00501 g004
Figure 5. Coordinates of base stations when shape is different.
Figure 5. Coordinates of base stations when shape is different.
Applsci 14 00501 g005
Figure 6. Mesh and contour plot of HDOP, VDOP, and PDOP. Note: In this figure, the mesh plot of the DOP, the X and Y coordinates are the location of the base stations; the Z coordinate is the value of the DOP.
Figure 6. Mesh and contour plot of HDOP, VDOP, and PDOP. Note: In this figure, the mesh plot of the DOP, the X and Y coordinates are the location of the base stations; the Z coordinate is the value of the DOP.
Applsci 14 00501 g006
Figure 7. Positioning effect when the height of the base stations is different.
Figure 7. Positioning effect when the height of the base stations is different.
Applsci 14 00501 g007
Figure 8. Root-mean-square error at each point with different heights of the base stations.
Figure 8. Root-mean-square error at each point with different heights of the base stations.
Applsci 14 00501 g008
Figure 9. Variance plots for points with different heights of the base stations.
Figure 9. Variance plots for points with different heights of the base stations.
Applsci 14 00501 g009
Figure 10. Effect of different spacing of base stations and simultaneous positioning.
Figure 10. Effect of different spacing of base stations and simultaneous positioning.
Applsci 14 00501 g010
Figure 11. Root-mean-square error at each point when base station spacing is different.
Figure 11. Root-mean-square error at each point when base station spacing is different.
Applsci 14 00501 g011
Figure 12. Variance at points with different base station spacing.
Figure 12. Variance at points with different base station spacing.
Applsci 14 00501 g012
Figure 13. Effect of different shapes of base station deployment and positioning at the same time.
Figure 13. Effect of different shapes of base station deployment and positioning at the same time.
Applsci 14 00501 g013
Figure 14. RMSE at each point when the shape of the base station deployment is different.
Figure 14. RMSE at each point when the shape of the base station deployment is different.
Applsci 14 00501 g014
Figure 15. Variance at points with different shapes of base station deployment.
Figure 15. Variance at points with different shapes of base station deployment.
Applsci 14 00501 g015aApplsci 14 00501 g015b
Figure 16. Dynamic positioning experiment.
Figure 16. Dynamic positioning experiment.
Applsci 14 00501 g016
Table 1. DOP values for simulation experiments with different heights of base stations.
Table 1. DOP values for simulation experiments with different heights of base stations.
DOPTargetsabcdef
HDOPMaximum1.551.471.471.511.601.72
Minimum1.111.011.011.061.161.30
Average1.331.241.241.291.381.51
VDOPMaximum1.625.585.582.021.491.35
Minimum0.941.001.000.970.910.79
Average1.283.293.291.491.201.07
PDOPMaximum2.255.715.712.412.182.19
Minimum1.551.581.581.571.521.52
Average1.903.643.641.991.851.85
Note: Scenarios a–f correspond, respectively, to heights ranging from 0 to 275 for fixed base station locations.
Table 2. DOP values for simulation experiments with different base station spacing.
Table 2. DOP values for simulation experiments with different base station spacing.
DOPTargetsabcdef
HDOPmaximum1.651.511.491.481.471.47
minimum1.221.061.031.021.011.01
average1.441.291.261.251.241.24
VDOPmaximum1.412.022.883.774.675.58
minimum0.860.970.990.991.001.00
average1.131.491.932.382.833.29
PDOPmaximum2.172.413.133.964.825.71
minimum1.501.571.571.581.581.58
average1.841.992.352.773.203.64
Note: Scenarios a–f correspond, respectively, distance of base stations ranging from 150 cm to 900 cm.
Table 3. DOP values for simulation experiments with different shapes.
Table 3. DOP values for simulation experiments with different shapes.
DOPTargetsScenario aScenario bScenario cScenario d
HDOPMaximum2.501.482.132.13
Minimum1.181.021.061.06
Average1.841.251.591.59
VDOPMaximum14.473.778.478.47
Minimum0.990.990.980.98
Average7.732.384.734.73
PDOPMaximum14.693.968.698.69
Minimum1.901.581.581.58
Average8.302.775.135.13
Table 4. RMSE at each point with different heights of the base stations.
Table 4. RMSE at each point with different heights of the base stations.
X/YRMSE IndicatorH = 0 cmH = 75 cmH = 125 cmH = 175 cmH = 225 cmH = 275 cm
XMaximum20.8518.2223.7626.4319.4435.90
Minimum4.931.981.282.103.174.16
Average12.8910.1012.5214.2711.3120.03
YMaximum20.6821.5817.2018.6215.8739.59
Minimum3.113.132.162.942.393.02
Average11.8912.359.6810.789.1321.30
Table 5. Variance at points with different heights of the base stations.
Table 5. Variance at points with different heights of the base stations.
X/YVariance IndicatorH = 0 cmH = 75 cmH = 125 cmH = 175 cmH = 225 cmH = 275 cm
XMaximum2.293.692.732.923.126.12
Minimum1.551.341.231.661.391.63
Average1.922.511.982.292.263.88
YMaximum2.294.023.052.713.086.04
Minimum1.581.411.281.601.411.54
Average1.942.722.172.152.253.79
Table 6. RMSE at each point when base station spacing is different.
Table 6. RMSE at each point when base station spacing is different.
X/YRMSE IndicatorL = 300cmL = 600cmL = 900cm
XMaximum26.4318.4519.59
Minimum2.104.021.65
Average14.2711.2410.62
YMaximum18.6219.7221.82
Minimum2.941.761.58
Average10.7810.7411.70
Table 7. Variance at points with different base station spacing.
Table 7. Variance at points with different base station spacing.
X/YVariance IndicatorL = 300cmL = 600cmL = 900cm
XMaximum2.922.571.85
Minimum1.661.011.00
Average2.291.791.42
YMaximum2.712.551.76
Minimum1.600.990.98
Average2.151.771.37
Table 8. RMSE at each point when the shape of the base station deployment is different.
Table 8. RMSE at each point when the shape of the base station deployment is different.
X/YRMSE IndicatorScenario aScenario bScenario cScenario d
XMaximum25.7818.4527.0520.62
Minimum3.154.025.372.66
Average14.4711.2416.2111.64
YMaximum19.0119.7217.4415.51
Minimum1.301.762.941.16
Average10.1510.7410.198.33
Table 9. Variance at points with different shapes of base station deployment.
Table 9. Variance at points with different shapes of base station deployment.
X/YVariance IndicatorScenario aScenario bScenario cScenario d
XMaximum6.222.574.5910.28
Minimum1.171.010.911.93
Average3.691.792.756.10
YMaximum4.552.558.805.27
Minimum1.140.991.680.95
Average2.841.775.243.11
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

Hu, H.; Yang, X.; Liu, R.; Liu, L.; Hu, H. Study on the Deployment of Ultra-Wideband Positioning Base Stations in Pig Farms. Appl. Sci. 2024, 14, 501. https://doi.org/10.3390/app14020501

AMA Style

Hu H, Yang X, Liu R, Liu L, Hu H. Study on the Deployment of Ultra-Wideband Positioning Base Stations in Pig Farms. Applied Sciences. 2024; 14(2):501. https://doi.org/10.3390/app14020501

Chicago/Turabian Style

Hu, Huiyue, Xiaoling Yang, Renxin Liu, Limin Liu, and Haibin Hu. 2024. "Study on the Deployment of Ultra-Wideband Positioning Base Stations in Pig Farms" Applied Sciences 14, no. 2: 501. https://doi.org/10.3390/app14020501

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