arXiv:2610.08574cs.CVOct 2026

Manuscript Offprint

arXiv:2610.08574

FedDermaSeg: Federated Learning for Dermatological Image Segmentation

Anabik Pal, Ganesh Patidar, Bikash Santra

Anabik Pal 1^{1}, Ganesh Patidar 2^{2}, and Bikash Santra 3^{3}

1^{1} Department of Computer Science, Indian Institute of Science Education and Research Berhampur, India

2^{2} Department of Mathematics, Indian Institute of Technology Jodhpur, India

3^{3} School of Artificial Intelligence and Data Science, Indian Institute of Technology Jodhpur, India

Corresponding author: anabikpal@iiserbpr.ac.in

Abstract. Skin cancer is a global health concern. Early detection of skin cancer lesions and treatment planning are important for reducing premature deaths. To deal with the dermatologists' limitations, automated systems are highly demanding for examining skin conditions. Lesion segmentation is one of the prerequisites for developing any computerised system. The commonly used deep segmentation networks are trained in a centralized manner, i.e. images, and their annotated segmentation masks are gathered in a centralized server, and the training is performed. This centralized training loses data privacy, which is an important concern for the medical domain. Moreover, a huge computation has to be conducted on a single server. Hence, the feasibility of applying federated learning is experimented with and analysed for skin segmentation model development. The train and valid set of the ISIC 2018 skin lesion segmentation challenge dataset is used to simulate the distributed learning environment and build a federated model. The test set of the ISIC 2018 skin lesion segmentation challenge dataset and PH2PH^{2} dataset are used for performance evaluation. As per experimental results, the federated model produces comparable performance with the centralized training and improves the local models.

Keywords: Dermatology · Image Segmentation · Federated Learning · Deep Learning · TransUNet.

1 Introduction

Skin cancer is a major threat to our society. The early detection can reduce premature death. The development of an automated system is required to reduce the experts' workload and enhance medicare for early detection of such skin conditions. Automated skin image segmentation algorithm development is an important pre-requisite for such automated systems [14][14]. Although several classical image processing techniques are proposed [1][1], their performance is limited and prone to misclassification of the image pixels. In contrast, the application of the latest deep learning-based approaches will be a better choice as they have proven to be efficient in many image analysis applications [8][8]. Broadly, the segmentation

A. Pal et al.

network can be built with deep convolutional neural network (DCNN) based encoder-decoder-like architecture [13] or transformer-based architecture [3]. In deep networks of the first kind, the encoder obtains the low-dimensional feature representation of the input images, and the decoder finds the semantic maps of the pixels using the low-dimensional feature representation. On the other hand, transformer-based approaches find low-dimensional image representation with attention mechanisms, and by combining the feature representation with object queries, the object regions are obtained. Note that the DCNN-based architectures fail to capture the global context of an image during feature learning [16], and the transformer networks are not capturing local interactions in the feature maps [15]. Hence, several segmentation architectures are designed that hybridize the potential of both CNN and transformer networks [4] and applied in skin lesion segmentation purposes [6, 7].

The key source of high performance in the above-mentioned approaches lies in the use of a huge volume of data samples during training. Getting a good volume of curated and annotated dataset(s) from a single clinic or hospital is often challenging. The easiest solution is to use a single repository and gather data prepared by all collaborated sources. However, this may violate data privacy and clinical ethics. Hence, federated learning is used as an effective alternative to train a robust model in collaboration with multiple sources without violating data privacy. In spite of data privacy control, federated learning distributes the computation among the collaborated parties (sources) and makes the computation de-centralized [17]. In general setting, federated learning is performed with the help of a parameter server. First, the parameter server creates a deep model and initializes the weight matrices. Then the model is sent to the collaborated clients for weight update based on their locally available dataset. Then, the updated models are transferred to the server for aggregation, which produces a global collaborative model. This process continues until the model converges. The model aggregation is performed with the FedAvg algorithm, which uses a weighted average of the weight matrices [9].

This paper develops a deep segmentation model with federated learning with FedAvg algorithm [9] in the cross-silo setting, systematically evaluating skin lesions' performance and analyzing its performance trade-offs. Equal weights are given to the clients during model aggregation in the server. As we are interested in analysing the algorithmic effectiveness of the proposed approach, we create a synthetic environment to create the clients and the parameter server. ISIC 2018 skin lesion segmentation challenge training dataset [5] is used for training the federated segmentation model. After training, the performance of the federated model is analysed with ISIC 2018 skin lesion segmentation challenge test dataset and PH2PH^{2} dataset [10]. Literature shows that some works are available to develop deep skin image classification models [2] with federated learning. However, as per our survey, limited work attempts to develop a federated segmentation model for skin lesion segmentation. In contrast to that, this work employs a federated learning algorithm for building a skin lesion segmentation model, analyzes the

Figure

Fig. 1. The flow diagram of training segmentation network with federated learning. OrgiOrg_{i} refers to ithi^{th} client; W_OrgiW\_Org_{i} refers to local weight update in ithi^{th} client during a communication round; W_FedW\_Fed refers to global model after local model aggregation.

performance of commonly used deep segmentation networks and analyzes the performance of commonly used segmentation loss functions.

The rest part of the paper is organized as follows: Section 2 discusses the proposed methodology; Section 3 presents the experimental setup; the experimental analysis is kept at Section 4; and finally, Section 5 concludes the paper.