Next Article in Journal
Evaluating Perceptions of the Natural Environment in Relation to Outdoor Activities for a Healthy and Sustainable Life: A Delphi Methodological Approach
Next Article in Special Issue
An Example of the Transition to Sustainable Mobility in the Austrian City of Graz
Previous Article in Journal
Sustainability-Based Development of a Remote Technique to Assess the Effectiveness of Thermal Insulation in Households in West Virginia
Previous Article in Special Issue
Assessment of Dangerous Goods Transport: Case Western Balkan Countries
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Using Neural Networks to Forecast the Amount of Traffic Accidents in Poland and Lithuania

by
Piotr Gorzelańczyk
1 and
Edgar Sokolovskij
2,*
1
Department of Transport, Stanislaw Staszic State University of Applied Sciences in Pila, Podchorazych 10 Street, 64-920 Pila, Poland
2
Department of Automobile Engineering, Faculty of Transport Engineering, Vilnius Gediminas Technical University, Plytinės g. 25, 10105 Vilnius, Lithuania
*
Author to whom correspondence should be addressed.
Sustainability 2025, 17(5), 1846; https://doi.org/10.3390/su17051846
Submission received: 21 January 2025 / Revised: 12 February 2025 / Accepted: 12 February 2025 / Published: 21 February 2025
(This article belongs to the Special Issue Sustainable Transportation: Driving Behaviours and Road Safety)

Abstract

:
Globally, and specifically in Poland and Lithuania, the incidence of road accidents has been on a decline over the years. The overall figures remain significantly high. Thus, it is imperative to take substantial measures to further decrease these statistics. The objective of this article is to estimate the future frequency of traffic accidents in both countries. To achieve this, a comprehensive yearly analysis of traffic incidents in Poland and Lithuania was performed. Using police records, forecasts for the years from 2024 to 2030 were established. Various neural network models were employed to predict the number of accidents. The results suggest that there remains potential for stabilization in traffic accident rates. It is undeniable that the increasing volume of vehicles on the roads, along with the development of new highways and expressways, plays a crucial role in this scenario. The result obtained depends on the model parameters (testing, validation, and training phases). Sustainable development requires comprehensive solutions, which also include improving road safety. Our research contributes to this goal by creating a tool that provides insight into the number of road accidents in analyzed countries.

1. Introduction

Traffic accidents are regrettable occurrences that not only inflict injuries or fatalities on drivers but also cause significant property loss. The World Health Organization (WHO) reports that around 1.3 million individuals lose their lives in vehicle collisions annually. On a broader level, nations face an average decline of 3% in their Gross Domestic Product (GDP) due to these incidents. For the demographic aged five to twenty-nine, road traffic accidents rank as the primary cause of death. The United Nations (UN) General Assembly has set a target to achieve a 50% reduction in fatalities and injuries related to traffic by 2030 [1].
When assessing the gravity of a traffic incident, understanding the extent of the accident is essential. It is crucial for relevant authorities to evaluate the seriousness of incidents to create effective road safety regulations that can prevent accidents and reduce injuries, deaths, and property damage [2,3]. Before introducing strategies to alleviate or avert the severity of accidents, it is important to identify the main factors that contribute to those severities [4]. Yang et al. [5] suggest a multi-node Deep Neural Network (DNN) framework aimed at predicting different levels of injuries, fatalities, and property damage, facilitating a thorough assessment of traffic accident severity.
Accident statistics are sourced from a variety of channels, primarily compiled and analyzed by government entities through designated agencies. Data collection occurs through multiple means, such as police documentation, insurance claims, and hospital records. As a result, the transportation sector is becoming more involved in in-depth analysis of traffic accident data [6].
At present, intelligent transportation systems serve as the most crucial resource for the analysis and forecasting of traffic events. Information from GPS devices installed in vehicles can be leveraged for analytical purposes [7]. Additionally, roadside microwave detection systems can continuously gather data regarding moving vehicles, including their type, speed, and overall traffic volume [8]. License plate recognition systems can also accumulate substantial amounts of traffic data over designated timeframes [9]. Moreover, social media may represent an alternative source of information about traffic incidents, although the reliability of such reports may be affected by the inexperience of those reporting [10].
Working with a variety of data sources and properly validating this information are crucial to ensuring that accident data are valuable. The analytical results can be considerably more accurate by combining several data sources and combining disparate traffic accident facts [11].
In order to assess the gravity of the issue and establish a link between traffic participants and accidents, Vilaca et al. [12] carried out a statistical study. The study’s conclusions recommend raising the bar for road safety laws and putting in place more safety precautions.
Bak et al. [13] conducted a statistical analysis of traffic safety in a particular Polish region in another study, utilizing the frequency of traffic accidents as a primary metric to investigate their causes. Multivariate statistical analysis was used in this study to examine the safety parameters linked to accident-causing persons.
The particular traffic problems under investigation will determine which accident data sources are used for this study. The efficiency of accident prediction and accident prevention can be greatly increased by combining statistical models with additional data from actual driving situations or information obtained from intelligent traffic systems [14].
The literature includes a variety of techniques for forecasting the frequency of traffic accidents. One of the most often used methods for assessing accident frequency is time series approaches [15,16]. However, they have drawbacks, such as the frequent occurrence of autocorrelation in residuals and the inability to assess forecast accuracy based on prior predictions [17]. For example, Sunny et al. [18] used the Holt–Winters exponential smoothing approach, whereas Procházka et al. [19] used a multi-seasonality model for their forecasts. The inability to incorporate exogenous variables into the model is a significant limitation of current approaches [20].
Another key statistic to consider is the incidence of accidents per 10,000 individuals. In Poland, there were 20,936 reported road accidents in 2023, with a total population of 37.6 million. Based on these data, we can calculate an accident rate of 5.57 per 10,000 people in Poland for that year. In comparison, Lithuania, with a population of 2.8 million, recorded 2863 road incidents during the same timeframe, leading to a notably higher rate of 10.23 accidents per 10,000 inhabitants in 2023.
N R A = N R N I 10000 ,
where
  • NR—number of road accidents;
  • NI—number of inhabitants.
