Next Article in Journal
Analysis of the Impact of the “Sea Toll” Program for Seaports: Resilience and Competitiveness
Previous Article in Journal
NMR Relaxometry and IR Thermography to Study Ancient Cotton Paper Bookbinding
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Reducing GPS Error for Smart Collars Based on Animal’s Behavior

1
Department of Computer Engineering, College of Science Technology, Konkuk University, Chungju 27478, Korea
2
Department of Software, College of Science Technology, Konkuk University, Chungju 27478, Korea
3
Department of Software, Korea National University of Transportation, Chungju 27469, Korea
4
Department of Computer Information, Yeungnam University College, Gyeongsan 38541, Korea
*
Author to whom correspondence should be addressed.
Appl. Sci. 2019, 9(16), 3408; https://doi.org/10.3390/app9163408
Submission received: 18 July 2019 / Revised: 12 August 2019 / Accepted: 16 August 2019 / Published: 19 August 2019

Abstract

:
Global Positioning Systems (GPS) are successfully used in many fields such as navigation, meteorology, military tasks, mapping, virtual fencing, and more. Smart collars are currently the most convenient device for determining animal location in virtual fencing systems, however; these systems are still suffering from environmental effects and propagation in direct visibility. These types of side effects may reduce the work of GPS receivers. The current article defines a method for improving animal location accuracy using a virtual fence smart collar worn around the animal’s neck by the aid of maximum probability of movement from one point to another. The proposed approach first checks the current position of the animal, and after receiving a GPS signal from satellites it calculates the distance between the two GPS signals. Secondly, the method checks the animal’s behavior for the receiving period of the two points. Finally, the approach calculates a probability of maximum animal movement for the two-point receiving period. If the animal can pass the distance in the time frame of the two signals, then the second signal is taken as the correct position; otherwise, the point is taken which the animal could pass. Real-time animal behavior is classified using Support Vector Machines (SVM). The proposed method was verified within seven days of experiments. Consequently, the proposed approach experiments were sufficiently successful. The recreated locations from our approach appeared very close to the real point. The mean average of passed distance by the marked line decreased to 16.2, 5, 0 m for running, walking, and resting conditions, respectively. On the other hand, the unfiltered geolocations of the GPS receiver, give results significantly further from the animal’s actual position such as 148.8, 182.7, 136.2 m for running, walking, and resting conditions.

1. Introduction

Animal localization plays a vital role in monitoring and controlling animals in real-time using virtual fence applications [1]. Global Positioning System (GPS) devices obtain coordinates from internal GPS modules which monitor signals from satellites in near-earth orbit. GPS technology is designed to determine geoposition and has in recent times been extensively used in many Internet of Things (IoT) devices such as smart collars [2,3]. However, the accuracy of the positioning of the single-frequency GPS module is not sufficient for safe IoT applications in agriculture, such as intelligent farming systems and virtual fencing systems, to avoid incorrect monitoring and convenient animal management. GPS receivers embedded in smart collars are commonly low-cost single-frequency modules, and their normal location error is around 10–15 m [4,5]. These characteristics are sufficient for coarse navigation, but they are not accurate enough from a security point of view. In addition, in overcast weather and inside cites with urban canyons, the positioning characteristics deteriorate significantly.
Many methods have been proposed to increase the GPS positioning accuracy. One commonly used method is relative positioning [6]. Methods such as relative positioning, including static, fast static, kinematic, pseudo-kinematic, and kinematic in real-time, have proven the ability to improve GPS accuracy [7,8,9]. Hurm in 1989 [10] and 1993 [11] carefully studied the principles of operation, the degree of internal error as well as the methods used to reduce errors associated with GPS. Since animals of medium and large size wear GPS collars, it seems to have little effect on their behavior [12]. However, the GPS technology offered a magnificent opportunity for recording animal movements in arbitrary zones [13,14,15], use of resources and their activities [16,17].
One of the problems of studying the behavior of animals using GPS based smart collars, inherent inflationary impact of system errors in the movement of animals [18]. As a rule, GPS accuracy can be related to several aspects such as satellite geometry, atmospheric conditions, receiver or satellite errors, numerous road effects, satellite orbit errors [11], and topography, depending on the air tires or adjacent structures [19,20]. The error of the GPS signals does not make exact distance [21].
The technology of virtual fencing has allowed fast modern approaches and demonstrated technical capabilities for goats [22]. Normally, virtual fencing systems for animals use a method which combines animal behavior with GPS to develop complete virtual fencing [22,23,24,25]. Similar to physical fences, a virtual fence system provides a border for animals, but, unlike normal ones, they do not create physical barriers [26]. The perception and development of reducing GPS error in virtual fencing technology for goats are less advanced. Nevertheless, the potential of virtual fencing technology for goat grazing was demonstrated very well. A wide study is needed to correct GPS errors for improving performance of the virtual fence system for goats, determining the management of goats in their correct coordinates.
This study utilizes research results from our virtual fence project for controlling and monitoring the behavior of goats [22]. While conducting our project study, we faced several problems related to goat GPS position error. For example, occasionally, we received wrong coordinate data from the GPS module and, as a result, test goats were given electronic or sound stimuli unnecessarily.
In this study, we have purposed two objectives. First, to achieve goats’ current behavior using Support Vector Machines (SVM) which contribute to the effectiveness of individual accelerometer units [22]; and second, to demonstrate GPS error correction based on achieved real-time goat behavior. The rest of this article is organized as follows. Section 2 summarizes information about the materials and methods of the proposed GPS error filter method. Moreover, it discusses the related algorithms, which are the main reference algorithms for obtaining the complete working method. Section 3 extensively explains the experiment schedule, process, and its results; and Section 4 concludes.

