Introduction
The traditional way of collecting and managing the data in behavioral field studies has been a tedious and laborious task. It requires the marking and monitoring of arthropods in the field along with the manual entry and management of the data about marked insects, feeders and experiments. Moreover, it becomes extremely complex, when the ecologists have to estimate solar positions and timings without any GPS system in remote and wild regions. In field studies monitoring of arthropods requires an easy to handle application, monitoring movement as well as behavioral parameters. A desktop application, installed in a laptop may not be a reliable solution, due to humid, warm and uncertain weather conditions, especially in deserts. For this, coupling modern database technology with a smart phone application can provide a strong, user-friendly tool to adopt1.
Several beneficial applications have already been developed to improve the field of ecology e.g. animal and plant georeference phenological recording2, crowd-sourcing3,4, gearing community developmental research5 with scientific approach6, collecting data in the field with a GPS system7 or a GIS system8. Despite some existing useful technological solutions in the field, we found some gaps that still need to be addressed. For instance, there is no specific smart phone or tablet application available for optimized monitoring of desert ant species. Effective desert ant monitoring requires an application with an efficient data management system and the ability to estimate solar positions and timings without a GPS or GIS system.
We offer a thoroughly developed generic solution which can easily be adapted to investigate behavioral parameters in other organisms such as honey bees and fruit flies and is hence made freely available for such efforts. The application was originally developed and optimized for monitoring a desert ant species, Cataglyphis fortis, a social insect, which mainly uses a polarized skylight based compass and path integration for orientation and homing9–11. In addition, olfactory cues are used close to the nest entrance12.
In areas inhabited by Cataglyphis fortis (salt flats in North African deserts) –the lack of prominent visual landmarks means that ants mostly rely on celestial cues. High temperatures and an unpredictable distribution of food force the ants to make long-winded search runs to then return in a straight path back to the nest13. The high level of complexity in orientation and extreme environmental conditions requires novel tools to monitor the ant’s behavior in any easy to use fashion that allow production of accurate data on foraging runs and homing with relation to solar time, solar azimuth, time of the day, identification of individual ants and other parameters.
A large amount of computational research has been performed with regard to behavior studies, for instance in artificial intelligence14 and different approaches have been proposed e.g.15–27. However, the specific field experimental paradigm related to skylight compass orientation leads to different kinds of information where an optimal, easy-to-handle tool and database has not yet been established. Without any swift and effectual technological solution, the experimentation process may become very complex and time consuming, as the observer has to do many tasks at one time e.g. managing information about the running experiment, food at feeders, marking of the ants, separating registered and unregistered ants and observing the continuous change in the current time of the location, solar time, solar zenith and azimuth angle.
To cope with this, we propose a new product line architecture (PLA) based scientific solution, the Ant-App-DB; a user friendly, smart phone and tablet application, helpful in efficient management of experimental data including location, date, time, geographical measurements, feeders, registered and unregistered ants28. We also present another new multi document interface (MDI) desktop application Dataplus; that enables quick data transfer from the smart phones exported database file and conversion into the Microsoft excel format for further data analysis.
The major reason for developing the smart phone application is to have a user friendly way of managing experimental processes along with data sharing. Moreover, it is also worthy to take advantage of the advanced mobile computing and service provision of this era, which offers small sized devices (easy to carry, usable worldwide and affordable), embedded with extra durable (rechargeable and replaceable) batteries, internal and external memory cards and most of all temperature resistance with the ability to withstand extreme conditions such as those found in deserts where laptops or other computational devices can experience problems.
The following sections of the manuscript explain the methodology, architected software and database designs, and implementation with modular description of the application.
Methods
Ant-App-DB is a well-developed application, following the principles of three layered Butterfly29,30 software development model towards scientific software engineering (SSE), integrating formal Unified Modelling Language (UML)31,32 perspectives and incorporating Human Computer Interaction (HCI) design patterns.
The overall software engineering process of the Ant-App-DB is well planned, as initially the possible number of requirements were gathered and discussed, abstract application designs were architected, and mockup designs of graphical user interface (GUI) were constructed following a brain storming session by the authors and other colleagues. Implementable designs (use case, database, dataflow, work flow, system sequence, class and components) were then drawn based on the finalized functional requirements, the most suitable technologies (both software and hardware) were chosen, comprehensive prototype development was performed and the end product was successfully deployed and tested in-house.
The conceptual architecture of Ant-App-DB (Figure 1) is divided into five different modules: Mobile System, Database, NOAA, Personal Computer and Export Excel Format. ‘Mobile system’ is the smart phone application to be used in the experiments on the field, ‘Database’ is the embedded data management system in the smart phone, ‘NOAA’ is an integrated module in smart phones to estimate solar timing and angles using different astronomical algorithms recommended by the National Oceanic and Atmospheric Administration.

