DOI: 10.2478/seeur-2023-0064 ISSN: 1857-8462

Analysis and Visualization of Road Accidents Using Heatmaps Based on Web Data

Luan Sinanaj, Lejla Abazi Bexheti
  • General Medicine


Road accidents have increased rapidly in recent years for a variety of reasons. Analyzing and visualizing road accidents through heatmaps can help improve policies for their prevention by informing about areas with a high-risk of road accidents.

The purpose of this research is to build a model for the analysis and visualization of road accidents through heatmaps. Information about road accidents is extracted from the news of the main online media portals through scripts in the Python language and Web Scraping techniques. From the extraction of about 30,000 articles from news portals for one year, only 829 were selected in the end that provided information about road accidents.

As a result, and contribution of this research, a corpus was built with the geographic coordinates of road accidents and on this data our model was applied for the analysis and visualization of high-risk areas of road accidents using heatmaps. The visualization of heatmaps was done through a Python script, where it was applied to the geographic coordinates of road accidents.

More from our Archive