GithubHelp home page GithubHelp logo

yxinjiang / off-course Goto Github PK

View Code? Open in Web Editor NEW

This project forked from datasciencecampus/off-course

0.0 1.0 0.0 5.61 MB

Analysing port and shipping operations using big data

Home Page: https://datasciencecampus.ons.gov.uk/project/analysing-port-and-shipping-operations-using-big-data/

Scala 1.16% Jupyter Notebook 98.84%

off-course's Introduction

Analysing UK port and shipping operations using big data

This repo provides the material to support the work undertaken by the Data Science Campus to explore the operation, use and relationships between ports in the UK at a macro level and the behaviour and operational characteristics of ships at a micro level. Specifically we explore:

  • ship travelling behaviours
  • traffic at ports and related factors
  • port capacity utilisation
  • national and international port relationships
  • inbound ship delays

The Automatic Identification System (AIS) and Consolidated European Reporting System (CERS) data sets, provided by Maritime and Coastguard Agency (MCA), were used for this study.

Automatic Identification System (AIS) data set

The AIS data records the position, speed, heading, bearing, rate of turn and other important information for each ship, at frequent time intervals throughout its voyage. The messages are received in raw encoded format using the NMEA standard. Decoding functions based on the description here, the AIVDM/AIVDO protocol decoding and the Navigation Center of Excellence message explanation were developed in Scala.

Consolidated European Reporting System (CERS) data set

The CERS data set comes from an information management system maintained by MCA, that is intended to capture all UK ship arrival and departure notifications, dangerous and polluting goods notifications, and notifications of port waste infringements and bulk carrier infringements. This information then is forwarded to the EU SafeSeaNet system in accordance with the EU Vessel Traffic Monitoring and Information System Directive (2002/59/EC).

How to use this repo

The study is implemented through a series of files that can be found in the ./code folder. Make sure you read the ./code/config_explanation.md first on how you should set up your config file, collect required data sets and name all your files. Then proceed as follow:

  • If your AIS messages are in a raw format then use the decoders in the ./code/1_AIS_decoder folder to extract them in csv form. You can also find instructions to filter and process the decoded data in AIS_decoder.md.

  • If you have decoded AIS messages then jump to the ./code/2_preprocessing folder where the AIS and CERS data sets are being formatted and the Rate of Turn (RoT) of a moving ship is calculated.

  • The travelling behaviour of ships approaching port is explored in ./code/3_segmentation folder. K-means unsupervised machine learning algorithm is used and six segments representing specific patterns are derived and explained.

  • In ./code/4_feature_engineering, we bring in new features for the delays modelling that will follow.

  • Then we perform supervised machine learning using random forests, adaBoost and XGBoost to predict the probability of a ship being delayed in ./code/5_modelling. We also uncover insights by exploring the relationship between the delay rate and each feature on a univariate basis.

  • Finally we provide methods for different ports and voyage insights in ./code/5_modelling folder. We look into port traffic, amount of delayed trips, movements between ports and movement of hazardous materials. Finally, we present a network analysis between UK and major international ports.

The complete report supporting this repo can be found here.

off-course's People

Contributors

ioannistsalamanis avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.