Open access peer-reviewed chapter

Enhancing Smart Parking Management through Machine Learning and AI Integration in IoT Environments

Written By

Vesna Knights, Olivera Petrovska and Marija Prchkovska

Submitted: 28 June 2024 Reviewed: 28 July 2024 Published: 23 August 2024

DOI: 10.5772/intechopen.1006490

Chapter metrics overview

80 Chapter Downloads

View Full Metrics

Abstract

The integration of Internet of Things (IoT) technology has profoundly transformed urban life, particularly in the realm of parking management. Smart parking systems harness the capabilities of IoT to optimize parking space utilization, alleviate congestion, and elevate user experience. This chapter delves into the intricate process of data collection within IoT-enabled smart parking environments, with a specific emphasis on the seamless integration of machine learning and artificial intelligence (AI) techniques. By conducting a comprehensive analysis of various data sources, machine learning algorithms, and AI technologies, this chapter elucidates how smart parking systems leverage intelligent data collection and analysis to enhance operational efficiency and effectiveness. Through the convergence of IoT, machine learning, and AI, smart parking systems are poised to revolutionize urban mobility and drive sustainable urban development.

Keywords

  • smart parking systems
  • machine learning
  • artificial intelligence
  • IoT environments
  • data analysis

1. Introduction

The Internet of Things (IoT) has become a groundbreaking technology with extensive applications, profoundly influencing urban infrastructure and services. First introduced by Kevin Ashton in 1999, IoT refers to a network of physical objects embedded with sensors, software, and other technologies, enabling them to connect and exchange data with other devices and systems via the internet [1]. According to Gartner, IoT is one of the top 10 most important strategic technologies globally [2], with Cisco predicting about 50 billion devices connected to the internet or around 3.6 network devices per person by 2023 [3]. Making a comprehensive review [Khanna] and exploring various aspects of applications of IoT [4].

In the realm of urban management, smart parking systems exemplify the practical application of IoT. These systems are designed to address critical issues such as traffic congestion and inefficient use of parking spaces. By leveraging IoT, smart parking systems can monitor and manage parking availability in real-time, enhancing the user experience and contributing to environmental sustainability by reducing the time and fuel wasted searching for parking spots [5, 6]. The integration of IoT with machine learning (ML) and artificial intelligence (AI) further amplifies the capabilities of smart parking systems, enabling them to adapt to changing conditions and user behaviors, offer personalized services, and improve overall operational efficiency [7, 8].

The convergence of IoT, ML, and AI in smart parking systems represents a significant advancement in urban mobility and sustainable development. By collecting and analyzing data from the different sources, it can predict parking occupancy, optimize parking space usage, and implement dynamic pricing strategies [9]. This level of intelligence and adaptability is made possible through sophisticated algorithms and data processing techniques, which are essential for the effective functioning of smart parking solutions.

The need for efficient parking management solutions is underscored by the growing urban population and the corresponding increase in vehicle ownership. Conventional parking systems are often inadequate in meeting the demands of modern urban environments, leading to issues such as congestion, pollution, and frustration among drivers. Smart parking systems, have ability to provide real-time information and optimize parking resources and to offer a viable solution to these challenges [10, 11].

Previous research has demonstrated the effectiveness of smart parking systems in various contexts. For instance, the application of big data technologies in traffic monitoring and management has shown significant improvements in handling large volumes of traffic data [12]. It underscores the importance of integrating GIS and big data technologies for effective traffic data analysis and visualization [13, 14]. Furthermore, demonstrates how IoT, cloud technology, and deep learning models can predict parking space availability, reducing the traffic congestion and fuel consumption [15]. The recent studies on smart parking implementations in different cities worldwide provide a broader perspective on the advancements and effectiveness of smart parking systems in urban environments.

Barcelona has integrated various smart city initiatives, including smart parking systems that utilize IoT-enabled sensors and mobile applications [16]. These systems provide real-time parking availability, reducing traffic congestion and enhancing urban mobility. The city’s Urban Mobility Plan aims to have over 80% of journeys made via sustainable modes by 2024 [17, 18].

The SFpark project uses dynamic pricing based on real-time demand data. This approach optimizes parking space usage, reduces cruising for parking, and lowers greenhouse gas emissions. The integration of autonomous parking solutions with IoT technologies has further enhanced the efficiency and effectiveness of the city’s parking management [19, 20, 21].

Amsterdam’s smart parking systems employ a combination of sensors and cameras to monitor parking space usage. Real-time data is provided to users via mobile apps, allowing for automated payment and reservation of parking spaces. These systems have significantly improved the city’s ability to manage high traffic densities and optimize parking resources [13, 22, 23].

Singapore has developed a unified platform that integrates various parking systems across the city. This platform collects data from multiple sources, including IoT sensors and cameras, to provide real-time parking information. The system supports electronic payments and dynamic pricing to manage parking demand effectively [13, 24, 25, 26].

London utilizes Automatic Number Plate Recognition (ANPR) technology to monitor and manage parking spaces. This technology provides real-time data on parking availability and aids in enforcing parking regulations. The city’s smart parking system also integrates mobile payment options, streamlining the parking process for users and improving overall efficiency [27].

This innovative approach combines IoT and deep learning to provide accurate and reliable predictions for parking availability, showcasing the potential of advanced technologies in improving urban mobility solutions.

Defiantly intelligent vehicles and mobile robot guidance and control systems have provided valuable insights into the application of ML and AI in transportation [28, 29, 30]. The trajectory following and obstacle avoidance have highlighted the importance of precise data collection and analysis in optimizing processes and enhancing the performance of intelligent systems [31, 32, 33]. This technological paradigm shift the foundation for the development and implementation of smart systems across various domains, such as smart home [34] agriculture, healthcare, industries, and smart cities [35]. Challenges of increasing the security of IoT will be always a topic [4, 36].

