GithubHelp home page GithubHelp logo

ajilim / attentive-filtering-network Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jefflai108/attentive-filtering-network

0.0 1.0 0.0 1.47 MB

University of Edinbrugh-Johns Hopkins University's system for ASVspoof 2017 Version 2.0 dataset.

License: MIT License

Python 93.39% Shell 6.61%

attentive-filtering-network's Introduction

Attentive Filtering Network

This repository contains codes to reproduce the core results from our ICASSP 2019 paper: Attentive Filtering Networks for Audio Replay Attack Detection

If you find the code useful, please cite

@inproceedings{lai2018attentive,
  title={Attentive Filtering Networks for Audio Replay Attack Detection},
  author={Lai, Cheng-I and Abad, Alberto and Richmond, Korin and Yamagishi, Junichi and Dehak, Najim and King, Simon},
  booktitle={2019 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP)},
  year={2019},
  organization={IEEE}
}

Abstract

An attacker may use a variety of techniques to fool an automatic speaker verification system into accepting them as a genuine user. Anti-spoofing methods meanwhile aim to make the system robust against such attacks. The ASVspoof 2017 Challenge focused specifically on replay attacks, with the intention of measuring the limits of replay attack detection as well as developing countermeasures8.pdf against them. In this work, we propose our replay attacks detection system - Attentive Filtering Network, which is composed of an attention-based filtering mechanism that enhances feature representations in both the frequency and time domains, and a ResNet-based classifier. We show that the network enables us to visualize the automatically acquired feature representations that are helpful for spoofing detection. Attentive Filtering Network attains an evaluation EER of 8.99% on the ASVspoof 2017 Version 2.0 dataset. With system fusion, our best system further obtains a 30% relative improvement over the ASVspoof 2017 enhanced baseline system.

Single Model Benchmark Results

Note: Results are on the ASVspoof 2017 Version 2.0 Dataset. Each result is averaged over 8 separate runs.

Model dev EER (%) eval EER (%) Diff
Attentive Filtering Network 6.55 8.99 2.44
Dilated Residual Network 7.49 10.16 2.67
Modulation Dynamic Features - 6.32 -
qDFTspec - 11.43 -
CQCC-GMM(CMVN) 9.06 12.24 3.18
i-vectors (cosine similarity) 8.99 14.77 5.78
i-vectors (Gaussian class.) 8.81 15.11 6.30
Light CNN 6.47 16.08 9.61
Evolving RNN 18.70 18.20 -0.50
CQCC-GMM 12.08 29.35 17.27

Visualization of attention heatmaps with different non-linearities

sigmoid sigmoid

tanh tanh

softmaxF (softmax on feature dimension) softmaxF (softmax on feature dimension)

softmaxT (softmax on time dimension) softmaxT (softmax on time dimension)

Dependencies

This project uses Python 2.7. Before running the code, you have to install

Getting Started

  1. Download the ASVspoof 2017 Dataset
  2. Extract features with Kaldi. Follow the file to extract logspec and i-vector features.
./run_feature.sh 
  1. Change the argumenents in run.sh and point them to your feature files.

Model Training

./run.sh 0

Note:

  1. main.py contains detials of the training details and configurations
  2. src/attention_neuro/simple_attention_network.py contains the implementation of Attentive Filtering Network.

Visualizing Attention

./run.sh 1

Model Forward Passing

./run.sh 2

Authors

Cheng-I Lai, Alberto Abad, Korin Richmond, Junichi Yamagishi, Najim Dehak, Simon King

If you encouter any problem, feel free to contact me.

attentive-filtering-network's People

Contributors

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