Mathematical Topology Models to Be Studied in a Postdoctoral Project to Improve AI Algorithms for Cancer Cell Detection

Author
University of Latvia Institute of Clinical and Preventive Medicine

July 8, 2025

research research public health

In his postdoctoral project "Effective Topological Invariants for Representation Discovery in Image Diagnostics", Jānis Lazovskis, a researcher at the Institute of Clinical and Preventive Medicine (KPMI) of the University of Latvia, will use mathematical topology models to enhance the capabilities of artificial intelligence (AI) algorithms to detect gastric cancer and precancerous conditions.

trīs dimensiju topoloģiskas telpa.png
Image
Image:
  1. Division of a simple three-dimensional topological space (a tetrahedron) into lower-dimensional spaces. In topology, a branch of mathematics, the focus is on characterising and constructing spaces by combining smaller, simpler ones.
  2. Topological division (stratification) of a circle and a sphere in various ways. A circle can be described using open and closed intervals, as well as individual points between them. A sphere can be constructed from a circle by attaching two discs, one on each side.

 

ne of the projects at the University of Latvia’s Faculty of Medicine and Life Sciences, specifically at the Institute of Clinical and Preventive Medicine, that focuses on training and developing AI, is AIDA – an AI-based diagnostic assistant for detecting gastritis. It could potentially help identify gastric cancer and various precancerous conditions.
Data are being collected in the participating countries – Latvia, France, Spain, Lithuania, and Portugal – including tissue images with various precancerous or cancerous conditions, where expert pathologists have marked areas that show cancerous or precancerous cells.

These files are then analysed by AI, which "learns" by comparing images with and without tumours. Based on the processed information, a model is developed that the AI will subsequently use to recognise cancer cells. The more samples collected, the better the AI becomes. After more than a year of successful collaboration between KPMI and researchers at the Institute of Electronics and Computer Science (EDI), the AI can now recognise tumour-affected cells in a simple task with 92% accuracy.


Improving the results obtained by AI remains one of the major challenges for scientists worldwide, as there is still no single method to enhance the algorithm’s precision. Therefore, the postdoctoral project will develop a topology-based approach, building on knowledge gained during the development of AIDA models.

“The AI algorithm that analyses these images still has some shortcomings – when it receives an image, it tries to determine which areas are healthy and which are pathological. Sometimes it succeeds, sometimes it doesn’t. The possible flaws may be related to the fact that the algorithm analyses the image in separate parts that should be connected. Here, mathematical topology could be used to link different parts of the same image and perform computations to achieve more consistent results across all parts,” explains Jānis Lazovskis, a mathematician and researcher at KPMI.

Mathematical topology in data analysis could significantly enhance and improve AI approaches for recognising cancer cells, since topological data analysis allows a region or image to be described not only by classical features such as pixels, shape, or texture, but also by topological structures. These structures can be quantified and used as additional input for AI models. For example, while a standard AI model is trained using colour or texture filters, topological data analysis can supplement existing information with so-called topological “signatures” that characterise changes typical of cancer or precancerous conditions (atrophy, metaplasia). This would enable much more precise visualisation and analysis than classical statistics.


Since cancer and precancerous cells sometimes appear very similar, topological data analysis could reveal global shape features that existing calculations fail to capture – highlighting how structured or multicentric the cell nuclei are, and whether an atypical microenvironment has formed in the tissue.


“Mathematical topology is a powerful tool for analysing complex shapes and structures where traditional geometry or statistics lose accuracy. With its help, AI becomes more robust against data variability and more precise, especially in borderline cases,” emphasises Jānis Lazovskis.

A mathematician who cares about science communication, strengthening the new generation of scientists, and the sustainability of mathematics in Latvian. For more information about Ph.D. Jānis Lazovskis, watch the video story:

Recommended articles

natural sciences public health science

Meet the young scientist — Dagnija Tupiņa

Dagnija Tupiņa is a microbiologist and researcher at the National Research and Innovation Centre (NIRI)*, where she is carrying out the postdoctoral project “Structural Characterisation of the B. burgdorferi Flagellar Collar and Motor Proteins”. Dagnija’s work is related to the development of vacci…

Latvijas Jauno zinātnieku apvienība

July 14, 2026

research research international collaboration

BioPhoT teams strengthen ties with investors and accelerate the advancement of innovation

In mid-June, more than 20 innovation teams from the BioPhoT platform took part for the first time as a unified Latvian delegation in one of the world’s most important deep technology events — the Hello Tomorrow Global Summit in Amsterdam. Participation in the forum enabled Latvian researchers to st…

BioPhoT

July 10, 2026

public health medicine

Medicine of the future — an X-ray at the dentist could also warn about osteoporosis

In the future, an X-ray examination carried out at the dentist’s office could help not only to treat teeth, but also to provide timely warning of serious bone health risks throughout the body — including osteoporosis, Anda Slaidiņa, Leading Researcher at the Department of General Dentistry of Rīga …

lsm.lv

July 9, 2026

public health science innovation

The new artificial intelligence data server will help diagnose oncological diseases at an early stage

Early diagnosis of oncological diseases using the capacity of artificial intelligence and a supercomputer will now be possible in Latvia, as the new artificial intelligence data server of Riga Technical University (RTU) and the University of Latvia (UL), purchased with the support of Latvian comput…

Riga Technical University

July 7, 2026