A Conceptual Framework for Implementing a WSN Based Cattle Recovery System in Case of Cattle Rustling in Kenya

: This study proposes a framework for remote identiﬁcation and tracking of cattle movement based on wireless sensor networks (WSN), mobile communication, and unmanned aerial vehicles (UAVs). The proposed framework can be implemented for tracking cattle movement at the village level and extended to harsh terrain when recovering stolen animals in case of cattle rustling or theft. The system works by identifying and tracking the desired animal location and sending periodic location data at regular intervals to a database as well as availing the speciﬁc animal’s current location on demand through the Internet and text messages. The proposed cattle tracking and recovery system (CTRS) consists of a rumen sensor module, a WSN control unit, a Worldwide Interoperability for Microwave Access (WiMAX) gateway, WiMAX base stations, and a data center. Availing timely information about the location of the stolen animals could facilitate quick recovery of the animals while ensuring the safety of the security personnel involved in the recovery process. Speedy recovery of stolen animals also defeats the purpose of cattle rustling as the rustlers do not have the chance to use the animals for their intended purposes. The proposed system was tested through a MATLAB simulation experiment.


Introduction
The Kenyan livestock farming is mainly for food and income generation.However, it also has more significance as a symbol of wealth and status among the pastoralist communities.Therefore, there are two distinct livestock producers in Kenya, the pastoralists and the farmers.The farmers are either in subsistence or commercial cattle production.One of the main challenges facing the pastoralists is cattle rustling.The commercial cattle farmers are also faced with rampant cases of cattle theft.Cattle raiding and cattle rustling have a long history as an aspect of the traditional pastoralist culture.Cross-border cattle rustling violence is common among the Karamojong community of Uganda and the Turkana people of Kenya.In the semi-arid northern Kenya, armed cattle rustling violence is common among the pastoralist communities of Samburu, Turkana, and the Pokot.In November 2012 more than 40 policemen were killed by Turkana cattle rustlers as they sought to recover animals stolen in a violent cattle rustling conflict involving Turkana and Samburu pastoralists [1].Trying to follow animal tracks without knowing their exact location always puts the lives of the recovery personnel at risk which in most cases has resulted in a high number of military and civilian casualties.Considering the benefits and features of mobile communication, wireless sensor networks, and advancements in animal identification, we propose a framework that provides a secure and convenient way to identify and track stolen animals in areas faced with regular cattle rustling and livestock theft.
Several studies have tried to implement wireless sensor networks in animal tracking, behavior monitoring, and activity control.An implementation of wireless sensor devices to monitor the state of the animals and the landscape within a paddock has been implemented by [2], while [3] implemented virtual fences for controlling the movement of cows relative to the fence boundary for automatically herding the cows in the absence of physical fences.The studies in [2,3] concluded that new wireless sensor devices could be developed with different engineering trade-offs to existing devices and meet the needs of particular areas of applications.One usage of wireless sensor networks (WSN) in animal management that has not been explored is the application of wireless sensor networks systems in alleviating cattle rustling.The contribution of this paper is a framework for alleviating cattle rustling through animal identification and tracking in harsh terrain using mobile communication assisted wireless sensor networks.The paper is organized as follows: Section 2 discusses existing work in electronic animal identification and tracking.Section 3 defines the requirements for the proposed conceptual framework system and gives an overview of the proposed framework.Finally, Section 4 gives conclusions and discusses future work.