2. Materials and Methods

2.1. GPS Based Smart Collars

In a previous study, we introduced the use of a smart collar, which can be worn around the neck of a goat, and for the convenience of the user, we introduced a smart virtual fence application to monitor and control the movement of goats. Communication applications “smart collar” and “virtual fence” were implemented in the form of a centralized client-server architecture, where the server component is responsible for determining the virtual fence zones using a decision-making algorithm.
Figure 1a represents the components of the center shield of a smart collar. These are Arduino Nano (Arduino, Ivrea, Italy) as a central microcontroller, XBee module (Digi International Worldwide Headquarters, Hopkins, MN, USA) for communication with the server, GPS receiver, MPU-6050 accelerometer and gyro sensors (InvenSense, Technology Dr. San Jose, CA, USA), for the stimuli it is used MP3 player (developed by the DFRobot Electronics in Shanghai, China) and high voltage electric shocker. Figure 1b illustrates a fully assembled smart collar around the neck of a goat.
We used the Adafruit GPS device to determine the current position of the goats. This device was connected to a serial port (TX1, RX0) and 3v power port. Adafruit GPS module is a high-quality GPS module capable of tracking up to 22 satellites through 66 channels. The device is able to receive up to 10 location updates per second for high speed, high sensitivity of recording or tracking [27].
The MPU-6050 was used to obtain accelerometer and gyroscope data; get the current activity behavior of the animal. The MPU-6050 devices combined a triaxial gyroscope and a triaxial accelerometer on a single chip along with an integrated Digital Motion Processor, which processed complex six-axis algorithms MotionFusion. In addition, there was a built-in temperature sensor which had an I2C bus interface for communicating with microcontrollers, such as an Arduino Nano.

2.2. Software Infrastructure

In our previous study, we implemented a virtual fence application [22] whose main task was to create virtual fences using a remote PC. This allowed us to view, monitor and track the behavior and location of goats through a wireless network in real-time and determine the deviated position of animals in the reception area. We were able to add the current GPS error correction method to the virtual fence application.
We did not limit our GPS error filter method to only specific types of animals, for example, goats; we were able to add a feature that makes our method available for all types of animals. Using our virtual fence applications, farmers can now easily choose their animal types and include a GPS error filter function for them.

2.3. Behavior Based Algorithm

To reduce GPS error in virtual fencing systems, we proposed a method which uses an animal’s real-time behavior and speed.
First, the method calculates animal position in two dimensions with signals received from the smart collar worn around the animal’s neck (as shown in Figure 2). Simultaneously, the method retains position calculation time and helps to calculate the animal’s travel speed between two consistently received GPS position data (points). Secondly, it checks animal’s behavior for two received GPS position time periods. If the animal’s behavior was “running” or “walking,” the method calculates maximum probable travel distance for the time period. The device then compares the distances between two GPS receiver points and maximum probable traveled distance. If the distance between the two GPS points is more or less than the calculated maximum probable traveled distance, the method creates a new geolocation which lies somewhere on an imaginary line between the two points received from the GPS receiver. For the other conditions, the method does the same as well. For example, if the animal’s condition is “standing” or “laying,” the method reports the last position as current.
The main components that build up the complete system are the algorithm for measuring the distance between two points on a spherical surface, the classification of behavior using machine learning algorithms and calculated destination points using a given distance and bearing from the starting point. All algorithms used are discussed in the following sections.

