A Cloud-Based Smart-Parking System Based On Internet-Of-Things Technologies
A Cloud-Based Smart-Parking System Based On Internet-Of-Things Technologies
Received July 24, 2015, accepted August 16, 2015, date of publication September 9, 2015, date of current version September 23, 2015.
Digital Object Identifier 10.1109/ACCESS.2015.2477299
ABSTRACT This paper introduces a novel algorithm that increases the efficiency of the current cloud-based
smart-parking system and develops a network architecture based on the Internet-of-Things technology. This
paper proposed a system that helps users automatically find a free parking space at the least cost based on
new performance metrics to calculate the user parking cost by considering the distance and the total number
of free places in each car park. This cost will be used to offer a solution of finding an available parking space
upon a request by the user and a solution of suggesting a new car park if the current car park is full. The
simulation results show that the algorithm helps improve the probability of successful parking and minimizes
the user waiting time. We also successfully implemented the proposed system in the real world.
2169-3536
2015 IEEE. Translations and content mining are permitted for academic research only.
VOLUME 3, 2015 Personal use is also permitted, but republication/redistribution requires IEEE permission. 1581
See http://www.ieee.org/publications_standards/publications/rights/index.html for more information.
T. N. Pham et al.: Cloud-Based SPS Based on IoT Technologies
algorithm to schedule the online problem of a parking system and implemented an SPS [7] to solve the parking problem.
into an offline problem. Second, they set up a mathematical A part of this system is implemented in the Zigbee network
model describing the offline problem as a linear problem. which sends urgent information to a PC through a coordinator
Third, they designed an algorithm to solve this linear and then updates the database. The application layer can
problem. Finally, they evaluated the proposed algorithm using quickly pass the parking information over the Internet, and
experimental simulations of the system. The experimental use the advantages of a web service to gather all the scattered
results indicated timely and efficient performance. However, parking information for the convenience of those who want to
these papers do not mention the resource reservation mecha- find a parking space. This paper simply reports the design and
nism (all parking requirements are derived immediately and implementation of an SPS and does not evaluate the system
are placed in the queue), the mechanism for assessing the performance.
resources system, the mechanism to guide vehicles to the Bonde et al. [24] aimed to automate the car and the car
parking space, the mechanism for handling situations when parking. The paper discusses a project which presents a
the request for service is denied and do not calculate the miniature model of an automated car parking system that can
average waiting time and average total time that each vehicle regulate and manage the number of cars that can be parked
spends on the system. in a given area at any given time based on the availability
In another study [4], the authors propose an SPS based on of parking spaces. The automated parking method allows
the integration of UHF frequency, RFID and IEEE 802.15.4 the parking and exiting of cars using sensing devices. Entry
Wireless Sensor Network technologies. This system can to or exit from the car park is commanded by an Android
collect information about the state of occupancy of the car based application. The difference between the Bonde system
parks, and can direct drivers to the nearest vacant parking and the other existing systems is that the authors were
spot by using a software application. However, in this work, aiming to make the system as little human dependent as
the authors have no mathematical equations for the system possible by automating the cars as well as the entire car
architecture and do not create a large-scale parking system. park; on the other hand, most existing systems require
The results of this paper only implement the proposed archi- human intervention (the car owner or other) to park the car.
tecture; they do not mention the performance of the parking Lambrinos and Dosis [19] described a new SPS architecture
system. Hsu et al. [5] proposed an innovative system includ- based on the Internet of Things technology. The architec-
ing the parking guidance service. A parking space can be ture of this system consists of a Zigbee Wireless Sensor
reserved by a smartphone via Internet access. Upon entering Network (WSN), an IoT middleware layer and a front-end
the car park, the reserved parking space will be displayed on layer as the final user interface that provides data reporting to
a small map using wireless transmission for vehicles under the user. However, there are disadvantage as it does not use a
the dedicated short-range communication protocol DSRC. suitable application protocol for the transfer of data from the
An inertial navigation system (INS) is implemented to guide WSN to the server, such as the constrained application pro-
the vehicle to the reserved space. The system will periodically tocol (CoAP), there is no mathematical model for the system
update the status of the parking space in real time to help operations, and there is no system performance evaluation.
ensure system accuracy. System performance is measured
through the accuracy of the inertial navigation systems run B. CONTRIBUTIONS
in an indoor environment, and the system implementation is With the aim of overcoming the disadvantages of the systems
evaluated by considering the accuracy of the GPS. In this mentioned above and inspired by [1]–[4] and some relevant
paper, the authors have not evaluated the performance of the works [17], [18], we introduce new SPS architecture based on
parking services, they do not provide any mathematical model IoT and build a mathematical model of the system operation.
of the system, and do not consider the waiting time of each First, our algorithm adopts a mechanism to search car parks at
vehicle for service. the least cost. Second, we adopt a mechanism for forwarding
Other researchers have designed architecture for parking the vehicles to another car park if the current car park is
management in smart cities [6]. They proposed intelligent full. We propose a network of car parks such that each park
parking assistant (IPA) architecture aimed at overcoming is a node in a network. Each node obtains the information
current public parking management solutions. This architec- from the neighboring node, thus ensuring smooth movement
ture provides drivers with information about on-street parking of vehicles at low cost and increasing the probability of
stall availability and allow drivers to reserve the most conve- finding a free parking space. Our system achieves better
nient parking stall at their destination before their departure. performance compared with other parking systems. We eval-
They use RFID technology in this system. When a car parks uated the performance of our system through simulation and
or leaves the IPA parking spot, the RFID reader and the implementation. The results of the simulation are close to our
magnetic loop detect the action and send this information to mathematical models and achieve better performance than the
the unit controller to update the information on the car park other systems. The proposed system reduces the number of
status. This study uses only some simple mathematical equa- vehicles failing to find a parking space and minimizes the
tions for the system architecture and does not create a large- costs of moving to the car park. The cost defined here is the
scale parking system. In other works, authors have designed time that the user must wait for the service, thus helping users
save time and money and reducing environmental pollution. at each car park. The system allows a driver to search
We have also successfully implemented our system in a uni- and find information on parking spaces from each car
versity parking system. park without the need to directly access the local server
node by directly accessing the cloud-based server.
C. ORGANIZATION
This paper is organized as follows: Section II describes
the proposed architecture including the system and network
architectures. Section III discusses the algorithms and the
mathematical models of the system. Section IV presents the
simulation. Section V is the implementation of the system.
Section VI is our conclusion and suggestions for future work.
C. NETWORK ARCHITECTURE
In general, we will use the term ‘‘user’’ when referring to the
driver or vehicle and the term ‘‘resources’’ when referring to
the parking spaces.
1) PARKING NETWORK
We use the car park network (CPN) architecture infrastruc-
FIGURE 1. Architecture of the proposed system. ture/backbone. The architecture is shown in Fig. 3(a), where
the dashed lines indicate wireless link and the solid lines
B. SYSTEM ARCHITECTURE indicates wired link. This type of parking network includes
Fig. 1 shows our smart IoT parking system. routers that form as the infrastructure for connected clients.
Elements in the system: The CPN infrastructure/backbone can be built to allow sensor
• Cloud-Based Server: This is a Web entity that stores networks to connect using wireless radio technologies. The
the resource information provided by local units located routers form a self-configuring and self-healing link network.
where α is a coefficient that depends on the length of the path III. ALGORITHM AND MATHERMATICAL MODEL
between two nodes and β is a coefficient that depends on A. ALGORITHM
the number of free slots in the destination node. F(α, β) is We propose an algorithm to describe the operation of the
inversely proportional to the distance between two nodes and system.
directly proportional to the total free slots in the destination
node. Depending on which parameter we consider to be 1) SYSTEM OPERATIONS
the more important of the two parameters, i.e., the distance When a user wants to find a parking slot, he must login to our
or the free slots, we can adjust α and β to achieve better system. After successful login, a request message is sent to
network performance. α and β are parameters derived from search for a free parking slot. Then, the system will send back
the experiment, and their value is [0, 1]. If α = 0, we only a response message containing the information, including the
consider the number of free spaces to calculate the car park address and the directions to reach it. The choice
cost to the user. If β = 0, we only consider the dis- of the car park is based on the function F(α, β), which is
tance between two nodes to calculate the cost to the calculated based on the current location of the vehicle and the
user. location of the car park. The system will forward the vehicle
In Eq. (1), we calculate the cost function based on the to a car park with a minimum F(α, β) value if the current
distance between two nodes and the percentage of free car park is full. When the user arrives at the car park, he
parking spaces at each node. We use the upper bound must be authorized to enter. This authorization is achieved
of the distance between two nodes and the upper bound via the RFID technology or by scanning the user card. This
of the capacity for parking in each car park. In Eq. (1), mechanism is simple but economical. If the information is
dij is the distance between nodes Pi and Pj , Dup is the upper correct, the user is allowed to park. If the current car park is
bound of the distance and is a global parameter, tj is the full, the system will send a suggestion message that includes
number of spaces that are occupied at node Pj , and Tup is the information on a new car park, including the address and
upper bound of the capacity of the overall parking network new directions, with a minimum cost. The new car park
and is a global parameter. We assume a network with will be selected based on the neighbor table of the current
seven nodes as in Fig. 5 and calculate the value car park (the first node in the neighbor table), as shown
of function F with α = 0.2, β = 0.8, D = 2 km, in Fig. 7.
T = 200 spaces: F12 = 0.36; F13 = 0.72; F21 = 0.44;
F23 = 0.76; F27 = 0.34; F31 = 0.48; F32 = 0.44;
F34 = 0.27; F37 = 0.42; F43 = 0.71; F45 = 0.36;
F54 = 0.24; F56 = 0.44; F65 = 0.32; F67 = 0.36;
F72 = 0.34; F73 = 0.74; F76 = 0.48. The neighbor table
of each node with the F(α, β) function is shown in Fig. 6.
Fig. 6 shows that the new neighbor table for each node follows
Eq. (1). We will use this routing table in choosing the next
node where to forward the user when a car park is full.
FIGURE 6. Neighbor tables sorted by descending values of F(α, β). FIGURE 7. Algorithm of the system operations.
resource and each car park space can be assigned to only one is expressed as
vehicle, i.e.,
µ2s
Ta = . (6)
µs − µA
PN
xij ≤ 1
j=1 The average waiting time in the queue (expected from a
(4)
PM long run) in the M/M/k queue is expressed as
xij = 1.
i=1 µ2s
Ta = . (7)
N
k(µs − µA )
P
xij ≤ 1 indicates that any user in the queue may be The average waiting time of the system is
j=1
assigned at most one car park but may also fail to get an N
P
PM Tai
assignment. On the other hand, xij = 1 still guarantees Ta =
i=1
, (8)
i=1 N
that each user in the queue maintains a car park assignment.
where N is the total number of parking spaces.
In our proposed system, if a vehicle does not find a free
parking space on arrival at a full car park, forwarding it to IV. SIMULATION
a different car park will be suggested. We let h denote the A. SIMULATIONS
number of forwarded vehicles. Each car park can be assigned 1) SETUP
n
To evaluate the performance of the processes, we simulated
P
to kj vehicles (kj is the total free slot in Sj ; kj = N ), i.e.,
j=1 a network deployment, including the car park architecture
mentioned above. We used the network simulation tool Arena
N
P x ≤ h
to simulate this network. To simulate the mathematical and
ij
j=1 queuing models, we randomly created vehicles to join the
(5)
M network. The arrival process of the vehicles followed the
xij = kj .
P
Poisson distribution in our simulation, which was denoted
i=1
as POIS(X), where X is the inter-arrival time between suc-
The time complexity of our algorithm is O(n∗ k). We will cessive vehicles arriving at the car park. In this simulation
try to reduce the time cost for each vehicle in finding a free X = 15 and 20 min. We considered the vehicle as the job
parking resource. Our mathematical model has reduced the and the parking space as the entity doing the job. The time
total cost and reaches a better solution in distributing the users for doing the job followed an exponential distribution, which
to the overall network resources. was denoted as EXPO(Y) in this simulation, where Y is the
average service time that a vehicle stays in the parking space.
C. QUEUE MODELS We chose Y = 60 min in this case. We simulated a parking
We modeled the system into a service queue. It includes all network with five car parks as five nodes. We assumed that
users entering each car park. The entering process at each the network nodes are interconnected, as shown in Fig. 11.
node is considered to be a first-in first out (FIFO) queue and We set up each car park with a capacity for four parking
a Markov process, as shown in Fig. 10. spaces as the resources. We also created the same number of
random vehicles to arrive at each car park. In this simulation,
the number of vehicles arriving at each car park is 60, 70, 80,
90, and 100. We ran the simulations until all vehicles were
serviced.
range from zero to one. The value of alpha changed from of the algorithm that we proposed with an existing parking
α = {0, 0.2, 0.5, 0.8, 1}. The value of beta changed from system, we used two different models for evaluation. In the
β = {0, 0.2, 0.5, 0.8, 1}. We set up the distance between the first network model, as shown in Fig. 12(a), we implemented
network nodes as follows: D12 = 0.6 km, D15 = 1.2 km, the greedy method. In this method, when vehicles arrive at
D23 = 2.4 km, D24 = 2.0 km, D34 = 1.8 km, and a full car park, they will be placed in a queue and wait for
D45 = 1.6 km. We chose the value of the upper bound of the service until this car park has a free parking space. This
the distance as Dup = 2.4 km and that of the upper bound queue is the FIFO queue. The greedy method is a common
of the capacity as Tup = four spaces. All set-up parameters method that represents the traditional parking system with no
of the simulation are summarized in Table 1. planning to solve this problem. A loop is used to loop vehicles
until the node has an available parking space.
TABLE 1. Simulation parameters.