Animal Identification and Tracking
The concept of livestock tracking has been around for some time now.Global positioning system (GPS) and wireless technologies have over the years been used for animal tracking using technologies such as the radio frequency identification (RFID) tags [4] and GPS satellite collars [5,6].Between 1998 and2001, one million animals were electronically identified using ear tags, the stomach bolus, and the injectable transponders in the European commission through the Identification Electronique des Animaux (IDEA) project [7].The Ministry of Agriculture in Botswana uses the Livestock Identification Trace-back System (LITS), an RFID based animal identification technology to capture data on individual cattle, and stores this data in a central database [8].LITS uses rumen boluses with embedded RFID microchips [9] to trace animals with each rumen bolus coded with the owner's name, a personal identification number, the sex of the animal, the hide color of the animal and the location of the animal.This data is then uploaded to an extension officers' computer and stored on a central database in the capital city of Botswana, Gaborone.The rumen bolus is a small plastic or ceramic capsule which rests at the rumen and is inserted down the throat of an animal using a special administration tool.
For the last few years WSN has been used in monitoring the health of dairy cows [10][11][12].A multi-year study by the Commonwealth Scientific and Industrial Research Organization (CSIRO), Australia, have been investigating the use of WSN for automated livestock monitoring and control as cattle sensor networks [13].Most of these cases have used collar mounted sensory devices for implementing WSN in animal management such as the famous applications in the ZebraNet [14] and cattle sensor networks [13][14][15] or positioned sensors in the Great Duck Island [16].An experiment was conducted on an implicit routing protocol (IRP) to be used in a cost effective WSN for monitoring the health of dairy cows [17].The IRP was to mitigate the effects of animal mobility on the network performance which affects real-time data reporting through high packet loss and long delay in WSN.However, all of these experiments were done in constrained environments which are different from tracking cattle in case of cattle rustling or theft in terms of the sensor nodes used, distance travelled by the animals, and animal movements.Several readymade collars and receivers from different manufacturers are available off the shelf, but with the nature of cattle rustling, a mounted device on an animal cannot be used as it can be removed and left on the ground and the animal moved to a different location.It could also be removed and placed by the rustlers in a different location and direction to lure the recovery team away from the rustlers' track.One way to track the animals as they move would be to use the proposed approach to tracking moving targets using video sensors connected to strategically deployed nodes [18].The main challenge with use of the video sensors is that it requires them to be placed in strategic positions in a presumed path the cattle rustlers would use as they move with the animals.However, in cattle rustling, the direction and the paths taken by the raiders are not well defined nor predefined.
Animal identification is the combination and linking of the identification and registration of an animal individually with a unique identifier [19].Identification of the animal without tracking live animals is counterproductive.A traceability study done in Kenya by [20] indicated that when moving cows from Garisa to Kwale, one of the registered animals was received in Malindi (one of the checkpoints) but did not reach the intended final destination (Kwale) after it strayed.This indicates that even though the animal had the required identification rumen bolus, its location could not be identified.Tracking is the capacity to isolate the current estimated location of an animal using the identifying device.Therefore, there is the need to couple identification with tracking in cattle management.Proper tracking involves real-time identification of the animal's location to enable successful tracking of the animal.It is easy to identify the position of an animal in a WSN as the position of the sensor node, where the animal would be hosted, is known in the sensor network [21].

Proposed Framework
The proposed cattle tracking and recovery system consists of a rumen sensor module, a WSN control unit, a Worldwide Interoperability for Microwave Access (WiMAX) gateway, WiMAX base stations, and a data center.The rumen sensor module acquires the real-time location data of the animal and sends the data to the wireless control unit.The WSN Control Unit (WCU) module, which is a multi-protocol WSN coordinator, controls the rumen sensor module and transfers the data to the data center for storage using WiMAX connectivity.The Database Management System (DBMS) will be used for storing the extracted data in a database.The system's database is based on TinyDB.TinyDB is a lightweight document oriented database, which facilitates data collection and storage from the sensors using power-efficient in-network processing algorithms.Below is the proposed framework for the livestock identification, tracking and recovery (Figure 1).It is a solution for livestock identification and tracking that meets the requirements of the people and security personnel in charge of livestock protection and recovery and which provides insight into anti-stock theft network deployments.
animals is counterproductive.A traceability study done in Kenya by [20] indicated that when moving cows from Garisa to Kwale, one of the registered animals was received in Malindi (one of the checkpoints) but did not reach the intended final destination (Kwale) after it strayed.This indicates that even though the animal had the required identification rumen bolus, its location could not be identified.Tracking is the capacity to isolate the current estimated location of an animal using the identifying device.Therefore, there is the need to couple identification with tracking in cattle management.Proper tracking involves real-time identification of the animal's location to enable successful tracking of the animal.It is easy to identify the position of an animal in a WSN as the position of the sensor node, where the animal would be hosted, is known in the sensor network [21].

