Next Article in Journal
Integrating the Finite Element Method with Python Scripting to Assess Mining Impacts on Surface Deformations
Next Article in Special Issue
Highly Accurate Deep Learning Models for Estimating Traffic Characteristics from Video Data
Previous Article in Journal
Machine Reading Comprehension Model Based on Fusion of Mixed Attention
Previous Article in Special Issue
Driving Style and Traffic Prediction with Artificial Neural Networks Using On-Board Diagnostics and Smartphone Sensors
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Analysing Urban Traffic Patterns with Neural Networks and COVID-19 Response Data

1
Department of Economics, Faculty of Operation and Economics of Transport and Communications, University of Zilina, Univerzitna 1, 01026 Zilina, Slovakia
2
Department of Road and Urban Transport, Faculty of Operation and Economics of Transport and Communications, University of Zilina, Univerzitna 1, 01026 Zilina, Slovakia
3
University Science Park, University of Zilina, Univerzitna 1, 01026 Zilina, Slovakia
4
Department of Quantitative Methods and Economic Informatics, Faculty of Operation and Economics of Transport and Communications, University of Zilina, Univerzitna 1, 01026 Zilina, Slovakia
*
Author to whom correspondence should be addressed.
Appl. Sci. 2024, 14(17), 7793; https://doi.org/10.3390/app14177793
Submission received: 29 May 2024 / Revised: 22 August 2024 / Accepted: 30 August 2024 / Published: 3 September 2024
(This article belongs to the Special Issue Applications of Artificial Intelligence in Transportation Engineering)

Abstract

:
Accurate traffic prediction is crucial for urban planning, especially in rapidly growing cities. Traditional models often struggle to account for sudden traffic pattern changes, such as those caused by the COVID-19 pandemic. Neural networks offer a powerful solution, capturing complex, non-linear relationships in traffic data for more precise prediction. This study aims to create a neural network model for predicting vehicle numbers at main intersections in the city. The model is created using real data from the sensors placed across the city of Zilina, Slovakia. By integrating pandemic-related variables, the model assesses the COVID-19 impact on traffic flow. The model was developed using neural networks, following the data-mining methodology CRISP-DM. Before the modelling, the data underwent thorough preparation, emphasising correcting sensor errors caused by communication failures. The model demonstrated high prediction accuracy, with correlations between predicted and actual values ranging from 0.70 to 0.95 for individual sensors and vehicle types. The results highlighted a significant pandemic impact on urban mobility. The model’s adaptability allows for easy retraining for different conditions or cities, making it a robust, adaptable tool for future urban planning and traffic management. It offers valuable insights into pandemic-induced traffic changes and can enhance post-pandemic urban mobility analysis.

1. Introduction

Managing the transportation system requires high-quality real-time data. As the intensity and density of traffic flow increase, the demand for effective traffic interventions also rises [1]. Intelligent transportation systems (ITS) use various technologies—wireless networks, sensors, mobile phone data, and GPS. ITS empowers diverse components within the transportation system—vehicles, roads, traffic lights, message signs, etc. [2]. Consequently, this results in increased capacity of the transportation network and higher safety and comfort [3]. In [4], the authors introduced an intelligent transportation system called “Itssafe”, designed to enhance traffic safety and efficiency. The system aims to use modern technologies and analytical tools for monitoring and managing traffic. It leads to reducing the risk of traffic accidents and improving traffic flow. Suitable data collection methods are crucial for such systems, often utilising various types of sensors.
Sensors are one of the essential components of intelligent transportation systems. They help to obtain data in many areas of transportation, including traffic flow monitoring, accident detection, emission monitoring, and other transportation aspects [5]. According to [6], sensors are also essential for adaptive traffic light control at intersections, monitoring road surface conditions [7,8], and measuring the weight of moving vehicles [9].
The selection of an appropriate sensor type depends on the specific environmental conditions of the application [10]. Typical systems for vehicle detection and classification primarily utilise ultrasonic sensors [11], acoustic sensors [12], infrared sensors [13], ultrasonic sensors [14], inductive loops [15], magnetic sensors [16], video surveillance [17], laser sensors [18], and microwave radars [19]. In the past, pneumatic sensors were also used to measure the traffic flow characteristics using a hose placed on the road. Video detection or other aforementioned sensors have already surpassed this outdated technology [20]. All sensors measure physical characteristics, such as sound waves, light emissions, changes in magnetic fields, etc. However, correct processing of these input variables determines macroscopic data—speed, intensity, and traffic flow density [21]. These characteristics can be obtained not only from traffic sensors but also, for example, from road users’ mobile devices [22]. Apart from these fundamental characteristics, some cases require additional information—vehicle classification, number of axles, vehicle weight, and car presence in a parking space or in front of an intersection [23]. In some applications, the direction of travel is also essential, especially for wrong-way vehicle detection systems [24].
The system must be capable of receiving information from multiple sensors at once. Therefore, wireless sensor networks (WSNs) connect all sensors to one consistent network. WSNs consist of remote sensor devices positioned at various locations within the road network, communicating wirelessly with each other. These sensors collect crucial traffic data, which is then processed and analysed to enhance traffic management, predict traffic situations, optimise traffic flows, and improve road safety. WSNs in transportation provide an effective tool for obtaining real-time information [25]. WSNs are used not only in transportation for traffic optimisation [26] but also in many other sectors—military [27,28], healthcare [29,30], and more. Figure 1 illustrates the basic diagram of WSN.
The principle of operation of magnetic sensors is simple—they operate based on detecting magnetic fields disrupted by metal parts of passing vehicles. It induces an electrical current in the sensors as the magnetic field changes [31]. With proper system calibration, magnetic sensors can measure speed, traffic flow intensity, and congestion [32] and also categorise vehicles by length [33,34,35].
However, magnetic sensors also have disadvantages. There may be discrepancies in the vehicle detection process because there is a problem with a blind zone of the geomagnetic signal. This problem can occur between vehicle axles, specifically when the sensor detects longer vehicles with extended chassis—trucks, buses, and SUVs. Consequently, multiple detections are also possible during low-speed manoeuvres. As illustrated in Figure 2, the bus shows increased magnetic interference signals from its front and rear wheel areas. Nevertheless, a blind zone between the front and rear axles within the magnetic signal may lead to incorrect vehicle identification by the sensor.
The suitability of using a specific type of sensor depends on many application conditions. From the perspective of evaluating the measured data, it is necessary to find procedures and algorithms that ensure the most accurate results [36].
The global outbreak of the COVID-19 pandemic has reshaped the dynamics of urban life in unprecedented ways. Cities worldwide experienced significant disruptions in various sectors, including transportation. The impact of the COVID-19 pandemic on mobility was extensive, mainly due to the implementation of widespread lockdowns, social distancing measures, and other anti-pandemic interventions. Quarantine measures, social distancing, travel restrictions, and movement bans reduced mobility worldwide.
Like many others, the city of Zilina in Slovakia faced the intricate challenge of managing urban mobility during these extraordinary times. Understanding the impacts of the pandemic on traffic and transportation systems is crucial for effective urban planning and policymaking. This study delves into the nuances of traffic dynamics, with a particular focus on the pandemic period. We will examine how traffic density changed during the analysed period.
In response to urban traffic’s complex and dynamic nature, this research employs advanced artificial intelligence models, specifically neural networks, to model and analyse the intricate interplay between various factors influencing traffic. Neural networks have proven invaluable tools in capturing and understanding complex relationships within large datasets, making them well-suited for modelling the multifaceted aspects of urban mobility.
The study leverages real data from a network of sensors strategically placed throughout Zilina, capturing the movements of vehicles across key intersections. This article focuses exclusively on magnetic sensors integrated into WSN. These sensors provide real-time information, allowing for a comprehensive analysis of traffic patterns. Importantly, the study incorporates variables related to the COVID-19 pandemic, sourced from international databases tracking government responses and public health measures. By integrating pandemic-related variables into the neural network model, we aim to analyse how anti-pandemic measures have influenced traffic flow. The study not only seeks to clarify the pandemic impacts but also brings valuable insight for future urban planning in a post-pandemic era.
This research also shows the potential of neural network models in modelling the complexities of traffic dynamics. Beyond the immediate implications for Zilina, the findings of this study may inform broader discussions on resilient and adaptive urban transportation systems in the face of unforeseen challenges.
The following sections of the article correspond to the structure of a scientific study. The Literature Review section captures the current state of knowledge in the research area. The Methodology and Data section describes the data used in the study and the process of its thorough preparation and also describes the research methodology and briefly explains the modelling techniques used in the study. In the Results section, some of the study’s findings are presented. The Discussion section discusses the strengths and weaknesses of the study and its potential future directions. The final section contains the conclusions.

2. Literature Review

Urban mobility is a critical aspect of modern cities, impacting transportation efficiency, environmental sustainability, and overall quality of life. Understanding urban mobility patterns becomes increasingly important as cities continue to grow and evolve. In recent years, advancements in sensor technology and data collection have allowed researchers to delve deeper into the dynamics of urban mobility.
To model traffic flow, researchers have turned to deep learning techniques. In [37], the authors comprehensively reviewed the latest advancements in utilising neural network algorithms to address various traffic forecasting issues, including road traffic flow, speed prediction, and passenger flow estimation. The survey also examines the advantages and disadvantages of graph neural networks compared to other deep learning models for traffic forecasting. A study by [38] offers an overview of deep learning techniques used in traffic flow prediction models and highlights the influence of various factors on the performance of these models in different scenarios.
Thanks to the rapid evolution in deep learning and neural networks, better evaluation of measured data, their interpretation, and future prediction should be achieved. However, traditional machine learning models often struggle with the complex association features between road sections, especially when dealing with the exponential growth in the number of vehicles. In their study [39], the authors proposed a method for sharing information between road segments and used it for their prediction model, which combines convolutional neural networks and road segment grouping algorithms to predict traffic congestion more accurately. Similarly, in [40], the authors explored neural network-based traffic-flow prediction models. The authors used artificial neural networks to model traffic volume in major junctions in Istanbul. In [41], the authors aimed their study at demonstrating machine learning algorithms’ ability to predict road traffic based on data from software traffic simulators in case of temporal unavailability of real data from road sections. Unlike microscopic traffic simulation, these neural network-based algorithms can work in real-time, making them suitable for applications such as determining variable message road sign speeds.
In [42], the authors explored the possibilities of incorporating neural networks into processing data from traffic sensors. The study aimed to optimise the monitoring system and increase its efficiency and reliability in detecting and tracking vehicle movement on roads. In [43], the authors introduced a vehicle detection algorithm capable of tracking multiple vehicles simultaneously. They also developed a real-time vehicle tracking counter that integrates vehicle detection and tracking algorithms to measure traffic flow accurately. These models are based on deep learning algorithms and achieved an average accuracy of 92% with an average processing speed of nearly 38 frames per second. In [44], the authors introduced automatic vehicle detection and classification using deep neural networks. Their models are trained on the data from the Bangladeshi vehicle images dataset, achieve an accuracy of over 83% and are highly usable in solving minor incidents on streets in order to avoid collisions, accidents or even human fatalities. In their study [45], the authors discussed using a wavelet neural network in traffic flow prediction tasks focused on the prediction for weekdays and weekends separately. Their model achieves a lower level of error in its predictions. In their study [46], the authors also considered temporal correlation between the data used for traffic flow predictions. In their model, the authors developed attention mechanisms to capture the spatiotemporal correlations of the data sequences to achieve accurate traffic flow predictions and make more rational decisions.

