back to the overview

No Bodies in the Basement! How a Pathologist is Looking to the Future with AI-Assisted Gastrointestinal Diagnoses

Medicine today is undergoing a huge transformation. Digitalization is changing both research and treatment, and developments in artificial intelligence (AI) are accelerating the pace. AI shows great promise in medicine, but also raises questions regarding data quality, data security, and the consumption of resources. Dr. Niklas Prenißl is involved in shaping developments within pathology. Thanks to funding that enabled him to take leave from his clinical duties, first as a Junior Digital Clinician Scientist and later as Digital Clinician Scientist, Prenißl has been able to establish his own research area in digital image analysis and machine learning/artificial intelligence. As part of an interdisciplinary team of researchers from Charité – Universitätsmedizin Berlin, the Technische Universität Berlin (TU), and Ludwig-Maximilians-Universität München (LMU), Prenißl has been working on developing software which should one day play a crucial role in analyzing the c. 14,000 gastrointestinal samples processed at Charité every year.

How do people react when you tell them that you are a pathologist? And what preconceptions do you encounter even among fellow doctors?

Most laypeople picture scenes from US-American films and TV shows. In the USA, forensic medicine falls under pathology, whereas in Germany they are separate specialisms. As a result, many people imagine that we perform autopsies all day as part of forensic investigations. But that is not the case. In short interactions I often don’t mention working in pathology at all. I try to avoid confusion by saying that I work in tissue and cancer diagnosis. But when there is more time to talk, I like to explain what we actually do: we examine tissue under the microscope and make diagnoses. Many people have no idea that this is not an automated process where you just insert a sample into some kind machine which then generates a diagnosis. Doctors are making the diagnoses behind the scenes!

Even among fellow doctors there are two particularly persistent clichés. One is that we work in the basement. I don’t personally know any pathology departments which are really located there. The other assumption is that pathologists work isolated and alone. In reality, we work closely with one another, as well as with the clinicians who send us the samples to analyze. We are always phoning and communicating with each other, just as in other fields of medicine. Spending time alone looking down the microscope is just one part of the job.

Niklas Prenißl

Funding program
BIH Charité Clinician Scientists

Year awarded
2025

Specialism
Pathology

Project
AutoPathGI – Developing and validating a clinical AI tool to partially automate diagnoses based on GI biopsies 

Institution
Charité – Universitätsmedizin Berlin

 

2022 – 2024
BIH Charité Junior Digital Clinician Scientist 

2021
PhD awarded, Christian-Albrechts-Universität zu Kiel

2020
Qualified as Doctor of Human Medicine, Christian-Albrechts-Universität zu Kiel 

What happens to biopsies taken from a gastroscopy or colonoscopy at one of the Charité clinics? What journey do they go on until a diagnosis is made and where do you and the Institute of Pathology come into play?

Samples definitely spend the majority of their time in the laboratory. Biopsies arrive in a small container. A layer of paraffin is then poured over to create a solid block from which we can cut very thin sections of tissue. A technical medical assistant then treats these sections with a dye. Hematoxylin and eosin stain – H&E stain for short – is used as standard. It adds color to cell and tissue structures so that any pathological changes can be easily identified. In the case of gastroscopies, other stains – such as a Giemsa stain – are generally added too. These are especially good at showing the presence of bacteria like Helicobacter pylori which causes gastritis. Doctors are only involved from the very beginning in the case of larger samples such as surgically removed tumors. In that case, the doctor will examine the tissue with their naked eye and decide which parts should be examined under the microscope.

Once the sections have been stained, they are sent over to us doctors in pathology. We also receive a dispatch note with the patient’s name, date of birth, and clinical information. Then we begin working at the microscope. Especially in the case of gastric biopsies, most investigations are pretty routine: the tissue is either normal or else it shows signs of inflammatory changes. We then make our diagnosis and describe the findings. More complicated cases may require additional stains. Immunohistochemical stains, for example, can dye certain proteins found in tumor cells. They also come into play when identifying Helicobacter if we are still unsure. Once we have made our diagnosis, the findings are made visible in the hospital information system. It is up to the clinicians to decide whether to include them in the medical report, and they are also the ones who discuss the diagnosis with the patient.

