stratascratch
  • Interview Questions
    • Interview Loops
    • Analytical
    • Algorithm
    • ML Coding
    • Stats Coding
    • Visualization
    • Concept
  • Data Labs
    • Discover
    • Your Notebooks
  • Mock Interview
  • Learn
  • Blog
  • Pricing
  • About
Log in
  • Interview Questions

    • Interview Loops
    • Analytical
    • Algorithm
    • ML Coding
    • Stats Coding
    • Visualization
    • Concept
  • Data Labs

    • Discover
    • Your Notebooks
  • Mock Interview
  • Learn
  • Blog
  • Pricing
  • About
Log inSign up
Back to Projects
  1. Assignment
  2. Your Solution
  3. Solutions from Users
  4. Discussion

Voice Recordings Analysis

You must be logged in to download the datasets

Siemens: Exploring voice recordings and vocal features to uncover patterns, insights, and key questions.

Assignment

The following assignment will let you extract, explore and analyze audio data from English speaking male and females, and build learning models aimed to predict a given person's gender using vocal features, such as mean frequency, spectral entropy or mode frequency.

Contrary to most online communities that share datasets for data science, machine learning and artificial intelligence applications, readymade datasets rarely exist out in the wild, and you will have to explore one or more ways of downloading and extracting meaningful features from a raw dataset containing thousands of individual audio files.

Question Set The following are reference points that should be taken into account in the submission. Please use them to guide the reasoning behind the feature extraction, exploration, analysis and model building, rather than answer them point blank.

  1. How did you go about extracting features from the raw data?
  2. Which features do you believe contain relevant information?
    1. How did you decide which features matter most?
    2. Do any features contain similar information content?
    3. Are there any insights about the features that you didn't expect? If so, what are they?
    4. Are there any other (potential) issues with the features you've chosen? If so, what are they?
  3. Which goodness of fit metrics have you chosen, and what do they tell you about the model(s) performance?
    1. Which model performs best?
    2. How would you decide between using a more sophisticated model versus a less complicated one?
  4. What kind of benefits do you think your model(s) could have as part of an enterprise application or service?

Data Description

The provided dataset (when clicking the 'Download Datasets' button on this page) is a small extract from a repository of voice recordings. The raw data is compressed using .tgz files. The extract contains 100 such files with 1000 voice samples in total. Each sample is a recording of a short English sentence spoken by either a male or a female speaker. The format of a sample is .wav with a sampling rate of 16kHz and a bit depth of 16-bit.

Each .tgz compressed file contains the following directory structure and files:

  • <file>/
    • etc/
      • GPL_license.txt
      • HDMan_log
      • HVite_log
      • Julius_log
      • PROMPTS
      • prompts-original
      • README
    • LICENSE
    • wav/
      • 10 unique .wav audio files

However, to increase the performance of a model, you may fetch the data directly from the original repository that can be found here. This repository consists of over 100,000 audio samples. The total size of the raw dataset is approximately 12.5 GB once it has been uncompressed.

Practicalities

This assignment should be completed within 10 days. You should present your work in a way that clearly and succinctly walks us through your approach to extracting features, exploring them, uncovering any potential constraints or issues with the data in its provided form, your choice of predictive models and your analysis of the models' performance. Try to keep it concise.

A good presentation presents potential caveats, findings and insights about the dataset and an analysis of the goodness of fit metrics, including benchmarking on the performance of different learning models.

A great presentation tells a visual, potentially even interactive, story about the data and how specific insights can be used to guide our product development so that non-technical colleagues can understand and act upon them.

Tips

We recommend considering the following for your data pre-processing:

  1. Automate the raw data download using web scraping techniques
  2. Pre-process data using audio signal processing packages such as WarbleR, TuneR, seewave for R, or similar packages for other programming languages
  3. Consider, in particular, the human vocal range, which typically resides within the range of 0Hz-280Hz
  4. To help you on your way to identify potentially interesting features, consider the following (non-exhaustive) list:
    • Mean frequency (in kHz)
    • Standard deviation of frequency
    • Median frequency (in kHz)
    • First quantile (in kHz)
    • Third quantile (in kHz)
    • Inter-quantile range (in kHz)
    • Skewness
    • Kurtosis
    • Mode frequency
    • Peak frequency
  5. Make sure to check out all of the files in the raw data, you might find valuable data in files beyond the audio ones

Frequently Asked Questions

  1. Can I use <Insert SDK or Framework here> for the take home assignment?

    Answer: Yes, you are free to make use of the tools that you are most comfortable working with. We work with a mix of frameworks, and try to use the one best fit for the task at hand.

  2. The raw data is too large to fit in memory, what do I do?

    Answer: This is part of the challenge, and the dataset is by design larger than can fit in memory for a normal computer. You will have to come up with a solution that enables processing of the data in a batch-like, or streaming, fashion, to extract meaningful features.