Proposed Framework
The proposed cattle tracking and recovery system consists of a rumen sensor module, a WSN control unit, a Worldwide Interoperability for Microwave Access (WiMAX) gateway, WiMAX base stations, and a data center.The rumen sensor module acquires the real-time location data of the animal and sends the data to the wireless control unit.The WSN Control Unit (WCU) module, which is a multi-protocol WSN coordinator, controls the rumen sensor module and transfers the data to the data center for storage using WiMAX connectivity.The Database Management System (DBMS) will be used for storing the extracted data in a database.The system's database is based on TinyDB.TinyDB is a lightweight document oriented database, which facilitates data collection and storage from the sensors using power-efficient in-network processing algorithms.Below is the proposed framework for the livestock identification, tracking and recovery (Figure 1).It is a solution for livestock identification and tracking that meets the requirements of the people and security personnel in charge of livestock protection and recovery and which provides insight into anti-stock theft network deployments.The system architecture is a three-tiered mobile infrastructure.It has the following key components: The mobile embedded sensor (MES), the WSN control unit, WiMAX gateway, WiMAX base stations, and the application data center.The MES will be inserted in the target animal using the right applicator tool.The source of power for most sensors has always been limited.One suggestion on how to address this has been to use Wireless Power Transfer solution which provides a means for electronic devices to obtain power wirelessly without any physical connectivity to the WSN nodes attached to the animals [22].The WSN control unit and WiMAX gateway will have an infinite energy source, high computation power, and large storage.The MES does not communicate with its neighbors always and it does not deliver data until contacted by WSN control unit.

Mobile Embedded Sensor Node
In most wireless sensor networks, the sensor nodes operate from fixed locations or in constrained environments, but in cattle tracking the sensor nodes should be moving with the animal hence the challenges of mobility and reliable network connectivity.Tracking mobile objects have been The system architecture is a three-tiered mobile infrastructure.It has the following key components: The mobile embedded sensor (MES), the WSN control unit, WiMAX gateway, WiMAX base stations, and the application data center.The MES will be inserted in the target animal using the right applicator tool.The source of power for most sensors has always been limited.One suggestion on how to address this has been to use Wireless Power Transfer solution which provides a means for electronic devices to obtain power wirelessly without any physical connectivity to the WSN nodes attached to the animals [22].The WSN control unit and WiMAX gateway will have an infinite energy source, high computation power, and large storage.The MES does not communicate with its neighbors always and it does not deliver data until contacted by WSN control unit.

Mobile Embedded Sensor Node
In most wireless sensor networks, the sensor nodes operate from fixed locations or in constrained environments, but in cattle tracking the sensor nodes should be moving with the animal hence the challenges of mobility and reliable network connectivity.Tracking mobile objects have been studied by [23][24][25].A mobile embedded sensor does not control its movement as it is attached or placed in the target.In animal management, it is usually tethered on to the animal [14], placed in the animal rumen [13], or inserted under the animal skin [26].Finkenzeller [27] indicates that there are four types of transponders that can be affixed to an animal, including collar mounted transponders, ear tags, injectable transponders, and rumen bolus transponders.The collar mounted transponders and ear tags can easily be removed and left on the ground as the cattle thief moves with the animals.There are also concerns with use of injectable transponders.The injectable transponders have been reported to migrate from the site of application [28].The desired sensor node for this study should have the capability to hold the identification information of the target as well as collect the data relating to the target geographic location.Therefore, we propose use of a bolus transponder as a passive sensor node to locate the animal.
Currently, the rumen bolus is an RFID based transponder for animal identification.Some have thermistors to measure the temperature and are activated to transmit acquisitions after insertion into the animal.One key advantage of using RFID is that it does not require clear line of sight for reading as with the GPS based systems.Other advantages of using RFID include low cost, its small size which means that it can be easily mounted in an animal as an implant, and its long life as it lacks the need for a constant energy supply [29].However, RFID could be unreliable in its readings, especially in cases when animals move too fast or many of them are present near the reader [29].RFID is also limited in its maximum reading distance which is just a few meters.These RFID limitations make it unreliable for cattle tracking in case of cattle rustling.Use of virtual fencing or geo-fencing such as in [30,31] is not applicable as herders usually drive animals over long distances during dry season in search of water and grass.We suggest the use of a rumen-based device that could be an improved version of what was used by [32].Use of a matchbox sized MICA2 433 MHz motes placed inside standard drug release capsules would be the most appropriate device.Even though [32] concentrates on the internal health statistics of the animals, the motes used were able to communicate over 300 m.This is an indication that if the device is supported with an appropriate localization protocol and a distant estimation algorithm, it could be used to get the current position of the animal.A uniform random deployment will be used when selecting the animals to host the motes.The nodes will not have a priori information about their location and this has to be estimated using a wireless sensor network localization algorithm.Each sensor node will normally operate in sleep mode and will be individually localized by passively receiving wireless control unit messages with minimal inter-node communications.