3. Methodology and Data

3.1. Data Used in the Study

The study is conducted using real data from sensors installed at intersections in the city of Zilina. The data are publicly available from the website https://dashboards.clevernet.sk (accessed on 1 February 2023), where, among other information, the numbers of vehicles passing through individual installed sensors are provided. Nine areas along significant streets in the city are monitored, all in both inbound (toward the centre) and outbound (away from the centre) directions [47]. The list of monitored streets and the number of sensors is detailed in Table 1.
In this study, we calculated the total vehicle numbers at each sensor within an intersection for simplification. Therefore, in the following text, when we refer to a “sensor”, we mean the cumulative number of vehicles, and we will denote these sensors by the numbers assigned to them in the first column of Table 1. The location of the sensors within the city is illustrated in Figure 3.
In the study, we utilised data from 6 June 2021 to 5 August 2022. This timeframe was chosen to ensure that all sensors were already operational, as some were installed later or as additional units, ensuring comparability of analyses. The end date of the analysed period was selected as the most recent date for which data were available when the analysis commenced.
The number of vehicles passing each sensor is monitored in 5-min intervals. For this study, we aggregated vehicle numbers into 15-min time intervals, resulting in a total of 365,400 records for the observation period. Vehicles passing through the sensors are categorised into four groups: cars, vans, trucks, and unknown. The type of vehicle is automatically determined by the sensor based on its dimensions. The types of distinguished vehicles are illustrated in Figure 4.
Additionally, speeds at which vehicles pass through the sensors are recorded, distinguishing speeds into categories of up to 30 km/h, between 30 and 60 km/h, and above 60 km/h. The lane through which the vehicle passes (left, middle, right, if such lanes exist at the given intersection) is also recorded. However, for this study, we did not differentiate between vehicle speeds or lanes. Therefore, vehicle numbers were only distinguished by vehicle type and direction, aggregated across all speeds and lanes.
Therefore, the entire database for this analysis is composed of records from 9 sensors, each in two directions (in and out), for each of the four types of vehicles (cars, vans, trucks, unknown). Therefore, in total, the database contains 72 variables, which we consider dependent (target) variables for this study. The list of target variables and their labels used in the study is in Table 2.
In this study, we focus on creating a mobility model, specifically the model for predicting the number of vehicles moving at these key intersections in Zilina. The model is constructed using the method of neural networks, which is explained in more detail in the methodological section. The input variables for this model include variables whose names and explanations are provided in Table 3.
In Table 3, several variables are mentioned that we used to describe the situation during the COVID-19 pandemic in Slovakia. These variables are internationally published on the COVID-19 Government Response Tracker website [48], which seeks to quantify the pandemic situation and the anti-pandemic measures implemented by various countries worldwide using multiple indicators. This project has tracked anti-pandemic measures since 1 January 2020, in more than 180 countries worldwide. In total, 21 indicators are calculated, representing the scale of the implemented measures. These indicators were published until the end of the year 2022. In the study, we used the values of these indices for the entire Slovakia, as it is impossible to obtain values for smaller territorial units.
The indicators can be categorised into four primary groups:
  • Restrictions and closures: These indicators capture data on policies related to restrictions and closures, including school shutdowns and movement limitations.
  • Economic policies: These indicators document economic measures, such as income support for citizens and the provision of foreign aid.
  • Healthcare system: This indicator tracks initiatives within the healthcare sector, such as COVID-19 testing protocols, emergency healthcare investments, and vaccination strategies.
  • Vaccination policies: These indicators record details on vaccination policies, including the country’s priority list, eligible groups for vaccination, individual vaccination costs, and the presence of a vaccination mandate.
For simplification, four main indices were created, cumulating various government measures. These indices range from 0 to 100 and seek to quantify the number and degree of measures adopted. The effectiveness of these measures is not evaluated. Since the onset of vaccination, these indices also consider how anti-pandemic measures differ between vaccinated and unvaccinated populations. The indices are defined as follows:
  • Overall government response index: This index tracks the evolution of the government’s response across all indicators in the database, reflecting changes in intensity during the pandemic. It is derived from all ordinal indicators.
  • Containment and health index: This index merges restrictions and lockdowns with measures such as testing, contact tracing policies, short-term healthcare investments, and vaccine investments. It uses all common indicators of containment, closure policies, and healthcare system policies.
  • Stringency index: This index measures the strictness of lockdown policies primarily affecting people’s behaviour. It includes all common containment and closure policy indicators as well as an indicator for public information campaigns.
  • Economic support index: This index documents measures like income support and debt policies, calculated using all common economic policy indicators.
Additionally, we considered the published numbers of confirmed COVID-19 cases and deaths [49].

3.2. Methodology of the Study

This study aimed to create a predictive supervised model using a neural network that could accurately predict the number of vehicles of different types entering and leaving the city centre at each monitored sensor. To achieve this goal, we approached the task in this study as a data mining project, utilising the CRISP-DM methodology (Cross Industry Standard Process for Data Mining, publicly available on the CRISP-DM website [50]). This methodology involves dividing the data mining task into six main phases outlined in the following diagram, see Figure 5.
As we consider creating a predictive model for vehicle numbers as a data mining task, the dataset is the basic source of information for solving the task. Since this involves a large volume of automatically collected data that cannot be processed using conventional methods, we consider it big data. Subsequently, the data mining project is divided into the following six phases [50]:
  • Business (problem) understanding: In this phase, we define the problem to be solved very specifically. We define the solution vision, criteria, and values the solution should meet. We try to understand the ongoing processes captured in the data.
  • Data understanding: In this phase, we work with the data, beginning by identifying suitable data sources, verifying the existence of appropriate data for solving the problem, and their availability. The data used in this study are described in the next section.
  • Data preparation: In this phase, we integrate data from various sources and databases and then proceed with their preparation until we prepare them into a modelling matrix for creating the predictive model. These processes include cleaning, validating values, calculating new variables, aggregation, filtering, and similar data operations.
  • Modelling: We apply machine learning methods to find the most suitable method applicable to the given data for solving the defined problem. The output of this phase is the created predictive model.
  • Evaluation: We check the created solution and assess its quality using evaluation statistical metrics. We verify the fulfilment of the criteria defined for the solution in the first phase.
  • Deployment: The final phase of the data mining project is deploying the created model into practice and implementing it into the enterprise’s internal systems or other task issuers.
To predict mobility during the COVID-19 pandemic, we used the statistical software IBM SPSS Statistics (version 26) for the data preparation phase and the data mining software IBM SPSS Modeler (version 18.3) for the modelling and evaluation phases. IBM SPSS Modeler operates on the principle of visual programming, and its significant advantage lies in its data openness. Firstly, the created modelling streams can be utilised for newly emerging or newly acquired datasets, thereby gaining new predictions. Additionally, the created models can be adapted to changed circumstances. If, over time, we find that the predictions generated by the model are no longer sufficiently accurate and do not meet the established qualitative criteria, or if the circumstances of mobility in the city have changed to the extent that it would be appropriate to capture the new situation using data in the model, the models can be updated by retraining them on new data.

3.2.1. Methodology of Data Preparation