2.3.1. Physical Activity Classification

The physical activity classification is one of the essential techniques of the current study. The previous research classification method is used for the current study. Table 1 shows the five classified goat activity behaviors from our previous study. For an individual goat, 10-dimensional raw data acquired from the smart collar, including six-dimensional data of the accelerometer sensor: accelerometer data: x a c c x ( t ) ,   x a c c y ( t ) ,   x a c c z ( t ) , gyro data: x g y r o x ( t ) ,   x g y r o y ( t ) ,   x g y r o z ( t ) , a and the four-dimensional quaternion raw data [28]: x q u a t x ( t ) ,   x q u a t y ( t ) ,   x q u a t z ( t ) ,   x q u a t w ( t ) (they are x, y, z-axis and w-rotation amount). The quaternion plays the most crucial role in distinguishing between the five considered goat behaviors. The four-dimensional quaternion calculation supported by the I2Cdevlib Arduino library [29]; (as shown in Equation (1)).
The 10-time series were combined for classification:
X ( t ) = [ x a c c x ( t ) ,   x a c c y ( t ) ,   x a c c z ( t ) , x g y r o x ( t ) ,   x g y r o y ( t ) ,   x g y r o z ( t ) , x q u a t x ( t ) ,   x q u a t y ( t ) ,   x q u a t z ( t ) ,   x q u a t w ( t ) ]
where X ( t ) is an array of the 10-time series at a particular time sample index t .
A machine learning algorithm called the SVM classifier was used to classify goat’s activity in real-time. SVM-classification was used because it copes well with small and unbalanced data. SVM is a classifier used for classification and regression analysis tasks. It belongs to the family of linear classifiers and can also be considered as a special case [30,31]. As a result, the liner classification algorithm can be written as shown in Equation (2):
d ( w ,   x ,   b ) = < w · x > + b = i = 1 S w i · x i + b ,
where S is the number of the Support Vector, x is an object space of feature vector, w is a normal vector to the separating hyperplane, b is an auxiliary parameter. The linear classifier tends to show high performance if the feature vector is classified as linear.
However, our classification data is multidimensional. It can be better classified using nonlinear classification methods. In this case, the Kernel Trick technique was used to classify goat behavior using multidimensional data. So, in our previous study, we used the RBF kernel to classify the activities of goats [22,25]. Using the Radial Basis Function (RBF) kernel-based SVM classification, we could obtain sufficiently good results in the previous study. The total archived F-score accuracy of classification was 91%, as shown in Table 2. The accuracy of the classification was evaluated using the precision (P), recall (R), and F-score metric [32]:
P = t r u e p o s t r u e p o s + f a l s e p o s ,
R = t r u e p o s t r u e p o s + f a l s e n e g ,
F = 2 × P × R P + R .
The number of intervals from the class that was correctly classified is truepos, the number of intervals from another class that was incorrectly classified as the class is falsepos, and the number of intervals belonging to the class that was classified as another class is falseneg. The precision (also called positive predictive value) is the fraction of relevant instances among the retrieved instances, while recall (also known as sensitivity) is the fraction of relevant instances that have been retrieved over the total amount of relevant instances. Both precision and recall are therefore based on an understanding and measure of relevance [33]. The F-score is the harmonic mean of accuracy and recall, where the F-score reaches its best value at 1 (perfect accuracy and recall) and worst at 0 [22,34].

2.3.2. Distance Estimation Using GPS Data