Gateway
The WSN control unit is a multi-protocol WSN coordinator equipped with a WiMAX gateway device.The gateway is composed of the WSN control unit and the WiMAX gateway.Several manufacturers have tried to create wireless sensor network devices which combine WSN sink coordinator and other wireless communications technologies.Such devices include the Centre Suisse d'Electronique et de Microtechnique (CSEM) WiseGSM (Global System for Mobile Communications) [33] and BeanAir BeanGateway [34] devices which combine WSN with General Packet Radio Service (GPRS).Also studies such as [35][36][37] utilize GSM/GPRS modem with embedded Transmission Control Protocol and the Internet Protocol (TCP/IP) stack to provide wireless TCP-IP connectivity to WSN for remote monitoring.This study proposes to use Waspmote gateway [38] by libelium which has a dedicated socket for solar panel input, hardware interfaces for a 3G plus GPS module, and a maximum communication range of 7 to 12 km.The Waspmote will integrate all the information received from the sensor nodes and calculate their locations and send the text data to the database using the WiMAX gateway.Multiple gateways should be deployed in the neighboring villages using a square grid in which the number of gateways will be determined a priori when planning the WSN and depending on the village size.The initial deployment should maintain network coverage and connectivity using a minimum number of gateways.The static gateway maintains a connection to the server using WiMAX connectivity.The gateways should be fitted with a renewable energy source such as solar power for longer term autonomous operation.The gateways should have a priori information about their coordinates.A schematic diagram of the gateway is shown in Figure 2.

System Operations
The target animals could be in different locations within the village.At the beginning, each gateway propagates its location coordinates to the targets within its reach.We propose that only 10% of animals will be used as targets in any target environment.The assumption is that the target animals will be evenly distributed in any groupings of the entire animal population.Each target begins its movement at a random start location.It is assumed that the animals use random walk mobility model which puts no constraint on the target velocity or moving direction.The animal moves from its current location by randomly choosing a direction and speed in which to plod within the grazing area.The average animal walking speed is 4.5 km/h [3] and there is an indication that if the animal is being rushed, it could double this speed.The data is transferred from the boluses to the gateways over single hop communication after a given period of time.The gateways store the information and only relay the information to the databases periodically at set intervals from where the users can query the data remotely over the Internet using a computer or mobile telephone.Localization of the target can also be done using multiple gateways being relocated from one location to the other on a mobile platform for real time tracking.

Animal Sensor Localization
Localization is the process of determining the position of an object in space [39].Sensors are randomly distributed across the entire target area with uniform density.All sensors have the same characteristics including the target identity and radio range.After the sensor node has been deployed, the WSN control unit assists in their localization.The localization algorithm considers direct readings from the WSN control unit to the sensor.An acknowledgment mechanism is adopted whereby the node receiving the packets sends a positive acknowledgment to the sending WSN control unit.The hop count value in the message will be incremented as soon as a node receives the message.
The animal sensor localization is done using distance vector-hop (DV-hop) [40], a distributed hop by hop positioning algorithm.The DV-hop algorithm is a low energy consumption localization scheme, from which many algorithms have been proposed over the last few years [41][42][43][44].Compared to the other range-free localization schemes, the DV-hop algorithm has the capability to handle cases in which a node has less than three neighbor anchors.This makes the DV-hop algorithm more appropriate for use in tracing the animal locations in case of cattle rustling.The DV-hop algorithm localization process has three stages: the localization information exchange phase for obtaining hop counters, average hop distance computation phase for every anchor, and estimated position phase using trilateration or maximum likelihood estimation method [45,46].
Using the DV-hop localization algorithm an unknown MES calculates its position based on the received WCU locations, the average distance per hop and the hop count from the corresponding WCU using the following three steps [46].
Step 1: The WSN control unit broadcasts a message containing its position and hop count field set to 0.

System Operations
The target animals could be in different locations within the village.At the beginning, each gateway propagates its location coordinates to the targets within its reach.We propose that only 10% of animals will be used as targets in any target environment.The assumption is that the target animals will be evenly distributed in any groupings of the entire animal population.Each target begins its movement at a random start location.It is assumed that the animals use random walk mobility model which puts no constraint on the target velocity or moving direction.The animal moves from its current location by randomly choosing a direction and speed in which to plod within the grazing area.The average animal walking speed is 4.5 km/h [3] and there is an indication that if the animal is being rushed, it could double this speed.The data is transferred from the boluses to the gateways over single hop communication after a given period of time.The gateways store the information and only relay the information to the databases periodically at set intervals from where the users can query the data remotely over the Internet using a computer or mobile telephone.Localization of the target can also be done using multiple gateways being relocated from one location to the other on a mobile platform for real time tracking.

