Zum Inhalt springen
ModelAufgelistetExtern
Browse files

ArSL Models

Two PyTorch models for Arabic Sign Language (ArSL) recognition, used by the CSLR app (deployed as a Hugging Face Space):

ArtOtherVersionRevision cee3c95CBewertung

Modellquelle

Art
Other
Dateigröße
231–259 MB
Version
vRevision cee3c95
Aktualisiert
17. Sept. 2026
Downloads
0
Quelle
Hugging Face

Quellenbeschreibung

ArSL-Models — Arabic Sign Language Recognition

Two PyTorch models for Arabic Sign Language (ArSL) recognition, used by the CSLR app (deployed as a Hugging Face Space):

FileTaskArchitectureClasses
improved_arsl_model.pthAlphabet (finger-spelling)ResNet18 + BiLSTM + Attention29
sign_word_t5_classifier_best_3d.pthWord signsT5-encoder over hand landmarks10

⚠️ Note: Quantitative results below (accuracy, F1, dataset sizes) are placeholders pending the accompanying paper. They will be updated with the exact reported figures.


1. Alphabet model — improved_arsl_model.pth

A spatial-sequential classifier for static Arabic letter signs.

Architecture (ArSLAttentionLSTM)

  • Backbone: ResNet18 (ImageNet-pretrained), final pooling/fc removed → 512×7×7 feature map.
  • Sequence: the 7×7 grid is flattened to a length-49 sequence of 512-d vectors.
  • Recurrence: 2-layer bidirectional LSTM, hidden size 512 (→ 1024-d outputs).
  • Attention: additive attention pools the LSTM outputs into one context vector.
  • Head: 1024 → 512 → 256 → 29 MLP with BatchNorm, ReLU, dropout (0.5).

Input

  • RGB image, resized to 224×224, normalized with ImageNet mean/std ([0.485, 0.456, 0.406] / [0.229, 0.224, 0.225]).
  • Hand presence is verified with MediaPipe before classification.

Output: softmax over 29 classes.

Alphabet label map (index → letter)

idxletteridxletteridxletteridxletteridxletter
0ع6ف12ك18ر24ث
1أ7ق13خ19ص25ذ
2ب8غ14لا20س26و
3د9ه15ل21ش27ي
4ظ10ح16م22ط28ز
5ض11ج17ن23ت

Reported metrics (to update from paper)

MetricValue
Test accuracyTBD
Macro F1TBD
Dataset / splitTBD

2. Word model — sign_word_t5_classifier_best_3d.pth

A landmark-based classifier for dynamic word signs.

Architecture (T5EncoderClassifier)

  • Base: encoder of google-t5/t5-small (d_model = 512).
  • Input projection: Linear(feature_dim → 512) → Dropout → LayerNorm → GELU.
  • Pooling: first-token (CLS-style) hidden state of the encoder.
  • Head: Dropout → Linear(512 → 10).

Input

  • MediaPipe hand landmarks: 21 landmarks × 3 coords (x, y, z) for 1 hand → feature_dim = 63.
  • Landmarks are wrist-centered and scaled by the wrist→middle-MCP distance.
  • A single frame's landmarks are tiled to a sequence length of 100 with an all-ones attention mask.

Output: softmax over 10 classes.

Word label map (index → Arabic → English)

idxArabicEnglish
0ينامsleep
1يسكتbe silent
2حبlove
3يدخنsmoke
4دعمsupport
5مرتبكconfused
6قلقworried
7هناhere
8السلام عليكمgreeting (peace be upon you)
9شكراthanks

Reported metrics (to update from paper)

MetricValue
Test accuracyTBD
Macro F1TBD
Dataset / splitTBD

Usage

import torch
from huggingface_hub import hf_hub_download

# --- Alphabet model ---
from models.alphabet_model import ArSLAttentionLSTM   # from the CSLR repo

ckpt = hf_hub_download("FatimahEmadEldin/ArSL-Models", "improved_arsl_model.pth")
model = ArSLAttentionLSTM(num_classes=29, hidden_size=512, num_layers=2,
                          bidirectional=True, dropout_rate=0.5)
state = torch.load(ckpt, map_location="cpu")
state = state.get("model_state_dict", state) if isinstance(state, dict) else state
model.load_state_dict(state, strict=False)
model.eval()

The full inference pipeline (MediaPipe hand detection, preprocessing, the T5 word model, and a web UI) is available in the CSLR repository.

