1. Introduction
Mobility modeling has been a growing research field since the late 1990s, due to its relevance in the development of modern wireless networks. Thanks to many up-to-date technological advances, diverse trace mobility models have been proposed based on assorted surveillance systems such as Internet of Things (IoT) networks, inexpensive microcomputers, and wireless sensors [
1]. Nowadays, tracking systems can generate a set of mobility traces without considering who is tracked and when data are collected [
2]. This means that we do not know when our whereabouts are being monitored and tracked using numerous applications [
3] that record the personal activities in our daily lives, such as telecoms operators using phones, police radar via car license plates, and public spaces by cameras. These practices happen without revealing clues that public surveillance are occurring, which makes our mobility a curse and a boon. These mobility traces become highly relevant mostly when they reliably reflect real-life movements. They succeed in modeling the complex nature of human motion, wild animals, and heterogeneous vehicles. This category requires more time to collect traces of a nature of the motion. In addition, their deployment is a troublesome task due to many reasons such as: the high expenses, required storage memories and powerful batteries. Despite this, the scientific community is persistently eager to understand realistic mobility behaviors using mobile networks where they reveal a great deal in order to validate new protocols and applications using tangible data sets (real traces). A comparison between the classical mobility traces (practical) and synthetic mobility models (based on a software program) is depicted in
Table 1.
Typically, multiple traces are collected from diverse mobility sources, such as people, animals, and vehicles. They record the movement through a number of deployed devices during specific time periods. Mobile nodes incorporate different device types to collect data sets, such as iMotes, PDAs, and GPS trackers. The information updates are transmitted to the coordinator (or sink) using various network interfaces, like Bluetooth, GPRS, and 802.1, as shown in
Table 2. This track is rarely implemented due to several constraints, such as the high deployment cost and the large number of required devices. As in the case of previously collected traces [
4], many implementation problems have occurred during deployment, such as:
hardware resets, which occur very often and which are unpredictable;
battery consumption of devices during deployment;
users stealing or not returning the physical devices. Human factors represent the main problem of equipment retrieval after experiments finish.
These issues prevent the complete extraction of a recorded data set, causing serious damage to the reliability of mobility traces. Many recorded parts are lost from the collected model, further impacting synthetic experiments of the transmission and routing between equipment [
5]. However, these models have been shown to be the most effective process to properly understand and validate new protocols, traffic applications, and propagation models to result in coherent scenarios with high similarities to real life.
Given the framework described above, in this paper, we propose an efficient collection process that overcomes the issues described and helps to control all of the aforementioned incidents. Moreover, we develop a whole localization framework that permits the collection of a real-time vehicular trace mobility model for seven months (approximately 214 days). Vehicles are localized based on the GPS [
6], where their current location can be tracked in real time or at different time instants using a map. This information is transmitted to the main server based on three diverse notification methods according to the gravity of the incident that occurred. Likewise, a set of instant notifications is received when a predefined event is triggered in order to monitor all accidental problems with the aim of correcting them promptly during deployment. This procedure facilitates the management of logistics, preventing the loss or non-recuperation of devices. Moreover, the system can generate detailed reports and statistics regarding a predefined time period with no need to wait for the test time to elapse. Furthermore, it readily extracts the recorded reports as complete traces. Hence, it eventually allows coherent vehicle traces to be obtained as represent Morocco traces.
The remaining part of this paper is organized as follows.
Section 2 describes the background and refers to some related works on trace mobility models.
Section 3 describes the implementation details based on the proposed localization platform.
Section 4 indicates and discusses the different functionalities outcomes of the Morocco traces. Finally, in
Section 5, we present the conclusions and main remarks.
2. Related Works
Researchers were constantly eager to understand realistic mobility behaviors of mobile networks. Diverse trace mobility models were collected over various time periods. In this section, we aim to present some traces that are previously implemented in a brief survey.
Cambridge [7]: In this experiment, groups of users carried small devices iMotes with them for five days; most of them are students at the Computer Lab of Cambridge University, UK. Moreover, a number of fixed nodes are deployed at the most visited places around Cambridge city. The authors anticipate people to visit various locations like pubs, shopping centers, and marketplaces. Only 12 devices are successfully tracked at the first Cambridge trace due to losing some of the experimented iMotes, as well a lot of hardware problems have occurred. Where, these problems were not detected while deployment than analyzing records of retrieved devices. Only 12 devices are successfully tracked at the first Cambridge trace due to losing some of the experimented iMotes, as well a lot of hardware problems have occurred. Where, these problems were not detected while deployment than analyzing records of retrieved devices.
Intel [7]: This data set contains users’ Bluetooth sightings in Intel Research Cambridge Corporate Laboratory for about 6 days. They were distributed amongst researchers and staff which were represented as ’interns’. However, residual devices are recognized as ’externals’. 9 iMotes are correctly collected where node 1 was steady and iMotes from 2 to 9 were mobile. But, widely of traces set only 3 days.
Toronto [8]: Researchers gathered Bluetooth traces in various urban environments with the aim of investigating the viability of a large-scale Bluetooth worm outbreak in practice. Devices were carried by students at Toronto University for 16 days. This data set was collected by activating Bluetooth on 23 Palm Tungsten-T PDAs with 16 MB of RAM and a PalmOS to scan Bluetooth devices.
ZebraNET [9]: In this experiment, the recorded data represent the movement traces regarding two real scenarios of ZebraNet deployments at Sweetwaters Game Reserve of Nanyuki, Kenya. The first experiment was in January 2004 and the second was in summer 2005. The hardware of the sensor nodes was mainly composed of a MSP430 processor, flash memory, a radio interface module, and a GPS module. The collected data set used Unix Time-Stamp format and provided detailed information of animals location.
San Francisco Taxi Trace [10]: The records obtained in this test included traces of 500 taxis in the San Francisco Bay area taken for 30 days. Each taxi is equipped with a GPS receiver which indicates the identifier, timestamp, and geo-coordinates. Cab mobility traces were provided by the Exploratorium during the cabspotting project development.
UMassDieselNet [11]: This was also a vehicular DTN trace experiement which was implemented by the UMass Amherst branch of the Pioneer Vallet Transport Authority (PVTA). The collected data represent the daily run of 40 buses on the road. A bus scans other buses 100 times per second which uses an available (discovered) 802.11b radio access point (AP) to access the media and receive incoming connections while they are in the AP coverage range. Buses in DieselNet were equipped with a desktop computer including an HDD with 40 GB storage and a GPS receiver.
These traces are collected for diverse mobility types, such as humans, animals, and vehicles. Various network interfaces are used in order to transmit information updates, like Bluetooth, GPRS, and 802.1. These record a number of devices during a specific duration where different device types are carried by mobile nodes, such as iMotes, PDAs, and GPS trackers, to collect data sets. This track is rarely applied due to several constraints, as the high deployment cost where a large number of devices are usually expensive. However, this model remains the most effective process to properly understand and validate new protocols, traffic applications, and propagation models. This results in high similarities with real-life outcomes. Meanwhile, these traces are summarized in
Table 2. In the next paragraphs, the experiments taken as a reference to compare with our proposal are briefly described.
4. Targeted Goals
This section aims to present some of the main functionalities, as depicted in
Figure 6. The implementation makes it possible to obtain complete and coherent outcomes. Based on these functions, we can monitor and administrate all deployed vehicles. This leads to obtaining a smart collection of the final recorded information. Meanwhile, these roles permit a real-time incident detection, which allow for detecting and correcting all deployment issues to further prevent them. This suggested solution makes it possible to collect an integral traces with any loss thanks to robustness of the developed framework and the important data storage.
4.1. Monitoring
After the administrator has carried out the authentication successfully, the welcoming tabbed document interface (tab) is Monitoring. It represents the first framework functionality and inspects the GPS trackers‘ motions by detecting the number of supervised vehicles in each area, the vehicle states, and the corresponding details, as indicated in
Figure 7.
Moreover, we detect deployment problems in real time and we correct framework bugs to prevent the loss of any portion of the data set. For all these vehicles, we install GPS trackers and activate the localization services. Then, we must fill in the corresponding form to add the vehicle information to the platform. These inputs lead to automatic storage in the database of our server, as depicted in
Figure 4. Each vehicle has specific information such as the brand, model, year of starting service, registration number, parking times, speed box category, recorded kilometers, and fuel type. Based on these features, the system generates an appropriate warning when a trigger event is set off.
4.2. Recording
The second available functionality is “Recording”. This feature is necessary to make us sure about the efficiency of the server, especially when performing instantaneous monitoring. We can simply fill in a time slot of a particular vehicle in order to monitor the correct traveled trajectory, as shown in
Figure 8. Moreover, the trajectory recorded in the system reports the real movement of vehicles. We can consider only specific concrete intervals or all of the recorded periods to elicit the appointed reports without stopping the deployed test bench or waiting until the experiment ends. Additionally, global or partial records can be generated, which is one of the required functionalities.
4.3. Administration
The “Administration” tab is indispensable for providing the real-time platform management process. This window allows the administrator to control all influencing contributors, so we can easily control the efficiency and the worthiness of the whole platform. Diverse administration operations are available to manage the following agents:
drivers,
vehicles,
parking lots,
customer accounts,
geo-localization zones,
notifications, and
fuel status.
For instance, the case of geo-localization zones is depicted in
Figure 9. We restricted a specific vehicle to a certain zone in order to prevent any infraction. When it leaves the assigned area, the administrator is immediately alerted in order to make appropriate decisions. This functionality is useful to monitor and track transport fleets in smart cities context by controlling their pathways to avoid any vehicle leaving the supervised area. The administration sub-tabs harmonize all of the localization tasks with the aim of detecting all deployment problems in real time. At the same time, this smart collection avoids trace losses by a continuous correction of bugs.
4.4. Alerts
The framework administrator receives warning notifications when a predefined event is triggered. These alerts may indicate that the vehicle is entering or leaving the geo-zone, speed changes, oil burning, battery consumption, low fuel level, and GPRS signal reception. All of these possible warnings are shown by default on the dashboard framework in real time. If the platform remains inactive during a predefined period, these alerts will be sent to the administrator by email or by text message (SMS) if the alert that occurred is specified as critical. Moreover, PM2 [
19] allows for flexible alert monitoring, as shown in
Figure 10.
Figure 11 shows an example where “vehicle speeding” is noticed. When the vehicle exceeds a specific speed limit, the administrator is informed by setting a warning which indicates the recorded speed and the full timing of the event. This operation is performed in real time to warn the vehicle driver about this penalty infraction on time. This alert contains a collection of useful information including the vehicle, driver, and event details, such as the conductor stamp, exact timing, latitude, longitude, and recorded speed.
All of the recorded notifications are classified by type, as shown in
Figure 12. It is worth noting that, during the whole deployment and testing time for seven months,
the absence of the GSM/GPRS signal represents 18% of all notifications,
reports about battery exhaustion correspond to 9%, and
tracker disconnection issues identify 5% of reports.
These notifications are generated periodically by default or immediately after an incident happens. These alerts are instantaneously corrected to generate a complete report thanks to the continuous monitoring, recording and administration of the tracking framework. They are drawn on the “statistics tab” depending on the filtering parameters.
4.5. Statistics
After collecting different real-life reports in the “Statistics” tab, we draw some meaningful graphs during and after the collection of traces. By analyzing these graphs, we can model the movement behaviors of the test vehicles for the whole of the experiment time or only for specific periods without stopping or waiting for the deployment time to elapse, in contrast to previous traces. These results summarize all triggered events that are predefined as alerts in the system. The testing period of the experiment started at the beginning of May 2016 and finished at the end of November 2016. This platform was operating for about seven months (close to 214 continuous days), during which time permanent monitoring, collection, maintenance, and improvement of the whole framework were carried out.
Figure 13 shows some examples of the statistics produced as follows:
The top left sub-figure indicates the number of speeding notifications received per month by a specific vehicle.
The bottom left sub-figure presents the exact distance traveled by the defined vehicle during the experiment.
The top right sub-figure shows the total parking hours per month, indicating that the tracked vehicle accumulated about 175 parking hours in August.
The bottom right sub-figure shows the distribution of notifications by type that is marked as speeding alerts for the tracked vehicle.
Based on this functionality, we can easily analyze the details of all mobility activities as needed for a specific tracked vehicle or all of them. After collecting the whole data set, we can calculate all previous features in addition to other movement information for all the vehicles or only for a particular user from the global data set collected.
Figure 14 highlights the total parking hours of all the vehicles tracked during the experiment. Recording a maximum value means that a low mobility is detected during the whole of the testing period. We note that values recorded remained high during the two first months for all the tracked vehicles. Afterwards, they decreased dramatically in August, reaching 14,040 h, and increased slightly up to 20,789 h in November. This result is inversely proportional to the vehicle’s degree of mobility, so it is important to indicate the number of driving hours recorded on mobility reports.
The statistical results demonstrate the robustness and efficiency of our real-time vehicular localization framework to generate a complete trace without losing any part of the data set. Permanent performance monitoring must be implemented to control the system and server operation. These tasks are mandatory to ensure the smoothness of the framework process. Furthermore, using PM2, we control the running framework states in real time, as shown in
Figure 15.
Thanks to the detailed information collected, an accurate value is calculated to note the average end-to-end delay between GPS trackers and the administration platform. This duration points out the whole occupied timing from the second to the fifth step in
Figure 5. Due to the continuous monitoring, improvement, and analysis of the platform performance during the collection period, we reduced the delay remarkably from 84 seconds in May to 17 seconds in November, as shown in
Figure 16. This particularity agrees with the goal of the real-time framework, which is also supported by the successful correction of all detected bugs and problems while experimenting with the software modeling.
All of the previously described framework functionalities are integrated into an additional developed mobile application, as depicted in
Figure 17. This represents the mobile version (limited options) of the framework, which is also interconnected to the main treatment server.
This application is installed for an administrator account and also for clients in order to grant the administrator with permanent monitoring of all the triggered events. All of these functions help to supervise vehicle movements in real time. When a problem arises, we correct this bug with the aim of keeping coherent and complete reports without any hardware issues, system resets, or battery consumption issues.
5. Morocco Traces
From previous experiments involving models of mobility traces, they simply distribute a number of devices within a university campus, a conference, or a stadium without any controlling system. Nevertheless, these experiments were used as they provided remarkable feedback about the performance and possible improvements. For example, they noticed the high execution cost and the fact that there was no possibility of restoring devices after suffering a problem. In addition, it was not possible to identify the intended deployment problems, which cannot be detected while the experiment.
For the proposed solution in the case of this paper, problems such as hardware resets, power consumption, and device breakdown are supervised and controlled by the administrator in real time. That is, a set of global information is continuously generated to guarantee the efficiency of the tracking server, as obviously shown in
Figure 18.
As mentioned before, our vehicle trace mobility model is entitled Morocco traces and was tested for seven months. We design the developed framework to obtain complete records that exactly reflect the real vehicular motions (real-time), solving any deployment problems (smart collection). Moreover, these traces can be further analyzed to extract a number of mobility features that affect the performance of the mobile network, such as the contact time, activity range, and visiting time. The overall information collected will contribute to obtaining and improving the mobility model. The framework is developed for vehicular mobility usage. However, it is also suitable for any other kinds of targets, such as human and animal motions. A set of reports that stores real traces is collected. Three of them are processed and interpreted at the main processing server to smooth vacant report tabs in our framework.
Figure 19 depicts them as follows:
History: This represents the globally targeted traces. These reports show a general overview that represents the main objective and is the heart of our framework. This trace generates exactly a complete trace mobility model. They define a data set that records all registered events during the whole deployment and test period. It also depicts the vehicle identifier, brand, full timing, longitude, latitude, and current speed. We obtain a coherent report with any losses due to detecting, correcting and preventing in advance the most occurred deployed problems. Moreover, all of the developed functionalities are combined in order to achieve and enhance the most effective collection strategy.
Traveling: This is a sub-report of the “Morocco traces” system, which just records the traveling trajectories to and from predefined locations and includes the details of any event.
Parking: This is a sub-trace of “Morocco traces”. It produces a log of all the information regarding the vehicle parks.
Traveling and parking reports are obtained to verify the consistency and stability of the collected data set. These reports can be downloaded as text files or visualized as statistics. A comparative summary of the parameter details of some mobility traces and our proposed trace is outlined in
Table 2.
In the deployed test, the recorded trace corresponds to 36 vehicles in the first version of “Morocco traces”. In the future, we aim to further extend our experiments using as many vehicles as possible, including heterogeneous ones. For this reason, as shown in
Figure 20, we have developed a website with the aim of attracting more companies that would allow us to manage their transport fleets. (The website is available at:
http://www.gps-maroc.ma/). An important number of mobile devices allows for deep testing and analyzing the server performances in terms of framework synchronization, speed treatment and data storage.
6. Conclusions
Up to today, several trace mobility models have already been developed in which recorded traces’ results obtained during testing phases are just extracted from the returned devices. This classical deployment strategy has several drawbacks such as equipment loss, unpredictable hardware resets, non-supervision of battery remaining power, and a large variety of problems. In this paper, we propose a novel trace collection approach that avoids the aforementioned deployment issues. Hence, we have designed and developed a complete localization environment operating in real time, which is connected to a GPS aimed at generating tracks. The deployed system provides several functionalities for monitoring, recording, alert management, reporting, and generation of statistics. This platform can be deployed for different purposes such as human mobility, animal surveillance, and vehicle localization. The system was deployed and tested during seven months, resulting in the set of results, so-called ’Morocco traces’, which provided real-time traces based on a smart collecting data process. Future research activities will focus on improving the system by adding new languages, such as multilingual capabilities, and increasing the number of simultaneous vehicle traces by extending its use to thousands of vehicles, especially transport companies to efficiently manage their fleets. This activity is aimed at promoting Casablanca as the first smart city in Africa that collects human traces.