Animal Sensor Localization
Localization is the process of determining the position of an object in space [39].Sensors are randomly distributed across the entire target area with uniform density.All sensors have the same characteristics including the target identity and radio range.After the sensor node has been deployed, the WSN control unit assists in their localization.The localization algorithm considers direct readings from the WSN control unit to the sensor.An acknowledgment mechanism is adopted whereby the node receiving the packets sends a positive acknowledgment to the sending WSN control unit.The hop count value in the message will be incremented as soon as a node receives the message.
The animal sensor localization is done using distance vector-hop (DV-hop) [40], a distributed hop by hop positioning algorithm.The DV-hop algorithm is a low energy consumption localization scheme, from which many algorithms have been proposed over the last few years [41][42][43][44].Compared to the other range-free localization schemes, the DV-hop algorithm has the capability to handle cases in which a node has less than three neighbor anchors.This makes the DV-hop algorithm more appropriate for use in tracing the animal locations in case of cattle rustling.The DV-hop algorithm localization process has three stages: the localization information exchange phase for obtaining hop counters, average hop distance computation phase for every anchor, and estimated position phase using trilateration or maximum likelihood estimation method [45,46].
Using the DV-hop localization algorithm an unknown MES calculates its position based on the received WCU locations, the average distance per hop and the hop count from the corresponding WCU using the following three steps [46].
Step 1: The WSN control unit broadcasts a message containing its position and hop count field set to 0.
Step 2: The anchor receives positions of other anchors as well as the minimum hop counts to other anchors and converts the hop count value into a physical distance.
Step 3: The unknown node location is estimated by the multilateration method using the distance estimations from at least three anchors.
Tracking seeks to identify the position of an object over time [39].Accurate and energy efficient location estimation is essential for any successful deployment and application of WSN.A received signal strength indicator (RSSI) is used to measure the distance between mobile node and WSN control unit.Each sensor node is within range of at least one WSN control unit and receives its transmission from the WSN control unit.
For each WCU a.
Send "Awake" plus "Hello" messages to all MES in the range For MES set M = {m 1 , m 2 , m 3 , . . ., m n } Initialize MES Set MES status = "active" The format of WCU "Hello" message is {wsid, x i , y i , hop count} 3. MES: Ignore higher hop count values from the same WCU, storing only the minimum hop count to each WCU. 4.
MES: Increase the hop counter by 1 and pass the message to the neighbor.

5.
Repeat until each MES has received communication from all the WCUs in which it is within their radio ranges and all the MES in the network have the minimal hop count to every WCU.6.
MES: Update HC_Table with (X i , Y i , hop i ) where (X i , Y i ,) is the coordinate of WCU i and hop i is the minimum number of hops between the MES and the WCU i .

Computation Phase: To Calculate Estimated Distance between MES and WCU
(a) To calculate the per-hop average distance

1.
The WCU uses the minimum hop count values to other WCUs to estimate the average size of one hop within the network using Equation (1).
where x i , y i and x j , y j are the beacon coordinates of WCUs i and j, h is the minimum number of hops between beacon WCUs i and j.

2.
WCU broadcasts its average hop size to the network using controlled flooding to the entire network.

3.
Each MES receives the hop sizes from the nearest WCUs and saves the first received message and transmits it to the neighbors.
(b) To calculate the physical distance between MES and WCU MES computes its estimated physical distance to the WCUs using the received hop size using Equation (2).
where hop mw is the minimum hop-count between the unknown MES m and the WCU w , HopSize i is the average hop size that the MES m obtained from the nearest WCU w .

Localization Phase: Coordinate Calculation
Using the estimated physical distance in computation phase the MES calculates its coordinates using the maximum likelihood estimate of trilateration using the algorithm derived in [31] as Equation (3).
px ´x1 q 2 `py ´y1 q 2 " d 2 1 px ´x2 q 2 `py ´y2 q 2 " d 2 1 . . .px ´xi q 2 `py ´yi q 2 " d Equation ( 3) is then transformed to into a linear equation in [31] as Equation ( 4) which is used in computing the coordinates of the unknown node.

