Next Article in Journal
Reconfigurable Hybrid Resonant Topology for Constant Current/Voltage Wireless Power Transfer of Electric Vehicles
Previous Article in Journal
Modified U-Shaped Resonator as Decoupling Structure in MIMO Antenna
Previous Article in Special Issue
A Real-Time Decision Platform for the Management of Structures and Infrastructures
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Predicting Car Availability in Free Floating Car Sharing Systems: Leveraging Machine Learning in Challenging Contexts

1
Department of Control and Computer Engineering, Politecnico di Torino, Corso Duca degli Abruzzi, 24-10129 Turin, Italy
2
Interuniversity Department of Regional and Urban Studies and Planning, Politecnico di Torino, Corso Duca degli Abruzzi, 24-10129 Turin, Italy
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Electronics 2020, 9(8), 1322; https://doi.org/10.3390/electronics9081322
Submission received: 1 August 2020 / Revised: 13 August 2020 / Accepted: 14 August 2020 / Published: 16 August 2020
(This article belongs to the Special Issue IoT Technologies for Smart Cities)

Abstract

:
Free-Floating Car Sharing (FFCS) services are currently available in tens of cities and countries spread all over the worlds. Depending on citizens’ habits, service policies, and road conditions, car usage profiles are rather variable and often hardly predictable. Even within the same city, different usage trends emerge in different districts and in various time slots and weekdays. Therefore, modeling car availability in FFCS systems is particularly challenging. For these reasons, the research community has started to investigate the applicability of Machine Learning models to analyze FFCS usage data. This paper addresses the problem of predicting the short-term level of availability of the FFCS service in the short term. Specifically, it investigates the applicability of Machine Learning models to forecast the number of available car within a restricted urban area. It seeks the spatial and temporal contexts in which nonlinear ML models, trained on past usage data, are necessary to accurately predict car availability. Leveraging ML has shown to be particularly effective while considering highly dynamic urban contexts, where FFCS service usage is likely to suddenly and unexpectedly change. To tailor predictive models to the real FFCS data, we study also the influence of ML algorithm, prediction horizon, and characteristics of the neighborhood of the target area. The empirical outcomes allow us to provide system managers with practical guidelines to setup and tune ML models.

1. Introduction

Carsharing is among the most innovative and sustainable ways to support mobility in Smart City contexts. It allows car reservation via mobile app and self-service rental for short trips. In Free-Floating Car Sharing (FFCS) Systems, cars can be picked up and returned in any place thus enabling one-way trips [1]. Moreover, cars are promptly available for other users at the end of the rental.
Although recent studies have shown a limited impact of the presence of carsharing on private car ownership [2], the diffusion of FFCS services has allowed for achieving significant environmental benefits [3] thanks to CO 2 savings, to overcome urban barriers such as the limited dedicated parkings [4], and to provide a segment of the population with enhanced accessibility and mobility options [5].
A key aspect in FFCS service provision is the availability of cars in proximity to the user demand point. In fact, if a user experiences that cars are not likely available in its neighborhood at the desired time point, she will probably lose faith in FFCS service reliability and give up soon on using it [5]. Such a reliability constraint is partly in contrast with the inherent imbalance of the spatial vehicle distribution across different city areas since, in most cases, car positioning is mostly dependent on the customers’ habits [6]. Service providers have tried to tackle this issue by designing ad hoc relocation strategies [6,7,8], where system operators periodically relocate cars based on the current demand, and pricing policies [9,10], to encourage users to pick-up/return cars from/to specific areas. Still, estimating short-term car availability within a restricted urban area is currently an appealing yet open research issue.
The increasing availability of FFCS usage data has fostered the use of data-driven approaches to modeling both car availability and user demand [11]. They leverage Machine Learning techniques to forecast the number of vacant cars in a restricted urban area. The added value of ML techniques is in their capability to model complex, nonlinear trends in the historical levels of area occupancy. However, the complexity to retrieve and prepare usage data, to setup, to train, and to apply the predictive models, poses the question of whether and in what conditions these particular models are actually necessary to produce accurate predictions.
This paper aims at answering the aforesaid question by exploring the spatial and temporal contexts in which regression models provide significant performance improvements compared to simpler linear predictors. To this purpose, we present a general-purpose framework to analyze historical FFCS usage data and to predict short-term car availability in restricted urban areas. The framework is able to automatically infer good practices for system operators, indicating in which contexts ML is likely to be effective, under which conditions, and in the other situations which simpler models operators should apply.
The framework analyzes the historical car occupancy levels acquired in different urban areas. Each historical level is associated with a specific context, described by a detailed spatial and temporal description (e.g., business area on weekdays at lunchtime) and enriched with meteorological information. For each context, the framework explores a variety of solutions, both ML-based and not, to predict the target variable (i.e., the future occupancy levels). The tested solutions vary also in terms of prediction time horizon (e.g., predict the occupancy level in the next 2 h), ML algorithm, and a priori knowledge about the neighborhood areas. The empirical outcomes produced by the analytical session provide, in a semi-automatic way, operators with a set of good practices suggesting the solution that is most likely to be effective for each context.
We conducted an experimental campaign to validate the effectiveness and usability of the proposed approach in the case of the Car2Go system in Berlin. The results have shown the presence of three main conditions: (i) dynamic situations, where per-area occupancy levels frequently vary according to non-stationary trends (e.g., on weekdays in the early morning in areas with fairly high car demand). In these particular cases, leveraging ML provides significant benefits since baseline models hardly predict the next occupancy levels; (ii) flat situations, where car mobility is rather limited thus baseline models are competitive against ML-based approaches; (iii) mixed situations, where the clear trend is not emerging. In the latter case, univariate ML-based models (ignoring the information about the neighborhood of the area) provide a good trade-off between model simplicity and effectiveness.
The contributions of this work can be summarized as follows:
  • A formalization of the short-term occupancy level prediction problem in the context of FFCS systems.
  • A theoretical and empirical analysis of various regression-based solutions.
  • A framework comprising all the analytical steps necessary to identify the best practices in occupancy level forecasting.
  • A set of context-aware guidelines summarizing the most relevant outcomes achieved by the analysis of different spatial, temporal, and functional contexts.
The rest of the paper is organized as follows. Section 2 compares the present study with the related literature. Section 3 thoroughly describes the presented methodology. Section 4 summarizes the experimental results achieved on real FFCS usage data. Finally, Section 5 draws conclusions and discusses future lines of work.

2. Related Work

The analysis of FFCS usage data have been extensively addressed in literature. For example, to support system managers and operators, a relevant effort has been devoted to the identification of relevant service usage patterns and user profiles [1,6,12,13,14,15,16,17]. An example of FFCS service characterization is given in [1]. The authors have studied the temporal and spatial factors influencing service demand. They analyzed the booking rates in Car2Go Berlin and Car2Go Munich over a 2-year period (i.e., from November 2011 to September 2013). The data exploration allows managers to identify the contexts (weekday, time slot, city area) with fairly high booking rates. Morency et al. [12] applied the established k-means clustering algorithm to identify groups of users with similar habits in terms of weekly and daily rental frequencies and traveled distance. Similarly, the work proposed in [13] studies the influence of inter-urban car sharing systems on users’ mobility habits, while authors in [18] analyzed the difference in usage between different car-sharing systems in Vancouver and authors in [19] evaluated the relationship between car ownership and FFCS service usage.
Understanding users’ habits is preparatory to shape services and to plan maintenance activities such as relocating vehicles [6,7,8], fleet management policies [20], place charging stations for electric vehicles [21,22,23], and adapt pricing policies to the current needs and usage trends [9,24]. This paper is not focused on service characterization and optimization. It aims at identifying the most effective strategy to predict the number of cars available within restricted urban areas. Since the best predictors are associated with specific spatio-temporal contexts, the proposed approach can be deemed as complementary to established characterization methods (e.g., [1,12]).
The increasing availability of historical usage data related to various mobility services has prompted their use to forecast future occupancy levels, e.g., taxi services [25], bike sharing [26], and car sharing [11,27]. Ratti et al. [25] analyzed taxi usage data acquired in New York to predict the number of vacant taxis in a given area and daily time slot. A specular analysis of bike sharing system data has been carried out in [26], where the authors have exploited the concept of neighborhood of a given area. In both studies, occupancy level predictions were performed by ad hoc regression models trained on context-specific data. In [27], the authors studied how to predict the car sharing usage in a city exploiting car sharing and socio-demographic data. Unlike [27], here we compare the usage of different multivariate ML solutions to predict the car availability in different urban areas.
In our previous work [11], a preliminary attempt to perform short-term predictions in FFCS car availability has been made. We classified the candidate predictive features, designed the data-driven methodology, and briefly summarized the analytical steps of the Machine Learning pipeline. However, based on the preliminary results reported in [11], the actual need to train complex ML models does not clearly emerge in all the analyzed contexts because baseline strategies appeared to be competitive when stationary trends arise. To leverage ML in FFCS usage data analysis, the present study models, explores, and identifies the contexts in which ML-based predictors perform significantly better than baselines. To the best of our knowledge, except for [11], this is the first attempt to forecast the number of free floating cars in each area of a city by means of multivariate regression models trained on historical data.

