ASL Unified Digits Gesture Detector (YOLO11n, MediaPipe boxes)
This model detects American Sign Language (ASL) digit gestures 0–9 in images and webcam video. It is intended for gesture-controlled systems, including command interfaces for mobile robot swarms.
It is a digit-specialist YOLO11n detector trained as part of an experiment to separate digit and letter recognition. Compared with the project’s earlier unified 36-class detector, it improves digit validation precision, recall, and mAP.
Model details
- Architecture: YOLO11n (Ultralytics)
- Task: Object detection
- Input size: 512×512
- Classes: 10
- Class list:
0,1,2,3,4,5,6,7,8,9 - Training framework: Ultralytics YOLO
- Bounding-box generation: MediaPipe HandLandmarker-based boxes, with class-matched YOLO fallback and class/image-size-aware centered fallback boxes
- Parameters: 2,599,238
- GFLOPs: 6.4
- License: MIT
Intended use
This model is intended for:
- Real-time recognition of ASL digit gestures from a webcam.
- Gesture-based human–robot interaction.
- Commanding a mobile robot swarm using digit symbols.
- Research and education in computer vision, robotics, and gesture interfaces.
It can be combined with a temporal parser to convert digit-symbol streams into structured commands, such as selecting robot IDs or specifying numeric task parameters.
Training data
The model was trained on a digit-only YOLO-format dataset derived from the project’s unified ASL dataset.
The dataset combines:
- Public Kaggle ASL datasets.
- Custom webcam gesture recordings.
- Background images without hand gestures, used as unlabeled negative examples.
Bounding boxes were generated primarily with MediaPipe HandLandmarker. When MediaPipe failed, a class-matched YOLO fallback model was used. If neither method produced a box, a centered fallback box was generated using class- and image-size-specific mean normalized box dimensions.
The dataset contains three principal image-resolution groups:
- 400×400 source images.
- 224×224 source images.
- 640×480 webcam images.
Training procedure
The model was trained with Ultralytics YOLO using the following main settings:
| Setting | Value |
|---|---|
| Base model | yolo11n.pt |
| Input size | 512 |
| Batch size | 32 |
| Epochs | 100 |
| Optimizer | AdamW |
| Initial learning rate | 0.001 |
| Final learning-rate fraction | 0.01 |
| Learning-rate schedule | Cosine |
| Mosaic | Disabled for final 10 epochs |
| Early-stopping patience | 30 |
| Seed | 42 |
| Hardware | NVIDIA Tesla T4 |
Evaluation
Validation was performed on the digit-only validation split containing 1,003 images and 778 digit instances.
| Metric | Value |
|---|---|
| Precision | 0.989 |
| Recall | 0.982 |
| mAP@0.50 | 0.990 |
| mAP@0.50:0.95 | 0.933 |
Per-class results
| Class | Instances | Precision | Recall | mAP@0.50 | mAP@0.50:0.95 |
|---|---|---|---|---|---|
| 0 | 64 | 0.996 | 0.953 | 0.993 | 0.929 |
| 1 | 87 | 0.999 | 1.000 | 0.995 | 0.925 |
| 2 | 80 | 0.997 | 1.000 | 0.995 | 0.907 |
| 3 | 70 | 0.999 | 1.000 | 0.995 | 0.881 |
| 4 | 74 | 0.992 | 0.946 | 0.986 | 0.960 |
| 5 | 79 | 0.975 | 0.987 | 0.980 | 0.938 |
| 6 | 81 | 0.985 | 0.988 | 0.979 | 0.908 |
| 7 | 83 | 0.971 | 0.976 | 0.983 | 0.945 |
| 8 | 65 | 0.985 | 0.988 | 0.994 | 0.959 |
| 9 | 95 | 0.989 | 0.981 | 0.995 | 0.982 |
Comparison with unified model
On the same digit validation subset, this digit-only model improves over the earlier unified 36-class model:
| Metric | Unified model | Digit-only model | Change |
|---|---|---|---|
| Precision | 0.942 | 0.989 | +0.047 |
| Recall | 0.940 | 0.982 | +0.042 |
| mAP@0.50 | 0.961 | 0.990 | +0.029 |
| mAP@0.50:0.95 | 0.911 | 0.933 | +0.022 |
These results are from the digit-only validation split. They are not yet a fully controlled comparison on a separate, shared held-out webcam test set.
Usage
Ultralytics PyTorch
from ultralytics import YOLO
import cv2
model = YOLO("asl_unified_digits_yolo11n_mp_best.pt")
cap = cv2.VideoCapture(0)
while True:
ret, frame = cap.read()
if not ret:
break
results = model(frame, conf=0.7, iou=0.45, verbose=False)
if results and results.boxes is not None:
boxes = results.boxes
for box in boxes:
class_id = int(box.cls)
confidence = float(box.conf)
digit = model.names[class_id]
print(f"Detected digit: {digit} (confidence={confidence:.2f})")
cv2.imshow("ASL digits", frame)
if cv2.waitKey(1) & 0xFF == ord("q"):
break
cap.release()
cv2.destroyAllWindows()
gesture_swarm integration
from gesture_swarm.detector import GestureDetector
detector = GestureDetector(
"asl_unified_digits_yolo11n_mp_best.pt",
conf_thresh=0.7,
)
# frame: OpenCV BGR image, for example from cv2.VideoCapture
digit = detector.detect_from_frame(frame)
if digit is not None:
print("Detected digit:", digit)
Limitations
- The model recognizes only digits
0–9; it does not recognize ASL letters. - Performance may decrease in cluttered scenes, low light, motion blur, or with unusual camera viewpoints.
- It is designed for single-hand gestures; multi-hand scenes are not explicitly modeled.
- Background images were included to reduce false positives, but false detections may still occur in environments different from the training data.
- The model has not been evaluated for safety-critical applications.
- Validation metrics are from the project’s digit validation split, not from an independent cross-dataset benchmark.
License and acknowledgements
Model weights and code are released under the MIT License.
This model uses:
Please review the licenses and attribution requirements of the source datasets before redistribution or commercial use.
How to cite
@misc{jdanoff2026aslunifieddigitsyolo11nmp,
author = {Alexander Jdanoff},
title = {{ASL Unified Digits Gesture Detector (YOLO11n, MediaPipe boxes)}},
year = {2026},
howpublished = {\url{[https://huggingface.co/ajdanoff/asl-unified-digits-yolo11n-mp](https://huggingface.co/ajdanoff/asl-unified-digits-yolo11n-mp)}},
note = {YOLO11n model for ASL digit gestures 0-9, trained with MediaPipe-based bounding boxes.}
}