# Bayesian-Optimized Convolutional Neural Networks for Classifying Primary Tumor Origin of Brain Metastases from MRI

**Authors:** Jawed Nawabi, Semil Eminovic, Alexander Hartenstein, Georg Lukas Baumgaertner, Nils Schnurbusch, Madhuri Rudolph, David Wasilewski, Julia Onken, Eberhard Siebert, Edzard Wiener, Georg Bohner, Andrea Dell’Orco, Mike P. Wattjes, Bernd Hamm, Uli Fehrenbach, Tobias Penzkofer

PMC · DOI: 10.3390/brainsci15050450 · Brain Sciences · 2025-04-25

## TL;DR

This study shows that a machine learning model can better classify the origin of brain metastases from MRI scans compared to expert radiologists.

## Contribution

A Bayesian-optimized CNN was developed to classify primary tumor origins from brain metastases in MRI scans, outperforming human experts.

## Key findings

- The CNN achieved higher AUC values than radiologists for melanoma and breast cancer classification.
- Masking MRI images improved CNN performance by focusing on relevant regions.
- Bayesian optimization helped identify the best CNN architecture and imaging sequences.

## Abstract

Background/Objectives: This study evaluates whether convolutional neural networks (CNNs) can be trained to determine the primary tumor origin from MRI images alone in patients with metastatic brain lesions. Methods: This retrospective, monocentric study involved the segmentation of 1175 brain lesions from MRI scans of 436 patients with histologically confirmed primary tumor origins. The four most common tumor types—lung adenocarcinoma, small cell lung cancer, breast cancer, and melanoma—were selected, and a class-balanced dataset was created through under-sampling. This resulted in 276 training datasets and 88 hold-out test datasets. Bayesian optimization was employed to determine the optimal CNN architecture, the most relevant imaging sequences, and whether the masking of images was necessary. We compared the performance of the CNN with that of two expert radiologists specializing in neuro-oncological imaging. Results: The best-performing CNN from the Bayesian optimization process used masked images across all available MRI sequences. It achieved Area-Under-the-Curve (AUC) values of 0.75 for melanoma, 0.65 for small cell lung cancer, 0.64 for breast cancer, and 0.57 for lung adenocarcinoma. Masked images likely improved performance by focusing the CNN on relevant regions and reducing noise from surrounding tissues. In comparison, Radiologist 1 achieved AUCs of 0.55, 0.52, 0.45, and 0.51, and Radiologist 2 achieved AUCs of 0.68, 0.55, 0.64, and 0.43 for the same tumor types, respectively. The CNN consistently showed higher accuracy, particularly for melanoma and breast cancer. Conclusions: Bayesian optimization enabled the creation of a CNN that outperformed expert radiologists in classifying the primary tumor origin of brain metastases from MRI.

## Linked entities

- **Diseases:** melanoma (MONDO:0005105), small cell lung cancer (MONDO:0008433), breast cancer (MONDO:0004989), lung adenocarcinoma (MONDO:0005061)

## Full-text entities

- **Diseases:** lung adenocarcinoma (MESH:D000077192), Metastases (MESH:D009362), brain lesions (MESH:D001927), melanoma (MESH:D008545), Tumor (MESH:D009369), breast cancer (MESH:D001943), small cell lung cancer (MESH:D055752)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12110443/full.md

## Figures

6 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12110443/full.md

## References

56 references — full list in the complete paper: https://tomesphere.com/paper/PMC12110443/full.md

---
Source: https://tomesphere.com/paper/PMC12110443