This chapter explores the integration of IoT, ML, and AI in smart parking systems, aiming to address critical urban issues like traffic congestion and inefficient parking space utilization. The study hypothesizes that the convergence of these technologies will significantly enhance parking management by providing real-time data analysis and predictions.

In Skopje, Republic of North Macedonia, the implementation of smart parking systems is particularly relevant due to the city’s evolving urban landscape and increasing vehicular traffic. By adopting advanced technologies such as electromagnetic sensors, ANPR cameras, and mobile applications, can enhance its parking infrastructure and improve the overall quality of urban life [37, 38, 39]. The real case serves as a practical example of how IoT, ML, and AI can be integrated to create efficient, user-friendly, and sustainable urban solutions.

Advertisement

2. Design of smart parking systems

An intelligent parking system has been developed to address the challenges associated with both street parking and parking garages. Understanding the various elements that contribute to the development of such a system is crucial for comprehending how smart parking operates.

Sensors: Installed on roads and grounds, these devices help parking lot managers track customer habits and determine the suitability of available spots for different needs. They detect vehicles and update the status of parking spaces.

Cameras: Positioned in strategic locations within the parking lot, cameras gage the size and motion of vehicles. They capture images and detect motion, providing visual data to the central server.

Parking meters: These act as intermediaries between owners and customers, providing authorization and payment details to operators. They authorize parking and process payments.

Centralized server: The server receives data from sensors and images from cameras. It processes this information and manages data interactions, relaying relevant details to users via mobile apps.

Parking management software: This software communicates with stakeholders, providing real-time information on parking spaces. It updates parking information and notifies users, ensuring efficient management of parking resources.

Smart mobile apps: Mobile apps facilitate transaction handling, enabling users to find parking spaces on the street and in garages.

The relationships and interactions among these components are depicted in Figure 1, which provides a class diagram of the Smart Parking System. This diagram is crucial as it illustrates how the different elements work together to create an efficient and intelligent parking management system, highlighting the structural design and the interactions between sensors, cameras, parking meters, the central server, and parking management software.

Figure 1.

Class diagram of the smart parking system.

In the context of urban environments, smart parking systems exemplify the practical application of IoT, aiming to address critical issues such as traffic congestion and inefficient use of parking spaces. These systems utilize a variety of sensors and communication technologies, such as Bluetooth, Radio Frequency Identification (RFID), and Wi-Fi, to monitor and manage parking availability in real-time [40, 41, 42]. The integration of IoT in parking management not only enhances the user experience but also contributes to environmental sustainability by reducing the time and fuel wasted searching for parking spots.

To classify smart parking systems and integrate networking and layers, we need to understand the different components and how they interact within the system. Smart parking systems can be classified into different layers: Application Layer, Network Layer, Transaction Layer, and Physical Layer. The sequence diagram in Figure 2 illustrates the architecture of integrated smart parking systems, showing how these layers interact to provide a seamless and efficient parking experience.

Figure 2.

Sequence diagram of architecture of smart parking systems.

Application layer: User interaction with the system; Mobile and web applications for searching and reserving parking spots.

Network layer: Ensures communication between the application, parking centers, and IoT devices. Utilizes technologies like LAN, WAN, Bluetooth, Wi-Fi, 4G, and 5G.

Transaction layer: Handles transactions securely using smart contracts and consensus mechanisms. Updates the distributed ledger.

Physical layer: Consists of sensors and devices that gather and transmit data. Includes parking sensors, cameras, and other IoT devices.

Figure 2 visualizes the data flow and interaction between different layers within the smart parking system. It helps in understanding the comprehensive architecture and how various technologies and components work together to deliver a user-friendly and efficient parking management solution.

Advertisement

3. Data integration in adaptive learning of smart parking systems

Adaptive learning refers to systems that can adjust their operations based on data and feedback, improving over time. In the context of smart parking, adaptive learning can optimize parking space usage, predict future occupancy, and implement dynamic pricing strategies.

Smart parking systems operate by collecting data from multiple sources, to provide accurate information on parking space availability. This data is then processed using advanced machine learning (ML) and artificial intelligence (AI) techniques to predict parking occupancy, optimize parking space usage, and implement dynamic pricing strategies [43, 44, 45, 46]. By leveraging these technologies, smart parking systems can adapt to changing conditions and user behaviors, offering personalized services and improving overall operational efficiency.

The diagram in Figure 3 illustrates the model of a smart parking system, highlighting the flow of data from sensors and mobile data collectors through gateways and the cloud to the end-users. This model shows how the integration of various components and communication technologies enables real-time monitoring and management of parking spaces.

Figure 3.

Smart parking system model.

Figure 3 provides a comprehensive view of the system architecture, depicting the integration of various components and communication technologies in real-time monitoring and management of parking spaces. Here are the elements in the diagram:

  • Sensors: Collect data on parking space occupancy and transmit this information to the video data collector.

  • Video data collector: Gathers video data from cameras and sends it to the cloud for processing.

  • Gateway: Acts as an intermediary, transmitting data between sensors, the database, and the cloud.

  • Database: Stores collected data for analysis and retrieval.

  • Cloud: Central hub for data processing and storage, facilitating communication between different system components.

  • Access point: Provides connectivity between the cloud and user devices, allowing users to access parking information.

  • User: Accesses parking information via mobile and web applications, making informed decisions about parking space usage.

  • Communication technologies: Utilize Bluetooth, RFID, Wi-Fi, and cellular networks (2G/3G/4G/5G) to transmit data between devices.

  • Mobile data: Enables real-time data transmission from user devices to the cloud.

