AI Matches Pathologists in Celiac Diagnosis: Study

University of Cambridge

A machine learning algorithm developed by Cambridge scientists was able to correctly identify in 97 cases out of 100 whether or not an individual had coeliac disease based on their biopsy, new research has shown.

The AI tool, which has been trained on almost 3,400 scanned biopsies from four NHS hospitals, could speed up diagnosis of the condition and take pressure off stretched healthcare resources, as well as improving diagnosis in developing nations, where shortages of pathologists are severe.

Digital tools that can speed up or even automate analysis of diagnostic tests are beginning to show real promise for reducing the demands on pathologists. A large amount of this work has focused on the detection of cancer, but researchers are beginning to look at opportunities to diagnose other types of disease.

One condition being looked at by scientists at the University of Cambridge is coeliac disease, an autoimmune disease trigged by consuming gluten. It causes symptoms that include stomach cramps, diarrhoea, skin rashes, weight loss, fatigue and anaemia. Because symptoms vary so much between individuals, patients often have difficulty in receiving an accurate diagnosis.

The gold standard for diagnosing coeliac disease is via a biopsy of the duodenum (part of the small intestine). Pathologists will then analyse the sample under a microscope or on a computer to look for damage to the villi, tiny hair-like projections that line the inside of the small intestine.

Interpreting biopsies, which often have subtle changes, can be subjective. Pathologists use a classification system known as the Marsh-Oberhuber scale to judge the severity of a case, ranging from zero (the villi are normal and the patient is unlikely to have the disease) to four (the villi are completely flattened).

In research published today in the New England Journal of Medicine AI, Cambridge researchers developed a machine learning algorithm to classify biopsy image data. The algorithm was trained and tested on a large-scale, diverse dataset consisting of over 4,000 images obtained from five different hospitals using five different scanners from four different companies.

Senior author Professor Elizabeth Soilleux from the Department of Pathology and Churchill College, University of Cambridge, said: "Coeliac disease affects as many as one in 100 people and can cause serious illness, but getting a diagnosis is not straightforward. It can take many years to receive an accurate diagnosis, and at a time of intense pressures on healthcare systems, these delays are likely to continue. AI has the potential to speed up this process, allowing patients to receive a diagnosis faster, while at the same time taking pressure off NHS waiting lists."

The team tested their algorithm on an independent data set of almost 650 images from a previously unseen source. Based on comparisons with the original pathologists' diagnoses, the researchers showed that the model was correct in its diagnosis in more than 97 cases out of 100.

The model had a sensitivity of over 95% - meaning that it correctly identified more than 95 cases out of 100 individuals who had coeliac disease. It also had a specificity of almost 98% - meaning that it correctly identified in nearly 98 cases out of 100 individuals who did not have coeliac disease.

Previous research by the team has shown that even pathologists can disagree on diagnoses. When shown a series of 100 slides and asked to diagnose whether a patient had coeliac disease, did not have the disease, or whether the diagnosis was indeterminate, the team showed that there was disagreement in more than one in five cases.

This time round, the researchers asked four pathologists to review 30 slides and found that a pathologist was as likely to agree with the AI model as they were with a second pathologist.

Dr Florian Jaeckle, also from the Department of Pathology, and a Research Fellow at Hughes Hall, Cambridge, said: "This is the first time AI has been shown to diagnose as accurately as an experienced pathologist whether an individual has coeliac or not. Because we trained it on data sets generated under a number of different conditions, we know that it should be able to work in a wide range of settings, where biopsies are processed and imaged differently.

"This is an important step towards speeding up diagnoses and freeing up pathologists' time to focus on more complex or urgent cases. Our next step is to test the algorithm in a much larger clinical sample, putting us in a position to share this device with the regulator, bringing us nearer to this tool being used in the NHS."

The researchers have been working with patient groups, including through Coeliac UK, to share their approach and discuss with them their receptiveness to technology such as this being used.

"When we speak to patients, they are generally very receptive to the use of AI for diagnosing coeliac disease," added Dr Jaeckle. "This no doubt partly reflects their experiences of the difficulties and delays in receiving a diagnosis.