Given the above, it is clear that the authors do not use neural networks to predict the number of road accidents. For this reason, the authors’ research hypothesis is that it is possible to forecast the number of road accidents using neural networks. The research will help to predict the number of accidents in the near future, which in turn will improve road safety.
The researchers estimated the number of accidents occurring on the roads of Poland and Lithuania based on the previously provided data. To forecast the incidence of accidents in both countries, they utilized neural networks. The conducted research will help reveal and assess the symmetry and asymmetry of the traffic accident situation in neighboring countries Poland and Lithuania. In the future, this would also help in selecting appropriate measures to improve traffic safety in both countries and in properly coordinating them as well as coordinating the investigation of the circumstances of traffic accidents.
Sustainable development requires comprehensive solutions, which also include improving road safety. Our research contributes to this goal by creating a tool that provides insight into the number of road accidents in the countries analyzed. Reducing the number of road accidents is not only a social aspect but also an economic one. Thanks to our research, it is possible to reduce the costs associated with treating the injured, repairing vehicles, and loss of productivity, which translates into economic growth.

2. Materials and Methods

Each year, roadways witness a substantial number of traffic accidents. While there has been a reduction in these incidents in recent years attributed to the epidemic, this trend has impacted the reliability of predictive models. Despite this decline, traffic accidents remain prevalent [21,22]. Therefore, it is essential to recognize the types of roads that are more susceptible to accidents and to enact all necessary measures to minimize their frequency (refer to Figure 1 and Figure 2). The number of accidents on Poland’s and Lithuania’s roads is decreasing, but is still very high (Table 1).
In Poland and Lithuania, particular neural network models were utilized to forecast the likelihood of traffic accidents. A significant benefit of this approach is its capacity to mimic the functions of the human brain. Neural networks are composed of nodes, which encompass inputs, weights, variances, and outputs. The optimal weights for the analysis were calculated using Statistica software 13.3. The results of the predictions produced by this method are affected by the models and parameters employed.
A neural network can be conceptualized as a mathematical framework that functions similarly to the nervous system. These networks are generally structured in multiple layers, which contribute to their overall design. The first layer is responsible for processing various forms of data, such as text, images, numbers, and sounds, through a training phase. During this stage, the network may evaluate hundreds of inputs before making specific decisions. The core elements of neural networks are artificial neurons, which mathematically replicate the behavior of biological neurons. Like their natural counterparts, artificial neurons take in multiple inputs but yield a single output value, similar to the dendrites found in real neurons (Figure 3) [23].
The progress of artificial intelligence is significantly centered around neural networks. This domain seeks to develop models that demonstrate intelligent behavior, including the formation of hierarchical knowledge structures.
Neural networks have diverse applications across multiple fields. For example, streaming platforms leverage them to examine user viewing habits and recommend films that align with individual preferences. They can also personalize product offerings for bidders in online auctions or improve the efficiency of text translations in applications like Google Translate. Additionally, forecasts generated by neural networks are used to estimate the frequency of traffic incidents.
To assess the number of traffic accidents in the analyzed counties, a neural network model is employed. A primary advantage of this technology is its ability to emulate the functionality of the human brain. The architecture of a neural network consists of nodes that encompass inputs, weights, variations, and outputs.
Additionally, one of the benefits of a neural network is that, similar to the human brain’s ability to function even after “conditioning” from substances like alcohol, it may continue to function up to a certain extent even in the event of significant data destruction. The brain does not refuse to comply until a certain level of damage is reached. This results in drug-induced psychosis, Alzheimer’s disease, and later stages of alcoholism, among other conditions. The capacity of neural networks to generalize learned information is another significant benefit. This implies that the network will detect pink and light yellow, which are colors that are close to those it already knows, if it learns to distinguish, for instance, red and yellow.
However, the drawbacks of neural networks include the inability to provide exact and unambiguous outputs due to a variety of intricate computations. The reason for this is that neural networks are a mirror of the human brain, which is not designed to handle numbers precisely. Furthermore, fuzzy concepts—high, low, huge, tiny, medium, and bright—are used by neural networks. The network will frequently respond with “rather yes” or “probably not” if we anticipate it to say “yes” or “no.” Additionally, if multi-step reasoning is needed to solve the problem, we will not employ neural networks [24].
The integrated artificial neural network modules within the Statistica program were responsible for adjusting the optimal weights during the testing phase. For prediction purposes, a multilayer perceptron (MLP) neural network was employed, which consists of layers that include hidden neurons. In the analyzed cases, the number of neurons in the hidden layer ranged from two to eight. The output layer comprised a single neuron that represented the time series output values of traffic events. The number of neurons in the hidden layer in the analyzed case varied from 2 to 8 neutrons, and the output layer was a single neutron, representing the output values of the time series of the number of traffic accidents. The result of the forecast by the method discussed depends on the choice of the model and its parameters. The analyzed data were post-validated [25,26,27,28,29].
The outcomes generated by these methods are contingent upon the model and its associated parameters. To evaluate the quality of the predictions, the predictive accuracy was calculated using the prediction errors derived from specific Equations (2)–(7) with the following formula:
ME—mean error
M E = 1 n i = 1 n Y i Y p ,
MAE—mean absolute error
M A E = 1 n i = 1 n Y i Y p ,
MPE—mean percentage error
M P E = 1 n i = 1 n Y i Y p Y i ,
MAPE—mean absolute percentage error
M A P E = 1 n i = 1 n Y i Y p Y i ,
SSE—mean square error
S S E = 1 n i = 1 n Y i Y p 2 ,
M 2 —Theila measure
M 2 = i = 1 N ( Y i Y p ) 2 i = 1 N Y i 2 ,
where
  • n—length of forecast horizon;
  • Y—observed value of road accidents;
  • Yp—projected value of road accidents.
