Code Monkey home page Code Monkey logo

cough-signal-processing's Introduction

Cough Signal Processing ( csp )

A micro framework for cough signal processing

Contribute and Support

GitHub license GitHub commit PRs Welcome

Features

  • Spectrogram features extraction
  • Contiguous features
  • Cough event detection
  • Experiments on noise removal, Silence in cough sounds
  • Applying different types of filters
  • Audio augmentation techniques
Feature ID Feature Name Description
1 Zero Crossing Rate The rate of sign-changes of the signal during the duration of a particular frame.
2 Energy The sum of squares of the signal values, normalized by the respective frame length.
3 Entropy of Energy The entropy of sub-frames' normalized energies. It can be interpreted as a measure of abrupt changes.
4 Bispectrum Score (BGS) 3rd order spectrum of the signal is known as the bispectrum.
5 Non-gaussianity score(NGS) NGS gives the measure of non-gaussianity of a given segment of data.
6 Formant frequencies (FF) A formant is the spectral shaping that results from an acoustic resonance of the human vocal tract.
7 log energy (LogE) The log energy for every subsegment
8 kurtosis (Kurt) kurtosis is a measure of the "tailedness" of the probability distribution of a real-valued random variable.
9 MFCCs Mel Frequency Cepstral Coefficients form a cepstral representation where the frequency bands are not linear but distributed according to the mel-scale.
10 MFCC delta, delta2 Delta-MFCC and Delta-Delta-MFCC are used to extract the features of speakers.
11 Skewness skewness is a measure of the asymmetry of the probability distribution
12 Power Spectral Density (PSD) A Power Spectral Density (PSD) is the measure of signal's power content versus frequency.
13 Linear Predictive Coding (LPC) Representing the spectral envelope of a digital signal of speech in compressed form
14 Continuous Wavelet Transform (CWT) provides an overcomplete representation of a signal by letting the translation and scale parameter of the wavelets vary continuously.

More features and suggestions are welcome.

Quick Start

from csp import SpectrogramFeatures

# path of the cough audio
sp   = SpectrogramFeatures('cough_sound_9412.m4a')
data = sp.spectrogram_data()

output

Audio augmentation techniques

Speed tuning

from csp import AudioAugmentation

# Audio_augmentation speed tuning
Audio_aug = AudioAugmentation.speed_tuning(data['signal'])

output

Time shifting

# Audio augmentation time shifting
aug = AudioAugmentation.time_shifting(data['signal'])

If you find this repository useful, please cite our project:


@misc{CSP2019,
  author = {Pal, Ankit},
  title = {{Cough Signal Processing ( csp )}},
  year = {2019},
  month = {June},
  url = {https://github.com/coughresearch/Cough-signal-processing},
}

output

Feature extraction { @thileepanp }

cough-signal-processing's People

Contributors

dr-costas avatar monk1337 avatar thileepanp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cough-signal-processing's Issues

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.