Giter VIP home page Giter VIP logo

verify_speaker_recognition_cs6315's Introduction

Adversarial Robustness for Speaker Identification

  • Authors: Cameron Baird and Austin Coursey

  • Purpose: This repository contains the code for our final project in CS6315 (Automated Verification) at Vanderbilt University in the spring 2024 semester.

Data

For our experiments, we used the train-clean-100 partition of the LibriSpeech dataset. You will need to download this dataset to replicate our experiments. There are also quite a bit of file path resolutions, so you may need to modify some scripts (get_absolute_file_path.m comes to mind) to load the data in. Finally, we did our data preprocessing using Python and the librosa library. To verify the files in MATLAB, we saved each feature array as a *.mat file, and directly loaded that file in to MATLAB. You can check preprocess_data.ipynb and again, modify your file paths accordingly. The data might be a bit of a hassle, but if you want to run our experiments there is no way around downloading LibriSpeech.

Installation

For training the models in Python, we used TensorFlow 2.15. To install the dependencies, we simply followed the TensorFlow documentation and used pip install when necessary inside a conda environment. The models were converted to MATLAB via the command line and the convert_tensorflow_to_matlab.m script.

This project heavily uses the Neural Network Verification tool (link). You will need to install NNV before you can run our examples using the README found in the linked repository. After NNV is installed, you should be able to run the src_matlab/*.m files from this repository.

Verifying a Single Example

To see an example of verifying one input audio, you can check src_matlab/verify_single_audio_waveform.m. The script will load in a pre-trained model to MATLAB and NNV, create a Star or ImageStar set based on the input audio, verify its robustness using NNV, and plot the output ranges of the input audio. Below is a plot from an example where the network was verified to be robust; you can see that the output ranges of the target class (1) do not overlap with any other classes.

An example plot of the output ranges from NNV's robustness verification.

Contact

This repository is for a class final project. Therefore, it is far from complete. If there are any errors with the code, or you have more questions about the project, please contact [email protected].

verify_speaker_recognition_cs6315's People

Contributors

bameroncaird avatar acoursey3 avatar

Watchers

 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.