The frequency of traffic accidents was predicted using neural network models with the lowest average percentage error and average absolute percentage error.

3. Results

The Polish Police’s 1990–2023 data [21] were used to anticipate the country’s yearly traffic accident count; in Lithuania, the Transport Competence Agency’s data [22] were utilized. In both cases, the studies were conducted in Statistica software 13.3, assuming two random sample sizes:
  • Teaching 70%, testing 15% and validation 15%;
  • Teaching 80%, testing 10% and validation 10%;
with the following number of teaching networks: 20, 40, 60, 80, 100, 200, for which the MP error value was minimal (Appendix A, Table A1, Table A2, Table A3 and Table A4).

4. Discussion

The research indicates that there might be a minor uptick in road accidents in Poland; however, the total traffic volume is projected to stabilize in the coming years. To arrive at these conclusions, a random sampling method was employed. It was found that the average percentage error tends to decline when the size of the learning group surpasses that of both the test and validation groups. In particular, the error rates recorded were 5.68% and 4.63% for the individuals in the learning group, with 15% allocated to both the test and validation groups during the first (80-10-10) and second (70-15-15) tests. In the near future, the number of road accidents can be expected to be around 20,000 (Figure 4).
The data available suggest that there may be a modest rise in road accidents across Lithuania; however, overall traffic is anticipated to stabilize in the near future. The process of selecting a random sample size is crucial to the resulting findings. It was observed that the average percentage error tends to decrease when the learning group’s size exceeds that of the test and validation groups. Specifically, for the learning group, the error percentage was 6.68% with a ratio of 70-15-15, while both the test group and the validation group recorded an error of 15%. In contrast, during the second test (80-10-10), the error rate was 5.18%. In the near future, the number of road accidents can be expected to be around 3000 (Figure 5).
This research helps to reveal the symmetry/asymmetry of the traffic accident situation in neighboring countries Poland and Lithuania. In the future, this would also help in selecting appropriate measures to improve traffic safety in both countries and in properly coordinating them as well as coordinate the investigation of the circumstances of traffic accidents [30].

5. Conclusions

Neural networks were employed to predict the occurrence of accidents in both Poland and Lithuania. This study was carried out within the Statistica environment, where the system evaluated the weights of this study to minimize both the mean absolute error and the mean absolute percentage error.
According to the gathered data, it is reasonable to anticipate a stable rate of traffic accidents in both nations, with only a slight rise expected. This situation should be considered in the context of the ongoing pandemic and the increasing number of vehicles on the roads. The estimated forecast errors offer valuable insights into the accuracy of the models used.
In response to the generated forecasts, measures should be taken to further reduce the incidence of traffic accidents. One potential strategy is to enhance penalties for traffic violations on Polish roads, which took effect on 1 January 2022. It is clear that the pandemic has impacted the research findings by significantly changing the frequency of road accidents.
For future studies, researchers plan to utilize additional statistical methods to more accurately determine the total number of traffic accidents. They also aim to explore various factors that could affect the accident rate, such as traffic volume, weather conditions, driver age, and the application of exponential techniques to estimate accident frequency in traffic scenarios.
The results of forecasting the number of road accidents are consistent with the authors’ other studies in this field using other methods of forecasting the number of road accidents, such as adaptive methods and trend methods [31,32].

Author Contributions

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

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

This study did not report any data.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A