You completed your medical studies in Kiel. How did you end up in Berlin at Charité?

I enjoyed my time in Kiel. But I ultimately wanted to move back to a bigger city. I completed my tertial in internal medicine in Berlin as part of my practical year (PJ in German) and felt so comfortable in both the institute and the city that I applied to work at Charité after my studies, and luckily it worked out!

When did you know that you wanted to specialize in pathology, and how did AI become one of your focuses?

Like many people, pathology was not on my radar for a long time. When you study medicine, you are trained to work directly with people, and it was only during my final year, the PJ, that I really heard about other, less traditional specialisms. After my studies, I did an internship in pathology in Hanover, just to gain some insight. I found it really exciting and so that answered the question of what I wanted to specialize in!

Focusing on AI was a pretty natural step for me because we work a lot with image recognition in pathology. When I began, it was already fairly clear that AI had a lot of potential – and that was before the big boom. At school I was also interested in computers and even considered studying computer science. This was another reason to go into pathology: it is a good place for me to combine my interests.

Perfect! That leads me to my next question. What was the idea behind the AutoPathGI software which you are working on as a Digital Clinician Scientist? Could you tell us how it came about?

Of course. In pathology, we have a real problem that we want to solve: the workload is very high and is only set to increase. Cases of cancer are rising and – in this age of precision medicine – clinicians want more and more information about each tumor. This is exactly as it should be, but it means that we need to decide and report on ever more biomarkers which are relevant for diagnosis and prognosis. At the same time, we are already facing shortages of pathologists and lab personnel and there are no signs that the situation will improve. We want to continue diagnosing at our current quality level, despite having fewer specialists and a rising workload.

Implementing AI is one potential solution which has been much discussed and which I view as promising. We want to try and cover the most common diseases first, focusing on the most common samples, namely gastrointestinal biopsies. Making a diagnosis in these cases is generally not particularly difficult because they involve relatively clear characteristics. The ten most common, non-cancerous findings account for 90% of gastrointestinal cases. This makes it realistic for an AI model to do well at analyzing the images that it is presented with and to automate at least some diagnoses.

Where do you encounter difficulties?

Difficulties arise when diagnosing rare diseases. We deal with a handful of very common diseases compared to a great number of rare ones. There is usually not enough training data for the more unusual diseases and the strong imbalance in terms of frequency also makes training more difficult. For a long time, this slowed the development of AI systems in our field: it was always possible that something in the tissue section might be too complicated for the AI to deal with, and in the worst-case scenario, it could make a false yet very confident prediction.

In my previous funding period as a BIH Charité Junior Clinician Scientist, I focused on precisely this problem. As part of a team, I developed an anomaly detection tool which allows less common diseases in gastrointestinal biopsies to be identified with relative certainty. The trick is not to feed the AI countless examples of rare diseases, but rather to teach it how to recognize the most common changes. Any deviation is then marked as an anomaly. This method works really well and we have been able to publish it as the first significant application of its kind in pathology.

Where does the AI get its data from and how can you be sure that it is suitable?

The tissue sections come from the Institute of Pathology at LMU Munich and the archives of our institute here in Berlin. New or existing scans of them are then used to train the AI. It is not just about quantity. It is not enough just to collect as many sections of gastrointestinal biopsies as possible. What matters is the distribution of the diseases which the model should be able to differentiate between. Even with more common diseases, there can be a stark variation in how many examples we have of different manifestations. For example, high-grade inflammation is diagnosed less often than low-grade inflammation. This means that the model has encountered fewer examples and – if in doubt – may choose the lower category. That is not always the right call, of course, and so the dataset needs to be as balanced as possible. That’s why I have been revisiting the archive over the last few years to seek out examples of changes which are underrepresented in the dataset. 

In the best-case scenario, how should AutoPathGI work in the future? And to what extent does the project already go beyond anomaly detection?

