PyCon ES 2025

Talk

Analysis of a Maritime Accident Using Python, Spark, and Geospatial Data

On August 29, 2022, a collision occurred between two ships off the coast of Gibraltar, causing a breach in the hull of the OS 35, which was carrying approximately 460 metric tons of products such as diesel, heavy fuel oil, and lubricant.

In this talk, we aim to analyze that collision. To do so, we will examine the vessels’ positions using millions of AIS (Automatic Identification System) records, thereby reconstructing the events based on the data.
To do this, we use PySpark and the ArcGIS GeoAnalytics Engine library for parallel data processing, applying transformations to speeds and courses, as well as to obtain the ships’ routes: before, during, and after the collision.

During the talk, we will cover:

  • How to structure a geospatial analysis pipeline.
  • Handling data with variable temporal resolution and simultaneous events.
  • Visualizing and validating trajectories on maps.

The ultimate goal of this talk is to examine a real-world example where the spatial variable is key to a comprehensive analysis of the data.

ArcGIS API for Python