3. Methodology

The presented methodology is depicted in Figure 1. It entails the following steps:
  • Data acquisition, collection, and enrichment: the GPS positions of the cars of the FFCS system are acquired and stored at a given sampling rate. The acquired measurements are enriched with contextual descriptors including spatial and temporal information, meteorological conditions, and presence of Point of Interests.
  • Spatial stratification of the city and creation of the contextualized data models: The urban area is spatially stratified into a grid of disjoint cells and each cell is characterized by the series of occupancy levels. Sampled data are clustered into groups according to the underlying context of generation in order to separately analyze FFCS usage data acquired in different scenarios.
  • Training of contextual models: Prediction models are trained on each contextual data set separately for each area. Models include both Machine Learning-based algorithms and baseline methods. ML-based strategies consider multivariate data describing (i) a static neighborhood of the target cell including spatially close cells, (ii) a dynamic neighborhood including cells whose correlation with the target one based on trips is higher than expected, or (iii) exclusively the target area (i.e., cell-specific data model). Baselines assume stationary occupancy levels trends, predicting the last or the average occupancy levels over a bounded time window.
  • Model assessment and definition of context-aware guidelines: The effectiveness of the models in predicting the occupancy levels in the near future is assessed on a test sample. According to the outcomes achieved in different contexts, a set of shared guidelines could be provided to the system managers.

3.1. Data Acquisition, Collection, and Enrichment

Free Floating Car Sharing (FFCS) Services track car movements across urban environments. To study car availability within restricted city areas, we acquire, store, and analyze FFCS usage data. More specifically, we first collect data about car bookings, which include rentals and parkings. Then, since the main purpose of the present study is to study short-term car availability within restricted urban areas, hereafter we will focus the analysis on the number of parked cars while neglecting data about actual rentals.
Let B be the set of bookings. A booking b B is characterized by the car plate (which is the car identifier i d ( b ) ), origin/destination positions ( o ( b ) and d ( b ) ), starting/ending time stamps ( t s ( b ) and t e ( b ) ), its time duration ( t d ( b ) = t e ( b ) t s ( b ) ), its haversine distance [28] ( h d ( b ) = h a v e r s i n e ( o ( b ) , d ( b ) ) ), and by the fuel consumption ( c ( b ) ).
Similar to the data model previously proposed in [21], a booking b B is classified as a rental if the corresponding measurements clearly indicate that the car has moved across the city. To discover rentals, the following empirical conditions are verified: (i) the travelled distance is significant, i.e., 100 m < h d ( b ) < 40 km, (ii) the booking time duration is acceptable (2 min < t d ( b ) < 2 h), and (iii) the fuel consumption associated with the booking is above zero ( c ( b ) 0 ). We employ this filter to consider only one way trips within the operative area, discarding (i) bookings where the car did not move from the cell as the user cancel the reservation before using the car, (ii) maintenance operations that cause long lasting trips in which we cannot track the car location, and (iii) refueling carried out by the operator.
Starting from the rental dataset, we compute parking dataset to know the cars availability in the city in any given moment. Starting from the rental dataset, we compute its complementary information i.e., the parking event. Having two consecutive bookings b and b + 1 for the same car, we check if the destination position d ( b ) is the same as the origin position o ( b + 1 ) , if so we record the parking event p. We enforce this check since through the previous filter we discard some bookings and since we may have some missing data due to a data acquisition failure. Each parking p P [ P B ] is characterized by the car identifier ( I D ( p ) ), the location ( o ( p ) ), and by the starting/ending times ( t s ( p ) and t e ( p ) ).

3.2. Spatial Stratification of the City Map

Spatial stratification of urban areas consists of dividing the space into areas to study the spatial heterogeneity of an observed phenomenon, i.e., understanding the extent to which the observations of the considered phenomenon are unevenly distributed across the areas [29,30]. Examples of previous applications of the aforesaid approach are given in [31,32,33,34].
Our goal is to study the FFCS car movements across the urban environment. Since users are mainly interested in checking car availability within a restricted area, we use a grid to partition the city map into a set of disjoint squared cells of size 500 m × 500 m. The use of spatial stratification is established for coping with spatial data. Assuming that the user is already in the cell, with the adopted cell size, any car within the cell is at walking distance. Grid cells are mapped to parking data according to the GPS coordinates.
Let G be the n × m grid and let C 11 , , C n m be the identifiers of the corresponding grid cells. Without loss of generality, hereafter we will consider the grid cells as representative urban areas. However, the presented methodology can be trivially extended to arbitrary topologies.
Hereafter, we will consider Berlin as representative city because its FFCS service has the largest fleet in Europe. Figure 2a shows the grid defined on top of the city map of Berlin, while, in Figure 2b, the grid is overlapped by a colored heatmap showing the distribution of the rental departures in the operative city area. The values in the heatmap are normalized with respect to the maximum observed value, i.e., the zone having the highest number of rental departures. Interestingly, the heatmap highlights many highly popular cells, where it is very likely to have temporary car unavailability. The most popular cells are located within a relatively large perimeter, indicating that they are very attractive for users. The cell with the highest number of rentals includes the international airport, which is the source and destination of a significant number of car travels.

3.3. Data Enrichment with Contextual Information

Citizen demand of innovative services in Smart City environments is known to be related to their spatio-temporal context of use [35]. To enrich the data model with contextual information for each cell, we also consider the following external metadata M :
  • Temporal metadata ( M t i m e ): calendar data descriptors extracted from starting and ending times, i.e., date, weekday (Mon–Sun), hour of the day (0–24), 3-h daily time slot (e.g., from 6:00 a.m. to 9:00 a.m.), weekday, holiday/working day.
  • Weather metadata ( M w e a ): meteorological data associated with the cell at the starting/ending times, i.e., temperature, humidity, wind speed,
  • Spatial metadata ( M s p a c e ): descriptors of the cell location in the city map (e.g., city center, suburbs, external hub), and
  • Functional metadata ( M f u n c t ): descriptors of the main activities carried out in the cell based, for instance, on the presence of Points of Interests (e.g., restaurants, subway, and railway stations, airports) within the cell.
Each cell can be characterized in relation to the aforesaid metadata facets, which jointly contribute to characterize incoming and outgoing car travels for the target cell. More specifically, (i) the temporal context indicates when the prediction is performed, such as in a weekday or during the weekend. It is relevant to capture multi-resolution temporal trends in the analyzed data. (ii) The weather context denotes the meteorological conditions observed during the car travels. The idea behind is that the weather conditions in the urban area may affect the user habits thus influencing car rentals (e.g., users tend to use more the car when it rains). (iii) The spatial context describes where the cell is located, since neighbor cells can impact on arrival and departures from the target cell. (iv) The functional context describes what is the main activity carried out in the cell. For example, business and residential are examples of functional metadata values, which can be further specialized as workplaces and living houses, respectively. As previously discussed in [36,37], the POIs available in the cell are particularly suitable for describing car rentals within a cell.
Below, we will report some examples of functional metadata descriptors as well as a selection of representative cells in Berlin annotated with them. The selected cells are highlighted in the heatmap shown in Figure 3.
  • business (e.g., cells 25–30): workplace mainly occupied by headquarters of companies. The example use case for this category is a cell in Berlin including the headquarters of a company offering services such as real estate consultancy and insurance and a train station.
  • catering and entertainment (e.g., cells 26–28): this area is characterized by a high density of services such as restaurants, pubs and hotels.
  • mixed functional area (e.g, cells 31–33): this area characterized by many bar-restaurants, shops, and offices.
  • transport hub (e.g., cells 0–45): this area is mainly devoted to a transport hub (e.g, airport).

3.4. Formalization of the Prediction Contexts

