Tourasna: a hieroglyph translator that says when it does not know
A tourist uploads a photo of an inscription. My service detects the signs, puts them in reading order, and returns an English and Arabic translation with the layer that produced it. It is one feature of Tourasna, our graduation project, where I was team leader of 6. I built this whole service, and below it, the other parts of the app I built or started.
The app, running
The pipeline
1. Detection. YOLOv8m, fine-tuned on a Kaggle T4, finds each sign and its Gardiner code, keeping detections above 0.40 confidence.
2. Reading order. A rule-based algorithm groups overlapping glyphs into quadrats, the vertical stacks that hieroglyphic text uses, and sorts them right-to-left, left-to-right or top-to-bottom.
3. Translation, four layers, first hit wins. A hand-curated table of 32 phrases (royal names and common formulas). Then an LLM (Llama 3.3 70B through Groq) that returns a confidence and is told to answer “unknown” rather than guess. Then my own transformer, which needs no internet. Last, the meaning of each single sign, so the service always returns something.
The response also carries a transliteration, historical context, and which layer answered.
The numbers, as they are
| Part | What it is | Result |
|---|---|---|
| Detector | YOLOv8m, 767 Gardiner sign classes | mAP@50 0.019 on validation (best epoch 40 of 50) |
| Translator | Transformer seq2seq, 11.8M parameters, from scratch | BLEU 7.76 on validation |
| Reading order | Rule-based quadrat sorter | Direction chosen by the user (automatic detection reached about 62%, so I dropped it) |
Data, and the bug I found in it
The detector trains on 32,362 images with 537,682 annotations (27,937 train, 3,460 validation, 965 test). In that dataset 48,549 annotation lines had class IDs above 766, outside the 767 classes. I removed only those lines and kept every valid one.
The translator trains on the BBAW Egyptian corpus: 35,497 usable rows, 34,278 clean pairs after filtering (29,136 train, 3,427 validation, 1,715 test). The corpus is mostly German, so I machine-translated it to English with Google Translate. The English targets are therefore machine output, and that caps what the model can learn.
I also trained a sign classifier (EfficientNetB0, 98.4% test accuracy on 117 classes) and removed it from the pipeline, because the detector already returns classes.
Service and honesty by design
A FastAPI service with 7 endpoints and 40 integration tests. A correction endpoint lets the user fix detected codes before translating, which is the answer to blurry or eroded inscriptions. Given invented codes, the LLM layer returns “unknown” with low confidence instead of a made-up translation.
Limits
The reading direction is chosen by the user. The LLM layer needs internet, while the transformer and the per-sign layer work offline. The curated table has only 32 phrases, so most real inscriptions rely on the LLM. There is no hosted demo, because the detector needs a GPU server and deployment belonged to the backend team.
The team built the app around these features: the Flutter shell, the NestJS backend, the AWS deployment, the recommender and the FAHMY chatbot.
Also in Tourasna: what else I built
Built by me
Interactive map
Live routing, numbered stops, trip history and a calendar, and voice guidance that starts by itself when you reach a place. Eight steps from an agenda to a story told aloud, below.
Started by me, taken further with a teammate
AI Lens
I built the first version at small scale and showed that recognising a monument from a photo worked. When it needed to cover 140+ Cairo landmarks, a teammate took over the modelling, and I built what it needed to get there: I collected the extra images and annotated them.
Pipeline by me, models made with a teammate
3D viewer
I designed the pipeline: a 3D model from photos (TripoSR, Hyper3D), stored as GLB on Google Cloud Storage and shown in the app with drag to rotate and magnification. Once it worked, a teammate produced the rest of the models, and the library reached 30+ landmarks.

Day 1 of a plan: three stops, 23.7 km, 43 min.
The interactive map
I built it. A traveller picks a start, the app routes the day, and when they are within 100 m of a stop it tells that place’s story aloud. Trips can be paused, resumed or skipped, and they are saved to a history and the calendar. Data lives in Firebase with a local JSON fallback.
The day’s places, times and categories.
The current location, or search for any starting place.
Geolocator reads where the traveller is.
Google Maps Flutter SDK with numbered custom markers.
Google Directions API returns distance, time and the path.
Hands over to Uber, Careem or Google Maps for navigation.
Within 100 m of a stop, the app notices.
Google Cloud TTS (Chirp 3 HD) tells the story of that place.