By integrating ML and AI into IoT-enabled smart parking systems, we can significantly enhance urban mobility, reduce congestion, and promote sustainable development. The advanced data collection and analysis techniques allow for accurate, real-time information on parking space availability, optimizing resource utilization and implementing dynamic pricing strategies. ML algorithms analyze parking data to determine parking status and predict future occupancy, enabling smarter traffic management.

Machine learning methods in smart parking systems can be based on different types of data collected from various sources, such as images, GPS signals, environmental sensors, and time-based data. Each data type provides unique insights into parking dynamics:

SPS based on Computer vision/image processing: Utilizing camera networks, these systems extract information such as parking occupancy status, license plate recognition, and facial recognition for payment and security. They are particularly suitable for open parking lots, although they can be affected by occlusion, shadows, and lighting changes [47].

SPS based on Global positioning system (GPS): GPS guides users to available parking spots and can predict parking occupancy and traffic congestion. While suitable for open parking lots, GPS accuracy can vary, and it is less effective in indoor spaces [12]. Advantages of GPS are, highly effective for open parking lots and provides real-time location data. Challenges can be, GPS accuracy, especially in indoor or densely built environments, making it less effective for covered parking areas. This kind of example is navigation systems guiding drivers to available parking spots. Real-time traffic and parking congestion prediction [48].

SPS based on Wireless sensor networks (WSN): consists of wirelessly connected sensor nodes that monitor various environmental data facilities. These sensors are highly flexible, adaptable, and cost-effective, making them popular among SPS developers [49]. This involves connecting sensors to processing units, either through wired or wireless technologies such as ZigBee, Wi-Fi, and mobile networks (3G/4G) [50, 51, 52].

Historical and real-time reservation data: Connects end-users to SPS for tasks like data visualization, parking reservation, and payment, primarily relying on wireless connectivity like 3G/4G/5G, Wi-Fi, and Device-to-Device (D2D) communication. This method includes information such as the entry and exit times of vehicles, the total duration of vehicle occupancy, and the availability of parking spaces. Both historical and real-time data are used to improve parking management. Enables predictive analytics for better parking management and dynamic pricing strategies.

By integrating IoT with machine learning and AI, smart parking systems can significantly enhance urban mobility, reduce congestion, and promote sustainable development.

Advertisement

4. Methodology: Real-case

Skopje capital city of North Macedonia, has open and closed parking areas managed by ramps for access control. The public enterprise City Parking Skopje implemented 9396 parking spaces to cater to the needs of residents in regulating inactive traffic and improving parking conditions. The city’s parking areas are organized into four zones based on restriction levels and proximity to the city center: first degree (red zone), second degree (yellow zone), third degree (green zone), and fourth degree (white zone).

To analyze the parking situation in Skopje, data were collected from three parking locations within the city center: red zone, yellow zone, and green zone.

4.1 Data collection

The data collection involved a manual counting method called the “Entry-Exit” method. This method entails recording the number of vehicles entering and exiting the parking area over a specified time period. The data collection was conducted over seven consecutive days, from 2019 to 2022 year. This timeframe covers both peak and off-peak hours, providing a detailed understanding of daily parking patterns.

4.1.1 Parameters measured

Initial occupancy (i): The count of vehicles present in the parking area at the beginning of the observation period; Vehicle entry: The count of vehicles entering the parking area during the observation period; Vehicle exit: The count of vehicles exiting the parking area during the observation period.

4.2 Data preprocessing and analysis

The data collected were processed to calculate the occupancy and utilization rates of the parking facilities. The formula used to calculate the occupancy at any given time is:

Z=i+EntryExitE1

where Z is the occupancy, i is the initial number of parked vehicles, and Entry and Exit are the counts of vehicles entering and exiting the parking area, respectively.

Тhe process of methodology and the steps of machine learning to enable smart parking is shown in Figure 4.

Figure 4.

Algorithm of the machine learning process for data analysis of parking place.

The process begins with collecting the parking data set. This data includes various information about parking such as entry and exit times, occupancy, and other relevant variables.

Data preprocessing: The raw data collected is preprocessed to clean and format it appropriately. This step may include handling missing values, normalizing the data, and removing any inconsistencies to ensure the data is suitable for analysis.

Data splitting: The preprocessed data is split into two sets: training data and test data. Typically, 75% of the data is used for training the model, and the remaining 25% is used for testing its performance.

Building models are made base on supervised machine learn algorithms and regression method. Given that dataset is data that is time series as the most suitable models are taken Ridge Regression, RandomForestRegressor with lagged features for time series data and, Multi-Layer Perceptron (MLP) Regressor with neural network architecture algorithms to develop predictive models.

The Ridge Regression is a linear regression which includes a regularization term in order to prevent overfitting. The regularization term, also known as the L2 penalty, adds a constraint on the coefficients of the model. The objective of ridge regression is to reduce the sum of squared residuals while also constraining the magnitude of the coefficients.

Let us denote the following:

ŷ=+bE2

ŷ is predicted target variable, X is matrix of input features, β is a vector of coeficients, and b is intercept term.

In Ridge Regression, the coefficients β are determined by minimizing the combined error between the observed and predicted target values, while also penalizing large coefficients to prevent overfitting. This is achieved by solving the optimization problem expressed in the equation:

minβi=1Nyiŷ2+αi=1pβj2E3

A Random Forest Regressor is an ensemble learning method that operates by constructing multiple decision trees during training and outputting the average prediction of the individual trees. It is highly effective for regression tasks and can be adapted for time series forecasting by incorporating lagged features. It uses past values of the time series (lagged features) to predict future values. By averaging the predictions of multiple decision trees, it provides a robust and accurate forecast. This method is effective for capturing complex patterns in time series data without requiring assumptions about the underlying data distribution.