Intended use & limitations

  • Intended use: education, accessibility demos, and research on Arabic sign language recognition.
  • Limitations: trained on a limited label set (29 letters / 10 words); accuracy depends on lighting, camera angle, hand visibility, and signing style. The word model classifies from a single tiled frame and is not a full continuous-sign sequence model. Not validated for clinical or safety-critical use.

Citation

@misc{arsl_models_2026,
  title  = {ArSL-Models: Arabic Sign Language Recognition},
  author = {Fatimah Emad Eldin},
  year   = {2026},
  howpublished = {\url{https://huggingface.co/FatimahEmadEldin/ArSL-Models}}
}

Paper details and full results to be added.

License

MIT

Quellen

1 Quelle
Hugging FacePrimärVersion cee3c95046bce78843bd1479490537dad9f47f06
huggingface.co/FatimahEmadEldin/ArSL-Models/tree/cee3c95046bce78843bd1479490537dad9f47f06

Verifiziert 2. Sept.

Download files

Modellartefakte

2 Artefakte

improved_arsl_model.pth

pth · 259 MB · SHA-256 41f8d2fdedad…799c · Hugging Face

Download file

sign_word_t5_classifier_best_3d.pth

pth · 231 MB · SHA-256 4d5308b96c3e…98f3 · Hugging Face

Download file

Quellenauszüge

2 Auszüge

--- license: mit language: - ar tags: - arabic-sign-language - sign-language-recognition - arsl - cslr - gesture-recognition - pytorch - mediapipe - t5 - resnet pipeline_tag: image-classification library_name: pytorch --- # ArSL-Models — Arabic Sign Language Recognition Two PyTorch models for **Arabic Sign Language (ArSL)** recognition, used by the [CSLR app](https://github.com/astral-fate/CSLR) (deployed as a Hugging Face Space): | File | Task | Architecture | Classes | |------|------|--------------|---------| | `improved_arsl_model.pth` | **Alphabet** (finger-spelling) | ResNet18 + BiLSTM + Attention | 29 | | `sign_word_t5_classifier_best_3d.pth` | **Word** signs | T5-encoder over hand landmarks | 10 | > ⚠️ **Note:** Quantitative results below (accuracy, F1, dataset sizes) are > placeholders pending the accompanying paper. They will be updated with the > exact reported figures. --- ## 1. Alphabet model — `improved_arsl_model.pth` A spatial-sequential classifier for static Arabic letter signs. **Architecture (`ArSLAttentionLSTM`)** - **Backbone:** ResNet18 (ImageNet-pretrained), final pooling/fc removed → `512×7×7` feature map. - **Sequence:** the `7×7` grid is flattened to a length-49 sequence of 512-d vectors. - **Recurrence:** 2-layer **bidirectional LSTM**, hidden size 512 (→ 1024-d outputs). - **Attention:** additive attention pools the LSTM outputs into one context vector. - **Head:** `1024 → 512 → 256 → 29` MLP with BatchNorm, ReLU, dropout (0.5). **Input** - RGB image, resized to **224×224**, normalized with ImageNet mean/std (`[0.485, 0.456, 0.406]` / `[0.229, 0.224, 0.225]`). - Hand presence is verified with MediaPipe before classification. **Output:** softmax over **29 classes**. ### Alphabet label map (index → letter) | idx | letter | idx | letter | idx | letter | idx | letter | idx | letter | |----:|:------:|----:|:------:|----:|:------:|----:|:------:|----:|:------:| | 0 | ع | 6 | ف | 12 | ك | 18 | ر | 24 | ث | | 1 | أ | 7 | ق | 13 | خ | 19 | ص | 25 | ذ | | 2 | ب | 8 | غ | 14 | لا | 20 | س | 26 | و | | 3 | د | 9 | ه | 15 | ل | 21 | ش | 27 | ي | | 4 | ظ | 10 | ح | 16 | م | 22 | ط | 28 | ز | | 5 | ض | 11 | ج | 17 | ن | 23 | ت | | | ### Reported metrics _(to update from paper)_ | Metric | Value | |--------|-------| | Test accuracy | _TBD_ | | Macro F1 | _TBD_ | | Dataset / split | _TBD_ | --- ## 2. Word model — `sign_word_t5_c...

Source context: 0 downloads · 0 likes · Pipeline image-classification · Library pytorch · Repo FatimahEmadEldin/ArSL-Models