Giter Site home page Giter Site logo

hamedkalantari0111 / pneuma_treatment Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vishalmhjn/pneuma_treatment

0.0 0.0 0.0 4.75 MB

Treating noise and anomalies in the vehicle time-series data captured by drones

License: MIT License

Python 100.00%

pneuma_treatment's Introduction

pneuma_treatment

Copyright 2020-2023 Vishal Mahajan

Trajectory data collected from Drones over an urban area in Athens. For more info: https://open-traffic.epfl.ch/

drawing

This repository provides an automated way to treat the noise and anomalies (in the form of unrealistic peaks) in the acceleration values of a number of vehicles in the pneuma dataset. The algorithm uses a combination of low-pass filters (Savitzky-Golay filter, Gaussian filter) to remove the noise. A machine learning model (XGBoost) is used to reconstruct acceleration time-series and detect anomalies. If anomalies are detected, they are removed. The outputs are the processed time-series profiles of vehicle speeds and accelerations without high frequency noise and unrealistic acceleration peaks.

Code

You should be in src folder when running the codes.

Raw data to Long format

  1. Specify the path to the raw data from pNEUMA website in the data_formatter.py and run it to convert the files from wide to long format. A sample output is provided.

Treating noise and anomalies

  1. Specify the path to the output file from step-1, other paths (to save output data and plots) in the processor.py. Run this file to get the treated speed and acceleration time series.

Outputs

With the default paths, the plots are saved in plots and data is saved in data/derived.

Processed data

A link to the processed speed and from the 1000-1030 hour recording is provided at an external link. This file contains only four columns: vehicle id, frame number, processed speed and processed acceleration. Using vehicle id and frame columns, this data can be merged with the original data.

Citation

If you use these codes in your work, kindly cite the following:

Mahajan, V., Barmpounakis, E., Alam, M. R., Geroliminis, N., & Antoniou, C. (2023). Treating Noise and Anomalies in Vehicle Trajectories from an Experiment with a Swarm of Drones. Article Link

pneuma_treatment's People

Contributors

vishalmhjn 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.