To achieve our aim, it is required to have one more critical distance measuring technique between the two received GPS points and the distance between the maximum probable traveled distance from the last received GPS point. In general, the closest distance between the two points A ( x 1 , y 1 ) and B ( x 2 , y 2 ) calculates by the formula below:
A B ¯ = ( x 1 x 2 ) 2 + ( y 1 y 2 ) 2 .
However, this approach will not work for the simple reason that the Euclidean metric is designed to calculate the distance on the plane, and the surface of the Earth is still a figure very close to the sphere. To solve this problem, we need to turn to the frequently used algorithm called Haversine. To project the distances with higher precision, we used Google Maps API, which provides ready functions that can be used to calculate distances on the Earth surface using Haversine algorithm. The coordinates such as latitude and longitude are used as a coordinate system of Google Maps. The Haversine technique is applied to measure the length of two geolocations on the surface of the Earth, based on a 2-D geoposition. To solve many problems of navigation and mapping of small scale, the Earth is taken as a sphere (as a ball). The position of a point on the earth’s sphere is determined by spherical coordinates: spherical latitude and spherical longitude (the term “geographical coordinates” is used in cartography). To determine the distance between two points, the latitude and longitude of the first point and second points are needed. The calculations are complicated by the fact that the Earth is not an ideal sphere and its radius varies slightly. We use the average radius value, which, in accordance with WGS84, is approximately 6367.45 km, which allows is to get a result with an accuracy of 99.5%. [32].
The principle work of the Haversine method is described in Figure 3. The operation of the Haversine algorithm, demonstrates the direct distance between points as a given separate sphere. A “triangle” on the surface of the sphere is defined by great circles connecting the three points u, v, and w on the sphere, where a, b and c are the distances that must be calculated [35,36]. For any two points on the Haversine sphere of the central angle between them is calculated by the formula:
h a v ( d r ) = h a v ( φ 2 φ 1 ) + cos ( φ 1 ) cos ( φ 2 ) h a v ( λ 2 λ 1 ) ,
where h a v is haversine function, d is the central angle between two points lying on the large circle, r is the sphere radius, φ 1   and   φ 2 are the latitude of the first and second points in radians, λ 1   and   λ 2 are the longitude of the first and second points in radians [32,33].
The Haversine length-to-radius ratio sign as a d / r , on the left side of the Equation (4). To determine the distance d , it applies the archaversine (reverse haversine) or uses the arcsine function (inverse sine) [35,36]:
d = 2 r · arcsin ( s i n 2 ( Δ l a t t 2 ) + cos ( l a t t 1 ) cos ( l a t t 2 ) s i n 2 ( Δ l o n g 2 ) ) .
The smart collar of our virtual fence system was developed to transmit data at 1 Hz (a data per second). Using the above functions, we can calculate the distance which the goat can travel during 1 s. A goat’s maximum speed is 17 kph (17 kph = 4.72 mps), so the maximum possible traveling distance per second for a goat is 4.72 m. If the second point received from the GPS module is located further than 4.72 m, the system removes and creates a new point which is located 4.72 m away from the first point.

3. Experiment and Its Results

3.1. Study Area

This research was performed in a 2.6-ha meadow on a rural landscape in the central region of South Korea located at 36°56′56.8″ N 127°54′40.8″ E. The experiment ground was sufficiently large and positioned away from urban canyons, as shown in Figure 4a. This position provided the best chance to observe significant experimental results. The nearest potentially interfering buildings were 620 m distance. The research was conducted in sunny weather with a mean annual temperature of 14 °C, and recorded extremes of 9 °C and 24 °C. We chose a playground as an experiment zone, as the area’s visible borders helped define the actual path, as shown in Figure 4b. The total length of the line is 345 m, the width is 68 m, and the height is 104 m. In all field experiments, we visually observed individual goat behavior using the smart collar, (as illustrated in Figure 1a), and occasionally, series of experiments were provided on any given day. In the current research, we provided experiments in seven days.

3.2. Data Collection

We collected data for individual goat behavior such as running, walking, and resting (standing, eating, laying). For seven days, we collected data for three conditions every day (as illustrated in Table 3). The experimental goat ran and walked by the tagged line exactly. For the resting condition, the goat kept in the center of the experiment area. All data was collected from the virtual fence application by the database. The data was saved to the database as filtered and unfiltered data. Unlike earlier studies, our total number of filtered and unfiltered data was the same because our GPS error reducing method never erased error locations. Instead of erasing it, it created a new geolocation.

3.3. Analyses