Localization Accuracy
Localization accuracy is determined by how close the estimated position of a node is close to the actual coordinates of the unknown node.An algorithm is deemed to have a good localization accuracy if the node's estimated position is very close to its actual coordinates.Most range free localization algorithms are prone to location accuracy errors.The error between the actual and estimated MES coordinates of a node can be calculated using Equation (5) as the localization error.
The positioning efficiency of the algorithm is the average location error of all the nodes relative to the radio range of the nodes and can be calculated using Equation (6).

Average Location Error
where error 1 represents the average value of localization error and R represents communication radius.
The smaller the accuracy value, the more accurate it the algorithm is.

Simulation and Results
To evaluate and validate the performance of the animal sensor localization, thorough simulation tests were done.MATLAB Simulink software was used as the tool to build the simulation environment.The simulation parameters are given in Table 1.The simulation results are given as average localization error of 100 experiments.In a given population of 2000 animals, 10% of the animals would be hosting the animal bolus sensors.In Figure 3, 200 sensor nodes are placed randomly in a deployment area.The deployment area of the wireless sensor network is considered as 1000 ˆ1000 m with 200 randomly deployed sensor nodes as depicted in Figure 3.

Simulation and Results
To evaluate and validate the performance of the animal sensor localization, thorough simulation tests were done.MATLAB Simulink software was used as the tool to build the simulation environment.The simulation parameters are given in Table 1.The simulation results are given as average localization error of 100 experiments.In a given population of 2000 animals, 10% of the animals would be hosting the animal bolus sensors.In Figure 3, 200 sensor nodes are placed randomly in a deployment area.The deployment area of the wireless sensor network is considered as 1000 × 1000 m with 200 randomly deployed sensor nodes as depicted in Figure 3.The distribution of the nodes is shown in Figure 4.The anchors and nodes are randomly distributed with some placement error.There are 200 sensor nodes and 11 gateways deployed.The placement of the anchor nodes has a high impact on how effective the localization and identification of the current animal location as the nodes are in motion most of the time.The localization errors, Figure 5, are represented by the ratio of the Euclidean distances between estimated coordinates and actual nodes coordinates, scaled to the communication radius R. Localization error as a function of the radio transmission range is given for the random scenarios in Figure 5. Considering a ranging error of 25 m, the nodes are localized to a very good accuracy.The average error is also found to be 8.8 m. the position estimates obtained are exceedingly good.Every additional unknown node will behave like a beacon assisting other unknown nodes.The average error in the position estimate of unknown nodes in Figure 5 is also reduced to 7.51 m.
It is indicated in [47] that the quantity of beacons and their placement reduce the localization error.The more proportionate placement of beacons lowers the localization error while increasing the number of beacons also reduces the localization error [47].To reduce the localization errors, the  The distribution of the nodes is shown in Figure 4.The anchors and nodes are randomly distributed with some placement error.There are 200 sensor nodes and 11 gateways deployed.The placement of the anchor nodes has a high impact on how effective the localization and identification of the current animal location as the nodes are in motion most of the time.The localization errors, Figure 5, are represented by the ratio of the Euclidean distances between estimated coordinates and actual nodes coordinates, scaled to the communication radius R. The distribution of the nodes is shown in Figure 4.The anchors and nodes are randomly distributed with some placement error.There are 200 sensor nodes and 11 gateways deployed.The placement of the anchor nodes has a high impact on how effective the localization and identification of the current animal location as the nodes are in motion most of the time.The localization errors, Figure 5, are represented by the ratio of the Euclidean distances between estimated coordinates and actual nodes coordinates, scaled to the communication radius R. Localization error as a function of the radio transmission range is given for the random scenarios in Figure 5. Considering a ranging error of 25 m, the nodes are localized to a very good accuracy.The average error is also found to be 8.8 m. the position estimates obtained are exceedingly good.Every additional unknown node will behave like a beacon assisting other unknown nodes.The average error in the position estimate of unknown nodes in Figure 5 is also reduced to 7.51 m.
It is indicated in [47] that the quantity of beacons and their placement reduce the localization error.The more proportionate placement of beacons lowers the localization error while increasing the number of beacons also reduces the localization error [47].To reduce the localization errors, the  Localization error as a function of the radio transmission range is given for the random scenarios in Figure 5. Considering a ranging error of 25 m, the nodes are localized to a very good accuracy.The average error is also found to be 8.8 m. the position estimates obtained are exceedingly good.Every additional unknown node will behave like a beacon assisting other unknown nodes.The average error in the position estimate of unknown nodes in Figure 5 is also reduced to 7.51 m.
It is indicated in [47] that the quantity of beacons and their placement reduce the localization error.The more proportionate placement of beacons lowers the localization error while increasing the number of beacons also reduces the localization error [47].To reduce the localization errors, the proposed system could further be enhanced using the Grey Wolf Optimization algorithm which to provides better results in finding the location of unknown nodes [48].