Table A1. Summary of neural network learning for the case of random sample size teaching 70%, testing 15% and validation 15% for Poland.
Table A1. Summary of neural network learning for the case of random sample size teaching 70%, testing 15% and validation 15% for Poland.
Network NumberNetwork NameQuality (Learning)Quality (Testing)Quality (Validation)Learning AlgorithmError FunctionActivation (Hidden)Activation (Output)Errors
MEMAEMPEMAPESSETheil
20MLP 1-7-10.970.980.99BFGS 12SOSTanhLogistic932.032374.972.85%6.69%2747.764.56 × 10³
20MLP 1-8-10.970.980.99BFGS 4SOSLinearLogistic664.142092.803.19%6.46%2667.944.30 × 10−3
20MLP 1-2-10.970.980.99BFGS 4SOSExponentialExponential1168.742119.693.23%5.69%2657.544.26 × 10−3
20MLP 1-4-10.960.970.99BFGS 4SOSExponentialLinear1815.062891.742.84%7.52%3551.217.61 × 10−3
20MLP 1-3-10.970.970.99BFGS 42SOSTanhLogistic1113.772387.703.25%6.64%2802.324.74 × 10−3
40MLP 1-7-10.970.980.99BFGS 8SOSExponentialExponential837.432001.242.77%5.68%2484.153.72 × 10−3
40MLP 1-3-10.970.980.99BFGS 8SOSExponentialExponential909.412052.582.80%5.71%2526.153.85 × 10−3
40MLP 1-2-10.970.960.99BFGS 7SOSLogisticLogistic1110.512279.943.35%6.40%2764.054.61 × 10−3
40MLP 1-8-10.970.960.99BFGS 5SOSLogisticExponential1483.152363.704.57%6.80%2927.925.17 × 10−3
40MLP 1-3-10.960.950.99BFGS 5SOSLogisticExponential1035.602590.233.60%7.73%3048.655.61 × 10−3
60MLP 1-4-10.970.970.99BFGS 7SOSTanhLogistic1031.482377.943.10%6.68%2772.294.64 × 10−3
60MLP 1-7-10.970.970.99BFGS 5SOSTanhLogistic777.042415.302.17%6.63%2763.524.61 × 10−3
60MLP 1-2-10.970.970.99BFGS 9SOSExponentialLogistic1109.932233.823.17%6.12%2715.754.45 × 10−3
60MLP 1-5-10.970.970.99BFGS 12SOSTanhExponential1090.272283.833.28%6.40%2721.354.47 × 10−3
60MLP 1-6-10.970.980.99BFGS 5SOSExponentialExponential1071.391987.713.83%5.94%2590.074.05 × 10−3
80MLP 1-5-10.970.970.99BFGS 7SOSTanhLogistic1040.102404.103.15%6.78%2796.234.72 × 10−3
80MLP 1-8-10.970.980.99BFGS 14SOSExponentialLogistic1023.902217.063.03%6.15%2661.454.27 × 10−3
80MLP 1-3-10.970.980.99BFGS 7SOSExponentialLogistic801.652239.472.48%6.27%2623.544.15 × 10−3
80MLP 1-7-10.970.960.99BFGS 7SOSLogisticLogistic978.702426.952.68%6.63%2851.964.91 × 10−3
80MLP 1-7-10.970.980.99BFGS 13SOSExponentialLogistic873.082237.492.54%6.16%2638.934.20 × 10−3
100MLP 1-8-10.970.980.99BFGS 18SOSExponentialLogistic1021.622260.142.99%6.25%2688.974.36 × 10−3
100MLP 1-5-10.970.970.99BFGS 6SOSLogisticLogistic1108.502402.263.24%6.69%2819.424.80 × 10−3
100MLP 1-4-10.970.980.99BFGS 11SOSLogisticExponential909.582320.202.93%6.65%2707.864.43 × 10−3
100MLP 1-2-10.960.950.99BFGS 7SOSTanhLogistic1114.152426.314.15%7.43%3005.795.45 × 10−3
100MLP 1-2-10.970.970.99BFGS 8SOSTanhLogistic894.032347.672.83%6.67%2720.344.47 × 10−3
200MLP 1-6-10.960.960.99BFGS 8SOSTanhLogistic644.882480.322.22%7.15%2814.194.78 × 10−3
200MLP 1-6-10.970.960.99BFGS 7SOSTanhLogistic770.952330.092.51%6.64%2702.564.41 × 10−3
200MLP 1-3-10.970.970.99BFGS 10SOSLogisticLogistic970.772347.012.97%6.61%2750.084.56 × 10−3
200MLP 1-2-10.950.920.99BFGS 7SOSLogisticExponential319.552657.150.32%7.61%3035.785.56 × 10−3
200MLP 1-4-10.970.970.99BFGS 6SOSTanhLogistic1200.192356.373.63%6.66%2816.404.79 × 10−3
Minimal319.551987.710.32%5.68%2484.153.72 × 10−3
Table A2. Summary of neural network learning for the case of random sample size teaching 80%. testing 10% and validation 10% for Poland.
Table A2. Summary of neural network learning for the case of random sample size teaching 80%. testing 10% and validation 10% for Poland.
Network NumberNetwork NameQuality (Learning)Quality (Testing)Quality (Validation)Learning AlgorithmError FunctionActivation (Hidden)Activation (Output)Errors
MEMAEMPEMAPESSETheil
20MLP 1-5-10.960.991.00BFGS 8SOSLogisticLinear422.401830.320.90%5.12%2362.113.37 × 10−3
20MLP 1-5-10.960.991.00BFGS 5SOSLinearTanh420.052152.640.39%6.51%2773.074.64 × 10−3
20MLP 1-3-10.960.991.00BFGS 63SOSTanhLogistic702.371986.102.31%5.57%2455.033.64 × 10−3
20MLP 1-8-10.960.991.00BFGS 6SOSLinearTanh326.742130.770.17%6.45%2734.114.51 × 10−3
20MLP 1-8-10.960.991.00BFGS 6SOSLogisticTanh265.621759.880.80%4.63%2294.493.18 × 10−3
40MLP 1-5-10.960.991.00BFGS 5SOSTanhExponential1544.712539.206.27%8.23%3300.446.57 × 10−3
40MLP 1-5-10.960.991.00BFGS 6SOSLinearTanh180.472355.280.72%7.31%2994.435.41 × 10−3
40MLP 1-2-10.960.991.00BFGS 6SOSLinearTanh184.522325.081.67%7.28%2934.775.20 × 10−3
40MLP 1-6-10.960.981.00BFGS 4SOSLogisticLogistic725.122046.173.35%6.03%2699.404.40 × 10−3
40MLP 1-2-10.960.991.00BFGS 10SOSLogisticTanh397.201761.511.05%4.76%2339.083.30 × 10−3
60MLP 1-2-10.950.981.00BFGS 5SOSLogisticExponential46.122638.200.89%7.75%3021.275.51 × 10−3
60MLP 1-6-10.960.991.00BFGS 5SOSLinearTanh381.152625.382.79%8.41%3359.276.81 × 10−3
60MLP 1-6-10.950.981.00BFGS 5SOSLogisticLogistic1436.542605.982.62%6.58%3107.295.83 × 10−3
60MLP 1-3-10.950.981.00BFGS 7SOSTanhTanh225.512181.931.10%6.66%2827.634.83 × 10−3
60MLP 1-6-10.950.991.00BFGS 7SOSExponentialLogistic231.312206.350.69%5.98%2657.704.26 × 10−3
80MLP 1-2-10.960.991.00BFGS 11SOSLogisticTanh63.002068.870.35%6.24%2669.344.30 × 10−3
80MLP 1-3-10.960.991.00BFGS 4SOSLinearTanh261.752325.060.42%7.18%2957.415.28 × 10−3
80MLP 1-2-10.960.981.00BFGS 7SOSLogisticLinear553.252205.412.23%6.74%2759.024.59 × 10−3
80MLP 1-2-10.950.981.00BFGS 6SOSTanhLogistic81.512328.800.41%6.55%2719.894.46 × 10−3
80MLP 1-7-10.960.991.00BFGS 5SOSLinearTanh159.972374.170.82%7.38%3018.425.50 × 10−3
100MLP 1-7-10.960.991.00BFGS 7SOSLinearTanh573.152175.010.84%6.54%2792.334.71 × 10−3
100MLP 1-2-10.950.991.00BFGS 9SOSTanhLogistic334.462310.291.71%6.79%2726.364.49 × 10−3
100MLP 1-5-10.960.991.00BFGS 5SOSLinearTanh180.962441.211.90%7.72%3101.835.81 × 10−3
100MLP 1-2-10.960.991.00BFGS 7SOSLinearTanh573.252174.780.84%6.54%2791.984.70 × 10−3
100MLP 1-4-10.960.991.00BFGS 5SOSLinearTanh100.842331.110.91%7.25%2967.665.32 × 10−3
200MLP 1-8-10.960.991.00BFGS 6SOSTanhTanh380.182350.662.18%7.47%3034.065.56 × 10−3
200MLP 1-2-10.960.981.00BFGS 7SOSTanhLinear265.662300.271.76%7.12%2877.845.00 × 10−3
200MLP 1-8-10.960.991.00BFGS 2SOSTanhTanh1932.172744.394.08%6.86%3486.867.34 × 10−3
200MLP 1-3-10.960.981.00BFGS 7SOSLogisticTanh38.541969.490.44%5.51%2441.323.60 × 10−3
200MLP 1-4-10.950.981.00BFGS 5SOSLogisticLogistic704.602296.701.35%6.17%2731.824.50 × 10−3
Minimal38.541759.880.17%4.63%2294.493.18 × 10−3
Table A3. Summary of neural network learning for the case of random sample sizes teaching 70%. testing 15% and validation 15% for Lithuania.
Table A3. Summary of neural network learning for the case of random sample sizes teaching 70%. testing 15% and validation 15% for Lithuania.
Network NumberNetwork NameQuality (Learning)Quality (Testing)Quality (Validation)Learning AlgorithmError FunctionActivation (Hidden)Activation (Output)Errors
MEMAEMPEMAPESSETheil
20MLP 1-7-10.950.880.79BFGS 5SOSExponentialTanh116.84293.522.65%7.20%472.031.10 × 10−2
20MLP 1-5-10.960.800.79BFGS 11SOSExponentialLogistic50.81287.671.24%6.68%486.551.17 × 10−2
20MLP 1-7-10.950.870.80BFGS 14SOSTanhTanh129.74300.583.23%7.40%474.811.11 × 10−2
20MLP 1-4-10.950.860.80BFGS 17SOSTanhTanh118.34309.493.08%7.64%477.011.12 × 10−2
20MLP 1-8-10.950.860.80BFGS 6SOSLinearTanh101.48346.302.87%8.73%492.441.20 × 10−2
40MLP 1-7-10.950.860.80BFGS 5SOSLinearTanh56.14342.711.59%8.56%484.271.16 × 10−2
40MLP 1-2-10.950.850.80BFGS 9SOSLogisticLinear103.22333.192.90%8.31%486.141.16 × 10−2
40MLP 1-3-10.940.880.80BFGS 2SOSLinearTanh280.75432.366.18%9.80%530.191.39 × 10−2
40MLP 1-5-10.950.860.80BFGS 14SOSTanhTanh72.85324.852.20%7.97%469.731.09 × 10−2
40MLP 1-4-10.950.840.81BFGS 10SOSLogisticTanh68.48338.432.04%8.37%486.851.17 × 10−2
60MLP 1-5-10.950.850.80BFGS 5SOSLinearTanh15.31363.051.03%9.38%512.181.29 × 10−2
60MLP 1-2-10.950.850.80BFGS 13SOSLogisticTanh97.04327.472.72%8.11%485.121.16 × 10−2
60MLP 1-2-10.950.860.80BFGS 7SOSLinearTanh99.28346.012.85%8.70%490.431.19 × 10−2
60MLP 1-6-10.950.860.80BFGS 3SOSLogisticLinear47.65355.012.64%8.34%473.701.11 × 10−2
60MLP 1-3-10.950.850.80BFGS 8SOSLogisticLinear98.13332.872.77%8.28%486.391.17 × 10−2
80MLP 1-4-10.950.860.80BFGS 5SOSLinearTanh57.41342.511.64%8.55%483.871.15 × 10−2
80MLP 1-7-10.940.860.81BFGS 2SOSTanhTanh193.51447.862.57%9.52%566.171.58 × 10−2
80MLP 1-5-10.950.860.80BFGS 5SOSLinearTanh21.46344.490.49%8.64%486.201.16 × 10−2
80MLP 1-6-10.940.850.81BFGS 2SOSTanhTanh143.23402.102.54%9.28%509.691.28 × 10−2
80MLP 1-3-10.950.860.80BFGS 5SOSLinearTanh59.53342.411.72%8.55%483.561.15 × 10−2
100MLP 1-7-10.950.860.80BFGS 4SOSLinearTanh97.95346.002.76%8.72%492.121.19 × 10−2
100MLP 1-8-10.950.860.80BFGS 4SOSLinearTanh79.26344.722.07%8.71%494.491.21 × 10−2
100MLP 1-5-10.950.860.80BFGS 4SOSLinearTanh100.76346.252.85%8.72%492.491.20 × 10−2
100MLP 1-4-10.950.850.80BFGS 13SOSTanhTanh91.68346.052.62%8.69%491.421.19 × 10−2
100MLP 1-6-10.950.860.80BFGS 5SOSLinearTanh4.80352.900.26%8.99%499.521.23 × 10−2
200MLP 1-7-10.950.860.80BFGS 4SOSLinearTanh101.52346.312.87%8.73%492.471.20 × 10−2
200MLP 1-4-10.950.860.80BFGS 4SOSLinearTanh101.01346.262.86%8.72%492.371.19 × 10−2
200MLP 1-3-10.950.860.80BFGS 4SOSLinearTanh75.43345.501.91%8.75%496.301.21 × 10−2
200MLP 1-8-10.950.860.80BFGS 5SOSLinearTanh101.59346.312.88%8.73%492.421.20 × 10−2
200MLP 1-8-10.950.860.80BFGS 4SOSLinearTanh78.13345.022.02%8.73%495.221.21 × 10−2
Minimal4.80287.670.26%6.68%469.731.09 × 10−2
Table A4. Summary of neural network learning for the case of random sample size teaching 80%. testing 10% and validation 10% for Lithuania.
Table A4. Summary of neural network learning for the case of random sample size teaching 80%. testing 10% and validation 10% for Lithuania.
Network NumberNetwork NameQuality (Learning)Quality (Testing)Quality (Validation)Learning AlgorithmError FunctionActivation (Hidden)Activation (Output)Errors
MEMAEMPEMAPESSETheil
20MLP 1-2-10.901.001.00BFGS 6SOSTanhExponential134.74393.582.22%8.75%591.361.72 × 10−2
20MLP 1-2-10.901.001.00BFGS 6SOSTanhExponential220.561410.1317.04%36.02%1471.741.07 × 10−1
20MLP 1-2-10.901.001.00BFGS 6SOSTanhExponential107.06293.382.98%7.14%452.541.01 × 10−2
20MLP 1-2-10.901.001.00BFGS 6SOSTanhExponential103.92359.620.98%7.64%535.331.41 × 10−2
20MLP 1-2-10.901.001.00BFGS 6SOSTanhExponential54.42341.901.87%8.42%474.111.11 × 10−2
40MLP 1-2-10.931.001.00BFGS 0SOSExponentialLinear79.02330.922.38%8.24%465.181.07 × 10−2
40MLP 1-8-10.931.001.00BFGS 0SOSExponentialLinear94.95332.662.86%8.30%468.351.08 × 10−2
40MLP 1-8-10.931.001.00BFGS 0SOSExponentialLinear92.36327.482.79%8.14%463.801.06 × 10−2
40MLP 1-5-10.931.001.00BFGS 2SOSTanhLinear86.38769.144.16%17.71%875.683.78 × 10−2
40MLP 1-2-10.931.001.00BFGS 2SOSExponentialExponential169.63729.931.83%16.07%880.633.82 × 10−2
60MLP 1-7-10.931.001.00BFGS 0SOSLinearTanh54.42341.901.87%8.42%474.111.11 × 10−2
60MLP 1-5-10.921.001.00BFGS 5SOSLogisticLogistic141.96386.071.79%8.08%570.731.61 × 10−2
60MLP 1-5-10.931.001.00BFGS 0SOSLinearTanh54.42341.901.87%8.42%474.111.11 × 10−2
60MLP 1-5-10.931.001.00BFGS 0SOSLinearTanh54.42341.901.87%8.42%474.111.11 × 10−2
60MLP 1-6-10.941.001.00BFGS 0SOSLogisticTanh100.10298.222.80%7.27%455.091.02 × 10−2
80MLP 1-2-10.931.001.00BFGS 4SOSExponentialExponential6.39317.711.23%7.16%483.831.15 × 10−2
80MLP 1-2-10.931.001.00BFGS 0SOSExponentialLinear97.24327.262.96%8.13%463.601.06 × 10−2
80MLP 1-3-10.931.001.00BFGS 0SOSExponentialLinear93.10326.552.78%8.12%463.801.06 × 10−2
80MLP 1-8-10.931.001.00BFGS 0SOSLinearTanh54.42341.901.87%8.42%474.111.11 × 10−2
80MLP 1-4-10.931.001.00BFGS 3SOSExponentialExponential215.34621.179.75%16.10%662.962.17 × 10−2
100MLP 1-2-10.931.001.00BFGS 0SOSTanhLinear84.90301.012.41%7.37%450.931.00 × 10−2
100MLP 1-8-10.931.001.00BFGS 0SOSExponentialLinear85.41333.582.63%8.26%467.981.08 × 10−2
100MLP 1-8-10.961.001.00BFGS 166SOSLogisticExponential3.37227.910.80%5.18%363.526.51 × 10−3
100MLP 1-4-10.931.001.00BFGS 2SOSExponentialLogistic376.04833.962.14%17.19%1089.975.85 × 10−2
100MLP 1-2-10.931.001.00BFGS 0SOSExponentialLinear92.59326.492.81%8.10%462.811.06 × 10−2
200MLP 1-6-10.931.001.00BFGS 0SOSExponentialLinear95.16324.122.86%8.04%461.951.05 × 10−2
200MLP 1-4-10.931.001.00BFGS 3SOSExponentialExponential160.92664.228.86%16.78%703.592.44 × 10−2
200MLP 1-4-10.931.001.00BFGS 4SOSTanhLogistic66.82446.604.59%10.57%552.801.51 × 10−2
200MLP 1-5-10.941.001.00BFGS 0SOSTanhTanh137.58314.343.67%7.79%482.261.15 × 10−2
200MLP 1-7-10.931.001.00BFGS 0SOSExponentialLinear83.79330.502.63%8.13%465.291.07 × 10−2
Minimal3.37227.910.80%5.18%363.526.51 × 10−3

