pagand / model_optimze_vessel

Queen of Oak Bay - visualization/classification/prediction
5 stars 3 forks source link

Sequential Modeling in Marine Navigation: Case Study on a Passenger Vessel

West Coat Vessel

Website

paper 1 paper 2

Simulator (V0.1)

https://github.com/pagand/model_optimze_vessel/assets/58544477/2816de84-f522-4fe6-9851-dbb3e038eac5

Credits:

This project is done in collaboration with Simon Fraser University (SFU) and National Research Council Canada (NRC)

Contents

  1. Setup
  2. Projects
  3. Dataset
  4. Gym Environment
  5. Preprocessing
  6. Training
  7. Optimization
  8. How to cite

Setup

Clone the repo, and build the conda environment:

git clone git@github.com:pagand/model_optimze_vessel.git
cd model_optimze_vessel
conda create -n vessel python=3.9
conda activate vessel
pip install -r requirements.txt

If you have GPU with CUDA enabled: CUDA<=10.2

pip uninstall torch torchvision torchaudio #(run twice)
pip install torch==1.12.1+cu102 torchvision==0.13.1+cu102 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu102

CUDA>10.2

pip uninstall torch torchvision torchaudio #(run twice)
pip install torch==1.12.1 torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113

Others: Install the correct version of pytorch given your CUDA from previous versions or start locally. Replcae the {version} with the correct compatible version.

conda install pytorch=={version1} torchvision=={version2} cudatoolkit={version3} -c pytorch

Install Huggingface transformers or follow the link

pip install transformers

To download the RL dataset, please run

sh download_data.sh

Projects:

1- (non-)Parameteric modeling of fuel consumption. Accepted in Ocean Engineering version, please refer to the OE branch.

2- Sequentaioal modelling. Currently in the main branch.

3- Optimization. (TODO)

Dataset

1- Original data (Confidential). Please put and in data folder.

2- Offline RL dataset

To download the RL dataset, please run

sh download_data.sh

This will download the normalized trips in the data folder.

Simulator

For the gym enviroenmt, please refer to the simulator folder.

Preprocessing

Visulization

To get an exploratory data analysis (EDA) of the data, please refer to the visulization folder.

Feature selection

Please refer to the Features section to get the insight on the feature engineering and feature selection proccess.

Prepration

To get the handle missing values, outlier detection, and normalization, please refer to the prepration folder.

Training

For the model, we have two approaches.

Functional model

For this model, please refer to model/functional

Sequential model

For this model, please refer to the model/sequential

Cite

@inproceedings{Fan2024sequential,
  title={Sequential Modeling in Marine Navigation: Case Study on a Passenger Vessel},
  author={Fan, Yimeng and  Agand, Pedram  and Chen, Mo and Park, Edward J and Kennedy, Allison and Bae, Chanwoo},
  booktitle={Proceedings of the AAAI conference on artificial intelligence},
  volume={},
  number={},
  pages={},
  year={2024}
}

  @article{agand2023fuel,
  title={Fuel consumption prediction for a passenger ferry using machine learning and in-service data: A comparative study},
  author={Agand, Pedram and Kennedy, Allison and Harris, Trevor and Bae, Chanwoo and Chen, Mo and Park, Edward J},
  journal={Ocean Engineering},
  volume={284},
  pages={115271},
  year={2023},
  publisher={Elsevier}
}