According to the CRISP-DM methodology, preparing a high-quality modelling matrix containing data that will lead us to the solution before creating the predictive model is essential. However, it is crucial for these data to be of the highest possible quality. This means it is necessary to thoroughly check the data quality, correctness of values, relevance, and admissibility of values and to eliminate or correct any errors in the data.
It is widely known that the data preparation phase is the most time-consuming in the entire data mining project, possibly taking up more than 80% of the total project time. Similarly, in the case of this study, after a thorough examination of the data, we found errors likely caused by incorrect functioning or complete failure of communication from the sensor (or sensors). Such communication failures resulted in data errors where the sensor reported zero counts for all types of vehicles (cars, vans, trucks, and unknown) for several consecutive 15-min time intervals, and subsequently, upon the restoration of communication functionality, the sensor reported cumulative vehicles numbers for all the missing time intervals. An example is provided in Figure 6. This specific communication failure with the sensor lasted for 76 consecutive 15-min intervals, and the diagram displays only a few zero-reported vehicle numbers. Subsequently, upon communication restoration, the sensor reported cumulative values for individual types of vehicles for all the missing time intervals, as is visible in the last displayed row.
Since using such erroneously reported values during the sensors’ failures would lead to a distortion of the predictive model being created, it was necessary to address these values in more detail. The first step involved manually identifying individual outages of all the sensors. This was not an automated task, as each case required expert evaluation to determine whether it was a failure or an acceptable value. In this way, all 72 target variables needed to be checked, and cases considered as communication failures needed to be marked.
Subsequently, after identifying failures and incorrectly reported values, we proceeded to decide on the next steps for handling these values in the analysis. One option for dealing with incorrect values is to delete them from the dataset. However, in this case, this would entail a significant loss of information as there were multiple communication failures; moreover, omitting some observations would disrupt the temporal continuity in the data. Therefore, only correcting the erroneous values, i.e., replacing them with estimated corrected values, was considered. We aimed to utilise the information we had in the rest of the dataset by using the cumulative vehicle numbers for all the time intervals during the failure. These cumulative vehicle numbers thus needed to be distributed across all the time intervals during the communication failure.
One of the options considered was replacing all zero values during the failure with the average value obtained from the cumulative numbers of vehicles. However, this solution would introduce inaccuracies into the subsequent model of mobility because, for example, if the failure lasted during both day and night hours, the zero values reported during the failure in the night hours, when vehicle numbers are naturally low and often zero, would be replaced with the average value. Moreover, the same value would be estimated during daytime hours, including peak traffic times. Therefore, we sought a more sophisticated solution for replacing incorrect values during the sensors’ failures. Finally, we opted for estimating these values by creating regression models using the information on the cumulative numbers of vehicles.
For each sensor, vehicle type, and direction, a linear regression model of the dependency of the vehicle numbers of that type on the specified explanatory variables (listed in Table 3 above) was created. Thus, creating a total of 72 individual regression models was necessary. Each model was initially created as a full model containing all explanatory variables. Then, the final model containing only statistically significant explanatory variables and achieving the best quality was sought using the stepwise method. The quality of the regression models was evaluated using the coefficient of determination R 2 , with values ranging from 0 to 100%. The closer the value is to 100%, the better the model captures the variability of the explained variable, making it more reliable. Associated with this is the test of the significance of the overall regression model using Analysis of Variance (ANOVA), which tests whether the model is statistically significant and whether the regression function was correctly chosen. Rejecting the null hypothesis of the model’s insignificance means that the created model is statistically significant and, thus, suitable for predictions.
The created regression models were subsequently used to predict missing values during sensor failures. Based on the values of the input variables (day of the week, time, holiday, vacation, variables related to the pandemic, etc., listed in Table 3 above as explanatory variables) in a specific time interval, the models estimated the vehicle numbers for all the vehicle types. The estimated values were carefully reviewed, and any negative predictions were replaced with zero values.
However, it was necessary to adjust the predicted values so that their sum corresponded to the cumulative number of vehicles of the respective type reported by the sensor after the failure and communication restoration. To preserve this cumulative number, each predicted value was adjusted by an individually determined correction coefficient, calculated as the ratio of the actual to the estimated cumulative vehicle numbers during the outage. In cases where the correction coefficient could not be calculated (specifically when the estimated values were summed to zero), the missing corrected values were replaced with values corresponding to the average obtained from the cumulative vehicle numbers after the communication failure ended. All corrected values were then rounded to integer values.
To verify the accuracy of this procedure for correcting incorrect values during sensor communication failures, we calculated the accuracy of the estimates using statistical characteristics (mean, mode, median, standard deviation, maximum, minimum, and sum of values). Additionally, we quantified the deviations of the predicted corrected values from the actual values, both in absolute numbers of vehicles and as a percentage. The results for sensor 1, vehicle types, and directions are provided in Section 4.

3.2.2. Methodology of Modelling—Artificial Neural Networks

The concept of artificial neural networks, one of the most commonly used tools in machine learning, was developed at the beginning of the 1950s, but it gained more attention from researchers only in the last decades due to a significant increase in computer technologies. The authors aimed to imitate the learning process in a biological neural network, which consists of approximately 86 billion neurons interconnected by more than 1014 synaptic connections. Neurons are designed for transmitting, processing, and storing information, with information being transmitted between neurons via electrical signals. The basic parts of a neuron are the cell body and two types of processes: dendrites and axons. Dendrites are short processes representing the signal input site into the neuron’s cell body. The place where a signal is transmitted from one neuron to another is called a synapse. In a synapse, the signal can be amplified (excitation) or weakened (inhibition) before entering the cell body. All incoming signals from surrounding neurons are aggregated in the cell body, creating the neuron’s internal potential. If this potential exceeds a certain threshold, the neuron generates an output signal, which exits the neuron through a single output process called an axon.
The so-called Hebbian rule is utilised in the learning process of artificial neural networks. Put simply, the input neuron’s activity leads to the neuron’s activity on the output side. The essence of the learning process is the formation of connections, thus creating so-called memory traces. The forgetting process is represented by the interruption of synaptic connections that could excite the neuron. In the mathematical model of an artificial neuron, this rule is reflected in synaptic weights (w), which control the influence of input on excitation (positive weight values) or inhibition (negative weight values) of the neuron. Adjusting these weights during learning is crucial for achieving good results in artificial neural networks. The mathematical model of the most commonly used artificial neuron is depicted in the following figure (Figure 7).
Several types of formal models of artificial neurons exist, but the most commonly used one is the perceptron, designed by Frank Rosenblatt in 1958 [53,54]. The essence of the perceptron is the computation of the artificial neuron’s internal potential, which is given as the weighted sum of inputs. This potential is further processed by an activation function, typically one of the S-shaped curves. The most commonly used is a sigmoid function, given by the following equation:
f x = 1 1 + e x .
However, the perceptron can only be used to solve linearly separable problems. The solution involves using multiple perceptrons arranged into several layers for more complex tasks. The learning process then takes place in the so-called hidden layers. Thus, the network contains one or more layers of neurons that are neither input nor output. Multi-layer perceptron networks (MLPs) are the most widely used type of artificial neural networks in predictive analysis. These networks can tackle more complex problems by utilising each hidden layer to extract features and recognise patterns, enabling them to effectively perform intricate classification or regression tasks.
MLP networks are, therefore, suitable for solving any problem whose essence is predicting the values of the modelled (output) variable. However, it is important to set or search for the correct topology of this network. Specifically, this involves setting the number of hidden (computational) layers and the (maximum) number of neurons in them, as well as choosing a suitable activation function, which can be the sigmoid mentioned above but also other functions such as the hyperbolic tangent or the ReLU function. The goal is effective learning of the neural network on the training dataset, especially its good generalisation ability, i.e., its use of data outside the training dataset. A common problem with MLP neural networks is overfitting, or “over-adaptation to the data” from the training dataset. This problem is typical for most machine learning tools.
To eliminate the problem of overfitting, the dataset is divided into a training and testing part. The data cases from the training set are used to validate the predictive ability of the neural network. The remaining data cases (training set) are presented to the neural network as learning patterns. The network learns to create connections between neurons on these patterns so that its response, i.e., outcomes, closely approximates the actual or desired outcome. The neural network must then be able to generate responses based on the acquired knowledge for cases that were not a part of the learning process. And this is precisely the generalisation ability verified on the validation (testing) set. The training process ends if the resulting prediction error is approximately the same and sufficient for both sets. However, suppose the prediction error on the validation set is significantly lower and/or insufficient. In that case, another iteration (epoch) of learning follows, using the knowledge gained in the previous epochs to adjust the network (especially synaptic weights). This iterative learning process ends when the network achieves the desired generalisation ability on the validation set. The gradient descent method was used to find synaptic weights, minimising the error function (prediction error) at each step of the solution search. Finding the global minimum of the error function using this iterative method significantly depends on the so-called learning rate η . With relatively large values of this parameter, we risk “skipping” the sought global minimum, and on the other hand, with small values of this parameter, we risk slow convergence to this minimum. Therefore, the optimal value of this coefficient is also determined in individual steps of neural network learning.
Finally, the model is deployed on the testing set, i.e., on cases not used in the learning process, and the resulting predictive evaluation metrics are determined.
Neural network models generated predictions for the number of vehicles across all cases in the dataset, including those in the testing subset. Predictions for the testing data were produced using a model that had not been trained on them, allowing for an independent evaluation of the model’s quality by comparing these predictions with actual outcomes. Consequently, this study presents the model quality assessment results exclusively for the testing data. With sufficient cases in the dataset, the division into training and testing subsets was done randomly at a 50:50 ratio.
The models in this study were developed as ensemble models using neural networks. Ensemble models typically fall into two categories: bagged and boosted. Boosting entails training a series of models sequentially, where each subsequent model is trained to correct the errors of the previous one. Bagging, on the other hand, involves training multiple models independently on different subsets of the training data, with their individual predictions aggregated. Combining the predictions from these model sequences generates a final prediction that is more accurate and robust than the predictions of any single model.
Combining individual models into a composite model can be achieved through several methods. The most commonly used techniques include:
  • Stacking: This method involves training multiple models and then using a meta-model to combine their predictions. The meta-model uses the predictions from each base model as explanatory variables to generate the final prediction.
  • Competition: In this approach, the prediction with the highest reliability (confidence) is selected from the individual predictions of each model for each case in the data.
  • Voting: This method combines individual models by averaging their predictions.
  • Weighted voting: Similar to voting, this approach averages predictions from each model but assigns weights to them based on a specific metric, such as reliability.
Combining models is an effective technique for enhancing the accuracy and robustness of predictive models. By leveraging the strengths of multiple models, composite models often outperform individual models, providing more reliable predictions.
In this study, we used the boosting method to create an ensemble model to enhance the models’ accuracy. Specifically, for each type of vehicle, we developed an ensemble model composed of several neural network component models. Each ensemble’s maximum number of these component models was set to 10. Each component model was built using a multi-layer perceptron (MLP) neural network. The number of hidden layers and the size of each MLP component model (i.e., the number of synapses) were determined automatically by the software. After creating the component models, the final ensemble model was formed by combining them through a voting technique that averaged their predictions. Using this methodology, we created eight ensemble models—one for each type of vehicle and one of both directions—and an additional model that combined all vehicle types and directions, each containing up to ten component models.
Due to the computational complexity involved in manually designing and fine-tuning the neural network models, we opted for the automatic creation of the models. This decision was made to optimise the process and avoid the complexities and potential biases associated with manually selecting the number of neurons. Manually building each model would have had an unwanted level of error in determining the optimal architecture, including the number of layers, nodes, and connections, and would have been extremely time-consuming. It was more important to obtain accurate predictions from the model. By relying on automatic model creation, we ensured a more efficient and systematic approach to generating well-optimised models, allowing us to focus on the analysis and interpretation of results rather than on the intricate details of model configuration. This approach also provided a consistent and unbiased method for determining the best-performing model architecture across different vehicle types and directions.
For all statistical tests in this study, a significance level of 0.05 was used. Therefore, even if not directly mentioned, the tests’ conclusions were always formulated using this significance level.

