alu222 / SIFDriveNet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SIFDriveNet: Speed and Image Fusion Driving Behavior Classification Network

PyTorch implementation of the paper "SIFDriveNet: Speed and Image Fusion Driving Behavior Classification Network"

Changelog

  • [2022-10-26] Release the initial code for SIFDriveNet.

一、Dataset processing

UAH-DriveSet dataset

1.Origin UAH-DriveSet : This dataset is captured by DriveSafe, a driving monitoring application.The application is run by 6 different drivers and vehicles, performing 3 different driving behaviors (normal, drowsy and aggressive) on two types of roads (motorway and secondary road), resulting in more than 500 minutes of naturalistic driving with its associated raw data and processed semantic information, together with the video recordings of the trips. The UAH-DriveSet is available at: http://www.robesafe.com/personal/eduardo.romera/uah-driveset.

2.Processes UAH-DriveSet: First of all, since the UAH-DriveSet captures the roadside video during driving, we extract the last frame of every second from the video. Secondly, we interpolate the vehicle speed in RAW_GPS file and expand it to 1260 data every second. Then merge the data of x seconds and the first four seconds into a txt file named x.txt, which corresponds to the last frame image x.jpg of x seconds. Please refer to: Baidu Cloud link

二、Quick Start

1.Environment configuration: Clone repo and install requirements.txt in a Python>=3.6.0 environment, including PyTorch>=1.7.

git clone https://github.com/alu222/SIFDriveNet.git
pip install -r requirements.txt  # install

2.train

python mainNN_total.py --mode main

3.test

python mainNN_total.py --mode test

4.result

Performance comparison with other driving behavior classification methods on experimental data of all roads. The Acc, Pre and Rec represent the accuracy, precision and recall. The "-" means that it is not indicated in the method.

Performance comparison with other driving behavior classification methods on experimental data of motorway road.

Performance comparison with other driving behavior classification methods on experimental data of secondary road.

Contribute

Thanks to Yan Gong and Wenzhuo Liu for their contributions to this code base.

About

License:GNU General Public License v3.0


Languages

Language:Python 100.0%