SkillAgentSearch skills...

Newton

Newton Hand is a wearable device that utilizes accelerometers and gyroscopes to create a spatial model of the hand. Incorporating a LSTM neural network enables the smooth real-time tracking of hand position, orientation, and gestures, making it ideal for applications in gaming, healthcare, and accessibility.

Install / Use

/learn @hgupt3/Newton
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Newton Hand

Below is a demo of the real-time spatial model created using the Newton Hand:

<p align="center"> <img width="600" alt="Spatial Model GIF" src="https://github.com/hgupt3/Newton/assets/112455192/fdeeb6dc-2994-427f-a9a1-2890a4782db0"> </p>

Data Pipeline

This diagram describes the data flow every 100ms.

Sensor data is iteratively collected through the I2C channel using a multiplexer. The data is wrapped into a UDP packet sent to the server to be processed.

After the data is recieved, unpacked, and processed, the server passes the data through a recurrent neural network with a 30 node input layer (6 inputs per sensor), 2 - 128 node LSTM layers, a 84 node linear layer, and a 63 node output layer (xyz coordinates for 21 landmarks). In the LSTM layer, after each iteration, the hidden states and cell states are stored (initial are 0s) and used in the next 100ms cycle.

The output landmarks can be used in different applications as demonstrated in https://youtu.be/DRiaAyyzbq8?si=mS-Nd4G3seXP9C_L.

<p align="center"> <img width="600" alt="Data Flow Diagram" src="https://github.com/hgupt3/Newton/assets/112455192/ace51bf3-89e6-4b83-b25e-3215baa14e95" align="center"> </p>

Validation

The following diagram shows loss vs epoch of test and train data for a learning rate of 0.005 (Optimizer: Adam / Criterion: MSE). I chose an epoch of 50 to prevent overfitting of the model.

<p align="center"> <img width="600" alt="Loss vs Epoch Diagram" src="https://github.com/hgupt3/Newton/assets/112455192/1bbad9cd-4fc7-4a7e-8957-1c9af4368a2b" align="center"> </p>

Hardware

The hardware used in the Newton Hand prototype includes:

  • Arduino MKR WiFi 1010
  • Arduino MKR Connector Carrier
  • 5x Grove 6-Axis Accelerometer & Gyroscope
  • Grove 8 Channel I2C Multiplexer
<p align="center"> <img width="600" alt="Hardware" src="https://github.com/hgupt3/Newton/assets/112455192/5d5d06a6-7e06-4a08-b2e8-408ade828063" align="center"> </p>
View on GitHub
GitHub Stars8
CategoryHealthcare
Updated23d ago
Forks0

Languages

Python

Security Score

70/100

Audited on Mar 14, 2026

No findings