The reason we conducted the experiment in seven days was to illustrate true results because GPS errors depend upon many aspects, as mentioned in previous sections. The path with GPS errors is in shown in Figure 5 for all three conditions. The results of the proposed method are compared in Figure 6.
By the images, it is difficult to determine the trajectory based on the results of positioning the conventional or proposed locations. In contrast to the proposed method, it is possible approximately get the trajectory. To quantify the error, this article considers some variables called “unfiltered bias” and “filtered bias”. The “unfiltered bias” is a dependent response variable for the distance between the consecutive GPS trajectory and the actually passed trajectory, and the “filtered bias” responses for the actual distance, units moved along the marked line marks of the smart collar and filtered GPS trajectory by the proposed method [21]:
u n f i l t e r e d   b i a s = G P S   d e r i v e d   d i s t a n c e s u r v e y e d   d i s t a n c e
f i l t e r e d   b i a s =   G P S   f i l t e r   d e r i v e d   d i s t a n c e s u r v e y e d   d i s t a n c e
A confident estimate implies that GPS measures an exaggerated distance, whereas negative values indicate that GPS data underestimates the distance [21]. In the literal sense, both cases reported a GPS error. Table 4 presents the mean average of GPS unfiltered, GPS filtered, and actual goat’s total passed trajectory distances across the line tags. The seven days experiment results of unfiltered and filtered bias are illustrated in Table 5. It shows the maximum and mean of the error passed distances among the tests. This result shows that when using the proposed method, the maximum error of running, walking, and resting behavior can be reduced from 153 to 20 m, 190 to 8 m, 162 to 0 m respectively; the average error is from 148.8 to 16.2 m, 182.7 to 5 m, 136.2 to 0 m as well.

4. Conclusions

The new proposed method for GPS error correction is applied well for virtual fence technology for goats, in this study. The proposed technique helps to improve the position accuracy of virtual fencing technologies with GPS based smart collars. The proposed method is based on animal behavior in real-time. For our current experiments, we used a smart collar from our previous study [20]. The current study method’s implementation was made technically possible with results from the previous study’s virtual fence application. Our smart collar transmits 3-D GPS coordinates and 10-D accelerometer sensor data at 1 Hz. The transmitted data is logged and received in the virtual fence application database.
In the current study, we conducted experiments over a seven-day period for the three different goat behavior activity such as running, walking, and resting (standing, grazing, laying). During the seven days of experiments, the device received several GPS signals with errors. The proposed method was capable of finding incorrect GPS coordinates and determining the accurate position information. As stated by the results of our experiment, GPS positioning accuracy has improved significantly compared with traditional methods.
With unfiltered geolocations, the average distance offset is measured by the true position of the smart collar, and the coordinates obtained from the settlers were 110–190 m. Our proposed method significantly affected the results of the mean corrected data bias and unfiltered data bias. The mean bias of the corrected data was 0–16.2 m. The bias of unfiltered and filtered data for each goat behavior are found in Table 5. Besides, the second day experiment results were visualized in Figure 5 and Figure 6.
The proposed method, however, is mainly oriented for use in virtual fencing systems. The method aids in obtaining true animal positions and reduces incidents of incorrect stimuli administration (sound, electronic, etc.).

Author Contributions

Writing—original draft preparation, software, A.M.; methodology, resources, data curation, A.M., C.W.L., H.K.K., and O.S.; conceptualization, formal analysis, M.-C.K., J.A., and H.J.O.; investigation, writing—review and editing, R.O. and H.S.J.

Funding

