Coder Social home page Coder Social logo

varun-projects / racpit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fraunhoferhhi/racpit

0.0 1.0 0.0 69.45 MB

Code and additional information to our paper "RACPIT: Improving Radar Human Activity Classification Using Synthetic Data with Image Transformation"

Home Page: https://www.mdpi.com/1424-8220/22/4/1519

Python 7.97% HTML 90.76% Jupyter Notebook 1.23% SCSS 0.04%

racpit's Introduction

RACPIT

NumPy PyTorch Pandas

This repository contains supplementary material for our article "Improving Radar Human Activity Classification Using Synthetic Data with Image Transformation", published in MDPI Sensors as part of the Special Issue "Advances in Radar Sensors". There we introduce RACPIT: Radar Activity Classification with Perceptual Image Transformation, a deep-learning approach to human activity classification using FMCW radar and enhanced with synthetic data.

Background

Radar data

We use Range Doppler Maps (RDMs) as a basis for our input data. These can be either real data acquired with Infineon's Radar sensors for IoT or synthetic using kinematic data with the following model:

Human reflection model

, , and represent the radar cross section, free-space path loss, instant frequency and instant phase, respectively, of the returned and mixed-down signal for every modelled human limb and instant . The latter three parameters depend on the instantaneous distance of the limb to the radar sensor, , and are calculated using the customary radar and FMCW equations.

Simulation animation

We further preprocess the RDMs by stacking them and summing over Doppler and range axis to obtain range and Doppler spectrograms, respectively:

Radar spectrogram extraction

Deep learning

We train our image transformation networks with an adapted version of Perceptual Losses for Real-Time Style Transfer and Super-Resolution.

RACPIT model

Since we are working with radar data, we substitute VGG16 as the perceptual network with our two-branch convolutional neural network from Domain Adaptation Across Configurations of FMCW Radar for Deep Learning Based Human Activity Classification.

If we train the image transformation networks with real data as our input and synthetic data as our ground truth, we obtain a denoising behavior for the image transformation networks.

Implementation

The code has been written for PyTorch based on Daniel Yang's implementation of Perceptual loss.

Data preprocessing is heavily based on xarray. You can take a closer look at it in our example.

Prerequisites

Usage

Radar data can be batch-preprocessed and stored for faster training:

$ python utils/preprocess.py --raw "/path/to/data/raw" --output "/path/to/data/real" --value "db" --marginalize "incoherent"
$ python utils/preprocess.py --raw "/path/to/data/raw" --output "/path/to/data/synthetic" --synthetic --value "db" --marginalize "incoherent"

After this, you can train your CNN, that will serve as a perceptual network:

$ python main.py --log "cnn" train-classify --range --config "I" --gpu 0 --no-split --dataset "/path/to/data/synthetic"

Then you can train the image transformation networks:

$ python main.py --log "trans" train-transfer --range --config "I" --gpu 0 --visualize 5 --input "/path/to/data/real" --output "/path/to/data/synthetic" --recordings first --model "models/cnn.model"

And finally test the whole pipeline:

$ python main.py test --range --config "I" --gpu 0 --visualize 10 --dataset "/path/to/data/real" --recordings last --transformer "models/trans.model" --model "models/cnn.model"

Citation

If you use RACPIT's code or you take the publication as a reference for your research, please cite our work in the following way:

@Article{s22041519,
AUTHOR = {Hernang{\'o}mez, Rodrigo and Visentin, Tristan and Servadei, Lorenzo and Khodabakhshandeh, Hamid and Sta{\'n}czak, S{\l}awomir},
TITLE = {Improving Radar Human Activity Classification Using Synthetic Data with Image Transformation},
JOURNAL = {Sensors},
VOLUME = {22},
YEAR = {2022},
NUMBER = {4},
ARTICLE-NUMBER = {1519},
URL = {https://www.mdpi.com/1424-8220/22/4/1519},
ISSN = {1424-8220},
DOI = {10.3390/s22041519}
}

racpit's People

Contributors

rodrihgh avatar dxyang 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.