Figure 1. Ant-App-DB Conceptual Architecture.
This figure shows the conceptual architecture of the Ant-App-DB application, which consists of five main components: mobile system, database, solar estimations using recommended algorithms by the National Oceanic and Atmospheric Administration (NOAA), personal computer and exporting data in Microsoft Excel format.
The personal computer module uses the desktop application (Dataplus) to extract data from the smart phone database and then converts into the Microsoft Excel format.
Implementation
The designed and implemented methodology is explained in the following UML notation and semantics for use case, activity, dataflow, system sequence, class, component and database (entity relationship) diagrams (Please see details in the Supplementary material).
The activity work flow (Figure 2) starts with the main GUI of the application (describing the available options provided to the observers), which is further categorized as three different processes: administration, experimentation, and solar estimation. Administration offers a secured access to the authorized users/observers for deleting or creating backups of the existing records in the internal or external storage locations, which then can be exported, reused and shared. Experimentation allows users to manipulate and manage information related to experiments, feeders (optional), registration of ants and ants to be used during experiments. Moreover, it also offers an additional interface (Quick Ant) to fasten the experimentation process and presents stored results in tabular form. The solar estimation process allows users to approximate the solar time and azimuth angle using any given (valid) date, time, UTC time zone, longitude and latitude. Finally, the data (SQLite database) can be exported from the smart phone application to a personal computer and then using Dataplus can convert data into the Microsoft Excel sheet format.

Figure 2. Workflow of Ant-App-DB.
This figure shows the application’s activity workflow, which starts with the Main interface with four categorized options: Close, Administration, Solar Estimation and Experimentation. Choosing Close (default return option in almost all Android based smart phones), user can exit from the application. Using Administration an authorized user can delete or backup the data and via Solar Estimation user can calculate different solar timings and angles. Experimentation option allows user to enter and manage the information related to the Experiments, Feeders and Ants. All application’s data is stored in internal storage with sequential access, which then can be exported to the personal computer and using Dataplus can be converted in Microsoft Excel format.
As shown in the component diagram (Figure 3), Ant-App-DB is an Android operating system based application (tested using a Sony Xperia Z1 smart phone and the Android SDK based emulator). Eclipse Integrated Development Environment (IDE) was used for the entire smart phone application development using Java programming language, XML, Android SDK and SQLite database for embedded database scripting. The Dataplus module was developed in C-Sharp programming language in Microsoft dot net framework.