This research was supported by Basic Science Research Program through the National Research Foundation of Korea (NRF) funded by the Ministry of Education (2018R1D1A1B07043417).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Bishop-Hurley, G.J.; Swain, D.L.; Anderson, D.M.; Sikka, P.; Crossman, C.; Corke, P. Virtual fencing applications: Implementing and testing an automated cattle control system. Comput. Electron. Agric. 2007, 56, 14–22. [Google Scholar] [CrossRef]
  2. IoT Applications in Agriculture: Written by Savaram Ravindra. Available online: https://www.iotforall.com/iot-applications-in-agriculture/ (accessed on 3 January 2018).
  3. Muminov, A.; Jeon, Y.C.; Na, D.; Lee, C.; Jeon, H.S. Development of a solar powered bird repeller system with effective bird scarer sounds. In Proceedings of the 2017 International Conference on Information Science and Communications Technologies (ICISCT), Tashkent, Uzbekistan, 2–4 November 2017. [Google Scholar]
  4. Kaplan, E.D.; Hegarty, C.J. Understanding GPS: Principles and Applications; Artech House: Norwood, MA, USA, 2005. [Google Scholar]
  5. Yasuda, A. Aspect of GPS Technology. IEICE Trans. B 2001, J84-B, 2082–2091. (In Japanese) [Google Scholar]
  6. Arnold, L.L.; Zandbergen, P.A. Positional accuracy of the Wide Area Augmentation System in consumer-grade GPS units. Comput. Geosci. 2011, 37, 883–892. [Google Scholar] [CrossRef]
  7. Berber, M.; Ustun, A.; Yetkin, M. Comparison of accuracy of GPS techniques. Measurement 2012, 45, 1742–1746. [Google Scholar] [CrossRef]
  8. Ghilani, C.D.; Wolf, P.R. Elementary Surveying—An Introduction to Geomatics, 12th ed.; Prentice Hall: Upper Saddle River, NJ, USA, 2007. [Google Scholar]
  9. Van Sickle, J. GPS for Land Surveyors, 3rd ed.; CRC Press: New York, NY, USA, 2008. [Google Scholar]
  10. Hurn, J. GPS: A Guide to the Next Utility; Trimble Navigation Limited: Sunyvale, CA, USA, 1989; 76p. [Google Scholar]
  11. Hurn, J. Differential GPS Explained; Trimble Navigation Limited: Sunyvale, CA, USA, 1993; 55p. [Google Scholar]
  12. Rutter, S.M.; Beresford, N.A.; Roberts, G. Use of GPS to identify grazing areas of hill sheep. Comput. Electron. Agric. 1997, 17, 177–188. [Google Scholar] [CrossRef]
  13. Rodgers, A.R.; Anson, P. Animal-borne GPS: Tracking the Habitat. GPS World 1994, 5, 20–32. [Google Scholar]
  14. Rodgers, A.R.; Rempel, R.S.; Abraham, K.F. A GPS-based telemetry system. Wildl. Soc. Bull. 1996, 24, 559–566. [Google Scholar]
  15. Agouridis, C.T.; Stombaugh, T.S.; Workman, S.R.; Koostra, B.K.; Edwards, D.R.; Vanzant, E.S. Suitability of a GPS collar for grazing studies. Trans. Am. Soc. Agric. Eng. 2004, 47, 1321–1329. [Google Scholar] [CrossRef]
  16. Mourao, G.; Medri, I.M. A new way of using inexpensive large-scale assembled GPS to monitor giant anteaters in short time intervals. Wildl. Soc. Bull. 2002, 30, 1029–1032. [Google Scholar]
  17. Ungar, E.D.; Henkin, Z.; Gutman, M.; Dolve, A.; Genizi, A.; Ganskopp, D. Inference of animal activity from GPS collar data on free-ranging cattle. Rangel. Ecol. Manag. 2005, 58, 256–266. [Google Scholar] [CrossRef]
  18. Pe’pin, D.; Adrodos, C.; Mann, C.; Janeau, G. Assessing real daily distance traveled by ungulates using differential GPS locations. J. Mammal. 2004, 85, 774–780. [Google Scholar] [CrossRef]
  19. Moen, R.; Pastor, J.; Cohen, Y.; Schwartz, C.C. 1996. Effects of moose movement and habitat use on GPS collar performance. J. Wildl. Manag. 1996, 60, 659–668. [Google Scholar] [CrossRef]
  20. Di Orio, A.P.; Callas, R.; Schaefer, R.J. Performance of two GPS telemetry collars under different habitat conditions. Wildl. Soc. Bull. 2003, 31, 372–379. [Google Scholar]
  21. Ganskopp, D.C.; Johnson, D.D. GPS error in studies addressing animal movements and activities. Rangel. Ecol. Manag. 2007, 60, 350–358. [Google Scholar] [CrossRef]
  22. Muminov, A.; Na, D.; Lee, C.; Kang, H.K.; Jeon, H.S. Modern Virtual Fencing Application: Monitoring and Controlling Behavior of Goats Using GPS Collars and Warning Signals. Sensors 2019, 19, 1598. [Google Scholar] [CrossRef]
  23. Anderson, D.M.; Hale, C.S. Animal Control System Using Global Positioning and Instrumental Animal Conditioning. U.S. Patent 6,232,880, 15 May 2001. [Google Scholar]
  24. Smith, D.; Rahman, A.; Bishop-Hurley, G.J.; Hills, J.; Shahriar, S.; Henry, D.; Rawnsley, R. Behavior classification of cows fitted with motion collars: Decomposing multi-class classification into a set of binary problems. Comput. Electron. Agric. 2016, 131, 40–50. [Google Scholar] [CrossRef]
  25. Muminov, A.; Na, D.; Lee, C.; Jeon, H.S. Virtual fences for controlling livestock using satellite-tracking and warning signals. In Proceedings of the 2016 International Conference on Information Science and Communications Technologies (ICISCT), Tashkent, Uzbekistan, 2–4 November 2016. [Google Scholar]
  26. Umstatter, C. The evolution of virtual fences: A review. Comput. Electron. Agric. 2011, 75, 10–22. [Google Scholar] [CrossRef]
  27. Adafruit Ultimate GPS Breakout—66 Channel w/10 Hz Updates—Version 3. Available online: https://www.adafruit.com/product/746 (accessed on 1 February, 2017).
  28. Coxeter, H.S.M. Quaternions and Reflections. Am. Math. Mon. 1946, 53, 136–146. [Google Scholar] [CrossRef]
  29. I2Cdevlib: Arduino Library. Available online: https://github.com/jrowberg/i2cdevlib (accessed on 15 October 2018).
  30. Chang, C.; Lin, C. LIBSVM: A library for support vector machines. ACM Trans. Intell. Syst. Technol. 2011, 2, 27. [Google Scholar] [CrossRef]
  31. Fan, R.E.; Chang, K.W. LIBLINEAR: A library for large linear classification. J. Mach. Learn. Res. 2008, 9, 1871–1874. [Google Scholar]
  32. Van Rijsbergen, C.J. Information Retrieval; Butterworth: London, UK, 1979. [Google Scholar]
  33. Wikipedia. Precision and Recall. Available online: https://en.wikipedia.org/wiki/Precision_and_recall (accessed on 30 July 2019).
  34. Wikipedia. F1 Score. Available online: https://en.wikipedia.org/wiki/F1_score (accessed on 1 August 2019).
  35. Hartanto, S.; Furqan, M.; Siahaan, A.P.U.; Fitriani, W. Haversine Method in Looking for the Nearest Masjid. Int. J. Recent Trends Eng. Res. 2017, 3, 187–195. [Google Scholar]
  36. Wikipedia. Haversine Formula. Available online: https://en.wikipedia.org/wiki/Haversine_formula (accessed on 10 July 2019).