I think we have already cleared the most difficult hurdle with anomaly detection, and now we are developing a piece of clinical software to integrate this detection into everyday work. The program should work with two models. The first is a classification model which recognizes and diagnoses common diseases on the basis of stomach biopsies. Then, since it may make errors when it comes to rarer diseases, it will be complemented with a second model, the anomaly detection model, which can recognize all the changes which are too much for the classification model to deal with and which ensures greater accuracy.

If this works, then it will definitely be possible to automate some diagnoses based on gastrointestinal biopsies. The exact proportion is something which we want to find out with our research. The numbers from our first publication suggest that the diagnosis of around 30 to 40% of all stomach biopsies could be automated. We imagine that this number will increase in the future, not least because the foundation models upon which our AI models are built are continually improving. Then we would be in a position to leave the majority of workload – the most common and more simple cases – to the AI, leaving pathologists with more time for the more complex and demanding cases.

Who else is involved in the project? And how did you come together as a team?

That’s a great question, as obviously I didn’t do all this by myself. Prof. Frederick Klauschen played a key role, even though he moved to Munich – where he is now Head of the Institute of Pathology – two months before I began at Charité. I was disappointed at first but decided to write to him anyway since some of his working group was still based here. And I’m so glad I did!

Prof. Klauschen had been working closely with Prof. Klaus-Robert Müller from TU Berlin, and they came up with the initial idea for AutoPathGI together: Prof. Klauschen brought the medical side and Prof. Müller the technical. When I got on board, the project was lacking someone who could really drive it forward. Prof. Klauschen connected me with Prof. Müller’s Machine Learning working group and several PhD researchers at the TU. Together we formed a small team and the project was able to gather pace across all these institutes. 

At the beginning of our collaboration, I largely focused on building the dataset and doing the annotations. You need to mark certain parts of the tissue sections in order to train the AI models. Jonas Dippel took on the technical side. Back then he was working on his PhD at the TU. He also co-authored our publication on anomaly detection. I learned so much over the course of the project and became increasingly involved in the technical side too. This was important to me right from the start – I wanted to be able to have an overview of the entire project and to mentor others in the future.

What are you working on right now, and what are the biggest challenges you face when it comes to implementing this tool?

We are currently working towards two distinct goals. On the one hand, we want to improve anomaly detection in order to increase the number of cases which can be automated. On the other, we are working on classifying the most common changes, and this is no easy task. In the case of stomach biopsies, you need to take around six reliable diagnoses and map them onto the relevant part of the stomach because the samples come from different parts of the organ. We expect to reach a good position on this within the next few months.

Then comes the clinical validation. We want to apply our software as part of routine diagnostics and see how it performs on new data, i.e. the samples that come in every day, unfiltered and not preselected. This is a significant and particularly exciting step because AI models often perform far better with clean, pre-existing datasets where we already know the answers. The question of how they perform in real clinical settings is something I’ll definitely be focusing on over the next few years.

What happens beyond that depends on various factors, and not just technical ones. The best possible outcome would be that one day the diagnosis of at least some cases could be automated, while pathologists take care of the rest. In that case, the software would need to be certified as a medical product. This is a very long and involved process with regulatory uncertainties, and expensive too. If we were to go down this path, we would need to join forces with a commercial enterprise. There is no similar software in my field. Our program would be the first of its kind in pathology! In radiology, some chest x-rays are already subject to automated diagnosis. It is only somewhat comparable to our work because it is much less complex from a technical point of view, but still shows that regulatory approval is possible. Our other option would be to use the software as diagnostic support to begin with: the AI would suggest a diagnosis and indicate the most relevant locations on the sample, but the results would always be reviewed and approved by a pathologist. Either way, the program will provide valuable diagnostic support.

How would patients benefit from AutoPathGI when it is implemented in the future?

I believe that AutoPathGI has the potential to improve diagnostics, including when identifying the most frequent pathological changes. It can stop something from being overlooked in the high caseloads of everyday clinical work. Pathologists do not always have the time to magnify every single cell. But AI does. It looks at every single image section. That’s why I believe that our software – and others like it which are currently under development – will lead to much more precise diagnoses. And those who will benefit first and foremost are the people whose samples we are examining.

Thank you for the interview and all the best with the project!

 

Dr. Nina Schmidt
October/November 2026