Skip to content

mryt66/Cats-dogs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Cats & Dogs

Cats & Dogs is a program that decides if .wav (sound) file sounds more like a dog or cat. csv_creator.py fills data_cats and data_dogs with converted to floats data, every line contains amplitudes of the highest average amplitude of spectrum in each sound. Lines don't have this same length because of different frequency. (more float numbers in line = bigger frequency). To make a classifier we used self made KNN. Mews and barks are simplified to one sound. Example of this one sound is presented on this graph:


Spectrum plot


Example how does classifier prepare data

To know if your .wav file sounds more like a cat or dog, put into src folder file named 'Your_file.wav'.

With 98 different records for each dog and cat classifier has approximately 83% accuracy

Data included in Cats&Dogs .wav, cut and based on: https://www.kaggle.com/code/gauravduttakiit/yamnet-audio-cats-and-dogs