3.2.3. Methodology of Model Evaluation

After creating neural network models, evaluating the quality of the obtained predictions is important. Current machine learning models are very sophisticated and capable of memorising input data perfectly, leading to overestimated evaluation statistics obtained from such models because predictions are checked on the same data on which the model was created. To verify the model’s true predictive power, we randomly divided the dataset into training and testing sets. The second part of the data, the testing set, is used for model validation. Predictions (estimated numbers of vehicles of various types) are made on these testing cases in data and then compared to the actual values of the vehicle numbers. Since the model did not know the testing data, it was not trained on them; this comparison can be considered as the true predictive ability of the model without overestimation [55,56].
The predictive ability of the model can be evaluated using several evaluation statistics [56]:
  • Minimum error, maximum error, and mean error, which means a comparison of the predicted and actual vehicle numbers;
  • Mean absolute error, calculated from the absolute differences between predicted and actual vehicle numbers;
  • The standard deviation of the differences between predicted and actual values of vehicle numbers;
  • Linear correlation is a coefficient expressing the strength of linear dependence between predictions and reality.
When comparing the accuracy of models, it is advisable to focus on one of these evaluation statistics. The most commonly used are mean absolute error (which should be as small as possible) and the correlation coefficient (the closer the value is to 1, the more accurate predictions the model generates). In this study, we mainly used the correlation coefficient to evaluate the models, although, in the Results section, we provide all the mentioned evaluation statistics of the created partial models for individual types of vehicles and their directions and the comprehensive model for all types and directions.
Finally, the precision of the predictions made by the neural network ensemble models is compared with that of four models created using other data mining techniques. For this purpose, we chose two decision trees: CART (Classification and Regression Tree) and CHAID (Chi-square Automatic Interaction Detection), as well as the Nearest Neighbours method and Multivariate Linear Regression. To ensure comparability of model performance, all these comparative models were also created as ensembles, following a similar procedure to that used for the neural network models, with up to ten component models combined by averaging their predictions into a final meta-model. After the learning procedure, the predictions for the cases in the training sample were compared with the actual values of the number of vehicles of individual types. Finally, the performance of these models was evaluated using the correlation coefficient mentioned above.
For brevity, we do not provide a detailed explanation of the methodology used for the four comparative models here, but it can be found, for example, in [55,57,58,59].

4. Results

4.1. Results of Data Preparation

In the Methodology of Data Preparation section, we emphasised the importance of thorough verification and adjustment of vehicle numbers reported by sensors, especially in the case of inaccurately reported values during sensor failures. For this purpose, we developed individual regression models that helped us correct erroneous values. These were further adjusted to ensure the consistency of cumulative vehicle counts after the sensor connection interruption was resolved. Additionally, we had to address some unacceptably high values, which were corrected by replacing them with values predicted from linear regression models.
Table 4 presents the results of corrections compared to the actual values for sensor 1. The main statistical characteristics of the actual and corrected values for all four types of vehicles and both directions are provided. At the end of the table, the absolute and relative differences between the actual vehicle numbers and the numbers corrected by the proposed method are quantified.
The last three rows in each sensor’s table (both for in and out directions) demonstrate that the proposed procedure for correcting values during sensor communication failures accurately replaced the error values. The percentage errors of these corrections, caused by rounding the estimated vehicle numbers to integer values, are quantified in the last row of the table. Some sensors (e.g., sensor 6 in the direction “in” or sensor 9) exhibit higher correction errors because, apart from failures, these sensors also had erroneously reported values that were not caused by communication failures. These erroneous values manifested as reporting an unreasonably high number of vehicles in a given 15-min interval. Since the source of this error could not be identified, these values were only replaced with predicted values from the created regression models, and they could not be corrected using the correction procedure mentioned above, as the correct value is unknown. This resulted in a higher error in the sum of corrected values compared to the total actual number of vehicles of a particular type for the entire observation period.
The data, adjusted in this way and prepared into the final form of the modelling matrix, can also be described using a graphical representation. The number of vehicles of different types in the direction toward the city centre (direction “in”) is illustrated in the following histogram (Figure 8). The histogram depicts the course of vehicle numbers during the day, where the height of each bar represents the average number of vehicles of a specific type at a particular time of the day. The graph shows the overall average (total height of the bar) regardless of the sensor, and the individual sensors are colour-coded, with the height of the bars in each indicating the average number of vehicles of a specific type at a given time on a specific sensor.
Figure 9 illustrates the vehicle numbers in the direction from the city centre (direction out), colour-coded according to the individual sensors.
The total number of vehicles in the inward and outward directions is depicted using boxplots in Figure 10. The boxplots are differentiated by individual sensors and represent statistical characteristics: the inner line in the box is the median vehicle number, and the upper and lower edges of the box are the upper and lower quartiles of the vehicle number. Additionally, the boxplot highlights outliers (circles) and extreme values (crosses), which are vehicle numbers that differ from the typical numbers. These correspond to traffic peaks and can indicate which sensors typically record such high vehicle numbers.
The following figures describe the relationships between selected two COVID-19 pandemic-related variables and the number of vehicles. Figure 11 depicts the boxplots showing the relationship between school closing and the number of vehicles of different types. On the left side are the boxplots for direction in, and on the right side the direction out. The scale of the vertical axis has been adjusted for better visibility of the range of values; therefore, not all values marked as outliers are visible.
The exact values of statistical characteristics shown in Figure 11 are listed in Table 5. The median values show that the level of school closing measures impacted the number of vehicles.
A similar dependence is depicted in Figure 12 for the numbers of vehicles and workspace closures measure levels.
The exact values of characteristics shown in Table 6 present the various numbers of vehicles for individual levels of the measure. The differences can be seen mainly in the values of medians.

4.2. Results of Modelling

As mentioned earlier, the mobility model during the COVID-19 pandemic period was created using the neural network. We constructed the modelling stream in the IBM SPSS Modeler software, presented in Figure 13.
Each “yellow diamond” in the figure represents one neural network model for a given type of vehicle. Additionally, on the left side, there is a comprehensive model containing all types of vehicles and both directions. The models are not constructed separately for individual sensors but include the sensor as one of the explanatory variables.
Since a neural network model is generally considered a “black box”, it is impossible to precisely interpret the model results in terms of relationships between input data, neural network layers, and the model’s output in the form of predictions. It would be possible to describe the strength of the relationship, but there are many such relationships in a neural network, leading to a loss of clarity in interpreting the results. An example of a neural network model is shown in Figure 14, representing a model for cars entering the city centre (cars_in).
Therefore, instead of interpreting each relationship, we focused on the importance of predictors (explanatory variables) in the created models [39,60]. This information is crucial for demonstrating the pandemic’s impact and implementing anti-pandemic measures on city mobility. In each neural network model, it is possible to illustrate the importance of predictors along with their significance in the model. Figure 15 shows the predictor importance for the comprehensive mobility model. The model includes other explanatory variables apart from those depicted, but for the figure, we have only included those that are significant in the model at the chosen significance level. The importance is calculated so that the cumulative importance of all the explanatory variables used in the model is one.
Among the most important variables (in the order of importance) in the model are the following:
  • Sensor number (variable name sensor) was used as one of the explanatory variables to avoid creating a model for each sensor separately; this variable has the highest importance in the model.
  • Month of the year (variable name month); its presence among the important variables suggests changes in mobility throughout the year.
  • Day of the week (variable name day of the week); its presence suggests changes in mobility throughout the week.
  • Time (variable name time) divided into 15-min intervals during the day; the presence of this variable in the model confirms that vehicle numbers vary significantly throughout the day.
  • Number of confirmed deaths during the COVID-19 pandemic (variable name confirmed deaths), cancellation of public events during the pandemic (variable name cancel public events), number of confirmed cases (variable name confirmed cases), containment health index during the pandemic (variable name containment health index), and restrictions on gatherings during the pandemic (variable name restrictions on gatherings).
The presence of the variables mentioned above related to the COVID-19 pandemic in the model demonstrates the significant impact of the pandemic and the implemented anti-pandemic measures on vehicle numbers in the city. The neural network model created in this way, with the automatic selection of variables with the greatest impact on vehicle numbers, has shown that mobility was significantly influenced by the course of the pandemic and the level of implemented measures. There are still other variables in the model, but they are not of such importance, so they are not included in the previous figure.
We also created individual neural network models for each type and direction of the vehicle. These models achieve high prediction accuracy as they were developed using the boosting method, which aims to increase the model’s predictive ability. Each of these boosted models is composed of up to ten models, where each subsequent model aims mainly at the incorrectly predicted cases of the previous model, striving to improve predictions for them.
The difference between the comprehensive model presented in Figure 11 and the partial models for individual directions and types of vehicles lies in the fact that the partial models are additionally created using boosting, resulting in more accurate predictions. Using this method for the comprehensive model is impossible because it cannot handle multiple dependent variables.
These individual models are also difficult to describe or illustrate with figures because each is an ensemble model from a series of models. However, each of these boosted models generates predictions for the number of vehicles of a specific type, which are more accurate due to the complexity of the model. An example of a composite model for predicting the number of cars_in is shown in Figure 16.
After creating the models, we further ensured the validity of the generated predicted values. Since no boundary conditions are specified during model creation, the model can generate values of the dependent variable within the interval of real numbers. However, from a substantive point of view, negative predicted values are unacceptable. Therefore, we recoded all negative predicted values to zero, enhancing the accuracy of predictions. On the other hand, allowing excessively high predicted values for the number of vehicles is not suitable. Therefore, we set the maximum permissible value to 300, which was also used as the maximum allowable value during the data preparation phase.

4.3. Model Evaluation