References

  1. WHO. The Global Status on Road Safety. WHO: Geneva, Switzerland, 2018; 403p, Available online: https://www.who.int/publications/i/item/9789241565684 (accessed on 23 May 2023)ISBN 9789241565684.
  2. Tambouratzis, T.; Souliou, D.; Chalikias, M.; Gregoriades, A. Maximising accuracy and efficiency of traffic accident prediction combining information mining with computational intelligence approaches and decision trees. J. Artif. Intell. Soft Comput. Res. 2014, 4, 31–42. [Google Scholar] [CrossRef]
  3. Zhu, L.; Lu, L.; Zhang, W.; Zhao, Y.; Song, M. Analysis of accident severity for curved roadways based on bayesian networks. Sustainability 2019, 11, 2223. [Google Scholar] [CrossRef]
  4. Arteaga, C.; Paz, A.; Park, J. Injury severity on traffic crashes: A text mining with an interpretable machine-learning approach. Saf. Sci. 2020, 132, 104988. [Google Scholar] [CrossRef]
  5. Yang, Z.; Zhang, W.; Feng, J. Predicting multiple types of traffic accident severity with explanations: A multi-task deep learning framework. Saf. Sci. 2022, 146, 105522. [Google Scholar] [CrossRef]
  6. Gorzelańczyk, P. Change in the Mobility of Polish Residents during the Covid-19 Pandemic. Commun.—Sci. Lett. Univ. Zilina 2022, 24, A100–A111. [Google Scholar] [CrossRef]
  7. Chudy-Laskowska, K.; Pisula, T. Forecasting the number of road accidents in Subcarpathia. Logistics 2015, 4, 2782–2796. [Google Scholar]
  8. Khaliq, K.A.; Chughtai, O.; Shahwani, A.; Qayyum, A.; Pannek, J. Road accidents detection, data collection and data analysis using V2X communication and edge/cloud computing. Electronics 2019, 8, 896. [Google Scholar] [CrossRef]
  9. Rajput, H.; Som, T.; Kar, S. An automated vehicle license plate recognition system. Computer 2015, 48, 56–61. [Google Scholar] [CrossRef]
  10. Zheng, Z.; Wang, C.; Wang, P.; Xiong, Y.; Zhang, F.; Lv, Y. Framework for fusing traffic information from social and physical transportation data. PLoS ONE 2018, 13, e0201531. [Google Scholar] [CrossRef] [PubMed]
  11. Abdullah, E.; Emam, A. Traffic accidents analyzer using big data. In Proceedings of the 2015 International Conference on Computational Science and Computational Intelligence (CSCI), Las Vegas, NV, USA, 7–9 December 2015; Institute of Electrical and Electronics Engineers Inc.: Piscataway, NJ, USA, 2016; pp. 392–397. [Google Scholar] [CrossRef]
  12. Vilaça, M.; Silva, N.; Coelho, M.C. Statistical analysis of the occurrence and severity of crashes involving vulnerable road users. Transp. Res. Procedia 2017, 27, 1113–1120. [Google Scholar] [CrossRef]
  13. Bąk, I.; Cheba, K.; Szczecińska, B. The statistical analysis of road traffic in cities of Poland. Transp. Res. Procedia 2019, 39, 14–23. [Google Scholar] [CrossRef]
  14. Chand, A.; Jayesh, S.; Bhasi, A.B. Road traffic accidents: An overview of data sources, analysis techniques and contributing factors. Mater. Today Proc. 2021, 47, 5135–5141. [Google Scholar] [CrossRef]
  15. Helgason, A. Fractional integration methods and short Time series: Evidence from asimulation study. Political Anal. 2016, 24, 59–68. [Google Scholar] [CrossRef]
  16. Lavrenz, S.; Vlahogianni, E.; Gkritza, K.; Ke, Y. Time series modeling in traffic safetyresearch. Accid. Anal. Prev. 2018, 117, 368–380. [Google Scholar] [CrossRef] [PubMed]
  17. Forecasting Based on Time Series. Available online: http://pis.rezolwenta.eu.org/Materialy/PiS-W-5.pdf (accessed on 10 May 2024).
  18. Sunny, C.M.; Nithya, S.; Sinshi, K.S.; Vinodini, V.M.D.; Lakshmi, A.K.G.; Anjana, S.; Manojkumar, T.K. Forecasting of Road Accident in Kerala: A Case Study. In Proceedings of the 2018 International Conference on Data Science and Engineering (ICDSE), Kochi, India, 7–9 August 2018. [Google Scholar] [CrossRef]
  19. Procházka, J.; Flimmel, S.; Camaj, M.; Bašta, M. Modelling the Number of Road Accidents; Publishing House of the University of Economics in Wrocław: Wrocław, Poland, 2017. [Google Scholar] [CrossRef]
  20. Dudek, G. Rutkowski, L., Korytkowski, M., Scherer, R., Tadeusiewicz, R., Zadeh, L.A., Zurada, J.M., Eds.; Forecasting Time Series with Multiple Seasonal Cycles Using Neural Networks with Local Learning. In Artificial Intelligence and Soft Computing; ICAISC. Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2013; Volume 7894. [Google Scholar] [CrossRef]
  21. Statistic Road Accident. Available online: https://statystyka.policja.pl/ (accessed on 10 May 2024).
  22. Traffic Accident Statistics in Lithuania. Available online: https://tka.lt/en/katalogas/eismo-ivykiu-statistika-lietuvoje/#tab-1 (accessed on 10 May 2024).
  23. Dertat, A. Applied Deep Learning—Part 1: Artificial Neural Networks. 2023. Available online: https://medium.com/towards-data-science/applied-deep-learning-part-1-artificial-neural-networks-d7834f67a4f6 (accessed on 10 May 2024).
  24. Artificial Neural Networks—Part 1. Available online: http://strata-czasu.net/sztuczne-sieci-neuronowe-czesc-1 (accessed on 10 May 2024).
  25. Lake, B.M.; Ullman, T.D.; Tenenbaum, J.B.; Gershman, S.J. Building machines that learn and think like people. Behav. Brain Sci. 2017, 40, e253. [Google Scholar] [CrossRef] [PubMed]
  26. Becoming Human. How Netflix Uses AI, Data Science, and Machine Learning—From a Product Perspective. Available online: www.becominghuman.ai (accessed on 10 August 2019).
  27. Forbes. The Amazing Ways eBay is Using Artificial Intelligence to Boost Business Success. Available online: www.forbes.com (accessed on 12 September 2020).
  28. Wu, Y.; Schuster, M.; Chen, Z.; Le, Q.V.; Norouzi, M.; Macherey, W.; Krikun, M.; Cao, Y.; Gao, Q.; Macherey, K.; et al. Google’s neural machine translation system: Bridging the gap between human and machine translation. arXiv 2016, arXiv:1609.08144. [Google Scholar] [CrossRef]
  29. Oronowicz-Jaśkowiak, W. The application of neural networks in the work of forensic experts in child abuse cases. Adv. Psychiatry Neurol. 2019, 28, 273–282. [Google Scholar] [CrossRef]
  30. Žuraulis, V.; Sokolovskij, E. Vehicle velocity relation to slipping trajectory change: An option for traffic accident reconstruction. Promet—TrafficTransp. 2018, 30, 395–406. [Google Scholar] [CrossRef]
  31. Gorzelanczyk, P.; Ho, J.S. Forecasting the Number of Road Accidents in Poland by Road Type. Highlights Veh. 2024, 2, 13–23. [Google Scholar] [CrossRef]
  32. Gorzelańczyk, P. Forecasting the number of road accidents caused by pedestrians in Poland using neural networks. Cogn. Sustain. 2024, 3, 1–10. [Google Scholar] [CrossRef]
Figure 1. Number of road accidents in Poland between 1990 and 2023 [21].
Figure 1. Number of road accidents in Poland between 1990 and 2023 [21].
Sustainability 17 01846 g001
Figure 2. Number of road accidents in Lithuania between 1990 and 2023 [22].
Figure 2. Number of road accidents in Lithuania between 1990 and 2023 [22].
Sustainability 17 01846 g002
Figure 3. Neural network models.
Figure 3. Neural network models.
Sustainability 17 01846 g003
Figure 4. Forecasting number of road accidents for 2022–2030 for Poland.
Figure 4. Forecasting number of road accidents for 2022–2030 for Poland.
Sustainability 17 01846 g004
Figure 5. Forecasting number of road accidents for 2022–2030 in Lithuania.
Figure 5. Forecasting number of road accidents for 2022–2030 in Lithuania.
Sustainability 17 01846 g005
Table 1. Numbers of road accidents in Poland and Lithuania in 1990–2023 [21,22].
Table 1. Numbers of road accidents in Poland and Lithuania in 1990–2023 [21,22].
YearPolandLithuaniaYearPolandLithuania
199050,4325135200749,5366448
199154,0386067200849,0544795
199250,9904049200944,1963805
199348,9014319201038,8323530
199453,6473902201140,0653266
199556,9044144201237,0463173
199657,9114579201335,8473391
199766,5865319201434,9703255
199861,8556445201532,9673033
199955,1066356201633,6643201
200057,3315807201732,7603051
200153,7995972201831,6742925
200253,5596090201930,2883190
200351,0785963202023,5402826
200451,0696372202122,8162808
200548,1006771202221,3222878
200646,8766658202320,9362863
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

Gorzelańczyk, P.; Sokolovskij, E. Using Neural Networks to Forecast the Amount of Traffic Accidents in Poland and Lithuania. Sustainability 2025, 17, 1846. https://doi.org/10.3390/su17051846

AMA Style

Gorzelańczyk P, Sokolovskij E. Using Neural Networks to Forecast the Amount of Traffic Accidents in Poland and Lithuania. Sustainability. 2025; 17(5):1846. https://doi.org/10.3390/su17051846

Chicago/Turabian Style

Gorzelańczyk, Piotr, and Edgar Sokolovskij. 2025. "Using Neural Networks to Forecast the Amount of Traffic Accidents in Poland and Lithuania" Sustainability 17, no. 5: 1846. https://doi.org/10.3390/su17051846

APA Style

Gorzelańczyk, P., & Sokolovskij, E. (2025). Using Neural Networks to Forecast the Amount of Traffic Accidents in Poland and Lithuania. Sustainability, 17(5), 1846. https://doi.org/10.3390/su17051846

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