"One issue that comes up frequently with both patients and clinicians is the issue of 'explainability' – being able to understand and explain how AI reaches its diagnosis. It's important for us as researchers and for regulators to bear this mind if we want to ensure there is public trust in applications of AI in medicine."

Professor Soilleux is a consultant haematopathologist at Cambridge University Hospitals NHS Foundation Trust. Together with Dr Jaeckle, she has set up a spinout company, Lyzeum Ltd, to commercialise the algorithm.

The research was funded by Coeliac UK, Innovate UK, the Cambridge Centre for Data-Driven Discovery and the National Institute for Health and Care Research.

Keira Shepherd, Research Officer at Coeliac UK, said: "During the diagnostic process, it's vital that patients keep gluten in their diet to ensure that the diagnosis is accurate. But this can cause uncomfortable symptoms. That's why it's really important that they are able to receive an accurate diagnosis as quickly as possible.

"This research demonstrates one potential way to speed up part of the diagnosis journey. At Coeliac UK, we're proud to have funded the early stages of this work, which initially focused on training a system to differentiate between healthy control biopsies and biopsies of patients with coeliac disease. We hope that one day this technology will be used to help patients receive a quick and accurate diagnosis."

"Anything that makes the system quicker must be a good thing" – Liz Cox, 80

Liz Cox, 80, had been having symptoms including anaemia and stomach pains for almost 30 years when a question from a friend – "Are you still losing weight?" – made her realise that she ought to seek help.

Born in Tottenham, North London, towards the end of the Second World War, Liz has moved around, spending part of her life in Singapore after getting married before settling down to live in Linton, just outside Cambridge. She had spent most of her life working in libraries and took up a "retirement job" working in Linton's community library.

Liz began with severe stomach pains in her 30s, after having her three children.

"My doctor carried out various tests, but coeliac disease wasn't very well known then, so I wasn't tested for that. I was quite tired, but I just carried on because you have to when you've got three children and a husband, don't you?"

Liz tried not to let her condition get in the way, making sure she found time for activities she enjoyed, such as skiing and dancing, and it wasn't until her late 50s, prompted by her friend's question, that she went back to the doctor.

This time, her GP in Linton did a blood test, which suggested advanced coeliac disease. A biopsy at Addenbrooke's Hospital confirmed this – but also found pre-cancerous cells.

"I used to see Dr Jeremy Woodward, my consultant, every year for an endoscopy. Wasn't I lucky!" she says. After about 10 years, she was given the all-clear for cancer and discharged.

Since her diagnosis, Liz has been on a strict, gluten-free diet, which had an effect almost immediately. She isn't tempted to have even the smallest amount of gluten now.

"Some people say, 'Have a little bit', but no, it's a strict diet, because you don't know what it's doing to your insides. It's just mind over matter, isn't it? You can't have it, end of story."

She joined a Coeliac UK support group in Bury St Edmunds, which helped her meet others like herself, share tips and find good places to eat that did gluten-free options. She was talked into becoming the Secretary, with her husband agreeing to become Membership Secretary – they have been doing this now for 20 years.

It was through this group that Liz met Professor Elizabeth Soilleux from the University of Cambridge.

"Elizabeth came to our meeting to talk about her research. It was quite fun because she showed us pictures of biopsies and said could we guess which were coeliac and which weren't? It wasn't easy."

Liz is impressed with the use of AI to diagnose coeliac disease. Her referral for an endoscopy and the subsequent diagnosis happened relatively quickly. Not everyone is as fortunate.

"You hear stories from other people, and they've waited a long time. They go back and forward to the doctor's often, with various odd symptoms, and perhaps the doctors don't always test them for that.

"Anything that makes the system quicker must be a good thing, because once you've been diagnosed and you know you can't have gluten, then you know what to do, and you feel so much better."

Reference

Jaeckle, F, Denholm, J & Schreiber, B. Machine Learning Achieves Pathologist-Level Coeliac Disease Diagnosis. NEJM AI; 27 March 2025; DOI: 10.1056/AIoa2400738

/Public Release. This material from the originating organization/author(s) might be of the point-in-time nature, and edited for clarity, style and length. Mirage.News does not take institutional positions or sides, and all views, positions, and conclusions expressed herein are solely those of the author(s).View in full here.