ASL Unified Letters Gesture Detector (YOLO11n, MediaPipe boxes)
This model detects American Sign Language (ASL) alphabet gestures from A to Z in images and webcam video. It is intended for gesture-controlled systems, including command interfaces for mobile robot swarms.
It is a letter-specialist YOLO11n detector trained as part of an experiment to separate letter and digit recognition. It covers all 26 ASL alphabet letters, including J and Z.
Model details
- Architecture: YOLO11n (Ultralytics)
- Task: Object detection
- Input size: 512×512
- Classes: 26
- Class list:
A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z - 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,603,126
- GFLOPs: 6.5
- License: MIT
Intended use
This model is intended for:
- Real-time recognition of ASL alphabet gestures from a webcam.
- Gesture-based human–robot interaction.
- Commanding a mobile robot swarm using letter symbols.
- Research and education in computer vision, robotics, and gesture interfaces.
In the gesture-swarm project, selected letters are mapped to robot commands, for example A to stop, B to back, F to forward, L to left, R to right, U to up, and D to down.
Training data
The model was trained on a letter-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. The fallback model supports letters A–Y but not J or Z; therefore, it was not used as a fallback for those two classes.
If neither MediaPipe nor the YOLO fallback 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 letter-only validation split containing 2,047 images and 1,811 letter instances.
| Metric | Value |
|---|---|
| Precision | 0.976 |
| Recall | 0.964 |
| mAP@0.50 | 0.986 |
| mAP@0.50:0.95 | 0.903 |
Per-class results
| Letter | Instances | Precision | Recall | mAP@0.50 | mAP@0.50:0.95 |
|---|---|---|---|---|---|
| A | 122 | 0.989 | 0.992 | 0.995 | 0.960 |
| B | 85 | 0.998 | 1.000 | 0.995 | 0.973 |
| C | 125 | 0.968 | 0.896 | 0.985 | 0.896 |
| D | 128 | 0.988 | 0.984 | 0.994 | 0.938 |
| E | 107 | 0.979 | 0.981 | 0.994 | 0.960 |
| F | 100 | 0.997 | 1.000 | 0.995 | 0.977 |
| G | 32 | 0.992 | 1.000 | 0.995 | 0.949 |
| H | 36 | 0.967 | 1.000 | 0.994 | 0.930 |
| I | 35 | 0.996 | 1.000 | 0.995 | 0.862 |
| J | 9 | 0.971 | 1.000 | 0.995 | 0.968 |
| K | 35 | 0.992 | 1.000 | 0.995 | 0.889 |
| L | 96 | 0.990 | 0.990 | 0.995 | 0.959 |
| M | 32 | 0.967 | 0.812 | 0.941 | 0.768 |
| N | 28 | 0.955 | 1.000 | 0.975 | 0.882 |
| O | 26 | 0.877 | 0.885 | 0.910 | 0.807 |
| P | 103 | 0.961 | 0.854 | 0.974 | 0.887 |
| Q | 41 | 0.974 | 0.976 | 0.979 | 0.876 |
| R | 121 | 0.990 | 0.992 | 0.995 | 0.933 |
| S | 133 | 0.980 | 0.940 | 0.992 | 0.917 |
| T | 128 | 0.984 | 0.964 | 0.983 | 0.923 |
| U | 121 | 0.978 | 0.843 | 0.980 | 0.916 |
| V | 35 | 0.973 | 0.943 | 0.992 | 0.922 |
| W | 33 | 0.993 | 1.000 | 0.995 | 0.876 |
| X | 39 | 0.993 | 1.000 | 0.995 | 0.874 |
| Y | 41 | 0.950 | 1.000 | 0.995 | 0.772 |
| Z | 20 | 0.986 | 1.000 | 0.995 | 0.878 |
Comparison with unified model
On the letter validation subset, this letter-only model improves precision, recall, and mAP@0.50 relative to the earlier unified 36-class model:
| Metric | Unified model | Letter-only model | Change |
|---|---|---|---|
| Precision | 0.951 | 0.976 | +0.025 |
| Recall | 0.958 | 0.964 | +0.006 |
| mAP@0.50 | 0.982 | 0.986 | +0.004 |
| mAP@0.50:0.95 | 0.932 | 0.903 | -0.029 |
These results are from the letter-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_letters_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)
letter = model.names[class_id]
print(f"Detected letter: {letter} (confidence={confidence:.2f})")
cv2.imshow("ASL letters", 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_letters_yolo11n_mp_best.pt",
conf_thresh=0.7,
)
# frame: OpenCV BGR image, for example from cv2.VideoCapture
letter = detector.detect_from_frame(frame)
if letter is not None:
print("Detected letter:", letter)
Limitations
- The model recognizes only ASL alphabet letters
A–Z; it does not recognize digits. - 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.
Uhas lower validation recall (0.843) than the other main command letters and may require additional training data.M,P,O, andCalso have comparatively lower validation recall.JandZhave few validation instances (9 and 20 respectively), so their reported metrics should be interpreted cautiously.- 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 letter 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{jdanoff2026aslunifiedlettersyolo11nmp,
author = {Alexander Jdanoff},
title = {{ASL Unified Letters Gesture Detector (YOLO11n, MediaPipe boxes)}},
year = {2026},
howpublished = {\url{[https://huggingface.co/ajdanoff/asl-unified-letters-yolo11n-mp](https://huggingface.co/ajdanoff/asl-unified-letters-yolo11n-mp)}},
note = {YOLO11n model for ASL alphabet gestures A-Z, trained with MediaPipe-based bounding boxes.}
}