Skip to Content

From a Bold Idea to Brussels: Building an AI Tool for Early Cancer Detection

HOFITECH s.r.o. developed an AI-based prototype for early cancer detection from urine samples using GC-IMS chromatography and a feed-forward neural network. Despite limited cancer training data and an unconventional 20/80 training-test split, the system achieved 88% cancer detection accuracy, 98% healthy classification accuracy, and 94% overall test success across 85 samples. The project demonstrated proof of concept and defined clear next steps toward expanded validation and improved explainability.
SME / Company HOFITECH s.r.o.
Service Provider Univerzita Komenskeho V Bratislave (UK BA)
Disease / Clinical Domain Oncology
Product / Solution AI-based diagnostic prototype that analyzes GC-IMS chromatograms of urine samples using a feed-forward neural network to classify samples as cancer or healthy and output a probability score visualized in a simple green/red interface.
Validation Needs Robustness Expansion of cancer sample dataset Validation across broader patient populations Identification of metabolic compounds contributing to model decisions Improved explainability of AI predictions

The Challenge

The SME required validation of an AI-based cancer detection prototype developed under conditions of limited labeled cancer data. Due to the imbalance between healthy and cancer samples, an unconventional 20% training and 80% testing split was used.

The project required careful model training, validation, and interpretation to ensure reliable classification performance despite the small training dataset.

Key needs included strengthening neural network robustness, improving handling of real-world sample variability, expanding cancer data availability, and enhancing model explainability to move toward broader validation and clinical relevance.

The Story

In 2022, we asked a bold question: Could artificial intelligence help detect cancer from a simple urine sample? At first glance, the idea sounds futuristic—yet the biology behind it is straightforward. Cancer cells do not behave like healthy cells: they alter metabolic pathways, consume energy differently, and produce chemical by-products that can leave detectable traces in bodily fluids, including urine.

By the end of 2025, this idea had evolved into a functional AI-based diagnostic prototype, presented in Brussels. The algorithm was developed at HOFITECH s.r.o., in corporation with Comenius University in Bratislava, the Jessenius Faculty of Medicine in Martin (UKBA) and Novo s.r.o., under the AI development leadership of Ing. Viktor Vaňo and CEO RNDr. Gabriel Horváth, PhD., MBA.

Cancer cells can produce metabolic compounds that differ from those of healthy cells. Some of these compounds—especially volatile and semi-volatile ones—can be detected in urine. To capture these chemical signatures, we used GC-IMS chromatography (Gas Chromatography–Ion Mobility Spectrometry), a sensitive method that separates molecules in two stages and produces a two-dimensional chromatogram—a chemical “fingerprint” of each sample.
A feed-forward neural network was designed to process these patterns and output a probability score. For usability, the result can be visualized in a simple way: green for likely healthy and red for likely cancer (see Figure 1). The goal was a clear signal for non-specialists, backed by rigorous data processing in the background.

The hardest part of building medical AI is often not coding—it is collecting high-quality labeled data. In our case, cancer samples were far fewer than healthy samples. On top of that, real-world collection introduces variables such as time between collection and measurement, freezing and transport conditions, and natural biological differences between patients. All of these can influence the chromatogram.

Standard neural network practice uses an 80/20 split (80% training, 20% testing). Due to the scarcity of cancer samples, we used the opposite: 20% for training and 80% for testing. This is unusual—and it forced us to be very careful about how we train, validate, and interpret performance.

The Data Challenge
We faced limited cancer samples compared to healthy ones. Instead of the standard 80/20 training split, we used 20% for training and 80% for testing due to data scarcity.
To make learning effective with a small training set, we introduced an adaptive approach we called the “Equity Training Strategy.” In simple terms, the model spends more learning effort on the samples it finds difficult.

Using only 10 healthy and 10 cancer samples for training, we achieved 88% cancer detection accuracy (29/33), 98% healthy classification accuracy (51/52), and approximately 94% overall test success across 85 samples. For a pilot project under unconventional training constraints, this was a strong proof of concept.

We introduced an adaptive training approach where difficult samples received more learning iterations than easy ones. This ensured fair attention to complex cases despite the small training dataset.

These results were presented in Brussels in October 2025, where the project drew interest from other presenters and attendees. The discussion highlighted a key point: combining analytical chemistry with AI can make complex measurements more accessible—and potentially useful—in real diagnostic workflows.

This was a pilot project with a successful outcome, and it defines a clear roadmap for the next phase. Next steps include expanding the dataset (especially cancer cases), improving robustness against sample-handling variability, and strengthening validation across broader patient populations.

In parallel, we plan to move from “pattern detection” toward deeper chemical understanding—working to identify which compounds or compound families contribute most to the model’s decisions. We also aim to improve explainability so clinicians and lab teams can understand why the model flags a sample, not only what it predicts. Next steps include expanding the dataset, improving neural network robustness, identifying key metabolic compounds, and enhancing explainability of the model.

“Combining analytical chemistry with adaptive AI learning allowed us to validate our concept despite limited data. This pilot project defines a clear path toward broader validation and clinical relevance.” — RNDr. Gabriel Horváth, PhD., MBA, CEO, HOFITECH s.r.o.

HOFITECH s.r.o.

Services Used

Healthcare Problems Addressed

  • Cost effective diagnostic tools
Evalyze Pilot for Procurement Process Optimization
Validating AI-Driven Automation for Public Health Procurement at ULS Coimbra