Why AI Writing Detectors Get It Wrong: A Guide for Teachers
When pupils can ask a chatbot to write an essay, it is natural to want a tool that can tell. AI writing detectors promise to do that: paste in a piece of writing, get a score or a label such as "likely AI-written". This guide explains, with simple arithmetic, why those labels are wrong more often than they look, and why a detector score should never be treated as proof.
A detector is a classifier
A detector is a machine learning model of the kind called a classifier: it looks at an input and sorts it into one of two classes, here "AI-written" or "human-written". It learned to do that from examples, and like every classifier it makes two kinds of mistake:
- a false negative: it misses writing that really was produced by AI;
- a false positive: it flags writing that a pupil really did write.
The first kind of mistake means some AI use goes unnoticed. The second kind means an honest pupil is accused. For a teacher, the second matters most, and it is the one the headline "accuracy" figure hides.
A worked example: 1,000 essays
The numbers below are made up to illustrate the arithmetic. They are not the rates of any real detector.
Imagine a year group hands in 1,000 essays. 100 were written by AI and 900 were written honestly. A detector catches 90 of the 100 AI essays. It also wrongly flags 45 of the 900 honest essays (5 percent of them). That gives a confusion matrix, the four counts every classifier is judged by:
| Made-up example | Flagged as AI | Not flagged |
|---|---|---|
| Really AI-written (100) | 90 (true positives) | 10 (false negatives) |
| Really honest (900) | 45 (false positives) | 855 (true negatives) |
Run those four counts through the Model Accuracy Predictor, which works out accuracy, precision and recall from a confusion matrix, and it gives:
- Accuracy 0.945: 945 of the 1,000 essays were labeled correctly. It sounds excellent.
- Recall 0.9: it caught 90 of the 100 AI essays.
- Specificity 0.95: it correctly cleared 855 of the 900 honest essays.
- Precision 0.6667: of the 135 essays it flagged, only 90 were really AI-written.
Precision is the figure a teacher holding a flagged essay needs, and it says that one in three flagged essays is honest work. Forty-five pupils who did nothing wrong are on the list, next to 90 who did. Nothing in the flag tells you which is which.
Base rates: the rarer the cheating, the worse the flags
The base rate is how common the thing you are looking for really is. It changes everything. Keep the same made-up detector (it still catches 9 in 10 AI essays and still wrongly flags 5 in 100 honest ones), but suppose only 20 of the 1,000 essays were AI-written.
| Made-up example | TP | FP | TN | FN | Accuracy | Precision | Recall |
|---|---|---|---|---|---|---|---|
| 100 AI essays in 1,000 | 90 | 45 | 855 | 10 | 0.945 | 0.6667 | 0.9 |
| 20 AI essays in 1,000 | 18 | 49 | 931 | 2 | 0.949 | 0.2687 | 0.9 |
Now the detector flags 67 essays and only 18 of them are AI-written: precision falls to 0.2687, so roughly three in four flags land on an honest pupil. Notice that accuracy went up, to 0.949, because there are more honest essays to clear correctly. A high accuracy figure can sit right next to a flag that is usually wrong. This is the same reason a model that always says "no" can score 0.99 accuracy on a rare problem and catch nothing; our guide to accuracy, precision and recall works through that case.
The lesson: the more honest your class is, the more of the detector's flags will be false.
What the published evidence says
Two published sources make the same point from different directions:
- A paper by Liang, Yuksekgonul, Mao, Wu and Zou, first released in 2023 and published in the journal Patterns (preprint on arXiv), tested several publicly available detectors and found that they consistently misclassified writing by non-native English speakers as AI-generated, while identifying native speakers' writing accurately. That means the false positives in a real class may not fall evenly: they can land more often on pupils who write in English as an additional language.
- In 2023 one AI developer withdrew its own AI-writing classifier. Its announcement now says the tool is no longer available "due to its low rate of accuracy". When it launched, the developer reported that on its own test set the tool identified 26 percent of AI-written text and wrongly labeled human-written text as AI-written 9 percent of the time, and that it was "very unreliable on short texts".
The same paper suggests why: detectors may penalize writers who use a more limited range of words and phrases. That describes a lot of children's writing too, and the developer above said its tool was least reliable on short texts. A detector that does well on adult essays has not been shown to do well on a ten-year-old's paragraph.
A score is never proof
- A score is a guess, not evidence. It says the text resembles what the detector learned to call AI-written. It does not show that the pupil used AI.
- It cannot be checked. A pupil cannot prove a negative against a number nobody can explain.
- It should never be the only evidence. If a score is used at all, treat it as a reason to look more closely and talk to the pupil, never as a finding.
- Follow your school's policy. Many schools have rules on how academic honesty concerns are raised and handled. Use them.
Fairer ways to check learning
- Drafts and version history. Ask pupils to keep plans, notes and drafts, or to work in a document that records its edit history. Real writing grows in steps.
- A conversation about the work. Ask the pupil to explain an argument, define a word they used, or say what they would change. Someone who wrote the piece can usually talk about it.
- Some writing in class. Short pieces written in the room give you a sample of each pupil's own voice.
- Assignment design. Tasks tied to a class discussion, a local trip, a personal reflection or a process the pupil must show are harder to hand off and more interesting to do.
- Clear rules on every task. Say exactly what AI use is allowed on each assignment, and ask pupils to note when and how they used it. Our guide to using AI honestly at school is written for pupils to read.
When you use any AI tool yourself, school data protection rules still apply: do not paste pupils' names, grades or work into a tool the school has not approved.
The short version
An AI detector is a classifier, so it makes false positives. Because most pupils are honest, a large share of its flags can be wrong even when its accuracy looks high: in the first made-up example, one flag in three; in the second, about three in four. Use clear rules, drafts and conversations to check learning, and never treat a detector's score as proof.