Given a time series data {yt} at time t, to forecast future values of the time series, it is used past values (lagged features) as inputs. For example, to predict yt, the features are:

yt,yt1,yt2,ytpE4

where p is the number of lags.

For each time step t, we construct a feature vector.

Xt consisting of lagged values of the time series:

Xt=yt1yt2...ytpE5

For each time step t from p to T (where T is the total number of time steps), create a feature vector Xt and the corresponding target value Yt.

For training set:

Input features:

xp+1,xp+2,xTE6

Constructing the Training Set for each t from p to T for input features:

Xp+1=ypyp=1...y1Xp+2=yp+1yp...y2XT=yT1yT2...yTpE7

Target values:

yp+1,yp+2,yTE8

The model f predicts the future value yt̂ based on the input feature vector xt:

yt̂=fXtE9

Individual decision trees: Each decision tree hixi in the forest is trained on a bootstrapped sample of the training data.

Random subset of features: At each split in the tree, a random subset of features is selected, and the best split is chosen from this subset.

Aggregating predictions: The prediction of the Random Forest Regressor is the average of the predictions of the individual trees:

ŷ=1ni=1nhixiE10

where n is the number of trees.

A Multi-Layer Perceptron (MLP), consists of the input and output layer, and between them one or more hidden layers. Each layer is composed of nodes (neurons). The neurons in one layer are connected to those in the subsequent layer through weights.

Input Layer to Hidden Layer.

Input features: X=x1x2xnT.

Weights W1

Biases b1

Transformation to the hidden layer:

Z1=W1X+b1E11

In matrix form:

Z1=W111W211Wh11W121W221Wh21W1n1W2n1Whn1x1x2xn+b11b21bh1E12

Activation Function: A1=fZ1

Hidden Layer to Output Layer

Weights W2

Biases b2

Transformation to the hidden layer:

Z2=W2A1+b2E13

In matrix form:

Z2=W112W122W1h2A11A21Ah1+b2E14

Output:

yt̂=Z2E15

Evaluation metrics (RMSE, R2 Score): The trained models are evaluated using metrics such as RMSE (Root Mean Square Error) and R2 Score (Coefficient of Determination). These metrics help in understanding how well the model is performing in terms of accuracy and variance explanation.

The RMSE presents a measure of the differences between the values predicted by the model and the actual values. It is determined by taking the square root of the mean of the squared discrepancies between the predicted values and the actual values. The formula for RMSE is:

RMSE=1ni=1nyiŷ2E16

Where

n is the number of data points

yi is the actual value

yî is the predicted value

R2 Score: is a statistical measure that indicates the proportion of the variance in the dependent variable that is predictable from the independent variables. Value of R2 Score is between 0 and 1, where 1 indicates that the regression predictions perfectly fit the data. The formula for R2 Score is

R2=1yiŷ2yiy¯2E17

yi¯ is the actual value

R2 Score: Reflects how well the model explains the variance in the data. Higher R2 values indicate better explanatory power.

These metrics aid in evaluating the accuracy and reliability of parking space availability predictions, guiding the selection of the most suitable machine learning model.

Best model by metrics results: Based on the evaluation metrics, the best-performing model is selected. This model is considered the most suitable for predicting parking availability and occupancy.

Predict parking: The selected model is then used to predict parking availability based on new data or unseen data. This step involves using the model to make predictions on parking occupancy.

Graphical comparison of real and predicted data: A graphical comparison is made between the real (actual) data and the predicted data to visually assess the performance of the model. This helps in understanding how close the predictions are to the actual values.

Advertisement

5. Results

The data collected provided insights into the hourly variation in parking occupancy at each location. To visualize the distribution of vehicle data across different junctions in the parking place, we utilized Python’s seaborn and matplotlib libraries to create histograms with Kernel Density Estimate (KDE) overlays. The histograms help in understanding the frequency and probability distribution of vehicle counts at various parking places, providing insights into traffic patterns and parking demand. On the x-axis, the number of vehicles is represented, while on the y-axis, the probability is shown. Figure 5 presents the visualization of vehicle distribution for different parking places: parking place 1, which is the red zone, parking place 2, which is the yellow zone, and parking place 3, which is the green zone.

Figure 5.

Vehicle distribution for different parking places, parking place 1 (red zone), parking place 2 (yellow zone), and parking place 3 (green zone).

These visualizations are crucial for identifying trends and patterns in vehicle distribution, which can inform decisions related to traffic management and smart parking solutions. To analyze and visualize the monthly sum of vehicle data for different parking places, we used Python’s matplotlib library to create a series of line plots. These plots provide a clear depiction of vehicle counts over time, allowing us to observe trends and variations across different parking places.

Each subplot provides a visual representation of the monthly summed vehicle counts, allowing for comparison and analysis of vehicle trends across the different parking places. The use of different colors for each parking place enhances the clarity and distinction between the plots.

These visualizations are crucial for identifying patterns in vehicle distribution, which can inform decisions related to traffic management and smart parking solutions.

Figure 6 displays the monthly dynamics of the number of vehicles in three different parking places (parking place 1, parking place 2, and parking place 3) from January 2020 to July 2021. Each subplot represents the vehicle counts for a specific parking place over time, using different colors for clear distinction.

Figure 6.

Dinamics of amounts of vehicles by parking places (each parking place by month).

Parking place 1 (red line): This diagram shows a steady increase in the number of vehicles over the observed period. The vehicle count starts at approximately 20,000 in January 2020 and gradually rises to about 50,000 by July 2021. The consistent upward trend suggests a growing demand for parking at this location, possibly due to increased traffic or a rise in the number of events and activities in the area.