Figure 1. Virtual Fence Smart Collar: (a) illustration of the main parts of the smart collar, which are an Arduino Nano, GPS module, XBee, shocker controller, SD card reader, accelerometer and gyroscope sensor, and mp3 player; (b) completely constructed smart collar on the goat’s neck.
Figure 1. Virtual Fence Smart Collar: (a) illustration of the main parts of the smart collar, which are an Arduino Nano, GPS module, XBee, shocker controller, SD card reader, accelerometer and gyroscope sensor, and mp3 player; (b) completely constructed smart collar on the goat’s neck.
Applsci 09 03408 g001
Figure 2. The proposed algorithm of the algorithm for reducing GPS error. Research data analysis is accompanied by receiving raw data stage to classify the activities of the goat. Animal behavior is classified using the real-time SVM prediction model. Finally, the method decides to create a new correct position.
Figure 2. The proposed algorithm of the algorithm for reducing GPS error. Research data analysis is accompanied by receiving raw data stage to classify the activities of the goat. Animal behavior is classified using the real-time SVM prediction model. Finally, the method decides to create a new correct position.
Applsci 09 03408 g002
Figure 3. Spherical triangle determined by the law of haversines. u, v, and w: three point on the sphere; a: length (from u to v); b: length (from u to w); c: length (from w to v); C: the angle of the corner opposite c.
Figure 3. Spherical triangle determined by the law of haversines. u, v, and w: three point on the sphere; a: length (from u to v); b: length (from u to w); c: length (from w to v); C: the angle of the corner opposite c.
Applsci 09 03408 g003
Figure 4. The experiment ground. (a) Konkuk University playground with 2.6-ha area. (b) Line tag marked zone for the experiment.
Figure 4. The experiment ground. (a) Konkuk University playground with 2.6-ha area. (b) Line tag marked zone for the experiment.
Applsci 09 03408 g004
Figure 5. Visualized uncorrected experiment results for three activity conditions: (a) walking, (b) running, (c) resting.
Figure 5. Visualized uncorrected experiment results for three activity conditions: (a) walking, (b) running, (c) resting.
Applsci 09 03408 g005
Figure 6. Visualized experiment results for three activity conditions: (a) walking, (b) running, (c) resting. Comparison of the positioning paths between true path (yellow line), unfiltered GPS receiver data (red line), and the proposed method (green line).
Figure 6. Visualized experiment results for three activity conditions: (a) walking, (b) running, (c) resting. Comparison of the positioning paths between true path (yellow line), unfiltered GPS receiver data (red line), and the proposed method (green line).
Applsci 09 03408 g006
Table 1. Activity classes: the five goat activities described in this study were, standing, walking, running, grazing, and laying.
Table 1. Activity classes: the five goat activities described in this study were, standing, walking, running, grazing, and laying.
ClassDescription
StandingA goat is normally standing
WalkingA moving goat taking steps with head in an upright position
RunningA faster-moving goat with frequent body shakes
GrazingThe goat’s head is tilted downward and positioned near the ground. The goat is either eating or searching for pasture
LyingA goat laying down
Table 2. Accuracy of the RBF based SVM classification.
Table 2. Accuracy of the RBF based SVM classification.
Evaluation ReportStandingWalkingRunningGrazingLyingTotal Accuracy
Precision0.930.7510.910.92
Recall0.70.90.95110.91
F-score0.80.810.970.9510.91
Table 3. Table of the total collected data during seven days experiment for all three goat’s behavior.
Table 3. Table of the total collected data during seven days experiment for all three goat’s behavior.
Experiment DayTotal Collected Data
RunningWalkingResting
1107290189
2121372250
3118305221
4110314254
5125301201
6116335195
7119342210
Table 4. Mean average of GPS unfiltered, GPS filtered, and actual distances for all three goat’s behavior during seven days experiment.
Table 4. Mean average of GPS unfiltered, GPS filtered, and actual distances for all three goat’s behavior during seven days experiment.
BehaviorsGPS Unfiltered Distance (m)GPS Filtered Distance (m)Actual Distance (m)
running493.8361.2345
walking527.7350345
resting136.200
Table 5. Mean calculated errors (biases) in meters for GPS unfiltered and GPS filtered distances for all three goat’s behavior during seven-day experiment.
Table 5. Mean calculated errors (biases) in meters for GPS unfiltered and GPS filtered distances for all three goat’s behavior during seven-day experiment.
BehaviorsMaximum Error Distance (m)Mean Error Distance (m)
Unfiltered Bias (m)Filtered Bias (m)Unfiltered Bias (m)Filtered Bias (m)
running15320148.816.2
walking1908182.75
resting1620136.20