As mentioned in the study’s methodological part, the data were randomly divided into training and testing sets to avoid overestimation. The above-described models were created on the training data, while the resting testing data were used for model evaluation. In Table 7, we present the evaluation characteristics of the created models on the testing part of the data. We also supplemented the table with statistical characteristics of the actual number of vehicles in the testing part of the data and the corresponding predicted number. By comparing the rows on the left side of the table, we can claim that the predictions, on average, correspond to the real numbers of vehicles.
Figure 17 presents the graphical evaluation of the predictions from individual models for vehicle types. Each scatter-dot graph presents the dependence of predictions and the real values. The values close to the diagonal (yellow line) mean the model’s high performance.
If we evaluate the accuracy of predictions using the correlation between predicted and actual vehicle numbers, we can say that the created neural network models generate very accurate predictions. The lowest correlation is in the individual models, with 0.73 for trucks_in, and in the comprehensive model, with 0.69 for trucks_in. This lower predictive accuracy of the model is due to the low variability of truck numbers of this type, which range from 0 to 26 vehicles every 15 min. The best-performing models are for predicting cars (cars_in and cars_out) and vans (vans_in and vans_out), where the correlation ranges from 0.92 to 0.93 in individual models and from 0.89 to 0.91 in the comprehensive model. Therefore, predictions generated by these neural network models are considered very accurate, as the dependency between estimated and actual numbers of vehicles of a given type is very strong.

4.4. Comparison with Other Methods

In this section, we compare the results of predicting the number of vehicles using ensemble neural network models with those generated by models created using different techniques. As mentioned in the methodology section, we employed four methods suitable for solving regression data mining tasks: decision trees of the CART and CHAID types, nearest neighbours, and multivariate linear regression. To ensure comparability with the ensemble neural networks, all these models were created also as ensembles, containing up to ten component models. The predictions of these models for the testing data were compared with the actual values, and their performance was evaluated using correlation coefficients. Table 8 presents a comparison of these models with the neural network models. The nearest neighbour technique did not provide a solution for some types of vehicles due to the data dimensionality and the memory demand on computations (denoted as “NA” in the table). The correlations of actual and predicted values show the ensemble neural network models’ high performance compared to the other used methods.

5. Discussion

As we mentioned in the Literature review section, neural networks are widely used machine learning techniques for modelling traffic and predicting the number of vehicles. In this study, we also created a functional model for the traffic in the city of Zilina in Slovakia, considering the situation during the COVID-19 pandemic. The impact of the pandemic on the number of vehicles was described by using the respective variables publicly available for each country. Therefore, the methodology described in this study applies to any other city worldwide. Thus, the study’s contribution lies in the ease of updating the created neural network models using newly emerging data, thereby adapting mobility prediction to any changes in the situation after the pandemic ends or the circumstances in any other city. This opens up the possibility of further research, where the actual impact of the pandemic on mobility in the city can be quantified by comparing data from the pandemic and post-pandemic periods.
As a strength of this study, we consider the fact that predictive models of mobility in the city of Zilina during the COVID-19 pandemic were created based on real data from sensors installed at intersections in the city, providing real information about vehicle numbers moving in the city. This dataset covers a sufficiently long period of the year, allowing us to capture changes in mobility not only throughout the day but also across different periods of the year. These data were thoroughly checked, and all errors were identified and corrected. The erroneous data were corrected using a sophisticated statistical approach through regression modelling to preserve the most accurate information about mobility in the city.
Another strength of the study is the use of modern machine learning methods, which achieve high accuracy in their predictions. Moreover, the models were created using the boosting method to enhance their predictive ability. The study not only describes the predictions obtained by the model but also interprets the impacts of the most important input variables used for mobility modelling. This demonstrated the impact of the pandemic and the implemented anti-pandemic measures on mobility in the city.
However, this study also has its weaknesses. One can be identified that the COVID-19 pandemic is quantified using variables that are admittedly internationally recognised and published for all countries worldwide for comparability purposes. However, on the other hand, they capture the nationwide situation. They are not region-specific, which introduces a certain bias in modelling their relationship with the vehicle numbers in the city. It would be more precise to use variables that accurately reflect the situation during the pandemic, specifically in the individual city. However, mainly due to the unavailability of such data, we opted to use these variables.
Another limitation of the study is the inability to compare traffic patterns with the pre-pandemic period up to 2019. Data from this period are not available because the WSN was not yet installed at that time. The entire network, along with the publicly accessible interface, was developed as part of the INTERREG V-A SK-CZ/2019/11 project CLEVERNET—“Deploying innovative sensor networks in cross-border regions”. The main activities of the project commenced in January 2021. Over time, it will be possible to analyse data without the impact of the pandemic, and increasingly accurate data will be available as the network is constantly troubleshooting and calibrating sensors. Further analysis and applications for using such a network will be the subject of future studies.
The data from the sensors is still publicly available; it can be viewed, compared, and downloaded practically without restrictions in a user-friendly environment. However, the truth is that in practice, it still has no other function than a presentational—informational one. However, while the current usage of the sensor data is limited to informational and presentational purposes, there is significant potential for its future application. For example, city planners and policymakers could use the data to make informed decisions about traffic management, public transportation improvements, and infrastructure development. The data could also be valuable for researchers studying urban mobility patterns, environmental impacts, and smart city technologies.
Furthermore, businesses and entrepreneurs might find innovative ways to leverage the data to create or enhance existing services. For instance, companies involved in logistics and transportation could optimise their routes and operations based on real-time traffic information. Similarly, startups could develop applications that provide residents and visitors with up-to-date information on traffic conditions, helping them to choose the most efficient travel routes.
Apart from the mentioned usage of the publicly available data from the sensors, we can mention that the usability of data from the sensors is very wide and understanding the inputs and outputs of traffic flow values provides several significant benefits that can enhance various aspects of traffic management, optimisation of road networks and intersections and planning new roadways, expanding existing ones, and designing effective traffic management strategies or optimising public transportation routes and schedules.
Moreover, analysing traffic flow data helps optimise traffic signal timings at intersections. By understanding traffic patterns and congestion levels, traffic signals can be adjusted to improve vehicle throughput, reduce delays, and enhance overall traffic flow. Data-driven insights enable the implementation of adaptive traffic signal systems that adjust signal timings in real-time based on current traffic conditions, leading to more efficient traffic management.
From the macroscopic point of view, traffic flow values are used to create and refine models that simulate overall traffic patterns and congestion in a city. These models help in understanding traffic dynamics and in planning infrastructure improvements. On the other hand, from the microscopic point of view, detailed traffic flow data supports models that simulate individual vehicle interactions and movements. These models are useful for studying the effects of specific roadway changes or traffic management strategies.
Finally, real-time traffic flow data help in detecting incidents such as accidents or road closures. This allows for timely responses and implementation of alternative routing strategies to minimise disruption.
In summary, the benefits of analysing traffic flow values are extensive and impact various facets of traffic management, urban planning, and transportation efficiency. By leveraging these insights, cities can enhance their traffic systems, improve safety, and provide better services to residents and travellers.
In summary, while the immediate application of the sensor data in the city of Zilina may be limited, its potential for future use is vast. Continued investment in data quality, user interface improvements, and community engagement will be essential in unlocking the full benefits of this valuable resource.

6. Conclusions

The aim of this study was to create a model of mobility able to predict the vehicle numbers at intersections in the city of Zilina during the COVID-19 pandemic using artificial intelligence methods (machine learning). The method of neural networks was employed to build this model, whose main advantage is its high prediction accuracy. In this study, we achieved correlations between the prediction results and actual values ranging from approximately 0.70 to 0.95 for individual sensors and types of vehicles. In interpreting the study results, we focus not only on the predictions but also on interpreting how the pandemic affected mobility in the city. By examining the importance of individual variables in the created model, we found that the pandemic, quantified using internationally acknowledged variables describing its status and governmental responses in the form of implemented anti-pandemic measures, significantly impacted vehicle numbers in the city.
Individual types of vehicles, directions, and sensors are predicted separately, capturing the overall mobility in the city. By aggregating the predicted vehicle numbers, the total vehicle numbers can be easily obtained regardless of their type or the sensor through which they pass. Moreover, since the task was approached using a data-mining approach and the models were created using data-mining software IBM SPSS Modeler, the created solution is easy to update. The model captures mobility in the city during the pandemic but is easily adaptable and updatable, which we consider its significant advantage. The model is data-open and can make new predictions after importing new data.
Additionally, with new data, the model can be easily retrained to predict the number of vehicles under normal circumstances in a situation without a pandemic. This will subsequently enable quantifying the impact of the pandemic ex-post. Finally, the model should be easily adapted for predicting mobility in any other city, as it can be retrained on a new training sample containing the variables describing mobility circumstances specific to that city.

Author Contributions

Conceptualization, K.H. and K.C.; methodology, L.S. and M.D.; software, L.S.; validation, L.S., K.C. and K.H.; formal analysis, K.H.; investigation, K.H.; resources, K.H.; data curation, K.C. and L.S.; writing—original draft preparation, L.S., M.D. and K.C.; writing—review and editing, L.S. and K.C.; visualization, L.S.; supervision, K.H.; project administration, K.H.; funding acquisition, K.H. and L.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the project EU Interreg V-A Slovak Republic “Implementation of innovative sensor networks in cross-border regions” co-financed by the European Regional Development Fund. The APC was funded by the Slovak Grant Agency for Science (VEGA) under Grant No. 1/0509/24.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data supporting the findings of this study are available at https://dashboards.clevernet.sk (accessed on 1 February 2023) and the COVID-19 Government Response Tracker website https://www.bsg.ox.ac.uk/research/covid-19-government-response-tracker (accessed on 30 June 2023).

Acknowledgments

