Introducing cosine similarity into the loss function: application to 3D vertebra segmentation

Segmentation of medical images is essential for diagnostics and treatment planning, with vertebra segmentation playing a crucial role in evaluating spinal diseases and vertebral fractures. Precise segmentation in three-dimensional (3D) computed tomography (CT) images of the spine enables a better assessment of spine conditions, which is important for planning surgical interventions, guiding surgical procedures, and for follow-up evaluation. Modern segmentation frameworks are based on deep learning, where loss functions are an important element that influences their convergence. In this study, we propose a novel loss function, i.e. the cosine similarity cross-entropy loss function, that is based on the recently introduced cosine similarity, and apply it for 3D vertebra segmentation. We evaluate the performance of the proposed loss function on a convolutional- and a transformer-based network, both individually trained and tested on the publicly available VerSe2020 dataset, containing 312 CT spine images, and on an in-house dataset based on the publicly available CTSpine1K dataset, containing 1,218 CT spine images. The results show that the cosine similarity cross-entropy loss function outperforms the conventional Dice cross-entropy loss function by an average of 3.4%pt (percentage points) in terms of the Dice similarity coefficient and an average of 2.60mm in terms of the 95th percentile Hausdorff distance between the ground truth and predicted vertebra segmentations.

Authors

Institutions

Publication Details

Published
2025-02-15
DOI
https://doi.org/10.1117/12.3047157
Citations
1
Primary Topic
Medical Imaging and Analysis
Type
article
Field-Weighted Citation Impact
0.67
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Introducing cosine similarity into the loss function: application to 3D vertebra segmentation

Luka Škrlj, Tomaž Vrtovec
1 citations
Medical Imaging and Analysis
0.67
article

Introducing cosine similarity into the loss function: application to 3D vertebra segmentation

Luka Škrlj, Tomaž Vrtovec
article en
1 citations

Abstract

Segmentation of medical images is essential for diagnostics and treatment planning, with vertebra segmentation playing a crucial role in evaluating spinal diseases and vertebral fractures. Precise segmentation in three-dimensional (3D) computed tomography (CT) images of the spine enables a better assessment of spine conditions, which is important for planning surgical interventions, guiding surgical procedures, and for follow-up evaluation. Modern segmentation frameworks are based on deep learning, where loss functions are an important element that influences their convergence. In this study, we propose a novel loss function, i.e. the cosine similarity cross-entropy loss function, that is based on the recently introduced cosine similarity, and apply it for 3D vertebra segmentation. We evaluate the performance of the proposed loss function on a convolutional- and a transformer-based network, both individually trained and tested on the publicly available VerSe2020 dataset, containing 312 CT spine images, and on an in-house dataset based on the publicly available CTSpine1K dataset, containing 1,218 CT spine images. The results show that the cosine similarity cross-entropy loss function outperforms the conventional Dice cross-entropy loss function by an average of 3.4%pt (percentage points) in terms of the Dice similarity coefficient and an average of 2.60mm in terms of the 95th percentile Hausdorff distance between the ground truth and predicted vertebra segmentations.

University of Ljubljana (SI)
Reduced inequalities
Openalex Percentile: Top 35%
Medical Imaging and Analysis
0.67
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.