Neural networks have emerged as a versatile tool for solving problems across various domains. This project utilizes a two-layer networks to recognize hand gestures using a
![]() Left-to-right and right-to-left gestures as seen by the camera |
To reduce the number of parameters that need to be saved, connections are pruned and the remaining parameters are quantized. The impact of pruning is negligible until 70% of the weights get pruned. The number of clusters in the second layer barely matters while the number of clusters in the first layer is highly important for the classification accuracy.

To execute this neural network on the Arduino, different ways of storing the weight matrices were tested. The Compressed Sparse Column (CSC) based methods were fastest and required the least amount of memory.

Execution can be accelerated using compiler flags. This is at the expense of memory size. As a compromise, -O2 was chosen