The sensor transport network in Zilina was created within the CleverNet project, supported by the EU Interreg V-A Slovak Republic “Implementation of innovative sensor networks in cross-border regions”. The project is co-financed by the European Regional Development Fund. The solver of the project was the University of Žilina. The partners of this project are Transport Research Centre, v. v. i. CITIQ s. r. o. CityOne s. r. o. and UNIZA Technology Incubator s. r. o.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Beyer, P. Non-Intrusive Detection, the Way Forward. In Proceedings of the 34th Southern African Transport Conference (SATC 2015), Pretoria, South Africa, 6–9 July 2015; CSIR International Convention Centre: Pretoria, South Africa, 2015; pp. 879–888. [Google Scholar]
  2. Mathew, E. Intelligent Transport Systems and Its Challenges. In Proceedings of the International Conference on Advanced Intelligent Systems and Informatics 2019; Hassanien, A.E., Shaalan, K., Tolba, M.F., Eds.; Springer International Publishing: Cham, Switzerland, 2020; pp. 663–672. [Google Scholar]
  3. Janusova, L.; Cicmancova, S. Improving Safety of Transportation by Using Intelligent Transport Systems. Procedia Eng. 2016, 134, 14–22. [Google Scholar] [CrossRef]
  4. de Souza, A.M.; Pedrosa, L.L.C.; Botega, L.C.; Villas, L. Itssafe: An Intelligent Transportation System for Improving Safety and Traffic Efficiency. In Proceedings of the 2018 IEEE 87th Vehicular Technology Conference (VTC Spring), Porto, Portugal, 3–6 June 2018; pp. 1–7. [Google Scholar]
  5. Guerrero-Ibanez, J.; Zeadally, S.; Contreras-Castillo, J. Sensor Technologies for Intelligent Transportation Systems. Sensors 2018, 18, 1212. [Google Scholar] [CrossRef] [PubMed]
  6. Rida, N.; Ouadoud, M.; Hasbi, A.; Chebli, S. Adaptive Traffic Light Control System Using Wireless Sensors Networks. In Proceedings of the 2018 IEEE 5th International Congress on Information Science and Technology (CiSt), Marrakech, Morocco, 21–27 October 2018; IEEE: Piscataway, NJ, USA, 2018; pp. 552–556. [Google Scholar]
  7. Ng, J.R.; Wong, J.S.; Goh, V.T.; Yap, W.J.; Yap, T.T.V.; Ng, H. Identification of Road Surface Conditions Using IoT Sensors and Machine Learning. In Proceedings of the Computational Science and Technology: 5th ICCST 2018, Kota Kinabalu, Malaysia, 29–30 August 2018; Springer: Singapore, 2019; pp. 259–268. [Google Scholar]
  8. Rasol, M.; Schmidt, F.; Ientile, S.; Adelaide, L.; Nedjar, B.; Kane, M.; Chevalier, C. Progress and Monitoring Opportunities of Skid Resistance in Road Transport: A Critical Review and Road Sensors. Remote Sens. 2021, 13, 3729. [Google Scholar] [CrossRef]
  9. Dontu, A.I.; Gaiginschi, L.; Barsanescu, P.D. Reducing the Urban Pollution by Integrating Weigh-in-Motion Sensors into Intelligent Transportation Systems. State of the Art and Future Trends. IOP Conf. Ser. Mater. Sci. Eng. 2019, 591, 012087. [Google Scholar] [CrossRef]
  10. Gheorghiu, R.A.; Iordache, V.; Stan, V.A. Urban Traffic Detectors—Comparison between Inductive Loop and Magnetic Sensors. In Proceedings of the 2021 13th International Conference on Electronics, Computers and Artificial Intelligence (ECAI), Pitesti, Romania, 1–3 July 2021; pp. 1–4. [Google Scholar]
  11. Jeon, S.; Kwon, E.; Jung, I. Traffic Measurement on Multiple Drive Lanes with Wireless Ultrasonic Sensors. Sensors 2014, 14, 22891–22906. [Google Scholar] [CrossRef]
  12. Chiang, C.-Y.; Jaber, M.; Hayward, P. A Distributed Acoustic Sensor System for Intelligent Transportation Using Deep Learning. IEEE Internet Things Mag. 2022, 7, 88–96. [Google Scholar] [CrossRef]
  13. Bernas, M.; Płaczek, B.; Korski, W.; Loska, P.; Smyła, J.; Szymała, P. A Survey and Comparison of Low-Cost Sensing Technologies for Road Traffic Monitoring. Sensors 2018, 18, 3243. [Google Scholar] [CrossRef]
  14. Odat, E.; Shamma, J.S.; Claudel, C. Vehicle Classification and Speed Estimation Using Combined Passive Infrared/Ultrasonic Sensors. IEEE Trans. Intell. Transp. Syst. 2017, 19, 1593–1606. [Google Scholar] [CrossRef]
  15. Oluwatobi, A.N.; Tayo, A.O.; Oladele, A.T.; Adesina, G.R. The Design of a Vehicle Detector and Counter System Using Inductive Loop Technology. Procedia Comput. Sci. 2021, 183, 493–503. [Google Scholar] [CrossRef]
  16. Bao, X.; Li, H.; Xu, D.; Jia, L.; Ran, B.; Rong, J. Traffic Vehicle Counting in Jam Flow Conditions Using Low-Cost and Energy-Efficient Wireless Magnetic Sensors. Sensors 2016, 16, 1868. [Google Scholar] [CrossRef]
  17. Barthélemy, J.; Verstaevel, N.; Forehead, H.; Perez, P. Edge-Computing Video Analytics for Real-Time Traffic Monitoring in a Smart City. Sensors 2019, 19, 2048. [Google Scholar] [CrossRef] [PubMed]
  18. Lopac, N.; Jurdana, I.; Brnelić, A.; Krljan, T. Application of Laser Systems for Detection and Ranging in the Modern Road Transportation and Maritime Sector. Sensors 2022, 22, 5946. [Google Scholar] [CrossRef] [PubMed]
  19. Czyżewski, A.; Kotus, J.; Szwoch, G. Estimating Traffic Intensity Employing Passive Acoustic Radar and Enhanced Microwave Doppler Radar Sensor. Remote Sens. 2019, 12, 110. [Google Scholar] [CrossRef]
  20. Puan, O.C.; Nor, N.S.M.; Mashros, N.; Hainin, M.R. Applicability of an Automatic Pneumatic–Tube–Based Traffic Counting Device for Collecting Data under Mixed Traffic. IOP Conf. Ser. Earth Environ. Sci. 2019, 365, 012032. [Google Scholar] [CrossRef]
  21. Kalair, K.; Connaughton, C. Anomaly Detection and Classification in Traffic Flow Data from Fluctuations in the Flow–Density Relationship. Transp. Res. Part C Emerg. Technol. 2021, 127, 103178. [Google Scholar] [CrossRef]
  22. Tu, W.; Xiao, F.; Li, L.; Fu, L. Estimating Traffic Flow States with Smart Phone Sensor Data. Transp. Res. Part C Emerg. Technol. 2021, 126, 103062. [Google Scholar] [CrossRef]
  23. Marszalek, Z.; Sroka, R.; Zeglen, T. Inductive Loop for Vehicle Axle Detection from First Concepts to the System Based on Changes in the Sensor Impedance Components. In Proceedings of the 2015 20th International Conference on Methods and Models in Automation and Robotics (MMAR), Miedzyzdroje, Poland, 24–27 August 2015; IEEE: Piscataway, NJ, USA, 2015; pp. 765–769. [Google Scholar]
  24. Rahman, Z.; Ami, A.M.; Ullah, M.A. A Real-Time Wrong-Way Vehicle Detection Based on YOLO and Centroid Tracking. In Proceedings of the 2020 IEEE Region 10 Symposium (TENSYMP), Dhaka, Bangladesh, 5–7 June 2020; pp. 916–920. [Google Scholar]
  25. Nour, B.; Sharif, K.; Li, F.; Wang, Y. Security and Privacy Challenges in Information-Centric Wireless Internet of Things Networks. IEEE Secur. Priv. 2020, 18, 35–45. [Google Scholar] [CrossRef]
  26. Hilmani, A.; Maizate, A.; Hassouni, L. Automated Real-Time Intelligent Traffic Control System for Smart Cities Using Wireless Sensor Networks. Wirel. Commun. Mob. Comput. 2020, 2020, 8841893. [Google Scholar] [CrossRef]
  27. Pawgasame, W. A Survey in Adaptive Hybrid Wireless Sensor Network for Military Operations. In Proceedings of the 2016 Second Asian Conference on Defence Technology (ACDT), Chiang Mai, Thailand, 21–23 January 2016; pp. 78–83. [Google Scholar]
  28. Deepak Raj, S.; Abhijith, H.V.; Ramesh Babu, H.S. Intelligent Determination of Shortest Route for Troop Movement in Military Operations by Applying ISR in Wireless Sensor Networks. Inst. Sch. (InSc) 2020, 1389–1394. Available online: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3668878 (accessed on 20 May 2024).
  29. Ali, F.; El-Sappagh, S.; Islam, S.R.; Ali, A.; Attique, M.; Imran, M.; Kwak, K.-S. An Intelligent Healthcare Monitoring Framework Using Wearable Sensors and Social Networking Data. Future Gener. Comput. Syst. 2021, 114, 23–43. [Google Scholar] [CrossRef]
  30. Malik, N.N.; Alosaimi, W.; Uddin, M.I.; Alouffi, B.; Alyami, H. Wireless Sensor Network Applications in Healthcare and Precision Agriculture. J. Healthc. Eng. 2020, 2020, 8836613. [Google Scholar] [CrossRef]
  31. Hodon, M.; Karpis, O.; Sevcik, P.; Kocianova, A. Which Digital-Output MEMS Magnetometer Meets the Requirements of Modern Road Traffic Survey? Sensors 2021, 21, 266. [Google Scholar] [CrossRef] [PubMed]
  32. Bikku, T.; Narayana, V.L.; Gopi, A.P.; Khadherbhi, S.R. Sensors Systems for Traffic Congestion Reduction Methodologies. In Proceedings of the 2019 Third International Conference on I-SMAC (IoT in Social, Mobile, Analytics and Cloud) (I-SMAC), Palladam, India, 12–14 December 2019; pp. 452–455. [Google Scholar]
  33. Velisavljevic, V.; Cano, E.; Dyo, V.; Allen, B. Wireless Magnetic Sensor Network for Road Traffic Monitoring and Vehicle Classification. Transp. Telecommun. J. 2016, 17, 274–288. [Google Scholar] [CrossRef]
  34. Culik, K.; Stefancova, V.; Hrudkay, K. Application of Wireless Magnetic Sensors in the Urban Environment and Their Accuracy Verification. Sensors 2023, 23, 5740. [Google Scholar] [CrossRef] [PubMed]
  35. Wang, Q.; Zheng, J.; Xu, B.; Huang, Y. Analysis and Experiments of Vehicle Detection with Magnetic Sensors in Urban Environments. In Proceedings of the 2015 IEEE International Conference on Cyber Technology in Automation, Control, and Intelligent Systems (CYBER), Shenyang, China, 8–12 June 2015; pp. 71–75. [Google Scholar]
  36. Yang, B.; Lei, Y. Vehicle Detection and Classification for Low-Speed Congested Traffic with Anisotropic Magnetoresistive Sensor. IEEE Sens. J. 2015, 15, 1132–1138. [Google Scholar] [CrossRef]
  37. Jiang, W.; Luo, J. Graph Neural Network for Traffic Forecasting: A Survey. Expert Syst. Appl. 2022, 207, 117921. [Google Scholar] [CrossRef]
  38. Kashyap, A.A.; Raviraj, S.; Devarakonda, A.; Nayak K, S.R.; Santhosh, K.V.; Bhat, S.J. Traffic Flow Prediction Models—A Review of Deep Learning Techniques. Cogent Eng. 2022, 9, 2010510. [Google Scholar] [CrossRef]
  39. Tu, Y.; Lin, S.; Qiao, J.; Liu, B. Deep Traffic Congestion Prediction Model Based on Road Segment Grouping. Appl. Intell. 2021, 51, 8519–8541. [Google Scholar] [CrossRef]
  40. Cetiner, B.G.; Sari, M.; Borat, O. A Neural Network Based Traffic-Flow Prediction Model. Math. Comput. Appl. 2010, 15, 269–278. [Google Scholar] [CrossRef]
  41. Sroczynski, A.; Czyzewski, A. Road Traffic Can Be Predicted by Machine Learning Equally Effectively as by Complex Microscopic Model. Sci. Rep. 2023, 13, 14523. [Google Scholar] [CrossRef]
  42. Messai, N.; Thomas, P.; Lefebvre, D.; Moudni, A.E. Neural Networks for Local Monitoring of Traffic Magnetic Sensors. Control Eng. Pract. 2005, 13, 67–80. [Google Scholar] [CrossRef]
  43. Chen, C.; Liu, B.; Wan, S.; Qiao, P.; Pei, Q. An Edge Traffic Flow Detection Scheme Based on Deep Learning in an Intelligent Transportation System. IEEE Trans. Intell. Transp. Syst. 2021, 22, 1840–1852. [Google Scholar] [CrossRef]
  44. Chowdhury, S.; Chowdhury, S.; Ifty, J.T.; Khan, R. Vehicle Detection and Classification Using Deep Neural Networks. In Proceedings of the 2022 International Conference on Electrical and Information Technology (IEIT), Malang, Indonesia, 15–16 September 2022; pp. 95–100. [Google Scholar]
  45. Mrad, S.; Mraihi, R.; Murthy, A.S. Efficient Implementation of a Wavelet Neural Network Model for Short-Term Traffic Flow Prediction: Sensitivity Analysis. Int. J. Transp. Sci. Technol. 2024, in press. [Google Scholar] [CrossRef]
  46. Huang, X.; Jiang, Y.; Wang, J.; Lan, Y.; Chen, H. A Multi-Modal Attention Neural Network for Traffic Flow Prediction by Capturing Long-Short Term Sequence Correlation. Sci. Rep. 2023, 13, 21859. [Google Scholar] [CrossRef]
  47. Clevernet Grafana. Available online: https://dashboards.clevernet.sk/?orgId=1 (accessed on 20 May 2024).
  48. Blavatnik School of Government; University of Oxford. COVID-19 Government Response Tracker. Available online: https://www.bsg.ox.ac.uk/research/covid-19-government-response-tracker (accessed on 20 May 2024).
  49. Hale, T.; Angrist, N.; Goldszmidt, R.; Kira, B.; Petherick, A.; Phillips, T.; Webster, S.; Cameron-Blake, E.; Hallas, L.; Majumdar, S.; et al. A Global Panel Database of Pandemic Policies (Oxford COVID-19 Government Response Tracker). Nat. Hum. Behav. 2021, 5, 529–538. [Google Scholar] [CrossRef]
  50. Chapman, P. CRISP-DM 1.0: Step-by-Step Data Mining Guide; SPSS: Chicago, IL, USA, 2000. [Google Scholar]
  51. Pattabiraman, V.; Singh, H. Deep Learning Based Brain Tumour Segmentation. WSEAS Trans. Comput. 2021, 19, 234–241. [Google Scholar] [CrossRef]
  52. Zhao, L.; Li, S.; Tian, Y.; Wang, Y. Accelerate the Convergence Speed of Perceptron Learning Algorithm with Weight. In Fuzzy Systems and Data Mining VIII; Frontiers in Artificial Intelligence and Applications; IOS Press: Amsterdam, The Netherlands, 2022; Volume 358, pp. 204–210. [Google Scholar]
  53. Seising, R. The Emergence of Fuzzy Sets in the Decade of the Perceptron—Lotfi A. Zadeh’s and Frank Rosenblatt’s Research Work on Pattern Classification. Mathematics 2018, 6, 110. [Google Scholar] [CrossRef]
  54. Rojas, R. Neural Networks: A Systematic Introduction; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2013; ISBN 978-3-642-61068-4. [Google Scholar]
  55. Gabrikova, B.; Svabova, L.; Kramarova, K. Machine Learning Ensemble Modelling for Predicting Unemployment Duration. Appl. Sci. 2023, 13, 10146. [Google Scholar] [CrossRef]
  56. Steyerberg, E.W.; Vickers, A.J.; Cook, N.R.; Gerds, T.; Gonen, M.; Obuchowski, N.; Pencina, M.J.; Kattan, M.W. Assessing the Performance of Prediction Models: A Framework for Some Traditional and Novel Measures. Epidemiology 2010, 21, 128–138. [Google Scholar] [CrossRef]
  57. Gabrikova, B.; Svabova, L. Impact Evaluation of the Graduate Practice Intervention Using the CART Method. In Proceedings of the 12th International Scientific Conference “Business and Management 2022” International Scientific Conference “Business and Management”, Vilnius, Lithuania, 12–13 May 2022; Vilnius Gediminas Technical University: Vilnius, Lithuania, 2022. [Google Scholar]
  58. Durica, M.; Frnda, J.; Svabova, L. Decision Tree Based Model of Business Failure Prediction for Polish Companies. Oeconomia Copernic. 2019, 10, 453–469. [Google Scholar] [CrossRef]
  59. Valaskova, K.; Kliestik, T.; Svabova, L.; Adamko, P. Financial Risk Measurement and Prediction Modelling for Sustainable Development of Business Entities Using Regression Analysis. Sustainability 2018, 10, 2144. [Google Scholar] [CrossRef]
  60. Dumitru, C.; Maria, V. Advantages and Disadvantages of Using Neural Networks for Predictions. Ovidius Univ. Ann. Econ. Sci. Ser. 2013, 13, 444–449. [Google Scholar]
