Home Balloons Multi Class Neural Network
Post
Cancel

Balloons Multi Class Neural Network

The goal of this study had been to create a simple 2D CNN (Convolutional Neural Network) able to identify a specific dataset. Check it out now.


The dataset had been choosen among those available for free on Kaggle.

From the starting dataset, we extracted five classes with reference to five different types of ball: baseballs, basketballs, beach balls, billiard balls and bowling balls. In addition, part of the samples were set aside for verification.

Ball example

Data Augmentation had been applied to the orginal 110 elements for each class; the augmentation consist of rotating, changing lights to obtain new dataset elements. As a function of activation of neurons we used the RELU function which is: π‘Ÿπ‘’π‘™π‘’(π‘₯) = π‘₯ Β· 𝑠𝑖𝑔𝑛(π‘₯)+1 2 .

Indeed, the output function that we will use is the softmax which is: π‘ π‘œπ‘“π‘‘π‘šπ‘Žπ‘₯(π‘₯𝑖 ) = 𝑒 π‘₯𝑖 βˆ‘ 𝑒 π‘₯𝑗 𝑗 , that enhances the proximity of the output to the one-hot. Finally, and as usual for the softmax, as a loss function we will use the categorical cross entropy: 𝑑(𝑦, 𝑦̂) = βˆ’ βˆ‘π‘– 𝑦𝑖 Β· π‘™π‘œπ‘”(𝑦̂𝑖 ).

Before analyzing results we tested several configurations of hyperparameters of the network and we stayed with the best one. Then, we ploted the evolution of accuracy and we showed the confusion matrix to analyze the results.

Result0 Result1


Contributors

Alberto MeliΓ‘n RodrΓ­guez

Federico Colleluori

This post is licensed under CC BY 4.0 by the author.