Nischal Dhoj Kunwar
Menu
All research and projects

research · ml · web

Sign2Voice

Real-time ASL fingerspelling to speech, with a robustness study that corrected my own leaky 99.15% result to 95.9% on a leakage-aware split and about 45-53% on a real webcam.

Sign2Voice home page: the headline 'Spell with your hands. Hear it spoken.', three feature notes, and a sign-in form

Key figures

Leakage-aware split
95.9%
Five other signers
78.1%
Own webcam
48.6%
PGD attack, eps 0.01
88.2%
Rotated 45 degrees
83.5%
Classifier parameters
589,852

Charts

Accuracy as the test gets more realistic

Same model, three ways of testing it

  • Leakage-aware split95.9%
  • Five other signers78.1%
  • Own webcam48.6%

Write-up

My final-year project. A webcam frame goes through MediaPipe Hands to get 21 hand landmarks, a small 1D-CNN classifies the letter, and the text is spoken aloud. It ships as a desktop app (Tkinter) and a MERN web app for accounts and saved transcripts. distilgpt2 suggests the next word.

What is trained and what is not. The landmark classifier is trained from scratch in the repository. MediaPipe Hands and distilgpt2 are pretrained and used unmodified, and the word suggestions were not evaluated.

A correction to my own results. The first version reported 99.15% "on unseen data". That figure came from a random split of one dataset made of near-duplicate video frames, so it was leaky. I re-measured the same model properly, three seeds each:

  • Random split, the original protocol: 98.9% for the baseline (leaky).
  • Block split, the leakage-aware one: 96.7% for the baseline, 95.9% for the shipped model.
  • Five other signers: 71.1% for the baseline, 78.1% for the shipped model.
  • My own webcam, one person: 45.1% to 51.1% depending on lighting.

Robustness. The shipped model uses augmentation plus PGD adversarial training. It gives up about 0.8 points of clean accuracy and in return holds up much better: 88.2% against 60.8% under a PGD attack at epsilon 0.01, and 83.5% against 33.7% when the hand is rotated 45 degrees. Adversarial training and rotation augmentation fix different weaknesses, so they combine well.

What I took from it. The main problem is distribution shift (other people, other cameras), not attacks. Adversarial training helped a little on other signers and not measurably on the webcam. Normalising the landmarks gave no reliable gain.

Limitations.

  • The webcam data is one person in two lighting conditions. It tests setup and lighting, not new signers.
  • The attack results are PGD-20 on a 5,000-sample subset, white-box, in landmark space only. MediaPipe itself is not attacked and there are no adaptive attacks, so treat them as upper bounds on real robustness.
  • J and Z are motion letters and are classified from single frames.
  • Four letters (D, N, T, Z) get zero recall on the external set and the cause is not established.

Built with

  • Python
  • TensorFlow / Keras
  • MediaPipe Hands
  • OpenCV
  • distilgpt2
  • Tkinter
  • Express
  • MongoDB
  • React (Vite)