AI-Powered Exam Generation & Automated Grading

How fine-tuning a specialized 1.7B model and integrating OpenCV automated test generation and grading.

How fine-tuning a specialized 1.7B model and integrating OpenCV automated test generation and grading.

Content

Support agent

Knowledge agent

Client

AI-Powered Arabic/English MCQ Platform

Industry

Content

Team

Lead AI & Full-Stack Engineer

Build

2025 – 2026

Sheet

C-02

FIG. C-02 — Interactive Exam Editor & OMR Optical Grading System

FIG. C-02 — Interactive Exam Editor & OMR Optical Grading System

Scale 1 : 1

01

Survey — The problem

Manual exam drafting and paper grading burdened educators with immense overhead.

Manual exam drafting and paper grading burdened educators with immense overhead.

Built an end-to-end educational assessment platform designed to eliminate the friction in exam creation and grading.

Technical Achievements

  • Bilingual LLM Fine-Tuning: Developed a specialized 1.7B Arabic/English LLM for MCQ generation, fine-tuning Qwen on 80,000 in-house Arabic/English question-answer examples using SFT, DPO, ORPO, and RLAIF.

  • Automated OMR Grading: Integrated an Optical Mark Recognition (OMR) pipeline using OpenCV to automatically scan and grade bubble sheets exported from the platform.

  • Full-Stack Architecture: Interactive exam editor, PDF text extraction, and administrative dashboard built with Next.js and Django REST Framework (DRF).

  • Accolades: Awarded 1st place among 25+ projects at the University Graduation Project Exhibition.

QA pairs

80,000

Qwen model

1.7B

Projects entered

25+

02

Blueprint — What we built

One model, three outputs.

One model, three outputs.

01 · InputExam materialArabic · English
02 · AgentFine-tuned Qwen 1.7BSFT · DPO · ORPO
03a · OutputMCQs generatedAuto
03b · OutputExam editorInteractive
03c · ReviewOMR gradingOpenCV
< 2 s Avg. decision
01 · InputExam materialArabic · English
02 · AgentFine-tuned Qwen 1.7BSFT · DPO · ORPO
03a · OutputMCQs generatedAuto
03b · OutputExam editorInteractive
03c · ReviewOMR gradingOpenCV
< 2 s Avg. decision

03

Result — Measured after 90 days

0st
0st

place among 25+ graduation projects

0k
0k

QA pairs fine-tuned

0.0B
0.0B

Qwen LLM fine-tuned

Let’s build
something useful.

Have a software engineering opportunity or an AI application to discuss? Reach me at akilalsharafi@gmail.com. Based in Ibb, Yemen; working in Arabic and English.

Output · 01

Let’s build
something useful.

Have a software engineering opportunity or an AI application to discuss? Reach me at akilalsharafi@gmail.com. Based in Ibb, Yemen; working in Arabic and English.

Output · 01

Let’s build
something useful.

Have a software engineering opportunity or an AI application to discuss? Reach me at akilalsharafi@gmail.com. Based in Ibb, Yemen; working in Arabic and English.

Output · 01

Let’s build
something useful.

Have a software engineering opportunity or an AI application to discuss? Reach me at akilalsharafi@gmail.com. Based in Ibb, Yemen; working in Arabic and English.

Output · 01