Since our goal is to predict the number of parked cars available at a certain time point within a specific cell, we first need to define the context in which the prediction will be performed. Then, we will build the data model tailored to the target cell and context, which will be used for prediction purposes.
Let T be the time period used to learn past trends in FFCS usage data and let t 1 , , t k be a sequence of k consecutive sampling points of time in T. For the sake of simplicity, t k is assumed to be the current sampling time, while t 1 , , t k 1 are past time points in T. We will denote as occ( C i j , t s ) [ 1 i n , 1 j m , 1 s k ] the occupancy level of cell C i j acquired at time t s . The prediction task entails forecasting the occupancy levels of the cell in the near future. We will denote as prediction time t p [ t p > t k ] the point of time for which the prediction is made. The gap between current and prediction time δ = | t p t k | is usually denoted as prediction horizon.
The context of prediction for the target cell C i j is a combination of descriptor values from the metadata set M reported in Section 3.3. For example, a spatio-temporal context C ( M t i m e , M s p a c e ) may combine temporal and spatial information. It may include FFCS usage data acquired from cells located in the city center during the weekend. The former context can be further specialized by considering only the cells including restaurants and cinemas C ( M t i m e , M s p a c e , M f u n c t ).
Defining the context of prediction is crucial for filtering out FFCS usage data that are not worth including in the data model. For example, the past car usage data acquired during the weekdays at lunchtime is probably not suitable for predicting the occupancy level of a cell at midnight during the weekend.

3.5. Context-Specific Data Model

The data model consists of the past occupancy levels of the target cell acquired in the reference time period T and stored into a unique repository. The underlying assumption is that past and current cell’s occupancy levels are likely to be correlated with the future ones, as car movements within the urban area are expected to show periodic trends.
Since the occupancy levels of the same cell are likely to be correlated with each other, for each cell C i j and prediction time t p , we consider the current and past values within a specified time window T W (hereafter denoted as training window). The training window T W slides over T in order to discover relevant correlations among temporarily close occupancy levels (see Figure 4). T W consists of an ordered sequence of T W s i z e points of time t k , t k 1 , , t k T W s i z e + 1 . For the sake of simplicity, hereafter we will assume a uniform sampling within T W , i.e., t i , t i 1 T W the sampling interval Δ = t i t i 1 is fixed.
For each prediction time t p , we collect also the occupancy levels acquired from the neighbor area of the target cell within the training window. The number of cars parked in nearby cells could be a relevant predictor for the occupancy level of the target cell. The idea behind this is that significant variations of the past and current occupancy levels of nearby cells could influence, to some extent, the future occupancy level of the target cell. In fact, the presence of cars in the neighbor area may reveal the presence of potential car movements towards the target cell in the near future. We model the neighbor area of a target cell as two square frames surrounding the cell. Specifically, (i) a first nearest frame (of 4 km 2 ) and (ii) a second surrounding frame (of 16 km 2 ), respectively.
Each record in the training data set corresponds to a different sliding training window T W in T enriched with the corresponding occupancy level at the prediction time (known for training data only). Specifically, the following values are stored: (i) The occupancy levels related to the training window occ( C i j , t s ) [ k s k T W s i z e + 1 ]; (ii) The occupancy level at prediction time occ( C i j , t p ).

3.6. Training of Contextualized Models

On top of the context-specific data models, we explore the use of various predictors, based on Machine Learning and not. This section thoroughly describes the strategies used to forecast the future occupancy levels for each cell and context.
We split the prediction models into two main classes, namely the baseline methods, which do not rely on ML, and the regression methods, which include both univariate and multivariate ML-based models.
Baseline methods. We consider the following baseline strategies:
  • Predict the last value: Assuming a stationary trend for the time series of occupancy levels, it predicts the most recent value.
  • Predict moving average: It exploits the moving average with P periods to model the underlying series trend. It predicts the moving average of the latest P samples as future occupancy level.
Regression methods. Regression algorithms study the underlying relationships and the causal effects between a set of predictive features in the training data model and the target class, i.e., the future occupancy level of the cell [28]. The values of the target class are assumed to be known in the training data, on top of which a model is learnt.
When the regressor considers only the series of past and current occupancy levels of the target cell, the prediction model is denoted as univariate. Conversely, when the regressor considers additional predictive features beyond the target variable, the regression model is denoted as multivariate.
We explore the use of three different kinds of multivariate regression models:
  • Cell-Specific (CS): the data model exclusively includes the information about the target cell, including contextual information (see Section 3.5).
  • Cell-Specific enriched with static neighborhood (CS + S): the data model includes the information not only about the target cell but also about the cell neighborhood.
  • Cell-Specific enriched with dynamic neighborhood (CS + D): the data model includes all the information about the target cell and a selection of cells with correlated occupancy levels.
The input variables considered in the regression models consist of the occupancy levels of the cells in the sliding training window, in compliance with the data model described in Section 3.5. Specifically, the training dataset for the CS model contains one attribute for each past and present occupancy level of the target cell within the training window. The CS + S and CS + D datasets are extended versions of the former CS dataset, where the attributes considered for the target cell are replicated for each neighbor cell under consideration.
Since the temporal ( M t i m e ) and weather ( M w e a ) metadata reported in Section 3.3 are also useful to predict the occupancy level of the target cell, the training dataset also contains one attribute for each temporal and weather metadata.
Figure 5a,b exemplify the procedures used to generate the neighborhood of a cell in the CS + S and CS + D strategies, respectively. The idea behind the model with static neighborhood is that, thanks to spatial proximity, nearby cells are likely to show correlated occupancy levels over time. Thus, they could be deemed as reliable predictors. Conversely, the model with dynamic neighborhood focuses the attention on a selection of cells, not necessarily located nearby, showing recurrent car movements towards or from the target cell.
In the CS + S strategy, we model the neighbor area of the target cell as two square frames surrounding the target cell itself (see Figure 5a). The static neighborhood is generated from the square frames described in Section 3.5. Specifically, it consists of a first nearest square frame including its neighbor cells (500 m from c i ) and a second square surrounding frame (1 km from c i ).
The dynamic neighborhood is selected based upon the rule-based strategy detailed in Section 3.7.

3.7. Identification of the Dynamic Neighborhood: An Association-Based Approach

We perform a preliminary correlation analysis between the occupancy levels of the neighbor cells and those of the target cell on training data (within the considered training window). The aim is to identify a subset of neighbor cells whose historical values are worth considering in the training phase of the multivariate regressors.
In principle, all the cells in the city map may retain a certain degree of correlation with the target cell because car movements from/to the target cell may be associated with arbitrary origins/destinations. However, incorporating the information about all the cells in the multivariate regression model would be counterproductive due to the well-known curse of dimensionality [38]. Hence, there is a need to identify a subset of most correlated cells in the neighborhood to include in the data model. This section presents the approach used to dynamically select the most correlated cells according to Cell-Specific enriched with dynamic neighborhood (CS + D) strategy.
The key idea is to explore the raw data about FFCS car trips in order to identify the cells producing a significant number of car movements, either towards or from the target cell. To tackle this issue, we apply association rule mining techniques [39] to discover and rank reliable associations among cell pairs. In our context, a trip is modeled as a pair of starting and ending cells. We collect all trip data associated with the same context into a separate dataset in order to discover context-specific correlations among cells. To our purposes, in the analyzed dataset, we disregard trip directions since both departure and arrivals to the target cell are worth considering to identify the neighbor cells of interest.
Association rules [39] represent recurrent co-occurrences between cells in the trip dataset. We apply the established Apriori association rule mining algorithm [40] to automatically extract all the associations A R : C i j C q z , where C i j and C q z is an arbitrary cell pair.
Association rule mining is typically driven by mining support and confidence thresholds [39]. The support index indicates the observed frequency of occurrence of the cell pair in the trip dataset. It is commonly used to discard low-quality patterns because they represent infrequent cell combinations. The confidence index of rule C i j C q z is the conditional probability of occurrence of cell C q z in the trip dataset given the occurrence of cell C i j . It indicates the strength of the association. However, to avoid discriminating between cell origin and destination, we decide to use a variant of the confidence index, called lift [28], which indicates the pairwise correlation between the cells. Its mathematical expression follows:
L i f t ( C i j C q z ) = c o n f ( C i j C q z ) s u p ( C q z )
where c o n f ( C i j C q z ) is the rule confidence, whereas s u p ( C q z ) is the observed frequency of occurrence of cell C q z in the trip dataset.
Lift values fall in the range (0, + ). A lift value greater than one indicates a positive correlation between the considered cells, whereas a value less than one corresponds to a negative correlation.
To identify the cells that are most correlated with the target one, we first mine the association rules including the target cell C i j (e.g., C i j C q z or C q z C i j ) and satisfying a minimum support threshold equal to 1%, a minimum confidence threshold equal to 50%, and a lift value greater than 1. Then, we rank rules by decreasing lift value, select the top ranked one, and identify the subset of most correlated cells accordingly. The number of selected cells can be specified by the analysts. In our experiments, we used 10 as a reference value, which is comparable to the number of cells included in the static frame. Notice that, since the extracted rules change from one context to another, the subset of selected cells could change as well.

3.8. Model Assessment and Definition of Context-Aware Guidelines

