Objective

Generative AI can write essays and answer exam questions for students. This makes it hard for teachers to be sure that submitted work shows what a student really knows. One way to deal with this is to have students write exams by hand, without technology. The problem is that grading handwritten, essay-style answers takes a lot of time.

The researchers, from the University of Latvia, wanted to see whether large language models (LLMs, AI programs trained on huge amounts of text) could do two jobs. First, read students' handwriting in Latvian, a smaller language that many text-recognition tools handle poorly. This is called optical character recognition (OCR). Second, grade the answers against criteria set by the lecturer, and write feedback.

They asked two research questions:

  • How accurately can AI evaluate handwritten student exam work compared with human graders?
  • What are the main performance differences between dedicated OCR tools and LLMs when reading handwriting in Latvian?

The authors also hope that such a tool could cut grading time and apply the same criteria to every student.

Methods

The authors describe the project as action research, meaning they built a prototype system and tested it in a real course. This kind of study can show whether a tool works in one setting, but it cannot show how well it would work in general.

The data were 24 handwritten exam papers written in Latvian by students at the University of Latvia, in two sets of 7 and 17 papers. The tasks were open-ended questions that asked students to explain ideas. The papers were scanned as JPG images and were not cleaned up or retyped first, to copy real conditions. The graded work came from social science students.

The system worked in steps. First, a handwriting recognition step turned each image into text. A prompt asked for careful handling of Latvian letters with marks, and for uncertain words to be put in brackets. Second, a grading step used a prompt with the lecturer's criteria, such as how clearly the research problem was defined, the research design, the methods, and the quality of argument and language. The model gave a score on a 10-point scale and written feedback.

For handwriting, the team compared three tools on all 24 papers: Tesseract, EasyOCR and GPT-4o. They measured Word Error Rate (WER, the share of words that are wrong, where lower is better) and a cosine similarity score (a measure of how close the meaning of the AI text is to a manual transcript, where higher is better).

For grading, the authors tested three LLMs: GPT-4.5 Preview, DeepSeek and Claude 3.7 Sonnet. The paper lists the second one as DeepSeek R1 in the methods and as DeepSeek V3 in the results. They compared the AI scores with the course lecturer's scores. Student names were replaced with codes, students knew their work was used for testing, and the official grade came only from the tutor.

Key Findings

GPT-4o was much better than the older tools at reading handwritten Latvian, and all three AI graders scored lower than the lecturer.

Reading the handwriting

  • The average Word Error Rate was 0.3129 for GPT-4o, about 1.1851 for Tesseract and 1.2402 for EasyOCR. A rate above 1 means the old tools made more errors than there were words in the transcript, so their output was poor even though both claim at least partial Latvian support.
  • GPT-4o's meaning similarity scores averaged 0.926916667 and ranged as high as 0.9672, which means the text kept most of the meaning. Even so, its text still contained errors, so the authors suggest checking the text before grading.
  • The authors say this shows that transcription quality matters, because errors in the text can distort the grade. They also say the language models handled unclear letters better by using the context around them.

Grading compared with the lecturer

  • The lecturer's average score was 7.63 on the 10-point scale. The averages were 6.29 for GPT-4.5 Preview, 6.58 for DeepSeek and 5.08 for Claude 3.7 Sonnet.
  • On average, GPT-4.5 scored 1.34 points below the lecturer, DeepSeek 1.05 below, and Claude 2.55 below. The average size of the gap per paper (mean absolute error) was 1.5, 1.21 and 2.54.
  • The correlation with the lecturer (Pearson r, where 1 would be a perfect match in ranking) was 0.6 for GPT-4.5, 0.59 for DeepSeek and 0.36 for Claude.

How the three models behaved

  • DeepSeek came closest to the lecturer's marks and made the smallest mistakes, but it placed most essays in a narrow range of scores.
  • GPT-4.5 sat in the middle. It spread scores almost as widely as the lecturer and kept the order of essays best.
  • Claude was the strictest and least reliable of the three. It often changed the order of the essays, which means a student ranked high by the lecturer could be ranked low by the model.

The authors conclude that automatic grading of handwritten work in Latvian is possible, but the scores do not yet match the lecturer's.

Implications

The authors say the prototype shows promise, since it could reduce marking workload, give students grades sooner, and apply criteria evenly. They also say AI models should still be developed further before use in real grading, and that educators should not be replaced.

For lecturers and universities

  • Handwritten exams read by an LLM may be a way to keep exams tied to what students know on the day, and still avoid hand-marking every paper. The authors stress that the official grade in this study came only from the tutor.
  • The authors point to clearer written criteria. They offer three possible reasons for the gap: the criteria were not clear enough for the AI, the lecturer also considered things like class participation and other grades that the AI did not know, and the AI may not have fully grasped meaning in Latvian.

For developers

  • Splitting the job into two steps (read the handwriting, then grade) lets people check the text before grading, and lets the tools be swapped separately.
  • General-purpose LLMs read Latvian handwriting much better than the two OCR tools tested.

Our reading (not the authors' recommendation): Because the models differ in how strict they are, a department could use AI scores only as a second opinion, or compare them with a lecturer's scores on a sample of papers each term before relying on them. With 24 papers and one human grader, the numbers are too thin to set grading rules.

Limitations

The authors say the test used only 24 handwritten papers, so the results cannot be taken as general. They add that the work came from social science students, and the system should be tested in other fields. They also say it is not clear whether the gap in scores came from weak AI understanding, the way the prototype was set up, or a human grader who was too generous.

The paper does not mention, but the lecturer was the only human grader, so there is no check of how much two human graders would differ from each other. The paper says it did not aim to examine how the tutor's marks compared with other human evaluators. A gap between AI and one person is not the same as a gap from the truth.

The paper does not mention, but each paper appears to have been scored only once by each model, so it is unclear how much the scores would change if the same paper were graded again.

The paper does not mention, but the OCR comparison used GPT-4o, while the grading tests used three other models, so the paper does not test the full chain of reading and grading with each model.

The paper also gives different names for one model (DeepSeek R1 in the methods, DeepSeek V3 in the results), and some claims in the discussion, such as reduced bias and less misconduct, were not tested in the study.

Future Directions

The authors say that further work is needed to narrow the gap between the system and human graders. They propose:

  • Testing more than 24 papers, to see whether the gap in grades shrinks with more practice and testing.
  • Finding out whether the gap comes from the AI's grasp of the text, from the prototype's setup, or from human leniency.
  • Writing the grading criteria more precisely, so that the AI picks up what the lecturer actually values.
  • Trying the system on student work from other fields, and not only social science.

The paper does not list other directions. Open questions that follow from the results include whether the strictness of a model such as Claude can be adjusted through the prompt, and how the models perform in languages other than Latvian.

The bottom line: In this small test of 24 handwritten Latvian exam papers, GPT-4o read the handwriting far better than two standard OCR tools. Three AI models then graded the papers, and each gave lower scores than the lecturer. One model came closer than the others, and another changed the order of essays often. The evidence is limited by the small sample, one grader and one subject area. AI may help reduce marking time in the future, but human review of the AI's scores is still needed.