Hatekhori BdSL47 recognisers
Two small classifiers that recognise static, one-handed Bangla Sign Language (BdSL) fingerspelling signs from MediaPipe hand landmarks. They power Hatekhori, a free web app that teaches the BdSL alphabet with live, on-device coaching. Source: https://github.com/ishruq1317/hatekhori.
| Model | Classes | Input | Size |
|---|---|---|---|
bdsl-letters | 37 letter signs (BdSL47 Sign 00–36, অ … ঁ) | 178 hand features | ~335 KB (float32), ~90 KB (int8 ONNX) |
bdsl-digits | 10 digit signs (BdSL47 Sign 37–46, ০ … ৯) | 178 hand features | ~320 KB (float32), ~85 KB (int8 ONNX) |
Evaluation — leave-one-signer-out (every test person unseen)
| Model | Accuracy | Macro-F1 | Top-3 | ECE | Logistic-regression baseline |
|---|---|---|---|---|---|
| Letters (37) | 85.3% (folds 79.5%–90.7%) | 85.2% | 97.4% | 0.031 | 80.5% |
| Digits (10) | 99.7% | 99.7% | 100.0% | 0.045 | 99.3% |
Signers who share an identical age/gender folder label are held out together (7 groups per subset), which is
stricter than per-person folds. The dataset paper reports 97.8 % F1 on a random split, where the same people
appear in training and test data. These numbers are what a new person should expect. Full per-signer,
per-class and confusion results: metrics.json.
Inputs
- Run MediaPipe Hand Landmarker 1.2.3 (
hand_landmarker.task, float16 v1) on an unmirrored frame. - Centre the 21 landmarks: multiply x by frame width, y by frame height, z by width; negate x only if
handedness is
Leftwith score ≥ 0.9; subtract the wrist (landmark 0). - Palm frame: axes y = wrist → landmark 9, x = landmark 5 → 17 orthogonalised, z = x × y; scale by the mean
distance wrist → landmarks 5, 9, 17. Features (178): 63 palm-frame coordinates, 9 axis components,
15 joint angles (angle/π), 20 unit bone directions, 16 thumb-tip distances to landmarks 5–20,
5 fingertip-to-palm-centre distances, 10 pairwise fingertip distances. The reference implementations are
ml/kaggle/train.py(Python) andsrc/ml/features.ts(TypeScript), and a golden-vector test proves they match.
ONNX models take features [batch, 178] and output probs [batch, C] (standardisation is built in).
The .bin files hold raw float32 weights in the layout described in each .json.
Training
- Data: BdSL47 (Rayeed et al., Data in Brief 51, 2023; CC BY 4.0): 47,212 images, 10 signers per subset. Landmarks were re-extracted with MediaPipe 1.2.3, with hands found in 99.7 % of images.
- Model: MLP 178 → 256 → 128 → C, ReLU, dropout 0.3, AdamW (lr 1e-3, wd 1e-4), cosine schedule, label smoothing 0.05, 40 epochs, batch 512. Augmentation: 3-D rotation ±20° about each axis, Gaussian landmark noise σ = 2 % of palm length.
- Compute: Kaggle free tier (CPU), about 37 min end to end (mostly landmark extraction and cross-validation).
- Version: v2. v1 (82.9 % letters) mirrored a hand on every "Left" guess and used camera-frame features; see the ablation in the source repository's
ml/README.md.
Intended use and limitations
- Intended: learning and practising BdSL fingerspelling, with feedback, in an educational app.
- Not intended: translating sign language, or any high-stakes communication (medical, legal, emergency).
- Covers 47 static one-handed signs only: no word signs, movement or two-handed signs. Some Bangla letters share one handshape. য র ড় ঢ় য় ৎ ঃ have no BdSL47 sign.
- Trained on 10 teenage and adult signers per subset (ages 14–62). Accuracy may drop for young children, unusual lighting or partially visible hands.
- The sign-number → letter mapping was verified against KU-BdSL; see
LABELS.mdin the source repository.
Licence and attribution
Weights are released under CC BY 4.0, matching the training data. Please cite the BdSL47 dataset:
S. M. Rayeed, S. T. Tuba, H. Mahmud, M. H. U. Mazumder, S. H. Mukta, K. Hasan. BdSL47: A complete depth-based Bangla sign alphabet and digit dataset. Data in Brief 51 (2023) 109799.