Figure 3. Components of Ant-App-DB.
This figure shows wiring of the component of the Ant-App-DB. It consists of four major components: IDE (with five sub-components: Android SDK, Java, XML, SQLite DB, Eclipse), Personal Computer (PC), Smart Phone, Tablet PC and Microsoft Dot Net Framework (including C# programming language).
Following the designed sequence of the application, the implemented source code is divided into two sections: GUI and the logic of the program. The designed GUI (8 horizontal and 8 vertical pages) are implemented in XML and the main logic of the application is implemented in Java programming language.
Data management. To manage the application’s data, we designed a normalized entity relationship model and implemented this in SQLite database management (please see Supplementary material for details).
The Ant-App-DB is divided in to six major interlinked GUIs: Main, Experiments, Ant Feeder, Registration, Ant and Quick Ant. The main GUI of the application can be accessed via a white image (an ant on a white background) marked by a red line (Figure 4a). It has six important options leading to six different GUIs. The green computer button navigates to the Experiment’s interface, the yellow bell button directs users to the Feeder’s interface, the orange pyramid button routes to the Ant interface, the red twisted button provides a connection to the Quick Ant interface, the blue earth button proceeds to the Approximate Solar Calculations and the button with the image of a man in a suit is linked to the Admin interface.
The Experiment’s interface (Figure 4b), is the first and the most important module of the application, where experiment-related information needs to be entered and managed. This module asks the user to provide information about the name of the experiment, the date and time of the experimentation and any additional notes. Furthermore, it asks the user to provide geographical information about the location of the experimentation which includes the latitude, longitude and UTC time zone. It allows the user to give positioning information in degree and/or minutes. The user can update existing information by editing, delete with reference to the automatically generated ID and view the stored information in tabular form.
The Ant Feeder’s interface (Figure 4b) manages information about the used feeders during experimentation. It is important, but optional. In the GUI ‘Experiment’, the user can update Feeder’s existing information by editing, delete with reference to the automatically generated ID and view the stored information in tabular form. The stored data using Experiment and Feeder GUIs is presented in Figure 4(c).
The ‘Registration’ interface (Figure 4d) is another very important module of the application. It can only be accessed from the Ant’s interface and is used to register the ants before experimentation. It asks the user to give information (names, numbers) about used (marked) ants and to select the experiment (from the list of the experiments). Furthermore the user can update existing information by editing, delete with reference to the automatically generated ID and view the stored information in tabular form.
The Ant’s interface is divided into two modules: Ant and Quick Ant (Figure 4d). The major difference is the availability of the options, as the Ant interface allows the user to select registered ants with feeder, as well as provides options to perform data manipulation. However the Quick Ant allows the user to only select the name of the Ant from the registered ant’s list. Both interfaces have in common the provision of an additional notes field and the automatic extraction of the information (from database) about associated experiments. Note helps the user to save any additional information and experiment information to help in getting the geographical details (latitude, longitude and time zone) to calculate, save and manage the solar time and azimuth angle. The main reason for dividing Ant section into two different modules is to help speed up the experimentation process. The stored Ant and Quick Ant’s results are shown in Figure 4(d).

Figure 4. Graphical User Interface (GUI) presentation of the Ant-App-DB.
Figure 4(a) is the Android based smart phone’s graphical user interface (Sony Xperia Z1). It also presents the main graphical user interface of the application with 6 important buttons leading to 6 different interfaces. The green computer button navigates to the Experiment’s interface, yellow bell button directs to the Feeder’s interface, orange pyramid button routes to the Ant interface, red twisted button leads to the Quick Ant interface, blue earth button proceeds to the Approximate Solar Calculations and button with a man in a suit image goes to the Admin interface. Figure 2(b) is the Experiment and Feeder’s interface, where experiment and feeder-related information is entered, managed, deleted and viewed. Figure 2(c) shows the successfully inputted experiment and feeder’s data in the database. Figure 2(d) presents the Registration, Ant and Quick Ant graphical interfaces, where unregistered Ants can be registered and their visit related information can be managed into the system. Moreover it also successfully inputs Ant’s data in the database.
Solar estimations. The solar estimation is a very important section of this application, as it increases the practical value of experiments in extreme conditions, especially since there is no internet available in deserts, and the use of printed tables is time consuming. Therefore, it is nearly impossible to compute solar time and azimuth angles manually (by use of tables) in the field at each marked insect’s visit to the feeder. These calculations normally have to be done afterwards in time consuming sessions.
The solar estimation module works independently, as well as in integration with the experimental data management system. Using different astronomical algorithms33–35 it estimates approximate Gregorian Day Number, Decimal Day, Decimal Day of the Year, Fractional Year, Equation of the Time, Declination, Solar Time Offset, Solar Time Solar Zenith Angle, Solar Hour Angle, Solar Azimuth Angle and Solar noon. For any registered ant and its visits to the feeder, it will automatically extract the information about latitude and longitude from the associated experiment. Current date and time is entered automatically and saved with the information about solar timing and angles.
The user gives information about latitude and longitude, adding manual or automatic date and time information. The current Gregorian calendar day number is calculated:
Next fractions of a full day are considered:
Both are combined for the decimal day of the year:
The Fractional Year uses PI (3.14) and hour (current time in hours):
Now the equation of time and declination are calculated:
Solar time offset and solar time are estimated:
Using solar zenith angle and solar hour angle (ha) the azimuth angle is estimated:
Finally, the solar noon is calculated:
The workflow of the solar estimation module starts with the user given information about the latitude and longitude with manual (by the user) or automatic (from system) date and time information. At first the day of the year is estimated, then decimal day of the year, then Fractional Year, then Equation of Time, then Solar Noon Time, then Declination, then Solar Time Offset, then Solar Time, then Solar Hour Angle, then Solar Zenith and Solar Azimuth Angle. At the end all results are presented in textual format (Figure 5).

Figure 5. Sequential Process of Solar Calculations.
This Figure presents a sequential process for the solar calculations, where almost each process’s estimated output directly or indirectly used as the input in the calculations of the following process.
The obtained results match well with the results produced by the calculators provided by or linked with the National Oceanic & Atmospheric Administration (NOAA) (99.99% accurate Solar Time and 99.8% accurate Azimuth Angle, please see attached supplement material for more details).
The online NOAA solar calculation is however not always accessible (as is the case in desert ant observation) and time-consuming to implement (not all necessary steps are readily apparent from the NOAA web site) and consult afterwards. Our main aim was to have an easy-to-use, stand-alone application to monitor accurately the behavior of the ant together with positional and behavioral data and directly import all calculations and observations in a custom-made database.
Data administration. The administration module of the application provides two major options: clearing or deleting records and creating backup of data. Only authorized users can delete the records of Ants, Registrations, Feeder and Experiments (individually or all at once), by entering a security key into the system. The generated backup of the data is stored in the external (e.g. SD card) or internal storage location of the smart phone or tablet, which can be later copied, exported and reused. The exported file’s name is based on the following structure: Ant-App-DB then current date and time in the mobile system, which helps in preventing duplication or replacement of data that has already been backed up (please see Supplementary material for more details).
Dataplus. Dataplus is another important module of the application which helps observers in transferring the data from the smart phone application’s generated SQLite database file into Microsoft Excel format, for future use, analysis, sharing and backup using a personal computer.
Dataplus (Figure 6) is a desktop MDI application, designed and developed following the concepts of the Butterfly Model29 in C-sharp programming language. The application is very simple to use and install, but can only be configured using a Microsoft Windows platform.

Figure 6. Graphical User Interface (GUI) presentation of the Dataplus.
Figure 3 show that the data is exported from Ant-App-DB in SQLite database file, which is loaded in to the Dataplus module by clicking the small Ant icon button, and can then be converted into Microsoft Excel format by pressing the Excel icon button. The button with the snowflake icon is to remove the data.
Operation
Ant-App-DB is very simple to use and install but can only be configured on Android based smart phones and tablets, while Dataplus is a desktop application that can only be configured on a Microsoft Windows platform (preferred OS version: 7). Installation of Ant-App-DB is a two step process. The application can be configured and installed on smart phones and personal computers, following the instructions in the Supplementary material.
An example operational workflow of Ant-App-DB and Dataplus is presented and briefly explained in Figure 7. As shown in the Figure 7a, the observer is required to first run the application and access the different modules of the application using the main GUI.
The most important steps are to give details about the experiment (Figure 7b), registered ants Figure 7c and feeders Figure 7d. Before starting the experiment, the observer can also estimate the solar position and timings using Approximate Solar Calculation module (Figure 7f).
Later, during the experiment process, the observer is only required to run the module Quick Ant (Figure 7f), select each marked ant at its visit and press the button ‘Plus’ sign. The module Ant (Figure 7g), also offers a similar option to Quick Ant but it is recommended to use Quick Ant to avoid any unnecessary clicks etc. The results are stored in the created database, which the observer can view those (e.g. Figure 7h).
The results data can be deleted or backed up as well using module Admin (S-Figure 21i), which can be copied to the personal computer and converted in to the Microsoft Excel format (Figure 7k) using Dataplus (Figure 7j).
Discussion
We have tested and validated the Ant-App-DB application by successfully executing and performing available tasks e.g. entering and storing data using the Experiment, Feeder and Registration Interfaces modules. We have also tested and validated the deleting and backing up of data using the Admin module, as well as different solar estimations using different input values (date, time, latitude, longitude and time zone). Moreover, we have compared the estimated solar results with NOAA.
The app has the capability to handle multiple users and to synchronize in real time between those users. A real time backup is another important feature. It is possible to extract, share and combine the experimental data generated during one or multiple experiments by one of the multiple users using different smart phones. The data can then be exported into Microsoft Excel format for further editing and analysis.
In future, this application can also be enhanced by adding more computation and data management features to assist the observers during experiments e.g. linking to the service (if available) of GPS to get highly accurate geographical positions, sharing data using internet service (if available), and searching data using natural language based queries. Based on the observer’s feedback we can also improve the GUI and other features.
Several of Ant-App-DB’s features compare favorably with other currently available solutions (e.g. Etholog36, JWatcher37, Nolduss EthoVison38, Cybertracker & Animal Behavior39) for effective and efficient insect monitoring such as2–8. The most significant advantages are that it does not require any GPS and/or GIS systems, can be used on any Android based device without internet service, allows Subscriber Identity Module (SIM) card and external SD card to be used to manage the experiment’s data and enables estimates of solar positions and timings. Additionally, unlike other applications, it provides a desktop application which helps in extracting the data from the smart phone’s database and converting it to Microsoft Excel formats for further analysis and sharing. Moreover, Ant-App-DB is more user friendly that other applications as it offers a ‘One Click’ operation during the experiments at the field. Only a few steps are needed to adapt the software for other arthropods or migratory animals. For more extensive changes to the configuration a software engineer is needed. For instance if one wants to monitor flight time the application needs the integration of a suitable tracking module. This is easily integrated into the modular system (see Supplementary material) and the system is configured such that other observational modules can be easily integrated once properly programmed and tested.
Conclusions
Ant-App-DB couples a database and database conversion tool with direct access and data input using a smart phone application. We have used the application in the field and have found it to be a user friendly database tool developed for behavioral research on Cataglyphis fortis, managing experimental data and calculating observation data such as solar timing and position monitoring. However, all features, software code and database as well as Dataplus application are sufficiently generic to be easily adapted to other field monitoring studies on arthropods (e.g. on honey bees, fruit fly etc.) or other migratory animals. The Ant-App-DB is available to interested non-commercial users free of charge.
Comments on this article Comments (0)