All Projects → jefflai108 → Attentive-Filtering-Network

jefflai108 / Attentive-Filtering-Network

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

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to Attentive-Filtering-Network

ASSERT
JHU's system submission to the ASVspoof 2019 Challenge: Anti-Spoofing with Squeeze-Excitation and Residual neTworks (ASSERT).
Stars: ✭ 50 (+6.38%)
Mutual labels:  anti-spoofing, asvspoof, spoofing-attack, automatic-speaker-verification
Speaker-Anti-Spoofing-Classifiers
Baselines and Classifiers for speaker anti-spoofing detection
Stars: ✭ 15 (-68.09%)
Mutual labels:  anti-spoofing, spoofing-attack
FaceLivenessDetection-SDK
3D Passive Face Liveness Detection (Anti-Spoofing) & Deepfake detection. A single image is needed to compute liveness score. 99,67% accuracy on our dataset and perfect scores on multiple public datasets (NUAA, CASIA FASD, MSU...).
Stars: ✭ 85 (+80.85%)
Mutual labels:  spoofing-attack
Face-Recognition-Jetson-Nano
Recognize 2000+ faces on your Jetson Nano with database auto-fill and anti-spoofing
Stars: ✭ 63 (+34.04%)
Mutual labels:  anti-spoofing
Face-Liveness-Detection-SDK-iOS
Robust, Realtime, On-Device Face Liveness Detection (Face Anti Spoofing) For iOS
Stars: ✭ 48 (+2.13%)
Mutual labels:  anti-spoofing
Face-Recognition-Raspberry-Pi-64-bits
Recognize 2000+ faces on your Raspberry Pi 4 with database auto-fill and anti-spoofing
Stars: ✭ 48 (+2.13%)
Mutual labels:  anti-spoofing
AIR-ASVspoof
Official implementation of the paper "One-class Learning Towards Synthetic Voice Spoofing Detection"
Stars: ✭ 36 (-23.4%)
Mutual labels:  anti-spoofing
Face-Liveness-Detection-SDK-Android
Robust, Realtime, On-Device Face Liveness Detection (Face Anti Spoofing) Android
Stars: ✭ 70 (+48.94%)
Mutual labels:  anti-spoofing
ASVspoof2019 system
D3M - Dynamic Data Discrepancy Mitigation for Anti-spoofing - Implementation of work Dynamically Mitigating Data Discrepancy with Balanced Focal Loss for Replay Attack Detection
Stars: ✭ 22 (-53.19%)
Mutual labels:  anti-spoofing
ASVspoof PA
No description or website provided.
Stars: ✭ 22 (-53.19%)
Mutual labels:  asvspoof

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].