The presented framework enables the exploration of a variety of solutions to predict short-term cell occupancy levels. The solutions range from simple baseline methods (e.g., predict the last value, predict the moving average) to more advanced ML-based solutions, i.e., multivariate regression models.
A practical use case for the proposed system is the data-driven exploration and comparison of different solutions tailored to each cell and context. More specifically, system managers could identify the most appealing scenarios of usage for the prediction models in terms of monitored areas and spatio-temporal contexts. The effectiveness of the proposed strategies can be assessed on a separate test set, i.e., a portion of parking data exclusively devoted to performance evaluation.
Based on the achieved results, system managers could derive context-aware guidelines useful for tailoring the setup and usage of the intelligent system to the actual context. For each urban area and context, guidelines may indicate
  • the type of prediction model (ML vs. baseline) that is most likely to be effective in predicting short-terms car occupancy levels.
  • the recommended prediction horizon.
  • the specific ML model sub-type (e.g., cell-specific, static neighborhood, dynamic neighborhood) or, alternatively, the most promising baseline method.
  • in case ML-based approaches outperform baseline methods:
    the recommended ML algorithm
    the best algorithm configuration identified by grid search on historical FFCS usage data.

4. Experimental Results

This section summarizes the main empirical outcomes of the present study. It covers the following aspects:
  • Experimental design: Description of data sources, algorithm configuration setting, and evaluation strategies. The goal is to clarify the evaluation procedures and make the set of ML pipeline repeatable as much as possible (see Section 4.1).
  • Comparison between ML and baseline methods: Evaluation of the performance of the proposed prediction models in various spatio-temporal contexts. The goal is to identify the contexts in which ML-based approaches are worthy of consideration in place of simple baseline methods (see Section 4.2).
  • Comparison between different ML-based approaches and regression algorithms: Comparison between the presented ML approaches in terms of both adopted strategy (cell-specific, static neighborhood, dynamic neighborhood) and regression algorithm. The idea is to gain insights into the configuration of the ML process (whenever necessary) and to figure out the corresponding guidelines in light of the achieved results (see Section 4.3).
  • Comparison among data models: Evaluation of the impact of the functional contexts of cells and the prediction horizon on the average prediction error (MAE) achieved when using the three proposed data models (i.e., CS, CS + S, and CS + D) (see Section 4.4).
  • Qualitative analysis of the extracted cell associations: Exploration of the extracted association rules in the contexts where ML-based approaches with dynamic neighborhood turned out to be more effective than the other approaches (see Section 4.5).
  • Complexity analysis: Empirical evaluation of the complexity of the entire FFCS usage data analytics pipeline (see Section 4.6).
  • Evaluation of time series stationarity: Analysis of the input data to investigate the non-stationarity of the time series. The goal is to corroborate the needs of ML-based regressions models rather than simpler autoregressive models (see Section 4.7).

4.1. Experimental Design

