Abstract
In recent smart city innovations, parking lot location has garnered a lot of focus. The issue of where to put cars has been the subject of a lot of literature. However, these efforts rely heavily on algorithms built on centralized servers using historical data as their basis. In this study, we propose a smart parking allocation system by fusing k-NN, decision trees, and random forests with the boosting techniques Adaboost and Catboost. Implementing the recommended intelligent parking distribution technique in Smart Society 5.0 offers promise as a practical means of handling parking in contemporary urban settings. Users will be given parking spots in accordance with their preferences and present locations as recorded in a centralized database using the proposed system’s hybrid algorithms. The evaluation of performance considers the effectiveness of both the ML classifier and the boosting technique, and it finds that the combination of Random Forest and Adaboost achieves 98% accuracy. Users and operators alike can benefit from the suggested method’s optimised parking allocation and pricing structure, which in turn provides more convenient and efficient parking options.
Keywords
Introduction
One of the most significant uses of smart technologies is in parking space management, which has revolutionized the way in which people interact with everyday goods. Parking availability, occupancy, and duration data are all gathered in real time by Internet of Things (IoT) sensors and cameras in smart parking management systems. As a result of this analysis, motorists are provided with up-to-date parking place information, and parking lot managers are able to streamline their services [1, 34].
Using real-time data, intelligent parking management systems dynamically allot parking spots and adjust parking rates to optimize space use and revenue. Parking demand can be estimated and space allocation optimized with this information, leading to streamlined operations and reduced traffic jams. Intelligent parking systems (IPS) enhance user satisfaction by facilitating cashless payments, real-time parking availability, and guidance through the use of mobile apps or digital signage. The advantages of an intelligent parking system are shown in Fig. 1 [5, 31].
Advantages of IPS in digital soceity.
In addition to enhancing effectiveness and accessibility, sophisticated parking administration techniques can lessen their negative effects on biodiversity. Congestion in the public transportation system is alleviated, and air quality is enhanced, thanks to these initiatives. When utilized alongside shared bikes and public transportation, efficient parking facilities can help develop more environmentally friendly urban mobility ecosystems [4, 8].
Intelligent parking administration systems, as depicted in Fig. 2, are notoriously challenging to put into practice [3, 16]. Data security and confidentiality are crucial concerns. These systems need to have acceptable security requirements to capture vital parking data without worrying about data breaches or illegal access. Compatibility issues can also make it difficult to use many smart parking systems and gadgets together [8, 9, 10, 11].
Concerns about computerized parking implementations.
Smart parking management systems might be expensive to implement. These systems’ initial investment can be high, but they can generate long-term savings and revenue generation options. That’s why it’s so important to weigh the costs and benefits thoroughly before getting started [18, 32]. Modern parking management systems [8, 33] are a step toward a more eco-friendly and productive future. Integrating with various green transportation approaches, gathering and analyzing information in real time, and implementing dynamic rates and parking space allocation are all ways in which these technologies may help customers and parking managers. Effective implementation of such platforms requires thought to be given to issues of security and confidentiality of information, interoperability, and cost [10, 12].
In this effort, modern methods are used to enhance the smart parking management system. An adaptively enhanced random forest method is offered to facilitate user choice of parking locations. To better predict parking slot selections, the computer learns from user behavior and preferences. A more efficient and individualized user experience is produced. The second section of the research provides recommendations for where to put parking permits in the future to keep reserved spots from being taken away. The system is able to determine when a user no longer requires a designated area by monitoring their activities and the flow of traffic. Reduce the number of vacant parking spots by giving one to another driver. In the latter section of the paper, the need for collecting and managing data in real time is emphasized, both for database entries and experimental datasets. Because of this, the system can easily adjust to new circumstances by analyzing user behavior and system health with great accuracy and speed.
Here’s how the rest of the tasks are laid out: The literature on parking administration is dissected in the following part. In the third section, we’ll talk about collecting features, hybrid ML, and evaluation metrics. Many studies and experiments are discussed in the fourth part. The final section wraps up the whole work.
Data shows an increase in both traffic congestion and wasted time in the suburbs of major cities. This is a waste of gas, an annoyance to motorists, and an environmental hazard [39]. Congestion has been shown to have an impact on gas consumption [5, 21]. As a result, there is an increase in the discharge of NOx, CO, CO2, VOCs, HCs, and VOCs. According to the United Nations Environment Programme [17], air pollution is responsible for about 7 million fatalities per year. Another study from the Harvard School of Public Health predicts that congestion will cost the economy $100 billion by the year 2020 [30].
Parking facility occupancy estimates are promoted through an emphasis on the capacity to resolve parking issues [5, 6, 7, 8]. By utilizing historical vacancy data, this demonstrates the process of generating such assumptions. The paper showcases experimental evaluation outcomes of different methodologies that utilize publicly available databases, well-established regression algorithms, and a meticulously curated collection of features that have been developed since the initial publications [4] and [38].
Scientists have created multiple SPS (Smart Power Systems) utilizing diverse techniques and sensors. In reference [3], the authors provided a concise overview of their original concepts and took into account the attributes of several modern computerized parking methods. The article covers the topics of SPS approaches, indicators, and interfacing equipment. The paper does not address the techniques or procedures that establish the structure of systems that directly interact with users. Nene et al. [34] introduced comparable car parking systems by employing intelligent parking technologies. The author suggests online voting as a means to ease traffic and minimize time in parking lots. The Hungarian distribution mechanism and online voting are demonstrated in [13] to effectively reduce parking shortages and enhance convenience.
The article [44] examines the use of AI and ML in the areas of energy management, public service, security, and protection in the context of smart cities. Congestion mitigation at traffic lights, off-peak energy use in buildings, improved trash management, and enhanced security can all be achieved through these applications. The author offers a creative approach utilizing artificial intelligence to keep an eye on traffic jams within the context of the Internet of Vehicles (IoV) [46]. In an effort to foresee and avoid traffic congestion, the article examines the difficulties associated with managing the increase in connected cars that contribute to vehicular congestion. The suggested approach consists of gathering real-time traffic information from vehicles in motion, applying machine learning algorithms such as Support Vector Machine (SVM), Decision Tree (DT), and Random Forest (RF), processing and analyzing the information, and subsequently generating predictions regarding traffic congestion [2, 3, 4, 5, 6].
New developments in the field of intelligent parking systems
New developments in the field of intelligent parking systems
The authors in [30] provides a comprehensive analysis of the challenges, uses, and prospects of IoT wireless sensors. According to the authors, wireless sensor networks face challenges related to resource administration, safety, and data interpretation. In addition, they evaluate wireless sensors used in intelligent residences, medical care, and ambient surveillance IoT solutions. The experts conclude by providing their predictions regarding the utilization of wireless sensors in the Internet of Things (IoT) and emphasizing the imperative for more investigation. Table 1 is a compilation of current parking allocation systems.
These days, sensors and cameras are standard equipment for parking lot control. It’s effective, but it’s costly to keep up and put into practice. In order to locate open time slots, the author [29] employs the utilization of a recording device and computational imaging (YOLO); however, this method is both costly and picky about its parameters. Despite the necessity of accurate information, the vast majority of distributed systems merely offer empty spots in the garage. Having all of your database records up-to-date will speed up your job search. No sensors are required, so the cost of deployment is low. Sensor parking relies on a server to store data [21, 24]. Using the user’s historical and current data, the hybrid adaptively augmented random forest algorithm in the provided assignment model may make predictions about the user’s preferred location. Thus, cancellation due to prolonged slot retention is avoided.
Feature extraction
Intelligent parking systems (IPS) make use of machine learning (ML). Spot, availability, capacity, time-based trends, reservations, pricing, distance from attractions, ease of access, safety measures, current data, user reviews, and environmental impact are all extracted by ML. Allocation of resources, user satisfaction, and parking lot management are all enhanced by ML features [7]. With the use of ML, the system is able to locate and navigate parking spots, track availability, foresee occupancy, and dynamically assign spaces in response to past usage. ML algorithms are useful in reservation systems and pricing comparisons. Customer convenience is increased with the use of ML in the analysis of accessibility and attraction proximity [33]. Processing data in real time and incorporating feedback from users boosts decision-making and system efficiency. The system’s consideration of both green spaces and carbon emissions encourages sustainable parking [42]. Machine learning contributes to the development of smarter and more efficient parking systems.
Suggested IPS methodology
As illustrated in Fig. 3, the strategy that is advised is broken up into two stages, which are training and testing. Regularly revising a hybrid machine learning model using previously gathered parking data during the training stage results in an improved level of functionality. The machine learning algorithm is educated to analyze the collected data, including occupancy rates and trends in accessibility, in order to make a precise forecast of the availability of parking spots contemporaneously. The model’s ability to continuously evolve and adapt to ever-changing parking situations is enhanced by the use of past data, which also contributes to the model’s improved precision as well as efficacy.
The physical realm is optimal for doing system testing. Implementing real-time machine learning system assessment improves the effectiveness of parking demand handling. The Hungarian model selects the optimal parking location for a customer by considering factors such as proximity, cost, and accessibility [29, 33]. The server’s analytics section displays the allocated parking spaces for users. The user receives a parking ticket. By utilizing this token, users are able to authenticate parking upon their arrival. Upon token confirmation, the server stores and upgrades transaction information to retrain the system [43, 47].
Proposed scheme.
The information that users provide will determine the effectiveness of the intelligent parking system. In order to train and fine-tune the model, data is used. With more information, the model can improve its predictions of parking availability and return more precise results to users. It is possible that the system will be able to anticipate changes in demand and adjust the distribution of parking resources accordingly.
The safety of the vehicles is paramount to the success of the IPS. The system in question must ensure the safety of both users’ personal information and equipment. The system employs cryptography and other safeguards to keep user information secure while in retention and transit. Parking lots and goods are protected from vandalism and burglary with the use of CCTV systems and other safeguards.
Our suggested procedure makes use of a hybrid machine learning model [22, 23] that is routinely fed new parking records in order to improve its accuracy. In order to effectively anticipate parking spot accessibility in real time, this algorithm analyzes key parameters such as rate of vacancy, accessibility patterns, proximity among parking lots and locations, and charges. The model improves its accuracy and efficiency over time thanks to its ability to learn from its past mistakes and adjust to new parking situations.
AdaBoost, also known as Adaptive Boosting, is a technique that has been modified for the purpose of classifying jobs [22, 25]. Multiple k-NN models are built on the a database, with individual weights assigned to every instance. Each sample commences with uniform weights. The dataset is used to train k-NN models with these weights, and their error rates are calculated. The weight of the k-NN model is determined by calculating it utilizing the error rate and the learning rate variable (
In order to enhance prediction, this boosting technique employs k-NN and CatBoost. The initial value of the weights used in training is 1/n. The k-NN approach employs weights w_i to train on data set D. Both the error rate and the learning rate are utilized to determine the k-NN model’s relative importance. Adjust the weights in the training model to account for the k-NN model’s error rate. This occurs t times out of t. This method combines the power of k-NN with that of CatBoost. Weights are used to train k-NN on the dataset, with the weights being determined, updated based on the training samples, and normalized. The CatBoost technique is trained using a weighted ensemble of k-NN models. For the current request, CatBoost predicts class labels that are more accurate.
This method integrates Random Forest and AdaBoost [22, 25], with Random Forest used to generate a diverse set of base models and AdaBoost used to enhance underperforming predictions by increasing the weights of them in accordance with the rate of error resulting from the Random Forest framework. The ultimate model can improve its accuracy and efficiency by adapting to new parking conditions with the help of reinforcement learning.
This implementation uses a hybrid algorithm that predicts parking availability in real time by combining the predictions of Random Forest and CatBoost. To predict parking availability, the Random Forest model uses past data, whereas the CatBoost model incorporates forecasts from the Random Forest model [24, 25]. Parking availability can be predicted using a weighted total of the results from both models. How well each model (w_RF and w_CB) performs on historical parking records determines their relative importance.
After a combined forecast has been made, the highest-scoring of all available parking spots is assigned to the customer [36, 39]. Each parking lot is graded based on price and proximity to the customer’s preferred parking spot. Weights for distance and expense are provided via the w_dist and w_cost parameters, respectively. The user is assigned the parking spot with the highest rating. This model combines the best features of the Random Forest and CatBoost algorithms to predict parking space availability and assign spots based on distance and cost in order to improve customer happiness [20, 24].
Sequence numbers can facilitate the process of locating a parked vehicle for drivers. A driver might be assigned a sequential number for their designated parking space. The driver can obtain this sequence number through a mobile application or a display at the parking facility [29, 31]. The sequence number facilitates the driver in locating their vehicle upon their return to the parking facility. This can optimize efficiency and alleviate frustration, particularly in expansive parking lots where locating the vehicle might be challenging [38, 42].
Parking management systems can leverage the sequence number to track spot utilization and optimize allocation. The parking management system can assign priority to each site based on its popularity by monitoring the usage of parking spaces. This information can aid drivers in locating parking spaces while also helping parking operators assign them [37]. Implementing a sequential numbering system for drivers can enhance the user experience of parking facilities, reduce the time and energy required to locate parked vehicles, and optimize the allocation of parking spaces.
Hierarchical framework
The Intelligent Parking System (IPS) is a centralized system that helps drivers discover and reserve parking spots. The Intelligent Parking System (IPS) employs a set of algorithms to determine where, when, and for how long the user needs to park their vehicle. Traditional parking [5] methods, on the other hand, just let vehicles park anywhere they like. Customers may rest assured that they will be directed to the most convenient parking spot in the lot thanks to this method. The IPS simplifies and improves parking for all users by calculating optimal parking times based on these constraints. This strategy is more efficient than picking a parking location at random [3, 16].
Centralized data
The proposed method employs a server-based intelligent parking system to enhance the distribution of parking spots and improve the user experience [8]. The concept consists of two essential components: training and testing. The technology employs a hybrid machine learning model that utilizes parking data and continually enhances its accuracy through updates. The system is trained to examine extracted factors, such as occupancy rates and availability patterns, in order to forecast real-time parking spot availability. By assimilating knowledge from previous errors and adjusting to novel parking situations, the model improves its precision and effectiveness [32]. Testing assesses the anticipated precision of the trained model when applied to novel data. The model’s viability and efficiency are confirmed by the utilization of real-time parking data. This strategy is employed by the server-based system to consistently notify users about the availability of parking spots.
Evaluation measures
a. Confusion matrix
Confusion matrices (CM) [24] are another tool for evaluating the efficacy of a classification system. It provides a more in-depth look into classification results than accuracy by displaying true positives (T
CM to assess suggested hybrid scheme
CM to assess suggested hybrid scheme
The effectiveness of the IPS in carrying out the designated tasks is measured using TP and TN. When a driver makes a reservation for a parking spot and shows up, the prediction is a true positive (T
b. Accuracy
Comparisons of classification systems like hybrid-boosted ML often focus on accuracy [25]. Measures the proportion of test sample occurrences categorized successfully.
c. Selectivity
In this context, “selectivity” refers to an algorithm’s ability to reliably identify positive predictions in a set of records while simultaneously reducing the number of false positives. It’s the skill of sifting through information and eliminating unnecessary details.
d. Sensitivity
Classifiers’ ability to reliably recognize positive cases is measured by a parameter called sensitivity, sometimes known as TP rate. When TP is compared to both TP and FN together, the ratio looks like this:
e. F1_score
The F1-score is a measure of a classifier’s accuracy in machine learning that combines its precision (p) and recall (r) into a single number. It fluctuates from [0, 1], where 1 is the prime F1-score, and is the harmonic mean of ‘p’ and ‘r’.
f. False Prediction Rate
The False Prediction Rate, also known as the False Positive Rate, is a statistical measure in machine learning that quantifies the proportion of negative situations that are incorrectly categorized as positive. To compute it, include both true negatives and false positives [22, 23].
g. False rejection rate
The False Rejection Rate (FRR) is the percentage of legitimate requests that were incorrectly rejected by a program or algorithm. FRR calculates the frequency with which a system denies a true positive [22, 23].
The parking management system can benefit from hybrid-enhanced ML in numerous ways. Time and energy spent on parking an automobile are primary targets for reduction. Customers are happier, traffic moves faster, and more people can park where they want [22, 25]. The reservation system also streamlines and quickens the process of reserving parking spots, making for a better overall experience for the client.
Users’ perceptions of fairness and equality are enhanced when parking spots are distributed based on their votes cast online. Parking management efficiency can be improved by using real-time data and state-of-the-art technology to fill parking lots to capacity. These modifications have the potential to make public transit more user-friendly, sustainable, and productive.
Dataset
The dataset from UCI Machine Learning repository and Kaggle was used in this study to predict future parking potential. The data was collected from various sensors and cameras, and it includes different parking attributes such as the number of parking spaces, the occupancy proportion, and the location of the parking spaces. The datasets were analyzed using machine learning algorithms to identify patterns and trends in the data.
Dataset-1 details the parking status of a particular IPS, identified by its SystemCodeNumber (which in this case is “BHMBCCMKT01”). The four key characteristics of the information being collected are the following: “Capacity,” which represents the overall number of parking spaces in the mechanism; “Occupancy,” which represents the number of parking spaces that are currently occupied; “LastUpdated,” which represents the time stamp of the most recent update to the occupancy; and “SystemCodeNumber,” which represents the unique identifier of the parking system. This data could be utilized as part of a larger effort to analyze parking patterns or predict parking needs.
UCI machine learning and safe graph dataset-2 appears to incorporate customer parking spot distribution. Parking reservation holders have unique Ids in each column. Slot_Number is the user’s parking slot number. Second, “distance” is the user-to-parking space kilometers. Third, the parking slot request timestamp. Fourth, traffic: The volume of requests being handled when the user requested (low, medium, high). Climate: The weather when the user asks information, such as sunny, cloudy, or rainy. The day’s holiday status is stated sixth. The user’s route to the parking location is identified by Route_Id. Slot_Allocated indicates if the user received the slot.
Using this information, customers can estimate the impacts of traffic, weather, and distance on parking spot allocation and anticipate its evolution in the future.
Experimentation outcomes on dataset 1 and 2
Parking lot capacity, occupancy, and the most recent update were all included in a dataset from UCI machine learning. K-NN is a method of classification that uses a query’s nearest neighbors from the training set to make predictions about where the query should be queued. In a parking management system, K-NN could predict the likelihood that a parking place would be occupied based on the occupancy history of surrounding neighbors. By combining the results of multiple DTs, Random Forest (RF) ensemble learning produces a reliable classifier. To generate a DT, we first pick an attribute subset and training data at random. The forecast is compiled once a decision tree prediction has been made. Random forest can be used for both regression and classification. Based on the lot’s capacity, historical occupancy rates, and the time of day, Random Forest is used by parking management to anticipate whether a parking slot will be used. These algorithms’ accuracy in predicting new packing assignments is a function of the quality and relevance of the model’s attributes. Having a large amount of high-quality training data is essential for developing a model. Table 3 displays the results of ML tests on the boosted and unboosted parking lot forecast estimates from dataset 1.
Comparison of boosting and other ML classifiers’ predictive abilities on dataset 1
Comparison of boosting and other ML classifiers’ predictive abilities on dataset 1
AdaBoost (adaptive boosting) is an example of an aggregate learning algorithm used to handle classification problems. It uses a number of mediocre classifiers to create one reliable one. Weak classifiers trained on small samples of data are used to make the final prediction [22]. After data is partitioned into training and test sets, the code below initializes the AdaBoost classifier with 100 estimators and 20 random states. AdaBoost Classifier is fine-tuned to the training data by calling Fit (). Decision trees are used by default as the weak classifier in AdaBoost, and sample weights are adjusted so that incorrectly labeled data is given more weight in subsequent rounds. The enhanced decision boundaries achieved via boosting are depicted in Fig. 4. By summing the results of many weak classifiers, the process is repeated until the desired number of estimators is reached (here, 100). After training, test data is predicted by predict (), and the model is scored by score (). The accuracy of the AdaBoost classifier is presented for the last time.
AdaBoost instructs novice students to pay more attention to misclassified cases and less to correctly labeled ones. The results of the poor students’ predictions are then averaged and weighted according to their performance. This is done until the target number of low-performing students is combined or until the required level of training accuracy is reached. Using parking-system data, this code evaluates the relative merits of the AdaBoost and Random Forest classifiers. To improve model accuracy and learn from challenging situations, AdaBoost gives greater weight to misclassified events during training. As can be seen in Table 4, AdaBoost improved accuracy by creating a more robust model that generalized to new data.
Effectiveness of boosted and other classifiers’ predictions on dataset 2
Accuracy is greatly improved when using a combination of algorithms, such as Adaboost and random forest or Catboost and random forest. We evaluate these methods further by utilizing formulas 1–7 from the assessment metrics section of Table 5.
Hybrid-boosted machine learning algorithm evaluation metrics
k-nn classifier using adaboosting method for dataset 2.
The measures used to rate Adaboost with Random Forest and Catboost with Random Forest can be seen in Table 5. Three metrics for measuring how well a model can distinguish between positive and negative events are selectivity, sensitivity, and the F1-score. There is a correlation between the false rejection rate and the erroneous prediction rate, which measures the proportion of falsely predicted negative cases. Adaboost and Random Forest were found to be more effective than Catboost and Random Forest.
In order to reliably predict the possibility of parking spaces, various approaches have been developed and analyzed. Table 6 compares the selectivity, sensitivity, F1-score, false prediction rate, and false rejection rate of a number of machine and deep learning methods from the literature to those of the proposed hybrid boosted ML methodology.
Comparison of the suggested method’s performance to that of other machine learning and hybrid methods
The proposed RF-AdaBoost method outperforms the traditional scheme on the majority of assessment criteria and achieves a high prediction rate, as shown by a comparison of the response tables in Tables 5 and 6.
In order to accommodate customers’ varying needs, the suggested intelligent parking management system utilizes algorithms and data to dynamically allocate parking spots. The prediction accuracy for slot allocation was improved to 98% by combining Random Forest with AdaBoost. Such accuracy guarantees the best possible parking options for all users, all the time. Users are guaranteed their reserved parking spots thanks to the system’s verification measures, and the fee is just right taking into account the length of their stay. The complexity of the system is reduced thanks to RF, AdaBoost, and CatBoost algorithms, which increases user and operator satisfaction with the system’s optimal parking distribution. Examples are RF’s O (log n) complexity reduction and AdaBoost’s speedup and improvement in precision during processing. The intelligent parking management system optimizes parking allocation and pricing with complex algorithms, resulting in dependable and efficient parking for customers and operators.
Ethical approval
Not Applicable.
Competing interests
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Funding
Not Applicable.
Availability of data and materials
The datasets used and/or analysed during the current study available from the corresponding author on reasonable request.