Conclusions and Future Work
Like many other studies which have tried to integrate WSNs with mobile communication technologies such as RFID [49,50] studies, this paper has proposed a WSN based multi-technology framework.WSNs have been widely used for wildlife monitoring and tracking of different [51].This paper describes our ongoing work in use of WSN to facilitate quick and safe recovery of stolen animals hence defeating the purpose of cattle rustling.There are plans to implement this conceptual framework in a test environment and eventually extend the experiment to the field.The test environment could also be extended to have some of the animals host special MES and to collect data using WiMAX or GPRS/GSM to the Internet.A module for data collection using UAV that visits some static nodes in the grazing fields as applied by [52] could also be used to enhance the proposed system.The systems could also have the UAV gather the sensed data in the animal sensors so as to reduce the battery power consumption and bandwidth usage as proposed by [53].The boluses could also be used in monitoring the health of the host animal, hence offering multiple benefits to the host animals.The proposed framework would be a great improvement on the current preferred methods including ear tags, hot-iron branding, and ear notching [54].We also aim to develop extension to the proposed framework.
priori information about their coordinates.A schematic diagram of the gateway is shown in Figure2.

Figure 2 .
Figure 2. Block schematic of the gateway.

Figure 2 .
Figure 2. Block schematic of the gateway.

3. 4 . 1 .
Initialization Phase: To Obtain the Minimum Number of Hops between the MES and Each WCU Obtaining the Minimum Hop Count 1.

Figure 3 .
Figure 3. Node Distribution (Random) at a given time.

Figure 4 ,
Figure 4, shows the graphical representation of node placement and the identification of unknown node positions with respect to the anchor nodes.One hundred and eight nine sensor nodes are deployed with 11 anchors, the estimated distance values away from 3 different anchors are sufficient for an unknown node to calculate its location.If the network is continuously working, the animals which are within the range of the network could be tracked by identifying their current position.

Figure 3 .
Figure 3. Node Distribution (Random) at a given time.

Figure 4 ,
Figure 4, shows the graphical representation of node placement and the identification of unknown node positions with respect to the anchor nodes.One hundred and eight nine sensor nodes are deployed with 11 anchors, the estimated distance values away from 3 different anchors are sufficient for an unknown node to calculate its location.If the network is continuously working, the animals which are within the range of the network could be tracked by identifying their current position.

Figure 4 .
Figure 4. Node distribution with Beacons, where * represents the anchor node and ▪ represents the unknown node.

Figure 5 .
Figure 5. Localization error for the 200 unknown nodes.

Figure 4 .
Figure 4. Node distribution with Beacons, where * represents the anchor node and ‚ represents the unknown node.

Figure 4 .
Figure 4. Node distribution with Beacons, where * represents the anchor node and ▪ represents the unknown node.

Figure 5 .
Figure 5. Localization error for the 200 unknown nodes.

Figure 5 .
Figure 5. Localization error for the 200 unknown nodes.
following notations are used in the description of the algorithm: WCU: WSN control unit with GPS Total number of WCUs in the network = {w 1 , w 2 , ..., w n } WSID (WSN coordinator number): Unique Waspmote ID (Sink ID) MES: Animal rumen sensor Total number of MESs in the network = {m 1 , m 2 , ..., m z } MESID (mobile embedded sensor number): Unique animal rumen sensor ID.HC_Table (Hope Count Table): Maintained by MES and holds data on the minimum number of hops to any three nearest WCU.Fields in this table are WSID, X i , Y i , hop i .AS_Table: (Animal sensor table) Maintained by the WCU.It contains information about the coordinates of the localized MES.Fields in this table are AID (Animal number), X i , Y i , coordinates of MES.P_Table (Location or Position table): Maintained by the WCU.It contains information about the node path.Fields in this table are AID, DIST (Distance travelled by the node), VEL (Velocity of the node), X, Y (the node's last known location).