Parking place 2 (yellow line): In contrast to parking place 1, this plot shows a more stable vehicle count with minor fluctuations until late 2020. From early 2021, there’s a noticeable increase in the number of vehicles, rising from around 6000 to approximately 18,000 by July 2021. The initial stability followed by a significant increase indicates that parking place 2 experienced a sudden surge in demand, which could be due to changes in nearby attractions, improved accessibility, or other local developments.

Parking place 3 (green line): demonstrates more variability compared to the other two parking places. The data shows fluctuations throughout the period, with peaks around mid-2020 and early 2021, and a notable rise toward July 2021. The fluctuating pattern suggests that parking place 3 may be influenced by seasonal events, temporary closures, or other periodic factors affecting its use. The increase toward the end of the observed period might indicate a shift in traffic patterns or enhanced usage.

The performance of each model was evaluated using two primary metrics: the coefficient R2 Score and RMSE. These metrics provide insights into the models’ predictive accuracy and precision. Table 1 summarizes the performance metrics of the machine learning models used in the study, such as Ridge Regression, RandomForestRegressor, and Multi-Layer Perceptron, across different parking zones.

ModelParking zoneR2 ScoreRMSE
Ridge regressionred0.62182714.181326
yellow0.5214655.095181
green0.2500878.830870
RandomForestRegressor - Lag modelred0.9701343.973837
yellow0.8857172.522930
green0.7257475.696169
Neural network (Multi-layer perceptron)
red0.9387885.847090
yellow0.8640092.773242
green0.7512935.071122

Table 1.

Metrics results of the models across parking zones.

The R2 score is thee coefficient of determination, indicates how well the model explains the variance in the data. The closer the R2 score is to 1, the better the model’s performance. A higher R2 score means the model can explain more of the variability in the target variable.

  • Ridge regression: The R2 scores range from 0.250087 to 0.621827, indicating that this model explains a moderate amount of variance in the data, with better performance in the red zone and lower performance in the green zone.

  • RandomForestRegressor - Lag model: This model shows high R2 scores, ranging from 0.725747 to 0.970134, indicating excellent performance across all zones, particularly in the red zone.

  • Neural network (Multi-layer perceptron): The R2 scores are also high, ranging from 0.751293 to 0.938788, showing good performance across all zones, especially in the red zone.

RMSE measures the average magnitude of the errors between predicted and actual values. A lower RMSE indicates better model performance, as it signifies that the predictions are closer to the actual values.

  • Ridge regression: The RMSE values range from 5.095181 to 14.181326, indicating that the predictions have a higher average error, particularly in the red zone.

  • RandomForestRegressor - Lag model: This model shows low RMSE values, ranging from 2.522930 to 5.696169, indicating more accurate predictions, especially in the yellow zone.

  • Neural network (Multi-layer perceptron): The RMSE values range from 2.773242 to 5.847090, showing that the model makes relatively accurate predictions, particularly in the yellow zone.

At Figure 7 is presented the model performs. The performs on the “red” zone is with the highest R2 score (0.970134) and a moderate RMSE (3.973837).

Figure 7.

Predicted vs. real values for parking place 1 (red zone).

The graph shows the predicted values closely following the trend of the real values. The alignment between the predicted and real values indicates that the model effectively captures the patterns and fluctuations in vehicle numbers over time.

Occasional spikes and dips in the real values are also reflected in the predicted values, demonstrating the model’s ability to respond to variations. However, some discrepancies exist, particularly in the peaks and troughs, which is expected in any predictive model.

Figure 8 illustrates the performance of the predictive model for parking place 2 (Yellow Zone) by comparing the predicted values (dark yellow line) against the real values (light yellow line) over time. The model performs well on the “yellow” zone, with a good R2 score (0.885717) and the lowest RMSE (2.522930), indicating the most accurate predictions.

Figure 8.

Predicted vs. real values for parking place 2 (yellow zone).

Both figures show that the predicted values closely follow the real values, but Figure 7 has occasional larger discrepancies in peaks. Figure 8 demonstrates stronger alignment in capturing peaks and troughs. Both models are highly useful for real-time management, but the model for the Red Zone (Figure 7) shows slightly better overall variance explanation, while the model for the Yellow Zone (Figure 8) has a lower average prediction error, indicating more precise predictions.

Figure 9 illustrates the performance of the predictive model for parking place 3 (Green Zone) by comparing the predicted values (dark green line) against the real values (light green line) over time.

Figure 9.

Predicted vs. real values for parking place 3 (green zone).

The model performs the worst on the “green” dataset, with the lowest R2 score (0.725747) and the highest RMSE (5.696169). The graph shows that the predicted values (dark green line) generally follow the trend of the real values (light green line). However, there are noticeable discrepancies, particularly around the peaks and troughs, where the model fails to capture some of the extreme variations in the real values. Despite these discrepancies, the model captures the overall pattern and central tendencies in vehicle numbers over time, indicating less accurate predictions compared to the other datasets.

Advertisement

6. Proposed development of a smart parking solution for Skopje for future work

Based on the data collected and the observed peak parking hours, a smart parking system utilizing mobile applications is proposed. The model follows the example of Barcelona [13, 53], where wireless sensors provide real-time parking status updates through a mobile app. This system includes:

  • Electromagnetic sensors at each parking spot to detect occupancy,

  • ANPR cameras for vehicle identification,

  • Infrared cameras at entry and exit points for monitoring,

  • A mobile app for users to check availability, make reservations, and manage payments.

Implementing this smart parking system will reduce traffic congestion during peak hours, streamline the parking search process, and provide real-time parking information to drivers. The intelligent system will modernize vehicle control and reduce the need for human labor, making it an efficient and sustainable solution for Skopje’s growing urban infrastructure.

