A WIRELESS DATA ACQUISITION SYSTEM FOR CATTLE BEHAVIOR MONITORING IN ZOOTECHNICS E-SCIENCE

(


INTRODUCTION
There are several factors that interfere with the animal productivity, such as genetics, nutrition, bioclimatology and environmental factors.Thus, farmers and scientists need to acquire data that will enable to understand how animals respond these factors in order to provide strategic decisions in the management and improvement of production (Arce et al., 2009).
In this conception several people study the way to collect data from animals in displacement.Technology based in electronic instrumentation has contributed to analyze data provided by animals.
Electronic radio frequency identification (RFID) of animals presents many advantages within the agribusiness administration, especially in behavioral studies, and is a considerable improvement over visual identification.The greatest benefits of using this technique in animal tracking include a reduction of operational cost, since less herd handling is necessary, and a decrease of incorrect data readings from a margin of 6% to less than 0.1% (Eradus and Jansen, 1999;Geers et al., 1997).
Considering these advantages, it is possible to identify the necessity of software that will allow scientists and producers to manage herd behavior and routines through systems and information-based technologies, such as wireless communication; intelligent agents embedded in software; and electronic identification for monitoring, tracking, and controlling production, consequently supporting strategic decision making (Tech, 2008).
Another important aspect included in this analysis is the increase in the needs of herd control and management, which has significantly influenced the creation of norms and standards in tracking and monitoring the production process to ensure the quality of the final product purchased by consumers.
The electronic identification and traceability, therefore, supply data systems with reliable data regarding property and animals that is essential for planning activities and better coordinating and managing the production chain (Machado and Nantes, 2002;Zhong-fu et al., 2008).
The monitoring activities of animals, still demand interest to develop equipment for data collection.The wireless sensor network research advances have enabled the application of this technology in retrieving data from animals and their employment was evaluated by Kettlewell et al. (1997) and Silva et al. (2005).
The wireless sensor network increase the precision of the acquired data, allow the automation of the tracking areas and minimize infrastructure costs.
In this concepts could include the e-Science idea, which allows the creation of a database with relevant information about animal experimentation.This idea makes possible the sharing and processing of ubiquitous information in the academic and scientific environments for studying and analyzing improvements in cattle breeding (Tech et al., 2010).
According to Lican et al. (2003), e-Science can be defined as the global collaboration of basic science areas through sharing research results and discussing ideas in more specific and effective ways.
To approach this work, a novel system for monitoring and collecting animal data through the Web was developed, enabling the emergence of Zootechnics e-Science by creating a way to store data on a central server and to track a herd or any animal in the monitored experiment or production without the need for containment of the animal.
The objective of this work was to develop software and hardware for a data collection system using wireless sensor network through of an e-Science Zootechnics for data management via the Internet.

INFRASTRUCTURE
There was implemented an experimental infrastructure where an initial test experiment was conducted.
The sample experiment employed the following criteria: 1. Number of animals -6. 2. Number of mobile radio base stations (MRBS) -6.

HARDWARE
The equipments used in this system was developed using fixed and mobile network devices to monitor animals in experimental area.
In this work were utilized two equipments, one based in a mobile network attached to the animals and used to collected data and transmit to the fixed base station.This equipment is responsible to transfer the data to a central service.
The mobile radio base station (MRBS) was attached to the animals and their circuit can be viewed in the figure 1 and the figure 2 shows an animal equipped with this kind of device.
The system used in this application allows the manager to track the animals in the monitored area also collect data and transmit them to a fixed radio base station (FRBS) that store and send the data provide by MRBS to a central server.The figure 3 illustrates the circuit board of FRBS.
Also, was used a wireless IP camera that allows a scientist to view the area under study or the monitored herd, facilitating interaction whit the experimental unit.The figure 4 illustrates the camera.The Float Base Sensor Network (FBSN) are responsible for routing data from the wireless sensors attached to the animals or from the FRBS to the central server that storing the data and subsequently processing it.
The data flow to the central station occurs through the FRBS infrastructure distributed in the tracked area as shown in figure 5.
In this system the distribution of the FRBS was implemented using the system described in Arce et al. (2009).This model allow to have better allocation of FRBS in monitored area, because the software analyze the area and calculate the quantity of antennas necessary to collect data from animals distributed in the space.
The figure 5 was obtained from a simulator developed to achieve the optimization of the antenna distribution in order to allow greater coverage with respect to the monitored area and animals.
The mobile radio base stations (MRBS) collect data from the animals and then send it using radio frequency modulation to the central server trough the FRBS.Finally, the acquired data is stored in the central server using the supervisor software.
To facilitate sensor network management, the (FBSN) proposed by Silva et al. (2005) was used for the optimization and increase in efficiency of the data acquisition system by determining the proper data path from the MRBS to the FRBS.Thus, this protocol manages the sensor network and the way in which the requested data from an animal outside the FRBS infrastructure coverage reaches the central server.The protocol randomly selects a mobile sensor node (another animal carrying a MRBS device) to create a bridge between the requested node and the FRBS infrastructure (Silva et al., 2005).

ANIMAL EXPERIMENTATION
Tests have been performed to examine  the acquisition, storage, and transmission of data between the MRBS and FRBS in order to analyze the functionality and performance of the system.
The figure 6 shows the experimental setup using a camera attached in the FRBS.
In figure 2 is possible to see the equipments coupled to the animals, where each equipment contains sensors for data acquisition.
The system was programmed to effectuate collections of EEG signals at a frequency of 120 Hz and temperature from the animals at intervals of 1 (one) minute.The animals were released in the experimental area and the data were collected at intervals of 15 minutes.

SUPERVISOR SYSTEM
The monitoring and data collection software (e-LAFAC System) was developed in C++ language using the Borland® C++, Builder Professional Version 6.0 environ-ment.The web application was developed using PHP, Java, and ASP languages.The MySQL Database, Object Oriented Programming (OOP), and Object Oriented Analysis (OOA) were also used.
The e-LAFAC software was structured in six packages to include all of the functionality of the system, as can be seen in figure 7.
The idealized domain's model for the wireless sensor network module can be seen in figure 8.
This model represents the entities involved in the process of data acquisition that occurs through the communication between the mobile equipment (sensors carried by the animals) and the FRBS.The WSN entity represents the sensor network responsible for acquiring and communicating data to the FRBS (Tech et al., 2010).
The complete system of e-LAFAC, including all processes is illustrated in figure 9.
This system enables managers to collect  Once the data is stored in a database, the system allows the information to be extracted through the management and decisionmaking software; this system is referred as Zootechnic e-Science, and it enables the analysis and abstraction of a hidden pattern through the studies developed by professionals involved in the activity (Machado, 2000).
The database, therefore allows the distribution, integration, and development of high performance solutions based on the information and decisions that can be extracted (Berson and Smith, 1997).

RESULTS AND DISCUSSIONS
The experiment made it possible to verify the efficiency of the sensor network and the sensors' functionality.Some tests of biometric data acquisition were made directly from some animals of a registered experiment.For a better understanding of possible data to be collected can cite the temperature and electroencephalogram (EEG).The data was transmitted through an FBSN infrastructure, which has responded to all requests satisfactorily.
The sensor reading is accomplished through the temperature recorder, which is a register of 12 bits of access for reading.To collect the temperature should read the last two bytes.
The figures 10, 11, 12 e 13 illustrate the communication realized by station fixed and mobile in the data collected.
The command package of transmitted telemetric data from the FBS to MRBS is shown in figure 10.
The figures 10 and 11 represents a telemetric data package obtained during the experiment, identifying the FBS and MRBS used in the temperature requests and the animals involved.Each key is handled via software, identifying the FBS and MRBS that were used to complete the data acquisition tasks, including compiling the data gathered from each requested animal.
To clarify further the protocol used in the communication packet represented in figure 11 for monitoring the temperature of the animal the figure 12 shows a decomposed fragment of the received package.
Another example of data obtained in the experiments is shown in figure 13, in this figure is shown the telemetric data acquired from the animals during the experiment and that allows analyzing the behavior of the animal during the experiment.
In tests of communications between FRBS and MRBS were not detected failures of communication for distances under 20 meters.
Another performance that was held in relation to protocol FBSN that responsible   for the transformation of station mobile in station temporary that has the ability to collect data from other animals and transmit the data to the fixed station requestor.This procedure was tested when the animals were not within the coverage area of FRBS the FBSN protocol was effective in collecting data through MRBS and transmitting the data to the FRBS.Then, the system was capable to reach the animals that were outside the FBS coverage area through the network of mobile sensors, using the FBSN.
During the test request data from FRBS problems of collision were observed for data concerning the simultaneous responses of MRBS.To solve this problem an algorithm TDMA, responsible for managing the response time of mobile stations in different time intervals.
The application of collision was studied with transmission range of the prototype.This interval is 600 ms for two bytes of data and de 5,6 s referrer to time of activation of the communication system.The probability of collision (P collision ) between two transmitters can be calculated by equation 1.
P collision = 600 ms/5.6 s= 0,107 Another event in the experiment was studied in relation to use of IP cameras that was coupled with the data acquisition system for viewing the experiment environment provided good interactivity between the researchers and the experiment, since there was no need for the researcher or professional to be present at the time of data collection.Figure 14 show the remote image of herd displacement in the experimental area.
The system also allowed the digital video recording of various experiment fragments, which was generated by the camera attached to the first FRBS.
These films and the biometric data acquisition can be made upon request or can be scheduled by the system manager,  The e-LAFAC web management system is illustrated in figure 15.
The users of this module have access to experiments and can view real-time images from the registered experiments upon request to the tracking module.Therefore, this system provides an easy way of monitoring and tracking animals.Upon request from the management system, the animal may be located and its biometrical data can be acquired by the system through the FBSN infrastructure responsible for data interchange with the MRBS nodes.
Another characteristic of the system is the possibility of data acquisition in natural conditions, because the equipments are coupled to the animals at the start of the experiments and no longer requires animal handling, reducing the level of the animal stress during the experiment.

CONCLUSION
The results show that the possibility exists to track animals via the internet, in real time, using computational techniques  and advanced concepts in the management of data through the transmission and reception of data online, computer simulation, and e-Science, and can be used to improve the experimental setup.The developed system is fully functional, efficient, flexible, and user-friendly, facilitating interaction and data interchange between the professionals involved with the system and the availability of results to the academic community, thus showing that the ease of interaction with the management system via the Web to control and monitoring of data collection.