Share and Cite

MDPI and ACS Style

Muminov, A.; Sattarov, O.; Lee, C.W.; Kang, H.K.; Ko, M.-C.; Oh, R.; Ahn, J.; Oh, H.J.; Jeon, H.S. Reducing GPS Error for Smart Collars Based on Animal’s Behavior. Appl. Sci. 2019, 9, 3408. https://doi.org/10.3390/app9163408

AMA Style

Muminov A, Sattarov O, Lee CW, Kang HK, Ko M-C, Oh R, Ahn J, Oh HJ, Jeon HS. Reducing GPS Error for Smart Collars Based on Animal’s Behavior. Applied Sciences. 2019; 9(16):3408. https://doi.org/10.3390/app9163408

Chicago/Turabian Style

Muminov, Azamjon, Otabek Sattarov, Cheol Won Lee, Hyun Kyu Kang, Myeong-Cheol Ko, Ryumduck Oh, Junho Ahn, Hyung Jun Oh, and Heung Seok Jeon. 2019. "Reducing GPS Error for Smart Collars Based on Animal’s Behavior" Applied Sciences 9, no. 16: 3408. https://doi.org/10.3390/app9163408

APA Style

Muminov, A., Sattarov, O., Lee, C. W., Kang, H. K., Ko, M. -C., Oh, R., Ahn, J., Oh, H. J., & Jeon, H. S. (2019). Reducing GPS Error for Smart Collars Based on Animal’s Behavior. Applied Sciences, 9(16), 3408. https://doi.org/10.3390/app9163408

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