The development of the smart parking system involves installing wireless sensors and providing real-time updates on the status of parking locations through a mobile application. As the most appropriate and acceptable, I suggest that it be applied to the selected locations in Skopje.

The following Figure 10 shows the architecture of the proposed smart parking model.

Figure 10.

Proposed development of a smart parking system.

The way this proposed smart parking system works is as follows: first, the user requests information from the mobile application. In this case, the user can request where the parking is available, the location of the available parking space, payment information, etc. Sensors placed in each parking space detect whether the parking space is available or unavailable and transmit the information wirelessly to the database and then to the user. The mobile application then displays information stored from the database in the server and resolves the user’s query in real time. Vehicles can be parked in the available space and the user can pay for the parking space and locate the car at any time using the mobile application.

The electromagnetic sensors are installed in each parking space, in each of the parking locations, which detect the status of each parking space and send all the information about the occupancy to the central management unit. To deliver the occupancy status of each parking space, sensors are connected to an IoT network. The sensors work on batteries and continuously register the presence of a vehicle in the parking space and wirelessly send the data to the receiver. A receiver operating in the 865–867 Mhz range updates this server occupancy data to the control center over the Internet using a wired network, as shown in Figure 11.

Figure 11.

An example of sensor and receiver placement in a parking location.

The identification of the vehicles arriving or leaving the parking lot is done using an ANPR camera (Figure 11). ANPR stands for Automatic Number Plate Recognition and contains the technology to identify a vehicle by number plate. With the implementation of automatic license plate recognition cameras, the technology can scan a license plate and forward the associated action to the management system. This allows for a modernized version of vehicle control and limits the need for human labor given the stand-alone nature of ANPR technology. In addition, the parking lot has cameras (based on infrared technology) with the ability to zoom, located at the entry and exit points to monitor the parking zone. Any unauthorized entry of the vehicle that does not go through plate recognition can be easily verified by the operator.

Users can check the availability of the parking zone, as well as get information about the location and availability of parking locations through the mobile application installed in their mobile phones. The mobile application also shows users the occupancy of parking zones in real time.

As described above, the mobile application offers two ways for drivers to select a desired parking location, by searching for parking locations through the nearby button and by entering the address of the desired parking location, as shown in Figure 12.

Figure 12.

Smart parking app.

After they select the desired address, the coordinates are sent to the management system which then updates the data in real time. If the user selects the nearby button, the GPS system locates the user’s current location and the application displays the distance and availability of parking locations as shown in Figures 12 and 13.

Figure 13.

Information about parking location 2 (Zone C80 – yellow zone).

Advertisement

7. Conclusions

The integration of IoT, machine learning, and artificial intelligence within smart parking systems offers a promising solution to the growing challenges of urban mobility and parking management. This chapter has demonstrated how leveraging these advanced technologies can optimize parking space utilization, reduce traffic congestion, and enhance the overall user experience.

The data analysis and machine learning models applied in this study have provided valuable insights into parking occupancy patterns and the effectiveness of predictive algorithms. The RandomForestRegressor with lagged features exhibited superior performance across all parking zones, making it the most effective model for predicting vehicle counts. The Neural Network (Multi-layer Perceptron) also showed good performance and is a viable alternative, while Ridge Regression, though useful, did not perform as well as the other two models, especially for the data of the green zone.

The deployment of such an intelligent parking system in Skopje is poised to modernize the city’s urban infrastructure, reduce the environmental impact of traffic congestion, and promote sustainable urban development. By continuously monitoring and managing parking resources, the system can adapt to dynamic conditions and user behaviors, offering personalized and efficient services to drivers.

This chapter highlights the critical role of smart technologies in addressing urban challenges and sets the stage for further advancements in smart parking systems, paving the way for smarter, and more efficient, and sustainable cities.