Data. We analyzed a one-year-long parking dataset collected using the UMAP tool [41]. The dataset reports all the bookings in all the cities where Car2Go provides its service. Notice that the use of the Car2go API to acquire these data (https://www.car2go.com/api/tou.htm) is subject to approval by Car2go. We got the approval from September 2016 until end of January 2018. Among the different cities available in the dataset, Berlin has been considered as a reference use case for the present study because it includes cells with rather variable trends, ranging from stationary series to highly non-stationary occupancy level variations. Hence, it was deemed as an interesting case study to assess the capability of the system to support the generation of context-aware guidelines.
The service provider has exposed ad hoc APIs through which the GPS positions of the 1k vehicles for rent can be crawled every minute. For the sake of simplicity, hereafter we will focus our exploration on the historical data acquired in year 2017. In this study, we report the results obtained considering a representative time period (i.e., September and October). In this period, we record 626k bookings, resulting in 390k rentals after discarding cancellations and long lasting trips, and 380k after removing refueling operations. These rentals allow us to correctly track 372k parking events describing the car location while parked and available for the customers.
To crawl weather data we exploited the Application Programming Interfaces exposed by [42]. To identify the POIs located in the urban area, we exploited the OpenStreetMap service [43].
Based on the collected data, we built the training dataset that we exploit to train the regression algorithms. The variables used to train the regression models are those reported in Section 3.6.
Algorithms. We integrated the following regression algorithms: (i) Lasso, (ii) Linear Regression (LR), (iii) Random Forest (RF), and (iv) Gradient Boosting Tree (GBT). More details on the prediction algorithms are given in [38].
To fit the models to the analyzed data, we performed a grid search. The selected configuration settings are given below. More details on the regression functions can be found in [44]:
  • Random Forest (RF): n_estimators = 50, max_features = sqrt, min_samples_split = 5, min_samples_leaf = 5, max_depth = 10
  • Gradient Boosting Tree (GBT): learning rate = 0.1, n_estimators = 100, max_depth = 1, loss = lad
  • Lasso: alpha = 1
  • Linear regression (LR): fit_intercept = true, normalize = true
To run the experiments, the prediction horizon has been set to 3 h and the size of the training window to 21 days. The impact of the two parameters has been analyzed in Section 4.2.3.
Validation. To validate the performance of each regression algorithm, we apply a train-test procedure by sliding the training window and the test over the whole period to perform day-by-day predictions. The prediction errors achieved over the entire period are averaged to summarize the algorithm performance based on the standard Mean Absolute Error (MAE) measure [38]. The MAE measures the difference between the number of cars estimated by the regression algorithm at prediction time t p for the target cell and the actual number of cars available in the cell at t p . Analogously, the MAE value is used to evaluate the prediction accuracy when using the baseline solution.
The experiments were run on a quad-core 3.30 GHz Intel®Xeon workstation (Manufacturer location: Santa Clara, CA, USA) with 16 GB of RAM with Ubuntu Linux 13.10 LTS.

4.2. Machine Learning vs. Baseline Approaches: A Statistical Comparison

We performed an empirical comparison between ML-based and baseline methods in different contexts. Hereafter, we will report the outcomes of two representative temporal contexts, i.e., weekdays (from Monday to Friday) and weekend days (Saturday and Sunday). The aforesaid contexts are deemed as suitable for exploring scenarios with a high variance in the cell occupancy levels.

4.2.1. Comparison in Different Temporal Contexts

Table 1 shows the MAE achieved by the best performing ML-based approach (i.e., Random Forest regressor, (RF)) and the two baseline strategies (predicting the last value or the moving average, respectively) in the temporal contexts weekday and weekend. For the sake of brevity, we reported the results achieved on the four cells chosen as representative of different functional contexts (see Section 3.3). For each cell, Table 1 also indicates the most effective data model (i.e., CS, CS + S, or CS + D).
From the comparison between the two baseline strategies, selecting the Last value approach has shown to be the most accurate one because it performed best for three cells out of four (i.e., except for cell business) in temporal contexts weekday and in for two cells out of four in the temporal context weekend day (i.e., except for cells business and transport hub).
The ML-based approach has shown to be significantly more accurate than the baseline in most case for the temporal context weekday. Conversely, over the weekend baseline predictors achieved better performance than ML, except for in the transport hub where the ML-based approach gave the best results. The performance improvements were evident in all considered functional contexts except for category mixed functional area, where the MAE gaps were rather limited. Weekdays are temporal contexts where cells are usually characterized by a significant variance in the occupancy level. The prediction task being more challenging, ML-based models seem to the most appropriate solution. Conversely, when the variance in the occupancy levels gets lower, as in weekend days, baseline methods achieve comparable or even better performance even if they rely on much simpler models. The occupancy levels of cell transport hub are quite variable in both temporal contexts, mainly due to presence of the Berlin international airport. This could explain the significantly better performance achieved by ML-based approaches compared to baselines.
To validate the statistical significance of the MAE improvement achieved by the ML-based approach, we applied the paired t-test [45]. The test was applied at significance level p = 0.05 on all the evaluated datasets. When comparing ML-based with baseline approach, the paired t-test confirms the statistical significance of all the MAE improvements. The outcomes of the statistical validation confirm that the performance of ML-based approaches are superior to those of baseline methods in the most challenging functional and temporal contexts (i.e., when the variance of the occupancy levels is fairly high). For the weekend days, the paired t-test indicates that the (limited) performance gap is statistically significant for cell business but not for cells catering and entertainment and mixed functional area.
To broaden the scope of the empirical validation phase, we also reported in Table 2 the average MAE achieved on a larger cell selection, i.e., the top-3 cells in terms of variance separately for each functional context. The results are in line with those achieved on the reference cells.

4.2.2. Comparison on Fine-Grained Temporal Contexts

Considering fine-grained time granularity allows us to deepen the performance comparison between ML-based and baseline solutions. Of course, a drill down to fine-grained data increases the variance in the cell occupancy levels because the data model becomes more sensitive to small fluctuations occurred along the day. Hence, ML-based approach are supposed to be the most promising solutions since they are able to capture non-stationary and complex trends.
Taken as a whole, the experimental results confirm the expectations. Specifically, the results achieved on a representative subset of cells and reference time slots are summarized in Table 3 and Table 4, respectively. We considered the following 3-h daily time slots: morning (6–9), afternoon (12–15), evening (18–21), and night time (21–24). For cells business and transport hub, the ML-based solution performed better than baseline while averaging the prediction outcomes at the daily frequency (see Table 1). However, the baseline solution (slightly) improves ML on specific daily time slots (i.e., evening for business and morning for transport hub). Analogously, for cell business, the baseline solution is more accurate than ML-based approach during weekend days, whereas ML performed best on time slots afternoon and evening.

4.2.3. Comparison for Different Prediction Horizons and Training Window Sizes

Figure 6a summarizes the results of the comparison betwewen ML-based (i.e., Random Forest regression (RF)) and baseline solutions performed by varying the value of the prediction horizon. The strategy named Predict the last value performs (slightly) better than the ML-based solutions by setting small horizon values (e.g., 1 h), where the latter ones performed best (in terms of mean MAE value and standard deviation) while increasing the prediction horizon. Conversely, the baseline strategy relying on moving average achieved the worst results.
The impact of training window size in comparing baseline and ML-based solutions (i.e., Random Forest regression) is shown in Figure 6b. The baseline strategy (Last value) and ML-based solution have comparable performance for a short training window, but ML-based solutions performs better (in terms of both mean and standard deviation values MAE) when increasing the training window size.

4.3. Comparison between Different ML-Based Approaches and Regression Algorithms

Table 5 reports the results of the comparison between different regression algorithms. The experimental results show that Random Forest regressor (RF) performed significantly better than Lasso and LR algorithms. The performance improvements were more significant in cells catering and entertainment and transport hub, in particular when considering weekday, and in cells business and transport hub for weekend days.
RF and GBRT algorithms achieved comparable performance, but RF always overperformed GBRT except for two cases (i.e., cells business and mixed functional area for weekend day).

4.4. Comparison among Data Models

This section analyzes the impact of the functional contexts of cells and the prediction horizon on the average prediction error (MAE) achieved when using the three proposed data models (CS, CS + S, or CS + D) to train the best performing ML-based solution (i.e., Random Forest regression (RF)).

4.4.1. Impact of the Functional Context on the Data Models

Table 6 compares the MAE value for the three proposed data models when applied for each functional context, in the temporal contexts of weekday and weekend.
For business and catering and entertainment cells, the ML-based solution provides better performance when trained using the Cell-Specific enriched with the dynamic neighborhood data model. Instead, for the mixed functional area cells, the most accurate solution is given by the Cell-Specific enriched with static neighborhood data model. Thus, the occupancy levels of cells are, on average, fairly correlated with faraway cells in the former case, while with nearby cells in the latter case. For isolated cells (transport hub cells), the ML-based solution achieved best performance when trained by considering only the occupancy levels of the target cell (Cell-Specific data model).

4.4.2. Impact of the Prediction Horizon on the Data Models

The heatmap in Figure 7 shows the combined effect of data models and prediction horizon δ on the average prediction error (MAE). As a representative example, we considered cell business and Random Forest as regression algorithms.
Each heatmap cell corresponds to a different combination of prediction horizon value (x-axis) and data model (y-axis). Increasing values of prediction horizon are reported on the x-axis. Consider a horizon of prediction δ and the associated column in the heatmap. Cell color indicates the average MAE value normalized by the value of the best performing data model for that horizon. The color of the heatmap cell ranges from dark red to dark blue depending on whether the MAE value for the data model in the cell is closer (darker blue) or more distant (darker red) from the best performing solution for the same horizon.
When the prediction horizon value is short (up to 1 h), the best data model relies only on the information about the target cell. Thus, the occupancy levels of the target cell provide sufficient information for making prediction. When the prediction horizon increases, the most accurate data model includes the dynamic neighbor. Hence, in the latter and more challenging scenario, the occupancy levels of neighbor cells matter. The data model with static neighbor performed worse than the dynamic neighbor model. Since surrounding cells are all in the headquarter of big company, the model was unable to capture significant trends in FFCS usage data.

4.5. Qualitative Analysis of the Extracted Cell Associations

Table 7 reports for a representative cell (catering and entertainment) the identifiers of the top-10 most correlated cells selected by the Cell-Specific enriched with dynamic neighborhood (CS + D) strategy in two different contexts, i.e., Monday morning and Monday afternoon. For each association, it also reports the corresponding lift value, which expresses the strength of the cell correlation.
The neighbor cells selected by means of the association rule mining approach are those occurring in the top ranked associations. Since the dynamic neighborhood is context-specific, different rules and cells have been identified in the two considered contexts (see, for instance, Column 1 and Column 3 of Table 7). Even if the target cell is the same, FFCS service usage patterns are rather different. The rule-based model allows the prediction model to take contextual diversity into account.
Figure 8a,b depict the dynamic neighborhoods generated by means of the association rules and the selected cells reported in Table 7. The blue cell is the target one while the red ones are the content of the dynamic neighborhood. We can notice that the dynamic neighborhoods are not influenced by the proximity of the selected cells with respect to the target one. This is reasonable because, in some contexts, the cars are used to move from relative faraway locations. For example, in the morning, many users rent a car to commute for work. Trip destinations are relatively faraway (see, for instance, the red cells in Figure 8a). Conversely, in the afternoon, many users rent a car from the city center to move towards catering and entertainment cells, which are relatively close to the trip departure (see Figure 8b).
Finally, we analyzed the number of cells that are deemed as correlated with the target one in terms of car trips for various days of the week and time slots. They refer to the complete sets of correlated cells which have been identified before selecting the top-k ones in order to create the dynamic neighborhoods. Figure 9 summarizes the results achieved for the catering and entertainment and business cells. In both cases, the number of correlated cells decreases in periods of limited service usage (e.g., in the early morning). This is due to the fact that most of the cell combinations are deemed as not statistically relevant by the association rule mining algorithm.

4.6. Complexity Analysis

We analyzed the time complexity of the pipeline of FFCS usage data analytics described in Section 3.
The most time- and memory-consuming step in the designed pipeline is the training of contextualized models. When it relies on ML-based approaches, it entails training multiple regression models on historical data. In the experiments performed on Car2Go Berlin data, we have defined four different functional contexts (business, catering and entertainment, mixed functional area and transport hub), two temporal contexts, and three data models (cell specific, cell specific with static neighborhood and cell specific with dynamic neighborhood). When baseline methods perform best, training time is negligible. Conversely, training ML models took between 5 s (for Lasso model) to 60 s (for Random Forest model). The time and memory cost to apply the ML-based models to test data are at least one order of magnitude lower than the training phase (5 s in the worst case).

4.7. Evaluation of Time Series Stationarity

Considering the performance results, here we investigate the input data to understand the needs of ML-based solutions. For this, we decompose each occupation level time series in three main components [46]:
  • trend: the low frequency changes, representing the non-stationarity long-term changes;
  • seasonality: the periodic short-term repetition;
  • residual: the noise evaluated as the remaining variation.
For the decomposition, we employ a moving average algorithm. Intuitively, the decomposition allow us to characterize each time series and better understand our problem for forecasting. Furthermore, it allows us to evaluate stationarity of the time series, hence the needs of ML-solutions rather than simpler solutions, e.g., AutoRegressive models or our baseline.
Figure 10 reports the observed occupation level of the representative cells along with their seasonal decomposition. Focusing on the business cell (Figure 10a), we can see how the observed cell occupation level vary from 0 up to 20 cars per time bin. Looking at the resulting components, we can see how the trend component accounts for only from one up to three cars in the entire period. This may suggest the stationarity of the time series as no major long-terms variation appear. However, looking at the seasonal and residual components, we can see how both have high and similar variations with residual having a range from −10 up to 10 occupation level. The latter being the noise component, it highlights how the time series is non-stationary. Focusing on the other cells, we can see how they lead to similar findings, hence highlighting the infeasibility of simple autoregressive solutions in favor of the ML-based solutions.

5. Discussion and Conclusions

This study presents a general-purpose framework to analyze historical FFCS usage data and to predict short-term car availability in restricted urban areas.
We showed the effectiveness and efficiency of the proposed framework on one among the biggest Free Floating Car Sharing services in Europe. The reported results show that the proposed framework can be used to accurately predict the occupancy level of the subareas of a smart city by means of contextualized models. Moreover, the proposed framework allowed us to analyze the spatial and temporal contextual conditions under which ML-based approaches are more accurate than simpler baseline approaches and which data models are more adequate depending on the context and the characteristics of the target cell.
The performed analyses and the results presented in Section 4 allow us to sketch a preliminary set of guidelines for operators who are interested in integrating a occupancy level prediction system in their service. The hints included in the guidelines try to balance the effect of complementary aspects such as (i) the accuracy of the prediction, (ii) the required time and memory for model generation, and (iii) cardinality of the knowledge base for building the prediction model.
Guidelines are summarized below:
  • When should I use ML-based approaches? ML-based approaches are recommended when they achieve significantly more accurate performance than baseline techniques. This typically happens in the spatio-temporal situations that are characterized by non-stationary trends and, in particular, in all the cases in which the occupancy level is not a linear function of the input data (see Section 4.2) and only when the prediction horizon is more than 1 h (see Figure 6a).
  • To what extent should I trust on baseline approaches? Baseline methods are comparable or slightly more accurate than ML-based approaches in (quasi-)stationary contexts, e.g., during the weekend in business cells (see Table 1 and Table 2). In these contexts, baseline methods are preferable because they achieve fairly low prediction errors spending less time in model training.
  • On which data model should I rely on? Testing multiple data models is recommended since the best performing one is likely to change while considering different temporal, spatial, and functional contexts. For example, ML-based models for business cells during the morning should be trained using the Cell-Specific enriched with dynamic neighborhood data model because the occupancy levels of those cells are, on average, fairly correlated with faraway cells (see Table 3). Oppositely, predictors for isolated subareas (e.g., transport hub cells) should be trained by considering only the occupancy levels of the target cell (Cell-Specific data model) (see Table 6). In the latter case, the CS data model is more accurate yet simpler (in terms of data dimensionality), thus the computational time is more limited.
  • Which regression algorithms should I integrate in the ML pipeline? Whenever the context requires the use of ML, the Random Forest regression algorithm turned out to be the most accurate model in dynamic contexts (e.g., in the weekdays) according to our preliminary experiments. However, the average MAE values achieved by different algorithms are, in many cases, comparable with each other. Hence, we recommend to perform multiple tests and to eventually ensemble model outcomes to get more reliable estimates (see Table 5).
As future work, we plan to extend the empirical study to different cities and countries and to enrich the current framework with further contextual metadata. For instance, the information about the average trip length, the refueling operations, the scheduled maintenance and car relocation activities could be used to enhance cell correlation analyses as well as to reduce the bias due to external, asynchronous actions of the service operators. Since the proposed framework is general-purpose, it can be profitably used to address the occupancy level prediction problem for various cities. Combining contextual data acquired in different cities is another interesting research direction. For example, the aggregated demographic profiles of the FFCS service users and the similarity between POIs located in different cities could also be exploited to enrich the current data models.

Author Contributions

Conceptualization, L.C., S.C., P.G., and D.G.; Investigation, E.D., L.C., S.C., P.G., and D.G.; Methodology, E.D., L.C., S.C., P.G., and D.G.; Software, E.D. and D.G.; Supervision, L.C., S.C. and P.G.; Writing—Original Draft, E.D., L.C., S.C., P.G., and D.G.; Writing—Review and Editing, E.D., L.C., S.C., P.G., and D.G. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Acknowledgments

The research leading to these results is supported by the SmartData@PoliTO center for data analysis and Big Data technologies.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Schmöller, S.; Weikl, S.; Müller, J.; Bogenberger, K. Empirical analysis of free-floating carsharing usage: The Munich and Berlin case. Transp. Res. Part C Emerg. Technol. 2015, 56, 34–51. [Google Scholar] [CrossRef]
  2. Zhou, F.; Zheng, Z.; Whitehead, J.; Perrons, R.K.; Washington, S.; Page, L. Examining the impact of car-sharing on private vehicle ownership. Transp. Res. Part A Policy Pract. 2020, 138, 322–341. [Google Scholar] [CrossRef]
  3. Rabbitt, N.; Ghosh, B. A study of feasibility and potential benefits of organised car sharing in Ireland. Transp. Res. Part D Transp. Environ. 2013, 25, 49–58. [Google Scholar] [CrossRef]
  4. Zhou, F.; Zheng, Z.; Whitehead, J.; Washington, S.; Perrons, R.K.; Page, L. Preference heterogeneity in mode choice for car-sharing and shared automated vehicles. Transp. Res. Part A Policy Pract. 2020, 132, 633–650. [Google Scholar] [CrossRef]
  5. Firnkorn, J.; Müller, M. What will be the environmental effects of new free-floating car-sharing systems? The case of car2go in Ulm. Ecol. Econ. 2011, 70, 1519–1528. [Google Scholar] [CrossRef]
  6. Weikl, S.; Bogenberger, K. Relocation Strategies and Algorithms for Free-Floating Car Sharing Systems. IEEE Intell. Transp. Syst. Mag. 2013, 5, 100–111. [Google Scholar] [CrossRef]
  7. Jorge, D.; Correia, G.H.A.; Barnhart, C. Comparing Optimal Relocation Operations With Simulated Relocation Policies in One-Way Carsharing Systems. IEEE Trans. Intell. Transp. Syst. 2014, 15, 1667–1675. [Google Scholar] [CrossRef] [Green Version]
  8. Vasconcelos, A.S.; Martinez, L.M.; Correia, G.H.; Guimaraes, D.C.; Farias, T.L. Environmental and financial impacts of adopting alternative vehicle technologies and relocation strategies in station-based one-way carsharing: An application in the city of Lisbon, Portugal. Transp. Res. Part D Transp. Environ. 2017, 57, 350–362. [Google Scholar] [CrossRef]
  9. Angelopoulos, A.; Gavalas, D.; Konstantopoulos, C.; Kypriadis, D.; Pantziou, G. Incentivized vehicle relocation in vehicle sharing systems. Transp. Res. Part C Emerg. Technol. 2018, 97, 175–193. [Google Scholar] [CrossRef]
  10. Ren, S.; Luo, F.; Lin, L.; Hsu, S.C.; Li, X. A novel dynamic pricing scheme for a large-scale electric vehicle sharing network considering vehicle relocation and vehicle-grid-integration. Int. J. Prod. Econ. 2019, 218. [Google Scholar] [CrossRef]
  11. Cagliero, L.; Chiusano, S.; Daraio, E.; Garza, P. CarPredictor: Forecasting the Number of Free Floating Car Sharing Vehicles within Restricted Urban Areas. In Proceedings of the 2019 IEEE International Congress on Big Data (BigDataCongress), Milan, Italy, 8–13 July 2019; pp. 72–76. [Google Scholar]
  12. Morency, C.; Trepanier, M.; Agard, B.; Martin, B.; Quashie, J. Car sharing system: What transaction datasets reveal on users’ behaviors. In Proceedings of the 2007 IEEE Intelligent Transportation Systems Conference, Seattle, WA, USA, 30 September–3 October 2007; pp. 284–289. [Google Scholar] [CrossRef]
  13. Luca, S.D.; Pace, R.D. Modeling users’ behaviour in inter-urban carsharing program: A stated preference approach. Transp. Res. Part A Policy Pract. 2015, 71, 59–76. [Google Scholar] [CrossRef]
  14. Trentini, A.; Losacco, F. Analyzing Carsharing Public (Scraped) Data to Study Urban Traffic Patterns. Procedia Environ. Sci. 2017, 37, 594–603. [Google Scholar] [CrossRef]
  15. Alfian, G.; Rhee, J.; Yoon, B. A simulation tool for prioritizing product-service system (PSS) models in a carsharing service. Comput. Ind. Eng. 2014, 70, 59–73. [Google Scholar] [CrossRef]
  16. Liyanage, S.; Dia, H.; Abduljabbar, R.; Bagloee, S.A. Flexible mobility on-demand: An environmental scan. Sustainability 2019, 11, 1262. [Google Scholar] [CrossRef] [Green Version]
  17. Qian, C.; Li, W.; Ding, M.; Hui, Y.; Xu, Q.; Yang, D. Mining carsharing use patterns from rental data: A case study of Chefenxiang in Hangzhou, China. Transp. Res. Procedia 2017, 25, 2583–2602. [Google Scholar] [CrossRef]
  18. Alencar, V.A.; Rooke, F.; Cocca, M.; Vassio, L.; Almeida, J.; Vieira, A.B. Characterizing client usage patterns and service demand for car-sharing systems. Inf. Syst. 2019, 101448. [Google Scholar] [CrossRef]
  19. Clewlow, R.R. Carsharing and sustainable travel behavior: Results from the San Francisco Bay Area. Transp. Policy 2016, 51, 158–164. [Google Scholar] [CrossRef]
  20. Ciociola, A.; Cocca, M.; Giordano, D.; Vassio, L.; Mellia, M. E-Scooter Sharing: Leveraging Open Data for System Design. In Proceedings of the IEEE/ACM 24th International Symposium on Distributed Simulation and Real Time Applications, Prague, Czech Republic, 14–16 September 2020. [Google Scholar]
  21. Cocca, M.; Giordano, D.; Mellia, M.; Vassio, L. Free floating electric car sharing design: Data driven optimisation. Pervasive Mob. Comput. 2019, 55, 59–75. [Google Scholar] [CrossRef]
  22. Cocca, M.; Giordano, D.; Mellia, M.; Vassio, L. Free Floating Electric Car Sharing: A Data Driven Approach for System Design. IEEE Trans. Intell. Transp. Syst. 2019, 20, 4691–4703. [Google Scholar] [CrossRef]
  23. Schluter, J.; Weyer, J. Car sharing as a means to raise acceptance of electric vehicles: An empirical study on regime change in automobility. Transp. Res. Part F Traffic Psychol. Behav. 2019, 60, 185–201. [Google Scholar] [CrossRef]
  24. Balac, M.; Becker, H.; Ciari, F.; Axhausen, K.W. Modeling competing free-floating carsharing operators - A case study for Zurich, Switzerland. Transp. Res. Part C Emerg. Technol. 2019, 98, 101–117. [Google Scholar] [CrossRef] [Green Version]
  25. Phithakkitnukoon, S.; Veloso, M.; Bento, C.; Biderman, A.; Ratti, C. Taxi-Aware Map: Identifying and Predicting Vacant Taxis in the City. In International Joint Conference on Ambient Intelligence; De Ruyter, B., Wichert, R., Keyson, D.V., Markopoulos, P., Streitz, N., Divitini, M., Georgantas, N., Mana Gomez, A., Eds.; Springer: Berlin/Heidelberg, Germany, 2010; pp. 86–95. [Google Scholar]
  26. Cagliero, L.; Cerquitelli, T.; Chiusano, S.; Garza, P.; Xiao, X. Predicting critical conditions in bicycle sharing systems. Computing 2017, 99, 39–57. [Google Scholar] [CrossRef]
  27. Cocca, M.; Teixeira, D.; Vassio, L.; Mellia, M.; Almeida, J.M.; Couto da Silva, A.P. On Car-Sharing Usage Prediction with Open Socio-Demographic Data. Electronics 2020, 9, 72. [Google Scholar] [CrossRef] [Green Version]
  28. Zaki, M.J.; Meira, W., Jr. Data Mining and Machine Learning: Fundamental Concepts and Algorithms, 2nd ed.; Cambridge University Press: Cambridge, UK, 2020. [Google Scholar] [CrossRef]
  29. Stell, J.; Worboys, M. Stratified map spaces: A formal basis for multi-resolution spatial databases. In Proceedings of the 8th International Symposium on Spatial Data Handling, International Geographical (SDH’98), Vancouver, BC, Canada, 11–15 July 1998; pp. 180–189. [Google Scholar]
  30. Wang, J.F.; Zhang, T.L.; Fu, B.J. A measure of spatial stratified heterogeneity. Ecol. Indic. 2016, 67, 250–256. [Google Scholar] [CrossRef]
  31. Flippen, C. The spatial dynamics of stratification: Metropolitan context, population redistribution, and black and Hispanic homeownership. Demography 2010, 47, 845–868. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  32. Jiang, B.; Yin, J. Ht-Index for Quantifying the Fractal or Scaling Structure of Geographic Features. Ann. Assoc. Am. Geogr. 2014, 104, 530–540. [Google Scholar] [CrossRef]
  33. Cagliero, L.; Cerquitelli, T.; Chiusano, S.; Garza, P.; Attanasio, A. Characterizing unpredictable patterns in Wireless Sensor Network data. Inf. Sci. 2018, 467, 149–162. [Google Scholar] [CrossRef]
  34. Cagliero, L.; La Quatra, M.; Apiletti, D. From Hotel Reviews to City Similarities: A Unified Latent-Space Model. Electronics 2020, 9, 197. [Google Scholar] [CrossRef] [Green Version]
  35. Cagliero, L.; Cerquitelli, T.; Chiusano, S.; Garino, P.; Nardone, M.; Pralio, B.; Venturini, L. Monitoring the citizens’ perception on urban security in Smart City environments. In Proceedings of the 2015 31st IEEE International Conference on Data Engineering Workshops, Seoul, Korea, 13–16 April 2015; pp. 112–116. [Google Scholar]
  36. Li, W.; Li, Y.; Fan, J.; Deng, H. Siting of Carsharing Stations Based on Spatial Multi-Criteria Evaluation: A Case Study of Shanghai EVCARD. Sustainability 2017, 9, 152. [Google Scholar] [CrossRef] [Green Version]
  37. Willing, C.; Klemmer, K.; Brandt, T.; Neumann, D. Moving in time and space—Location intelligence for carsharing decision support. Decis. Support Syst. 2017, 99, 75–85. [Google Scholar] [CrossRef]
  38. Rajaraman, A.; Ullman, J.D. Mining of Massive Datasets; Cambridge University Press: New York, NY, USA, 2011. [Google Scholar]
  39. Agrawal, R.; Imieliński, T.; Swami, A. Mining Association Rules between Sets of Items in Large Databases. SIGMOD Rec. 1993, 22, 207–216. [Google Scholar] [CrossRef]
  40. Agrawal, R.; Srikant, R. Fast Algorithms for Mining Association Rules in Large Databases. In Proceedings of the 20th International Conference on Very Large Data Bases, Yasmine Hammamet, Tunisia, 6–9 October 2002; Morgan Kaufmann Publishers Inc.: San Francisco, CA, USA, 1994; pp. 487–499. [Google Scholar]
  41. Ciociola, A.; Cocca, M.; Giordano, D.; Mellia, M.; Morichetta, A.; Putina, A.; Salutari, F. UMAP: Urban Mobility Analysis Platform to Harvest Car Sharing Data. In Proceedings of the 2017 IEEE SmartWorld, Ubiquitous Intelligence & Computing, Advanced & Trusted Computed, Scalable Computing & Communications, Cloud & Big Data Computing, Internet of People and Smart City Innovation (SmartWorld/SCALCOM/UIC/ATC/CBDCom/IOP/SCI), San Francisco, CA, USA, 4–8 August 2017. [Google Scholar]
  42. OpenWeather History Bulk. Available online: https://openweathermap.org/history-bulk (accessed on 1 July 2020).
  43. OpenStreetMap Contributors. Planet Dump Retrieved from. Thirion, Grisel, Blondel, Prettenhofer, Weiss, Dubourg, Vanderplas, Passos, Cournapeau, Brucher, Perrot, and Duchesnay. Available online: https://www.openstreetmap.org (accessed on 1 July 2020).
  44. Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; Blondel, M.; Prettenhofer, P.; Weiss, R.; Dubourg, V.; et al. Scikit-learn: Machine Learning in Python. J. Mach. Learn. Res. 2011, 12, 2825–2830. [Google Scholar]
  45. Kim, T. T test as a parametric statistic. Korean J. Anesthesiol. 2015, 68, 540. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  46. Cleveland, R.B.; Cleveland, W.S.; McRae, J.E.; Terpenning, I. STL: A seasonal-trend decomposition. J. Off. Stat. 1990, 6, 3–73. [Google Scholar]
Figure 1. The proposed framework.
Figure 1. The proposed framework.
Electronics 09 01322 g001
Figure 2. Spatial stratification of the Berlin city map. (a) spatial grid built on top of the city map; (b) spatial distribution of rental departures.
Figure 2. Spatial stratification of the Berlin city map. (a) spatial grid built on top of the city map; (b) spatial distribution of rental departures.
Electronics 09 01322 g002
Figure 3. Position of the selected cells.
Figure 3. Position of the selected cells.
Electronics 09 01322 g003
Figure 4. Window-based model; Training window size T W s i z e = 3; Prediction horizon δ = 2.
Figure 4. Window-based model; Training window size T W s i z e = 3; Prediction horizon δ = 2.
Electronics 09 01322 g004
Figure 5. Cell neighborhood. (a) static neighborhood (CS + S); (b) dynamic neighborhood (CS + D).
Figure 5. Cell neighborhood. (a) static neighborhood (CS + S); (b) dynamic neighborhood (CS + D).
Electronics 09 01322 g005
Figure 6. Comparison between ML-based vs. baseline approaches when varying prediction horizon or training window size. (a) effect of the prediction horizon (training window size: 21 days); (b) effect of the training window size (prediction horizon: 30 min).
Figure 6. Comparison between ML-based vs. baseline approaches when varying prediction horizon or training window size. (a) effect of the prediction horizon (training window size: 21 days); (b) effect of the training window size (prediction horizon: 30 min).
Electronics 09 01322 g006
Figure 7. Combined effect of data model and prediction horizon.
Figure 7. Combined effect of data model and prediction horizon.
Electronics 09 01322 g007
Figure 8. Cell catering and entertainment: Dynamic neighborhood on Monday morning and on Monday afternoon. (a) morning; (b) afternoon.
Figure 8. Cell catering and entertainment: Dynamic neighborhood on Monday morning and on Monday afternoon. (a) morning; (b) afternoon.
Electronics 09 01322 g008
Figure 9. CS-D strategy: Number of correlated cells in different temporal contexts. (a) cell Catering and entertainment; (b) cell Business.
Figure 9. CS-D strategy: Number of correlated cells in different temporal contexts. (a) cell Catering and entertainment; (b) cell Business.
Electronics 09 01322 g009
Figure 10. Observed occupation levels and seasonal decomposition of representative cells. (a) cell business; (b) cell catering and entertainment; (c) cell mixed functional area; (d) cell transport hub.
Figure 10. Observed occupation levels and seasonal decomposition of representative cells. (a) cell business; (b) cell catering and entertainment; (c) cell mixed functional area; (d) cell transport hub.
Electronics 09 01322 g010aElectronics 09 01322 g010b
Table 1. Comparison between ML-based and baseline solutions in terms of MAE (avg ± std).
Table 1. Comparison between ML-based and baseline solutions in terms of MAE (avg ± std).
Temporal Context
WeekdayWeekend Day
BaselineMLBaselineML
Functional ContextLast ValueMoving
Average
RFData ModelLast ValueMoving
Average
RFData Model
Business2.11 ± 0.862.39 ± 1.061.51 ± 0.49CS + D1.11 ± 0.421.10 ± 0.542.68 ± 0.87CS + D
Catering and
Entertainment
3.45 ± 1.354.34 ± 1.842.43 ± 0.99CS + D2.60 ± 1.503.16 ± 2.141.40 ± 0.30CS + D
Mixed functional area1.71 ± 0.531.81 ± 0.651.49 ± 0.36CS + S1.18 ± 0.131.11 ± 0.121.20 ± 0.37CS + S
Transport hub6.47 ± 2.268.38 ± 2.934.10 ± 1.67CS6.38 ± 2.378.59 ± 3.225.25 ± 3.13CS
Table 2. Comparison between ML-based and baseline solutions on a larger cell selection for each functional context, in terms of MAE (avg ± std).
Table 2. Comparison between ML-based and baseline solutions on a larger cell selection for each functional context, in terms of MAE (avg ± std).
Temporal Context
WeekdayWeekend Day
BaselineMLBaselineML
Functional ContextLast ValueMoving
Average
RFData ModelLast ValueMoving
Average
RFData Model
Business2.61 ± 0.952.52 ± 1.001.96 ± 0.67CS + D1.36 ± 0.442.04 ± 1.061.37 ± 1.78CS + D
Catering and
Entertainment
1.54 ± 0.592.35 ± 0.941.34 ± 0.43CS + D1.82 ± 0.831.36 ± 0.531.78 ± 0.53CS + D
Mixed
functional area
1.30 ± 0.401.31 ± 0.461.22 ± 0.31CS + S1.26 ± 0.331.26 ± 0.341.21 ± 0.37CS + S
Transport hub3.82 ± 2.434.88 ± 3.042.58 ± 1.81CS3.58 ± 2.134.76 ± 2.783.01 ± 2.32CS
Table 3. Comparison between ML-based and baseline solutions in terms of MAE (avg ± std) for different time slots on weekdays.
Table 3. Comparison between ML-based and baseline solutions in terms of MAE (avg ± std) for different time slots on weekdays.
Weekday-Time Slot
MorningAfternoonEveningNight
Functional ContextBaselineMLBaselineMLBaselineMLBaselineML
BusinessLast ValueRF (CS + D)Last ValueRF (CS + D)Last ValueRF (CS)Last ValueRF (CS)
3.77 ± 2.172.71 ± 1.331.75 ± 1.721.72 ± 2.160.67 ± 0.620.43 ± 0.330.39 ± 0.410.50 ± 0.43
Transport hubLast ValueRF (CS)Last ValueRF (CS + D)Last ValueRF (CS)Last ValueRF (CS)
5.91 ± 2.835.80 ± 3.234.18 ± 3.365.37 ± 3.347.55 ± 7.012.87 ± 3.325.20 ± 7.291.14 ± 1.64
Table 4. Comparison between ML-based and baseline solutions in terms of MAE (avg ± std) for different time slots on weekend days.
Table 4. Comparison between ML-based and baseline solutions in terms of MAE (avg ± std) for different time slots on weekend days.
Weekday-Time Slot
MorningAfternoonEveningNight
Functional ContextBaselineMLBaselineMLBaselineMLBaselineML
BusinessLast ValueRF (CS)Last ValueRF (CS + S)Last ValueRF (CS + D)Last ValueRF (CS)
3.85 ± 2.366.39 ± 2.414.45 ± 3.252.90 ± 3.000.86 ± 0.440.47 ± 0.090.26 ± 0.200.40 ± 0.30
Table 5. Comparison between ML-based algorithms in terms of MAE (avg ± std).
Table 5. Comparison between ML-based algorithms in terms of MAE (avg ± std).
Temporal Context
WeekdayWeekend Day
Functional ContextRFGBTLRLassoRFGBTLRLasso
Business1.51 ± 0.491.54 ± 0.551.91 ± 0.651.72 ± 0.582.68 ± 0.872.54 ± 1.073.09 ± 0.662.89 ± 0.87
CS + DCS + DCS + DCS + DCS + DCS + SCSCS + S
Catering and
Entertainment
2.43 ± 0.992.66 ± 1.003.04 ± 0.952.99 ± 0.921.40 ± 0.301.61 ± 0.341.45 ± 0.331.51 ± 0.26
CS + DCS + DCD + DCS + DCS + DCS + SCSCS + S
Mixed functional
area
1.49 ± 0.361.51 ± 0.331.53 ± 0.371.65 ± 0.391.20 ± 0.371.14 ± 0.251.29 ± 0.371.65 ± 0.39
CS + SCS + SCSCS + SCS + SCS + DCSCS + S
Transport hub4.10 ± 1.674.66 ± 1.705.32 ± 1.515.29 ± 1.585.25 ± 3.136.04 ± 2.756.97 ± 1.826.55 ± 2.20
CSCS + DCS + DCS + DCS + SCS + SCS + DCS + D
Table 6. Comparison of the data models for different functional contexts, in terms of MAE (avg ± std).
Table 6. Comparison of the data models for different functional contexts, in terms of MAE (avg ± std).
Temporal Context
WeekdayWeekend Day
Functional ContextCSCS + SCS + DCSCS + SCS + D
Business1.63 ± 0.551.67 ± 0.741.51 ± 0.492.73 ± 0.912.71 ± 0.942.68 ± 0.87
Catering and
Entertainment
2.47 ± 0.972.57 ± 1.172.43 ± 0.991.44 ± 0.351.53 ± 0.381.40 ± 0.30
Mixed
functional area
1.51 ± 0.281.49 ± 0.361.50 ± 0.421.44 ± 0.601.20 ± 0.371.22 ± 0.37
Transport hub4.10 ± 1.67-4.14 ± 1.715.25 ± 3.13-5.37 ± 3.06
Table 7. Examples of associations used to build the dynamic neighborhoods for cell catering and entertainment on Monday morning and on Monday afternoon.
Table 7. Examples of associations used to build the dynamic neighborhoods for cell catering and entertainment on Monday morning and on Monday afternoon.
Monday MorningMonday Afternoon
CellLiftCellLift
22–1820.241–2918.2
40–2615.110–277.3
15–269.030–346.6
29–168.123–326.1
17–317.325–125.6
40–297.322–165.2
10–266.235–314.9
41–275.027–314.8
30–385.033–324.7
40–304.521–294.6

Share and Cite

MDPI and ACS Style

Daraio, E.; Cagliero, L.; Chiusano, S.; Garza, P.; Giordano, D. Predicting Car Availability in Free Floating Car Sharing Systems: Leveraging Machine Learning in Challenging Contexts. Electronics 2020, 9, 1322. https://doi.org/10.3390/electronics9081322

AMA Style

Daraio E, Cagliero L, Chiusano S, Garza P, Giordano D. Predicting Car Availability in Free Floating Car Sharing Systems: Leveraging Machine Learning in Challenging Contexts. Electronics. 2020; 9(8):1322. https://doi.org/10.3390/electronics9081322

Chicago/Turabian Style

Daraio, Elena, Luca Cagliero, Silvia Chiusano, Paolo Garza, and Danilo Giordano. 2020. "Predicting Car Availability in Free Floating Car Sharing Systems: Leveraging Machine Learning in Challenging Contexts" Electronics 9, no. 8: 1322. https://doi.org/10.3390/electronics9081322

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop