3.1.1. Empty Values
The initial results of the data inspection process are presented in
Figure 4, which summarises the percentage of missing values across all features in the dataset. Over 15 variables exhibit more than 70% missingness, including no safety equipment, special vehicles, vehicle condition, and protective equipment presence. These high-missingness features pertain primarily to participant and vehicle attributes and reflect either systemic underreporting or structural absence of information in police records. Since the original variable names were provided in Polish, all feature names have been translated into English for clarity and broader accessibility of the findings. Identifying and quantifying missing data was a necessary first step in preparing the dataset for modelling. In the next stage, each affected variable will be analysed individually, and a dedicated imputation strategy will be proposed to maximise data retention while minimising bias.
The feature ‘No safety equipment’ contained 99.84% missing values. However, this absence of data does not indicate a data quality problem. Based on expert knowledge and domain-specific practices, it is known that police officers typically leave this field blank when no violation is observed. In this case, missing values imply that the participant used all required safety equipment. Therefore, all missing entries were replaced with the value ‘none’.
Table 1. presents the final distribution of this feature. As expected, the vast majority of entries (99.84%) are labelled as ‘none’, while a small minority represent recorded violations, such as ‘seatbelt’ (0.10%), ‘helmet’ (0.05%), or ‘child seat’ (0.01%). This confirms that safety equipment misuse is rare among registered participants and that the feature, after appropriate interpretation, can be used in further analysis.
The feature ‘Special vehicles’ contained 99.77% missing values. This missingness does not indicate a quality issue but reflects the registration practice: when a vehicle does not fall into any special category, such as an emergency vehicle or one transporting hazardous materials, the recording officer typically leaves the field blank. Therefore, all missing entries were imputed with the value ‘none’, indicating the absence of any special classification. The final distribution is shown in
Table 2. As expected, the ‘none’ category is dominant (99.77%), while other types such as ‘emergency vehicle-police’ (0.10%), ‘emergency vehicle-other’ (0.07%), and ‘hazardous materials vehicle’ (0.04%) occur infrequently.
The variable ‘Vehicle condition’ contained 7,110,186 missing values, representing 99.62% of all entries. Due to the extremely high proportion of missing data and the absence of a dedicated category for a technically sound vehicle, all missing values were imputed with no visible defect. This solution reflects the data recording practice, where officers typically note nothing in the field when no defects are observed. Despite over 300 unique textual combinations of defects, further cleaning and standardisation of these entries will be addressed in the next stage of the analysis.
The variable ‘Protective equipment present’ exhibited a high proportion of missing values, with 99.32% of entries left empty. An initial analysis revealed three distinct categories: T, N, and None. Based on domain interpretation, T was mapped to ‘yes’, and N to ‘no’. The missing values were interpreted as situations where the police officers did not report any irregularities and were thus imputed with the label ‘unknown’. This imputation strategy is summarised in
Table 3, which shows the post-processed value distribution.
The dataset contains a high proportion of missing values (99.08%) in the ‘Intersection name’ feature. Upon inspection, it became apparent that these missing values most likely indicate that the incident did not occur at an intersection or roundabout. Rather than treating these cases as data errors, we interpreted them as meaningful absences of an intersection context. Therefore, all missing entries were imputed with the value ‘not at intersection’. Given the extremely high cardinality of unique intersection names (5237), I opted not to include a full value distribution table in this paper.
The variable ‘Seat position’, indicating the occupant’s place in the vehicle, exhibited 98.62% missing data. Only 0.75% of the records included the value ‘P’, and 0.63% the value ‘T’. Due to the ambiguous nature of these abbreviations and the lack of documentation explaining the distinction, the missing entries were imputed with the placeholder value ‘unknown’. This conservative approach preserves the original semantics and avoids introducing assumptions without further clarification.
The variable ‘Under influence’ is missing in 96.1% of cases, with most values labelled as Unknown. Among known cases, the most frequent entry is Not tested (2.23%), followed by confirmed presence of Alcohol (1.63%). Other values, such as Other substance or combinations, represent marginal shares. Given the high proportion of unknowns, the variable was imputed with Unknown, while its potential as a predictor will be evaluated later. The detailed distribution is presented in
Table 4.
The variable ‘Distance to intersection’ exhibits a substantial degree of missing data, with 6,749,903 absent entries, corresponding to 94.57% of all records. This may indicate that, in most cases, the incidents occurred far from intersections, and the information was therefore not recorded by officers. Given this uncertainty, the variable was provisionally imputed using the placeholder Unknown, without further assumptions at this stage.
The feature ‘Other causes’ includes many missing values, with 91.83% of entries labelled as Unknown. As shown in
Table 5, the most frequently recorded causes were Objects or animals on the road (3.72%), Undetermined (1.59%), and Road condition (1.25%). Less frequent entries, such as Technical malfunction, Passenger’s fault, or Improper road work protection, accounted for below 1% of cases each. This feature’s diversity and lack of structure highlight the need for future standardisation and grouping of infrequent values.
The variable ‘Last technical inspection’ exhibited a high proportion of missing values, with approximately 78.6% of entries unavailable in the original dataset. Due to the limited availability of this information, no direct imputation was applied at this stage. However, as part of the preprocessing, the non-missing values were standardised: the original strings containing both date and time (DD.MM.YYYY HH:MM) were parsed and reformatted into a simplified YYYY-MM-DD string format. This change was implemented to reduce memory usage and eliminate unnecessary timestamp precision, as all recorded times were fixed at midnight (00:00).
The variable ‘Intersection’ with road contained nearly 84% missing values and over 47,000 unique non-null entries, most of which appeared to be technical identifiers. Due to the lack of documentation and the high sparsity, missing values were left unchanged, and no imputation was applied at this stage.
The variable ‘Distance marker (KM/HM)’ exhibited a high proportion of missing values (77.5%) and over 7600 unique non-null entries. Due to the absence of a clear schema or usage context for this numeric string field, missing values were left unchanged, and no imputation was applied. The variable Production year contained missing values in approximately 75.9% of cases. Due to the scale of missingness and the absence of a reliable basis for reconstruction, no imputation was applied. The variable Intersection with street exhibited a high rate of missing data, with approximately 75% of entries unavailable. Given the free-text nature of the values and the absence of structured mapping, missing values were not imputed. The variable Intersection with street exhibited a high rate of missing data, with approximately 75% of entries unavailable. Given the free-text nature of the values and the absence of structured mapping, missing values were not imputed.
Table 6 presents the distribution of the variable Intersection, which classifies the type of road intersection. Most records (73.1%) contain no information in this field. Among the available data, most cases involved intersections with a priority road (22.7%), followed by roundabouts (3.5%) and equal-priority intersections (0.7%).
Table 7 shows the distribution of the variable ‘Additional info’, which captures supplementary behavioural or situational factors associated with crash participants. Nearly half of the records (49.4%) contain no entry in this field. Among the non-missing data, the most frequent entries relate to failure to yield right of way (9.4%), failure to maintain safe distance (8.7%), and excessive speed relative to conditions (8.3%). All values were translated into English for clarity and consistency. Missing values were left unchanged.
The variable ‘House’ number was missing in approximately 43.7% of cases. Due to the nature of the data and the lack of contextual address information, no imputation was applied.
Table 8 presents the distribution of the variable ‘Road geometry’, which describes the physical layout of the road at the crash location. Approximately 28.2% of records lacked this information. Among the specified values, the most common were straight sections, curves, and combined features such as descent or crest. All labels were translated into English to ensure consistency across the dataset.
The variable ‘Street’ was missing in approximately 22.6% of records. Due to its free-text nature and the lack of a controlled vocabulary, no imputation was applied. The variable ‘Years of driving experience’ was missing in approximately 15% of cases. Given the numerical nature of the variable and the absence of reliable proxies, no imputation was performed. The variable ‘Road number’ was missing in approximately 12.4% of records. No imputation was applied as the values represent technical identifiers and no reliable structure or mapping was available. The variable ‘Event ID (KSIP)’ was missing in approximately 9.4% of cases. As it serves only as a technical identifier and is irrelevant for modelling, missing values were left unchanged, and no imputation was performed. The variable ‘Town/city’ was missing in approximately 4.7% of records. Due to the highly granular and non-standardised nature of the entries, no imputation was applied. The variable ‘Vehicle model’ was missing in approximately 3.3% of records. Due to the large number of unique free-text entries and implicit missing indicators such as “UNSPECIFIED”, no imputation or standardisation was applied. The variables ‘GPS x’ and ‘GPS y’ were both missing in exactly 3.2% of cases, always jointly. The values are stored in degree-minute format; no imputation or conversion was applied at this stage. The variable ‘Vehicle brand’ was missing in approximately 3.1% of records. Due to the large number of free-text entries and the lack of a reliable mapping or reference list, no imputation or standardisation was applied. The variable ‘Vehicle type’ was missing in approximately 1.8% of records. As the values were already grouped into interpretable vehicle categories and the missing rate was low, no further processing or imputation was applied. A group of variables related to road infrastructure and environmental conditions was analysed jointly due to their similar nature and minimal proportion of missing values. This group included Vehicle ID, Road markings, Speed limit, Weather conditions, Road surface condition, Crash site characteristics, Road surface, Area type, Road type, and Traffic signal. The percentage of missing data in these variables was exceptionally low. For all variables except Vehicle ID, the missing rate was below 0.01%, which was considered negligible in the dataset’s overall size. No imputation or removal was applied, and the features were retained in their original form. The variable Vehicle ID had a slightly higher missing rate, equal to 1.79%. No corrective action was taken since this field is primarily used for identification or referencing purposes and is not predictive. The variable was left unchanged to preserve its relational structure with other data tables.
3.1.2. Target Value
In the study’s next step, a new target variable was created by combining the existing features ‘Killed’ and ‘Injured’. These two fields, recorded independently in the source data, often lacked mutual exclusivity and, in rare cases, led to logically inconsistent combinations, such as the simultaneous presence of a serious injury and post-crash death within 30 days. A rule-based approach was applied to derive a single, interpretable outcome per participant to address this.
The resulting feature, ‘Injury severity’, assigns each participant to exactly one of five categories: ‘Killed on scene’, ‘Killed within 30 days’, ‘Seriously injured’, ‘Slightly injured’, or ‘Uninjured’. Fatal outcomes were given priority in classification: if the value of ‘Killed’ indicated immediate or delayed death, the injury information was ignored. Without a fatal outcome, classification was based on the content of the ‘Injured’ field. Participants with no recorded death or injury were classified as ‘Uninjured’.
The final distribution was as follows: 6,799,743 participants (95.27%) were classified as ‘Uninjured’, 215,198 (3.02%) as ‘Slightly injured’, 95,123 (1.33%) as ‘Seriously injured’, 18,905 (0.26%) as ‘Killed on scene’, and 8248 (0.12%) as ‘Killed within 30 days’. The distribution of non-zero injury outcomes is visualised in
Figure 5, which clearly shows that non-fatal injuries dominate the dataset, while fatal outcomes are rare. This imbalance highlights the importance of stratified evaluation methods in subsequent predictive modelling.
Figure 6 presents annual trends in the distribution of injury severity among crash participants between 2015 and 2022. The most frequent outcome was ‘Slightly injured’, with yearly counts ranging from nearly 30,000 in 2015–2017 to around 17,000 in 2022. A similar downward trend is observable for the ‘Seriously injured’ category, which declined from over 12,000 in 2015–2016 to approximately 7500 in 2022.
The number of fatal outcomes remained relatively stable between 2015 and 2019, with minor year-to-year fluctuations. Participants classified as ‘Killed on scene’ consistently ranged between 2200 and 2400 annually before dropping to 1317 in 2022. Likewise, those marked as ‘Killed within 30 days’ decreased from over 1000 annually to 579 in 2022. A notable decline in all categories occurred in 2020, which coincides with the COVID-19 pandemic and related reductions in mobility. Although 2021 showed partial recovery in injury figures, 2022 registered the lowest values across all severity levels.
These trends are likely driven by external systemic factors such as traffic volume reductions, road usage behaviour changes, and possibly vehicle or infrastructure safety improvements. They highlight the temporal dynamics of crash consequences and reinforce the importance of accounting for time effects in predictive modelling.
Seasonal variation in crash outcomes was further analysed by aggregating all cases by calendar month, regardless of year. The resulting monthly distribution is shown in
Figure 7. The number of participants sustaining injuries or fatal outcomes exhibited a clear seasonal pattern, with consistently lower counts in winter months (January–March) and higher counts in summer (June–September).
The highest number of cases in every injury severity category was recorded between May and October. The category ‘Slightly injured’ peaked in August (20,461 participants), while ‘Seriously injured’ reached its maximum in July (8956) and remained elevated during June and August. Fatalities also followed this seasonal pattern: the number of participants ‘Killed on scene’ increased from 1143 in January to 1852 in October, while ‘Killed within 30 days’ rose from 483 in February to 765 in July and remained high through autumn.
These results suggest that the overall risk of severe crash consequences rises during higher road activity, better weather, and potentially riskier behaviour such as speeding or fatigue during longer journeys. Similar seasonal patterns have been documented in the U.S., Korea, and Europe, where summer months consistently correlate with increased crash frequency and severity [
35].
The observed seasonality reinforces the relevance of temporal factors in modelling crash outcomes and may inform the design of targeted preventive measures.
A further dimension of temporal analysis is presented in
Figure 8, which shows the distribution of injury severity across days of the week. While weekday values remain relatively stable, a marked increase in cases is observed on Fridays and Saturdays. The peak occurs on Friday, with 32,725 participants classified as ‘Slightly injured’, 14,054 as ‘Seriously injured’, and a combined 4007 fatalities. Saturday follows closely, particularly in terms of fatal outcomes, with 3001 participants ‘Killed on scene’ and 1231 ‘Killed within 30 days’—the highest fatality count among all days.
These elevated figures at the end of the week likely reflect increased long-distance travel, social activities, and potential driver fatigue or riskier behaviour associated with weekend plans. Previous studies also highlight Friday and Saturday as high-risk periods due to increased evening mobility and alcohol-related crashes [
36].
By contrast, Sunday exhibits a noticeable decline in total crash-related injuries and fatalities, suggesting lower traffic volumes or more cautious driving behaviour.
This weekday pattern highlights the need to incorporate day-of-week effects into crash modelling frameworks. It also points to potential opportunities for targeted public safety interventions, particularly focused on late-week traffic behaviour and high-risk time windows.