Giter Site home page Giter Site logo

ksonod / 1d_signal_upsampling_and_denoising Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 626 KB

Up-sampling and denoising signals using a deep neural network model

License: MIT License

Python 100.00%
deep-learning denoising lidar residual-networks signal-processing spectroscopy time-of-flight upsampling upsampling-and-denoising

1d_signal_upsampling_and_denoising's Introduction

About this repository

Low-resolution and noisy one-dimensional signals including Gaussian peaks (e.g., molecular spectra, LiDAR histogram data, and other data) are denoised and up-sampled using a deep neural network model. The model is similar to the one proposed in [1] and based on a stack of residual blocks [2] and a point-shuffle method inspired by pixel shuffle [3].

Example

In the example below, signals including 128 data points (blue curve) are up-sampled to 512 (red curve) and denoised at the same time.

Below are a few examples of zoomed-in versions to show up-sampling and denoising effectrs better:

In the examples shown above, the number of residual blocks, which can be easily changed in the model.py script, is set to be only 2 for quick demo purposes. In this case, the number of trainable parameters is 249,476.

Code

  • generate_data.py: Synthetic dataset can be created by running this script. Low-resolution and noisy data and high-resolution and noise-less data are generated. The number of Gaussian peaks, the number of data points for high- and low-resolution data, peak widths, noise levels, and amplitudes can be set.
  • model.py: A model is defined.
  • loss.py: A custom loss function is defined.
  • main.py: This is a script for training and evaluating the model. You can change CONFIG to do some trainings, evaluations, and experiments.

Architecture

See [1] for further details. Please note that I am not the author of the paper. I made this repository for learning purposes.

Reference

[1] Gangping Liu and Jun Ke, Full-waveform LiDAR echo decomposition based on dense and residual neural networks, Applied Optics, vol. 61, 9, pp. F15-F24, 2022
[2] Paper With Code, "Residual Block," paperswithcode.com. [Online]. Available: https://paperswithcode.com/method/residual-block [Accessed: 31 May, 2024]
[3] Paper With Code, "Pixel Shuffle," paperswithcode.com. [Online]. Available: https://paperswithcode.com/method/pixelshuffle [Accessed: 31 May, 2024]

1d_signal_upsampling_and_denoising's People

Contributors

ksonod avatar

Stargazers

Minsu Kim avatar  avatar

Watchers

Kostas Georgiou avatar  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.