Figure 1. The basic scheme of WSN.
Figure 1. The basic scheme of WSN.
Applsci 14 07793 g001
Figure 2. Blind detection zone between front and rear axle of a long bus.
Figure 2. Blind detection zone between front and rear axle of a long bus.
Applsci 14 07793 g002
Figure 3. Location of sensors within the city.
Figure 3. Location of sensors within the city.
Applsci 14 07793 g003
Figure 4. Types of vehicles detected by the sensors.
Figure 4. Types of vehicles detected by the sensors.
Applsci 14 07793 g004
Figure 5. CRISP-DM methodology. Source: [50].
Figure 5. CRISP-DM methodology. Source: [50].
Applsci 14 07793 g005
Figure 6. Example of failure in reporting vehicle numbers in one sensor.
Figure 6. Example of failure in reporting vehicle numbers in one sensor.
Applsci 14 07793 g006
Figure 7. Mathematical model of an artificial neuron. Source: [51,52].
Figure 7. Mathematical model of an artificial neuron. Source: [51,52].
Applsci 14 07793 g007
Figure 8. Average number of vehicles of individual types during the day for all sensors, direction in.
Figure 8. Average number of vehicles of individual types during the day for all sensors, direction in.
Applsci 14 07793 g008aApplsci 14 07793 g008b
Figure 9. Average number of vehicles of individual types during the day for all sensors, direction out.
Figure 9. Average number of vehicles of individual types during the day for all sensors, direction out.
Applsci 14 07793 g009
Figure 10. Total number of vehicles in individual sensors, direction in (left) and direction out (right).
Figure 10. Total number of vehicles in individual sensors, direction in (left) and direction out (right).
Applsci 14 07793 g010
Figure 11. Relationship of number of vehicles on school closing measure during the pandemic, direction in (left) and direction out (right).
Figure 11. Relationship of number of vehicles on school closing measure during the pandemic, direction in (left) and direction out (right).
Applsci 14 07793 g011aApplsci 14 07793 g011b
Figure 12. Relationship of numbers of vehicles on workspace closing measure during the pandemic, direction in (left) and direction out (right).
Figure 12. Relationship of numbers of vehicles on workspace closing measure during the pandemic, direction in (left) and direction out (right).
Applsci 14 07793 g012aApplsci 14 07793 g012b
Figure 13. Modelling stream of mobility.
Figure 13. Modelling stream of mobility.
Applsci 14 07793 g013
Figure 14. A neural network model for the number of cars in the direction to the city centre (cars_in).
Figure 14. A neural network model for the number of cars in the direction to the city centre (cars_in).
Applsci 14 07793 g014
Figure 15. Predictor importance in the comprehensive mobility model.
Figure 15. Predictor importance in the comprehensive mobility model.
Applsci 14 07793 g015
Figure 16. Ensemble model for predicting number of vehicles cars_in.
Figure 16. Ensemble model for predicting number of vehicles cars_in.
Applsci 14 07793 g016
Figure 17. Dependence of real and predicted number of vehicles.
Figure 17. Dependence of real and predicted number of vehicles.
Applsci 14 07793 g017
Table 1. Number of sensors in the city.
Table 1. Number of sensors in the city.
Street Code in the StudyNumber of Sensors
12
22
32
42
52
64
72
85
95
Table 2. Target variables.
Table 2. Target variables.
Variable NameCharacteristics
cars_inNumber of vehicles of the type cars in the direction to the city centre (direction in)
vans_inNumber of vehicles of the type vans in the direction to the city centre (direction in)
trucks_inNumber of vehicles of the type trucks in the direction to the city centre (direction in)
unknown_inNumber of vehicles of the type unknown in the direction to the city centre (direction in)
cars_outNumber of vehicles of the type cars in the direction from the city centre (direction out)
vans_outNumber of vehicles of the type vans in the direction from the city centre (direction out)
trucks_outNumber of vehicles of the type trucks in the direction from the city centre (direction out)
unknown_outNumber of vehicles of the type unknown in the direction from the city centre (direction out)
Table 3. Input variables used in the study.
Table 3. Input variables used in the study.
Variable NameVariable DescriptionValues
dateDate6 June 2021–5 August 2022
timeTime given in 15-min intervalsfrom 0:00 to 23:45 in 15-min intervals, recoded into values 1–96
sensorSensor number 1–9 (see Table 1)
working_dayIndicator of working day1 = working day, 0 = day of rest
weekendIndicator of weekend day1 = Saturday or Sunday, 0 = Monday to Friday
national_holidayIndicator of holiday day1 = holiday, 0 = not a holiday
vacationVacation day1 = vacation, 0 = not a vacation
day_of_weekDay of the week1 = Monday, 2 = Tuesday …, 7 = Sunday
day_of_week_catDay of the week categorised1 = Saturday or Sunday; 2 = Tuesday, Wednesday, Thursday; 3 = Monday, Friday
stringency index SKIndex of stringency of anti-pandemic measures, a variable related to the COVID-19 pandemic0–100
containment health index SKHealth index, a variable related to the COVID-19 pandemic0–100
government response index SKGovernment response index, a variable related to the COVID-19 pandemic0–100
economic support index SKEconomic support index, a variable related to the COVID-19 pandemic0–100
school closing SKSchool closures, a variable related to the COVID-19 pandemic0 (no measures), 1 (recommended closing), 2 (required closing)
workspace closing SKClosure of workplaces, a variable related to the COVID-19 pandemic0 (no measures), 1 (recommended closing), 2 (required closing for some sectors), 3 (required closing for all)
cancel public events SKCancellation of public events, a variable related to the COVID-19 pandemic(no measures), 1 (recommended cancellation), 2 (required cancellation)
restrictions on gatherings SKRestrictions on gatherings, a variable related to the COVID-19 pandemic0 (no restrictions), 3 (restrictions on gatherings between 11–100 people), 4 (restrictions on gatherings of 10 people and less)
close public transport SKRestriction of public transport, a variable related to the COVID-19 pandemicin Slovakia, only value 0 (no measures), this variable has been omitted from the analyses
stay at home requirements SKIndex of requirements to stay at home, a variable related to the COVID-19 pandemic0 (no measures), 1 (recommended not to leave the house), 2 (required not to leave the house)
movement restrictions SKMovement restriction, a variable related to the COVID-19 pandemicin Slovakia, only value 0, this variable has been omitted from the analyses
international travel SKInternational travel, a variable related to the COVID-19 pandemic0 (no measures), 1 (recommended restriction), 2 (restrict movement)
confirmed cases SKNumber of confirmed cases, a variable related to the COVID-19 pandemicreal value
confirmed deaths SKNumber of confirmed deaths, a variable related to the COVID-19 pandemicreal value
Table 4. Statistical characteristics and evaluation of precision of correction error values during the communication failures in sensor 1.
Table 4. Statistical characteristics and evaluation of precision of correction error values during the communication failures in sensor 1.
Sensor no.directiondirection in
sensor 1vehicle typecars_invans_intrucks_inunknown_in
Variable namecars_incars_in_ correctedvans_invans_in_ correctedtrucks_intrucks_in_ correctedunknown_inunknown_in_ corrected
Mean22.9422.9425.4725.472.112.111.481.48
Median161817191211
Mode01010000
Std. Dev52.6620.4451.4123.505.632.75.001.74
Min00000000
Max669818238941675131848644
Sum938,324938,2671,041,4611,041,47486,48686,40860,71260,674
Absolute difference from the actual value−5713−78−38
Precision of corrections (%)99.9939100.001299.909899.9374
Error in corrections (%)0.0061−0.00120.09020.0626
directiondirection out
vehicle typecars_outvans_outtrucks_outunknown_out
Variable namecars_outcars_out_ correctedvans_outvans_out_ correctedtrucks_outtrucks_out_ correctedunknown_outunknown_out_ corrected
Mean28.0128.018.798.790.900.904.234.23
Median1720460122
Mode00000000
Std. Dev00000000
Min3460205459198955144143334
Max1,145,4491,145,325359,554359,51736,88236,984173,170172,990
Sum93,832493,82671,041,4611,041,47486,48686,40860,71260,674
Absolute difference from the actual value−124−37102−180
Precision of corrections (%)99.989299.9897100.276699.8961
Error in corrections (%)0.01080.0103−0.27660.1040
Table 5. Values of statistics from the boxplots showing the dependence of the number of vehicles on school closing measures.
Table 5. Values of statistics from the boxplots showing the dependence of the number of vehicles on school closing measures.
Directioncars_invans_intrucks_inunknown_intotal_in
School closing
measure level
012012012012012
Mean26.527.823.417.616.714.01.81.81.55.24.53.351.150.842.2
Median17.017.014.09.08.06.01.01.01.02.02.02.034.032.026.0
Minimum000000000000000
Maximum2552973001922252533549256148216260470453628
Interquartile range353832262521332664737458
Directioncars_outvans_outtrucks_outunknown_outtotal_out
School closing
measure level
012012012012012
Mean29.631.827.414.612.910.42.01.71.54.14.03.350.350.542.6
Median16.018.013.07.06.04.01.00.00.02.02.02.031.030.023.0
Minimum000000000000000
Maximum24930029930030030039144291216183300587831759
Interquartile range394234201815222765717358
Table 6. Values of statistics from the boxplots showing the dependence of number of vehicles on workspace closing measure.
Table 6. Values of statistics from the boxplots showing the dependence of number of vehicles on workspace closing measure.
Directioncars_invans_intrucks_inunknown_intotal_in
Workspace Closing measure level01230123012301230123
Mean27.126.224.824.617.316.013.913.51.81.71.51.55.13.74.14.351.247.644.243.9
Median17.017.015.013.08.08.06.05.01.01.01.01.02.02.02.02.033.031.027.024.0
Minimum00000000000000000000
Maximum2973001992561922531331233525626242162605266470628322398
Interquartile range36363334262419203322655573666163
Directioncars_outvans_outtrucks_outunknown_outtotal_out
Workspace closing measure level01230123012301230123
Mean30.230.928.628.114.311.910.19.91.91.61.41.44.23.63.93.850.548.044.043.1
Median17.017.015.013.07.05.04.04.01.00.00.00.02.02.02.02.030.028.024.022.0
Minimum00000000000000000000
Maximum3002992552913003001151266929135312163003438831759335387
Interquartile Range40393737201714132221756672676262
Table 7. Evaluation statistics of the created models.
Table 7. Evaluation statistics of the created models.
Vehicle Type_DirectionTesting PartMinMaxMeanStd. DevMin ErrorMax ErrorMean ErrorMean Abs. ErrorStd. Dev of ErrorLinear Correlation
individual modelscars_
in
actual030026.3629.11−111245−0.337.0911.380.93
prediction013328.3127.67
vans_
in
actual025316.1919.35−67221−0.444.777.870.92
prediction08918.0318.22
trucks_
in
actual0261.732.68−11235−0.070.991.900.73
prediction0131.982.05
unknown_inactual02604.366.63−27259−0.121.813.250.88
prediction0314.696.06
cars_
out
actual030030.2236.45−138240−0.318.6814.100.93
prediction016433.4234.70
vans_
out
actual030012.6316.15−64297−0.234.226.920.91
prediction06914.2914.88
trucks_
out
actual02911.703.31−16291−0.011.002.100.80
prediction0171.922.80
unknown_outactual03003.864.97−13230−0.051.832.880.80
prediction0144.293.80
comprehensive modelcars_inactual030026.3629.11−99252−0.358.0912.830.90
prediction010628.0026.92
vans_inactual025316.1919.35−60217−0.405.478.790.90
prediction0671817.63
trucks_
in
actual0261.732.68−7236−0.011.052.020.70
prediction082.001.96
unknown_inactual02604.366.63−24260−0.142.063.550.86
prediction0275.005.80
cars_outactual030030.2236.45−125245−0.529.9815.810.91
prediction014233.4933.78
vans_
out
actual030012.6316.15−52300−0.294.877.710.89
prediction05614.3514.34
trucks_
out
actual02911.703.31−13291−0.031.072.210.78
prediction0152.002.67
unknown_outactual03003.864.70−13230−0.012.043.150.75
prediction0144.003.62
Table 8. Evaluation statistics of comparison models.
Table 8. Evaluation statistics of comparison models.
Modelcars
_in
vans_intrucks_inunknown_incars_outvans_outtrucks_outunknown_out
CART0.870.860.70.830.870.860.780.72
CHAID0.870.870.710.800.870.860.770.75
Nearest neighbour0.410.450.39NANANANANA
Regression0.520.560.500.570.580.580.600.54
MLP neural network
individual models
0.930.920.730.880.930.910.800.80
MLP neural network comprehensive model0.900.900.700.860.910.890.780.75
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Svabova, L.; Culik, K.; Hrudkay, K.; Durica, M. Analysing Urban Traffic Patterns with Neural Networks and COVID-19 Response Data. Appl. Sci. 2024, 14, 7793. https://doi.org/10.3390/app14177793

AMA Style

Svabova L, Culik K, Hrudkay K, Durica M. Analysing Urban Traffic Patterns with Neural Networks and COVID-19 Response Data. Applied Sciences. 2024; 14(17):7793. https://doi.org/10.3390/app14177793

Chicago/Turabian Style

Svabova, Lucia, Kristian Culik, Karol Hrudkay, and Marek Durica. 2024. "Analysing Urban Traffic Patterns with Neural Networks and COVID-19 Response Data" Applied Sciences 14, no. 17: 7793. https://doi.org/10.3390/app14177793

APA Style

Svabova, L., Culik, K., Hrudkay, K., & Durica, M. (2024). Analysing Urban Traffic Patterns with Neural Networks and COVID-19 Response Data. Applied Sciences, 14(17), 7793. https://doi.org/10.3390/app14177793

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

Article Metrics

Back to TopTop