# Sports-Type-Classifier **Repository Path**: todosthing/Sports-Type-Classifier ## Basic Information - **Project Name**: Sports-Type-Classifier - **Description**: Classify the type of sports from images - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-01-13 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 22 Types of Sports Classification Following are the types of sports over which we are trying to classifying: - Swimming - Badminton - Wrestling - Olympic Shooting - Cricket - Football - Tennis - Hockey - Ice Hockey - Kabaddi - WWE - Gymnasium - Weight lifting - Volleyball - Table tennis - Baseball - Formula 1 - Moto GP - Chess - Boxing - Fencing - Basketball ![Sports Type](https://github.com/anubhavmaity/Sports-Type-Classifier/blob/master/readme_images/sports.png) ### Data Distribution Data has been downloaded with the help of [gi2ds](https://github.com/toffebjorkskog/ml-tools/blob/master/gi2ds.md) Training set: 11524 Validation set: 2881 ### Model Resnet-50 ### Data Augmentations The following data augmentation has been applied to increase the no of images in the training set 1. Flip horizontal 2. Lighting 3. Zooming 4. Warping ![Data Augmentations](https://github.com/anubhavmaity/Sports-Type-Classifier/blob/master/readme_images/sports_data_aug.png) ### Confusion Matrix ![Confusion matrix](https://github.com/anubhavmaity/Sports-Type-Classifier/blob/master/readme_images/sports_confusion_matrix.png) Pair of confused categories with minimum value of 2 [('motogp', 'formula1', 5), ('badminton', 'tennis', 4), ('weight_lifting', 'wrestling', 3), ('wrestling', 'wwe', 3), ('badminton', 'table_tennis', 2), ('basketball', 'volleyball', 2), ('boxing', 'wrestling', 2), ('hockey', 'ice_hockey', 2), ('kabaddi', 'hockey', 2), ('tennis', 'table_tennis', 2), ('weight_lifting', 'wwe', 2), ('wrestling', 'kabaddi', 2)] ### Sample Images from the confused categories: For some images you can see the prediction is correct but the manual labelling was done wrong. This shows the CNN are less susceptible to human mistakes. ![Sample Images](https://github.com/anubhavmaity/Sports-Type-Classifier/blob/master/readme_images/si_sports.png) ### Accuracy The accuracy obtained is 97% ![Accuracy](https://github.com/anubhavmaity/Sports-Type-Classifier/blob/master/readme_images/acc_sports.png) ### Heatmap Original Image ![Original](https://github.com/anubhavmaity/Sports-Type-Classifier/blob/master/readme_images/cric.png) After Heatmap ![Heatmap](https://github.com/anubhavmaity/Sports-Type-Classifier/blob/master/readme_images/heat_cric.png) You can download the data and model from [here](https://www.dropbox.com/s/0jp57lhs0y805ro/sports-type-classifier-data.7z?dl=0)