References

  1. 1. Ashton K. That ‘internet of things’ thing. RFID Journal. Jun 22, 2009;22(7):97-114
  2. 2. Panetta K. Gartner top 10 strategic technology trends for 2018. Gartner [Internet]. 2017 Oct 3. Available from: https://www.gartner.com/en/newsroom/press-releases/2017-10-03-gartner-identifies-the-top-10-strategic-technology-trends-for-2018 [Accessed: August 12, 2024]
  3. 3. Cisco. Cisco Annual Internet Report (2018–2023) White Paper [Internet]. Available from: https://www.cisco.com/c/en/us/solutions/collateral/executive-perspectives/annual-internet-report/white-paper-c11-741490.html [Accessed: August 12, 2024]
  4. 4. Khanna A, Kaur S. Internet of Things (IoT), Applications and Challenges: A Comprehensive Review. Wireless Personal Communications. 2020;114:1687-1762. DOI: 10.1007/s11277-020-07446-4
  5. 5. Khan S, Ali R, Baig Z, Erwin A. IoT-based smart parking: A review on technology, solution and research prospects. Journal of Advanced Transportation. 2018;2018:1-11. DOI: 10.1155/2018/4125085
  6. 6. Fraifer M, Fernström M. Investigation of smart parking systems and their technologies. Thirty Seventh International Conference on Information Systems. Dublin, Ireland: IoT Smart City Challenges Applications (ISCA 2016); Dec 9, 2016. p. 1-14
  7. 7. Rao RM, Lambat M, Kapare S, Vidhate AP. Smart parking system using machine learning and Internet of Things. International Journal for Research in Applied Science and Engineering Technology. 2021;9(1):682. DOI: 10.22214/ijraset.2021.32904. Available from: https://www.ijraset.com/fileserve.php?FID=32904
  8. 8. Sarker IH. Machine learning: Algorithms, real-world applications and research directions. SN Computer Science. 2021;2(3):1-21. DOI: 10.1007/s42979-021-00592-x
  9. 9. Zhang Y, Lai Z, Sun H, Dong Z. A survey on smart parking: Solutions and technologies. IEEE Transactions on Industrial Informatics. 2017;13(4):1529-1539. DOI: 10.1109/TII.2016.2611588
  10. 10. Liu C, Fan H, Chen X. Wireless sensor networks in smart parking systems. Sensors. 2019;19(4):882. DOI: 10.3390/s19040882
  11. 11. Chen W, Wu X, Ji J, He Q. Computer vision techniques for smart parking: A survey. IEEE Access. 2019;7:178327-178344. DOI: 10.1109/ACCESS.2019.2958552
  12. 12. Ochieng WY, Sauer K. Urban road user charging and its interaction with intelligent transport systems. IEE Proceedings - Intelligent Transport Systems. 2002;149(3):178-184. DOI: 10.1049/ip-its:20020523
  13. 13. Biyik C, Allam Z, Pieri G, Moroni D, O’Fraifer M, O’Connell E, et al. Smart parking systems: Reviewing the literature, architecture and ways forward. Smart Cities. 2021;4:623-642. DOI: 10.3390/smartcities4020032
  14. 14. Watene G, Musiega D, Ndegwa C. A GIS based parking management and dissemination system. International Journal of Scientific Research. 2013;2(7):194-201. Available from: https://www.academia.edu/78264477/A_GIS_Based_Parking_Management_and_Dissemination_Syste
  15. 15. Aloi G, Caliciuri G, Fortino G, Gravina R, Pace P, Russo W, et al. Enabling IoT-based smart cities: A review. Wireless Personal Communications. 2016;87(4):1257-1276. DOI: 10.1007/s11277-015-2981-5
  16. 16. Bakıcı T, Almirall E, Wareham J. A smart city initiative: The case of Barcelona. Journal of the Knowledge Economy. 2013;4:135-148. DOI: 10.1007/s13132-012-0084-9
  17. 17. Tomàs M. The smart city and urban governance: The urban transformation of Barcelona, 2011–2023. Urban Research and Practice. 2023:1-18. Available from: https://www.tandfonline.com/doi/full/10.1080/17535069.2023.2277205. DOI: 10.1080/17535069.2023.2277205
  18. 18. Barcelona Smart City Project [Internet]. Available from: https://ajuntament.barcelona.cat/digital/en. [Accessed: August 11, 2024]
  19. 19. Abbas Q, Ahmad G, Alyas T, Alghamdi T, Alsaawy Y, Alzahrani A. Revolutionizing urban mobility: IoT-enhanced autonomous parking solutions with transfer learning for smart cities. Sensors. 2023;23(21):8753. DOI: 10.3390/s23218753
  20. 20. SFpark Project, San Francisco. Available from: https://sfpark.org
  21. 21. SFMTA.com/ParkingRates. Available from: https://www.sfmta.com/demand-responsive-parking-pricing
  22. 22. Lee J, Babcock J, Pham TS, Bui TH, Kang M. Smart city as a social transition towards inclusive development through technology: A tale of four smart cities. International Journal of Urban Sciences. 2022;27(suppl. 1):75-100. DOI: 10.1080/12265934.2022.2074076
  23. 23. Amsterdam Smart City. Available from: https://amsterdamsmartcity.com
  24. 24. Joo YM. Developmentalist smart cities? The cases of Singapore and Seoul. International Journal of Urban Sciences. 2021;27(sup1):164-182. DOI: 10.1080/12265934.2021.1925143
  25. 25. Srikanth AD, Schroepfer T. Network science-based analysis of urban green spaces in Singapore. International Journal on Smart and Sustainable Cities. 2023;1(1):2340004. DOI: 10.1142/S2972426023400044
  26. 26. Singapore Smart Nation. Available from: https://www.smartnation.gov.sg
  27. 27. Tekin H, Dikmen I. Inclusive smart cities: An exploratory study on the London smart city strategy. Buildings. 2024;14(2):485. DOI: 10.3390/buildings14020485
  28. 28. Narkhede N, Khan S. Smart parking system using machine learning algorithms. International Journal of Advanced Research in Computer and Communication Engineering. 2020;9(3):1-6. DOI: 10.17148/IJARCCE.2020.9321
  29. 29. Raj A, Shetty SD. Smart parking systems technologies, tools, and challenges for implementing in a smart city environment: A survey based on IoT & ML perspective. International Journal of Machine Learning and Cybernetics. 2024;15(7):1-22. DOI: 10.1007/s13042-023-02056-5
  30. 30. Singh T, Rathore R, Gupta K, Vijay E, Harikrishnan R. Artificial intelligence-enabled smart parking system. In: Shaw RN, Siano P, Makhilef S, Ghosh A, Shimi SL, editors. Innovations in Electrical and Electronic Engineering. ICEEE 2023. Lecture Notes in Electrical Engineering. Vol. 1115. Singapore: Springer; 2024. pp. 31-44. DOI: 10.1007/978-981-99-8661-3_31
  31. 31. Knights VA, Gacovski Z, Deskovski S. Guidance and control system for platoon of autonomous mobile robots. Journal of Electrical Engineering. 2018;6:281-288. DOI: 10.17265/2328-2223/2018.05.005
  32. 32. Antoska-Knights V, Gacovski Z, Deskovski S. Obstacles avoidance algorithm for mobile robots, using the potential fields method. Universal Journal of Electrical and Electronic Engineering. 2017;5(4):75-84. DOI: 10.13189/ujeee.2017.050402
  33. 33. Knights V, Petrovska O. Dynamic modeling and simulation of mobile robot under disturbances and obstacles in an environment. Journal of Applied Mathematics and Computing. 2024;8(1):59-67. DOI: 10.26855/jamc.2024.03.007
  34. 34. Antoska V, Jovanović K, Petrović VM, Baščarević N, Stankovski M. Balance analysis of the mobile anthropomimetic robot under disturbances – ZMP approach. International Journal of Advanced Robotic Systems. 2013;10(4):1-10. DOI: 10.5772/56238
  35. 35. Chataut R, Phoummalayvane A, Akl R. Unleashing the power of IoT: A comprehensive review of IoT applications and future prospects in healthcare, agriculture, smart homes, smart cities, and industry 4.0. Sensors. 2023;23:7194. DOI: 10.3390/s23167194
  36. 36. Knights VA, Gacovski Z. Methods for detection and prevention of vulnerabilities in the IoT (internet of things) systems. In: Internet of Things - New Insights. London, UK: IntechOpen; 2024. DOI: 10.5772/intechopen.113898
  37. 37. Tang J, Wan L, Schooling J, Zhao P, Chen J, Wei S. Automatic number plate recognition (ANPR) in smart cities: A systematic review on technological advancements and application cases. Cities. 2022;129:103833. DOI: 10.1016/j.cities.2022.103833
  38. 38. Lubna MN, Shah SAA. Automatic number plate recognition: A detailed survey of relevant algorithms. Sensors. 2021;21:3028. DOI: 10.3390/s21093028
  39. 39. Tripathi S, Shetty S, Jain S, Sharma V. Automatic Number Plate Recognition System (ANPR): The Implementation. The International Journal of Innovative Technology and Exploring Engineering (IJITEE). Jun 2021;10(8):1-5. ISSN: 2278-3075
  40. 40. Sheng NW, Wan Muda WM, Annuar AZ, Wan Hassan WH. Parking system using radio-frequency identification (RFID) technology. In: Yacob NA, Tholibon DA, Mohd Yunus NY, Jamil Z, Mohd Tahir S, editors. Fundamental and Applied Sciences in Asia. Singapore: Springer; 2022. p. 49-54. DOI: 10.1007/978-981-19-4910-4_8
  41. 41. Gupta A, Srivastava A, Anand R, Chawla P. IoT based smart vehicle parking system using RFID. The International Journal for Modern Trends in Science and Technology. 2021;10(2):49-54
  42. 42. Santoso H, Wibowo A, Sari R. Smart parking management system: An integration of RFID, ALPR, and WSN. International Journal of Computers and Applications. 2018;179(38):1-6
  43. 43. Elfaki AO, Messoudi W, Bushnag A, Abuzneid S, Alhmiedat T. A smart real-time parking control and monitoring system. Sensors. 2023;23(24):9741. DOI: 10.3390/s23249741
  44. 44. Vink JP, de Haan G. Comparison of machine learning techniques for target detection. Artificial Intelligence Review. 2015;43:125-139. DOI: 10.1007/s10462-012-9366-7
  45. 45. Sarker IH. Machine learning: Algorithms, real-world applications and research directions. SN Computer Science. 2021;2(160):1-21. DOI: 10.1007/s42979-021-00592-x
  46. 46. Boukerche A, Wang J. Machine learning-based traffic prediction models for intelligent transportation systems. Computer Networks. 2020;181:107495. DOI: 10.1016/j.comnet.2020.107495
  47. 47. Pasala KL, Nathanail EG, Gavanas N, Adamos G, editors. Smart parking system (SPS): An intelligent image-processing based parking solution. In: Smart Energy for Smart Transport. CSUM 2022. Lecture Notes in Intelligent Transportation and Infrastructure. Cham: Springer; 2023. DOI: 10.1007/978-3-031-23721-8_25
  48. 48. Mekni M, Atilho S, Greenfield B, Placzek B, Nassar M. Real-time smart parking integration in intelligent transportation systems (ITS). In: Arai K, editor. Proceedings of the Future Technologies Conference (FTC) 2023. Vol. 3. FTC 2023. Lecture Notes in Networks and Systems, Vol. 815. Cham: Springer; 2023. DOI: 10.1007/978-3-031-47457-6_14
  49. 49. Wang Q, Zhan J, Ouyang X, Ren Y. SPS and DPS: Two new grid-based source location privacy protection schemes in wireless sensor networks. Sensors. 2019;19(9):2074. DOI: 10.3390/s19092074
  50. 50. Bharadwaj M, Mahalakshmi S, Hegde VN. Work-in-progress: ‘ParKnow’—A system for smart parking management. In: Auer M, Ram BK, editors. Cyber-Physical Systems and Digital Twins. REV2019 2019. Lecture Notes in Networks and Systems. Vol. 80. Cham: Springer; 2020. DOI: 10.1007/978-3-030-23162-0_23
  51. 51. Sadeghzadeh N, Farajzadeh N, Dattatri N, et al. SPS vision net: Measuring sensory processing sensitivity via an artificial neural network. Cognitive Computation. 2024;16:1379-1392. DOI: 10.1007/s12559-023-10216-6
  52. 52. Nam SM, Kim HJ. WSN-SES/MB: System entity structure and model base framework for large-scale wireless sensor networks. Sensors. 2021;21(2):430. DOI: 10.3390/s21020430
  53. 53. Ilhan A, Fietkiewicz KJ, Stock WG. Do car drivers really need mobile parking payment? In: Marcus A, Wang W, editors. Design, User Experience, and Usability: Designing Pleasurable Experiences. DUXU 2017. Lecture Notes in Computer Science. Vol. 10289. Cham: Springer; 2017. DOI: 10.1007/978-3-319-58637-3_19

Written By

Vesna Knights, Olivera Petrovska and Marija Prchkovska

Submitted: 28 June 2024 Reviewed: 28 July 2024 Published: 23 August 2024