Reader small image

You're reading from  Python Artificial Intelligence Projects for Beginners

Product typeBook
Published inJul 2018
Reading LevelIntermediate
PublisherPackt
ISBN-139781789539462
Edition1st Edition
Languages
Right arrow
Author (1)
Dr. Joshua Eckroth
Dr. Joshua Eckroth
author image
Dr. Joshua Eckroth

Joshua Eckroth is an Assistant Professor of Computer Science at Stetson University, where he teaches AI, big data mining and analytics, and software engineering. He earned his PhD from The Ohio State University in AI and Cognitive Science. Dr. Eckroth also serves as Chief Architect at i2k Connect, which focuses on transforming documents into structured data using AI and enriched with subject matter expertise. Dr. Eckroth has previously published two video series with Packt, Python Artificial Intelligence Projects for Beginners and Advanced Artificial Intelligence Projects with Python. His academic publications can be found on Google Scholar.
Read more about Dr. Joshua Eckroth

Right arrow

Identifying the genre of a song with neural networks


In this section, we're going to build a neural network that can identify the genre of a song. We will use the GTZAN Genre Collection (http://marsyasweb.appspot.com/download/data_sets/.GTZAN Genre Collection). It has 1,000 different songs from over 10 different genres. There are 100 songs per genre and each song is about 30 seconds long.

We will use the  Python library, librosa to extract features from the songs. We will use Mel-frequency cepstral coefficients (MFCC). MFCC values mimic human hearing and they are commonly used in speech recognition applications as well as music genre detection. These MFCC values will be fed directly into the neural network.

To help us understand the MFCC, let's use two examples. Download Kick Loop 5 by Stereo Surgeon. You can do this by visiting https://freesound.org/people/Stereo%20Surgeon/sounds/266093/, and download Whistling by cmagar by visiting https://freesound.org/people/grrlrighter/sounds/98195/....

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Python Artificial Intelligence Projects for Beginners
Published in: Jul 2018Publisher: PacktISBN-13: 9781789539462

Author (1)

author image
Dr. Joshua Eckroth

Joshua Eckroth is an Assistant Professor of Computer Science at Stetson University, where he teaches AI, big data mining and analytics, and software engineering. He earned his PhD from The Ohio State University in AI and Cognitive Science. Dr. Eckroth also serves as Chief Architect at i2k Connect, which focuses on transforming documents into structured data using AI and enriched with subject matter expertise. Dr. Eckroth has previously published two video series with Packt, Python Artificial Intelligence Projects for Beginners and Advanced Artificial Intelligence Projects with Python. His academic publications can be found on Google Scholar.
Read more about Dr. Joshua Eckroth