Abstract
Background: Deep learning has shown considerable potential for breast ultrasound image classification, but privacy concerns limit centralized data sharing. Federated learning provides an alternative, although its performance depends strongly on the hyperparameter configuration, particularly when client data are heterogeneous. Objective: This study examines hyperparameter optimization of the standard FedAvg algorithm with the Honey Badger Algorithm (HBA), using a client-aware search objective, the robust score, which combines the mean and the worst-client validation accuracy. Methods: The models were evaluated on the public BUSI dataset using a pretrained ResNet50 model and two non-IID clients. FedAvg with HBA-tuned hyperparameters was compared over ten runs with centralized, client-based, FedAvg, and MOON models, and with an ablation in which the search used only the mean client accuracy. Results: The model tuned with the proposed robust score achieved the highest accuracy among the federated models (82.68%), compared with 79.11% for the FedAvg baseline, and was close to centralized learning (83.25%). With the Wilcoxon signed-rank test and Holm adjustment, no significant difference from centralized learning was detected. Differences from the client-based models and MOON were significant, whereas those from the FedAvg baseline and the ablation model were not. The ablation showed that most of the gain came from tuning the hyperparameters. Conclusions: HBA-based hyperparameter optimization brought FedAvg close to centralized learning on heterogeneous breast ultrasound data, while the raw images remained at the clients. These findings highlight the value of systematic hyperparameter optimization in federated learning for medical image classification.
1. Introduction
Artificial intelligence has advanced considerably in recent years, supported by models that can learn from large amounts of data and by improvements in training methods. Hoffmann et al. [1] put numbers on the balance between the two: a 70-billion-parameter model trained on roughly four times the usual volume of text outperformed a model four times its size at the same compute budget. The leading systems of the day, on this reading, were not too small—they were undertrained. The same shift of emphasis, from raw capacity to how training is organized, shows up in what these systems are now asked to do. Applications that once centered on analysis and prediction now extend to recovering structure from noisy data, generating new content, and serving as instruments in scientific work itself [2]. Guo et al. [3] push the point furthest, training a model through reinforcement learning until it works through problems step by step, with no worked examples to imitate. For anyone applying these methods, the open question has moved accordingly. It is seldom whether a model can learn a task. It is how to train and evaluate one when the data come from separate sources that were never collected under the same conditions.
Deep learning has become increasingly important in healthcare technologies because it can uncover disease-related clues in different types of health data. The classification of malignant and benign findings in breast MRI is one example of this progress [4]. Detecting structural heart disease from ECG recordings [5] and estimating diabetes risk from patients’ medical histories [6] show how these methods can also be applied to other forms of clinical data. Progress in medical imaging is particularly striking: models that identify the location and boundaries of lesions [7] provide a stronger basis for recognizing subtle visual patterns and classifying disease.
Deep learning models need large and diverse datasets to perform reliably across different patient groups. In healthcare, however, data are held by different institutions, and bringing patient records together in one place raises privacy and data-sharing concerns [8]. As datasets grow, transferring, storing, and processing images from multiple centers also demand more resources, making a centralized approach harder to scale [9]. Researchers therefore face two connected challenges: gaining access to enough data and using those data securely at scale.
Privacy concerns and the difficulty of moving large healthcare datasets between institutions have made federated learning (FL) a valuable approach to collaboration [10]. Each hospital trains a model using its own data, while a shared model is developed by combining model updates rather than exchanging patient records or images [11]. This allows institutions to learn from data held at different sites without transferring entire datasets. A system used to develop decision support models across eight medical institutions shows that this form of collaboration can also work in healthcare practice [12].
Achieving a successful global model in federated learning depends not only on how well individual clients train their local models but also on how these local updates are combined at the server. Particularly in non-independent and identically distributed (non-IID) settings, where data distributions vary across clients, an unsuitable aggregation strategy may over- or underrepresent the contribution of certain clients and consequently reduce the performance of the global model [13,14]. In addition, hyperparameters such as the learning rate, number of local epochs, batch size, and server-side optimization settings can substantially influence the convergence behavior and final performance of federated learning. Therefore, considering the aggregation strategy and hyperparameter optimization together is important for obtaining more stable and effective global models, especially in heterogeneous federated environments [15].
The performance of deep learning models is highly sensitive to the selection of hyperparameters such as the learning rate, number of layers and neurons, dropout rate, and batch size. However, the large and complex search spaces created by these parameters can make conventional trial-and-error or grid-search approaches computationally expensive. Metaheuristic algorithms provide an effective alternative for hyperparameter optimization because they can explore different regions of the search space without requiring gradient information [16]. By maintaining a balance between exploration and exploitation and systematically evaluating different parameter combinations, these methods can help identify configurations that improve the performance of deep learning models [17].
In this study, local, centralized, and federated learning approaches were compared using a publicly available breast cancer dataset. In the federated model, the client models were aggregated with standard FedAvg, and hyperparameters were optimized using the Honey Badger Algorithm (HBA) [18] with a robust score that takes the worst-performing client into account. This optimization aimed to obtain a global model that performs well for both clients.
Evaluating the models on the same dataset allows their classification performance to be compared directly. Further experiments examined the effect of the proposed robust hyperparameter optimization on performance and model stability. An ablation in which the same search is run without the robust term was also included to separate the effect of the robust score from that of hyperparameter tuning itself. The study contributes a hyperparameter optimization method with a robust score for federated learning in breast cancer classification and evaluates it through comparative experiments.
The remainder of this paper is organized as follows. Section 2 reviews studies on federated learning and image-based diagnosis. Section 3 describes the dataset, the federated learning algorithms used, the Honey Badger Algorithm, and the proposed robust hyperparameter optimization. Section 4 compares the results of different learning approaches, examines how the settings of the federated learning algorithms affect performance, and discusses the findings, along with the strengths and limitations of the proposed approach. Finally, Section 5 summarizes the main conclusions.
2. Related Work
The use of federated learning in healthcare has continued to grow because it enables institutions to develop collaborative models without directly exchanging sensitive patient data. Some studies employ horizontal federated learning, which is suitable when institutions hold data from different patients with comparable feature spaces. Li et al. [19] developed a privacy-preserving horizontal federated learning and domain adaptation approach for classifying autism spectrum disorder using fMRI data distributed across multiple sites. Similarly, Peng et al. [20] evaluated different horizontal federated learning methods for COVID-19 diagnosis using chest radiographs collected from 42 hospitals in the United States and Europe. Vertical federated learning, in contrast, addresses settings in which different feature groups belonging to the same or overlapping patients are held by separate institutions. Yan et al. [21] proposed a cross-modal vertical federated learning model for MRI reconstruction using different imaging modalities stored across hospitals. Shajimon et al. [22] combined different features held by patients, physicians, ECG centers, and laboratories through vertical federated learning to predict cardiovascular disease risk. Together, these studies show that the choice of federated learning architecture depends largely on how patients and their features are distributed across participating institutions.
Deep learning has become one of the principal approaches in medical imaging because of its ability to learn complex disease-related patterns directly from data, particularly in tasks such as image classification, lesion detection, and anatomical structure segmentation [23]. Particularly when the availability of labeled medical images is limited, models pretrained on large-scale datasets allow previously learned visual features to be transferred to a new problem, supporting the development of successful classification models with less data [24,25]. The ability of deep learning models to automatically extract discriminative features from medical images has also contributed to their widespread use in federated learning systems. For example, Roth et al. [26] developed a deep learning model for breast density classification from mammography images within a federated framework involving seven healthcare institutions. Lu et al. [27] combined weakly supervised deep learning with federated learning to analyze gigapixel histopathology images distributed across different institutions without sharing the original data. Based on the reviewed literature, Table 1 summarizes the studies conducted on federated learning for medical image analysis and the methods employed in these studies.
Table 1.
Federated learning-based studies on medical image analysis (2020–2026).
Achieving high performance in deep learning does not depend solely on selecting a powerful architecture. Hyperparameters such as the learning rate, optimizer, batch size, dropout rate, number of epochs, and fine-tuned layers directly influence how well a model learns and generalizes. Their selection becomes particularly important for pretrained models, as the knowledge obtained from general image datasets must be adapted to the target problem. Kormpos et al. [39] used grid search to determine the optimizer and learning rate settings of VGG16, InceptionV3, and NASNet models for breast ultrasound image classification. Abu et al. [40] employed Bayesian optimization to select the hyperparameters and fine-tuning layers of VGG-16, ResNet-50, MobileNetV2, and DenseNet-121. Although grid search provides a transparent comparison of predefined combinations, its computational cost increases rapidly as the search space expands. Bayesian optimization reduces this burden by prioritizing promising configurations, whereas metaheuristic algorithms offer additional flexibility for large search spaces containing both continuous and discrete variables. Qolomany et al. [41] used Particle Swarm Optimization (PSO) to determine the number of hidden layers and neurons more efficiently than grid search. Bamaqa et al. [42] optimized a pretrained VGG19 model using the Sparrow Search Algorithm and improved its performance in monkeypox classification from skin-lesion images.
Hyperparameter optimization becomes more challenging in federated learning because each candidate configuration must be evaluated across clients with different data distributions and over multiple communication rounds. Metaheuristic algorithms have therefore been employed not only to tune local neural network hyperparameters but also to manage model selection, aggregation, and communication costs. Qolomany et al. [43] applied PSO to optimize the number of hidden layers, neurons, and epochs in local LSTM models, reaching suitable configurations with fewer communication rounds. Połap and Woźniak [44] used the Red Fox Optimization Algorithm to manage neural network training and select models for aggregation. In FedPSO, Park et al. [45] employed PSO to combine updates from CNN-based local models while reducing communication between clients and the server. Similarly, Abasi et al. [46] introduced FedGWO, in which the Grey Wolf Optimizer was incorporated into the federated aggregation process to improve communication efficiency under unstable network conditions. Collectively, these studies show that metaheuristic optimization can support different stages of federated learning, from local model design to global aggregation, and contribute to a more efficient, adaptive, and robust global model.
3. Materials and Methods
3.1. Workflow and Architecture of the Proposed Framework
Figure 1 presents the overall workflow of the proposed framework. The process begins with data collection and preprocessing, followed by HBA-based hyperparameter optimization. The optimized deep learning model is then evaluated under centralized, client-based, and federated learning settings. Finally, the effects of different experimental settings are examined, and the models are compared using classification and statistical performance measures.
Figure 1.
Workflow of the proposed framework.
The experiments were conducted using the publicly available BUSI (Breast Ultrasound Images) dataset obtained from Kaggle. The original dataset was collected in 2018 from 600 female patients between 25 and 75 years of age and contains 780 ultrasound images with an average resolution of approximately 500 × 500 pixels [47]. The images are provided in PNG format and are grouped into three diagnostic classes. Of the 780 images, 437 are labeled as benign, 210 as malignant, and 133 as normal. This distribution also introduces a degree of class imbalance, as benign images represent more than half of the dataset. The dataset also includes segmentation masks for the images. Since this study deals only with classification, the mask files were left out, and only the ultrasound images were used.
Before model training, the image data were normalized, and the categorical class labels were numerically encoded. The entire dataset was then divided into training and test sets using an 80:20 ratio, resulting in 623 images for training and 157 images for testing. The test set contains 88 benign, 42 malignant, and 27 normal images, which preserves the class proportions of the full dataset. A portion of the training set was further separated as validation data for hyperparameter optimization. The test set was kept completely separate from both model training and hyperparameter selection so that the final results would reflect the generalization ability of the models on previously unseen images.
For the federated experiments, the 623 training images were divided between two clients. The images of each class were assigned to the clients at random according to proportions that were fixed beforehand. This gave two clients of almost the same size but with clearly different class compositions. Client 1 received 311 images (227 benign, 50 malignant, and 34 normal), and Client 2 received 312 images (122 benign, 118 malignant, and 72 normal). As a result, about 73% of the images held by Client 1 are benign, whereas Client 2 has a more even mix and holds roughly 70% of all malignant and normal training images. This difference in class composition is what makes the client data non-IID in this study. For hyperparameter optimization, about 20% of the images of each client were set aside for validation. At this stage, Client 1 used 248 images for training (181 benign, 40 malignant, and 27 normal) and 63 for validation (46 benign, 10 malignant, and 7 normal), while Client 2 used 248 images for training (97 benign, 94 malignant, and 57 normal) and 64 for validation (25 benign, 24 malignant, and 15 normal). No image file was shared between the two clients. The centralized model was trained on the data of both clients combined, and all models, whether centralized, client-based, or federated, were evaluated on the same 157 test images. The division into training and test sets and the assignment of the images to the two clients were made once and kept the same in all experiments, so the ten runs of each model used exactly the same images and differed only in the random seed. The public BUSI dataset does not provide patient identifiers. Since the 780 images come from 600 patients, some patients have more than one image, but these images cannot be linked to each other. All splits were therefore made at the image level, and the number of patients in each subset cannot be reported.
The Honey Badger Algorithm was used to determine the most suitable configuration of the deep learning classifier. Six hyperparameters were included in the optimization process: the learning rates of the two training stages, the two dropout rates, and the numbers of units in the two dense layers. Each candidate configuration generated by HBA was evaluated using the validation data, and the configuration with the best validation performance was selected. In this way, the model architecture was determined through a systematic search rather than manual trial and error. The resulting configuration was then used in the subsequent learning experiments to provide a consistent basis for comparison.
The optimized model was evaluated under three main learning paradigms. In the centralized setting, the available training images were brought together and used to train a single model. In the client-based setting, Client 1 and Client 2 trained their models independently using only their local data. These local models were not allowed to exchange data or model parameters. In the federated setting, the clients trained the same deep learning architecture locally while sharing only their learned model parameters with the central server. Raw ultrasound images remained on the clients throughout this process. Four federated learning approaches were considered: the baseline FedAvg algorithm, MOON, the proposed Robust FedAvg-HBA approach, and FedAvg-HBA (mean objective), an ablation in which HBA tunes the hyperparameters without the robust term. The proposed approach keeps the standard FedAvg aggregation and seeks a more robust global model through the model configuration that HBA selects with a robust score. The name Robust FedAvg-HBA refers to this score, which combines the mean and worst-client validation accuracies in the search.
What the server can and cannot see in this setting needs to be stated explicitly. In every communication round, the server receives the complete set of model parameters from each client, together with the number of training images held by that client, which is needed for the weighted averaging. During the hyperparameter search, each candidate model is validated on each client’s own validation images, and only the resulting validation accuracy of each client is passed on to compute the robust score. The server therefore does not receive ultrasound images, labels, or predictions for individual images. The test set is not client data; it was separated before the images were distributed to the clients and is used centrally for evaluation only. The privacy benefit of the framework is limited to this point: the raw data stay where they were collected. No formal privacy guarantee is provided, because model updates can still reveal information about the training data [48], and neither secure aggregation nor differential privacy was implemented. In addition, with only two clients, the server sees the update of each client individually, and each client could in principle infer the update of the other client from the aggregated model.
The experimental analysis also examined how the federated models were affected by the number of communication rounds. Changing the communication rounds made it possible to observe the convergence behavior of the models. Model performance was evaluated using accuracy, micro- and macro-averaged measures, F1-score, AUC, and the sensitivity for the malignant class. In addition, the Wilcoxon signed-rank test was used to compare the proposed Robust FedAvg-HBA approach with the centralized and client-based models. The results were subsequently interpreted in terms of classification performance, robustness, convergence, and generalization ability.
3.2. ResNet50-Based Neural Network Architecture
The breast ultrasound classifier was developed using transfer learning with ResNet50, initialized with ImageNet weights. The original classification layer was removed, and the convolutional backbone was used as a feature extractor for the benign, malignant, and normal classes. ResNet50 uses shortcut connections that add the input of a residual block to its learned transformation [49]. This basic operation is expressed as:
Images were resized to 224 × 224 pixels and processed in RGB format. Input normalization followed standard ResNet50 preprocessing, in which the channels are converted from RGB to BGR and the ImageNet channel means are subtracted without further scaling. During training, random horizontal flipping, rotation (0.05), zoom (0.10), and contrast adjustment (0.10) were applied to reduce overfitting. The ResNet50 output was summarized by global average pooling and then passed through batch normalization. The baseline classification head contained two dense layers with 256 and 128 ReLU-activated units. These layers were followed by dropout with rates of 0.30 and 0.20, respectively. A three-unit softmax layer produced the class probabilities.
Training was carried out in two stages. First, the complete ResNet50 backbone was frozen, and only the classification head was trained for 30 epochs using a batch size of 16 and an Adam learning rate of 1 × 10−4. During fine-tuning, the backbone was made trainable while its first 140 layers remained frozen. The remaining layers were trained for a further 20 epochs with a lower learning rate of 1 × 10−5. The batch normalization layers of the ResNet50 backbone were kept in inference mode in both stages, so their running means and variances stayed at the ImageNet values; during fine-tuning, only the scale and shift parameters of the unfrozen layers were updated. The batch normalization layer in the classification head was trained in the usual way and updated its own running statistics. Sparse categorical cross-entropy was used because the three target classes were represented by integer labels:
These values define the baseline model used in the comparative experiments. In the proposed approach, the dense-layer sizes, dropout rates, and learning rates were subsequently optimized with the Honey Badger Algorithm, while the remaining training structure was kept consistent to support a fair comparison.
3.3. FedAvg Algorithm
Federated Averaging (FedAvg) is the fundamental aggregation algorithm used to train a shared model across multiple clients without transferring their raw data to a central server [10]. At the beginning of each communication round, the server sends the current global model to the participating clients. Each client trains this model on its local dataset for several steps and returns only the updated model parameters. A local update for client k can be expressed as:
Here, w denotes the model parameters, t is the communication round, e is the local training step, η is the learning rate, and F_k is the local objective function of client k. After local training, the server calculates a sample-size-weighted average of the client models:
In this equation, K is the number of participating clients, n_k is the number of training samples held by client k, and n is the total number of samples across the participating clients. Consequently, clients with more observations make a proportionally larger contribution to the global model. The updated global parameters are redistributed in the next communication round, and the procedure continues until the selected number of rounds is completed [48]. In our implementation, all model weights were averaged in this way, including the scale and shift parameters and the running statistics of the batch normalization layers.
3.4. MOON Algorithm
Model-Contrastive Federated Learning (MOON) was proposed to reduce local model drift caused by non-IID data in federated learning [50]. MOON preserves the general client-training and server-aggregation workflow of FedAvg but modifies the objective used during local training. For the same input image x, the current local model produces z, the global model produces z_glob, and the client’s model from the previous communication round produces z_prev. The model-contrastive loss encourages the current local representation to remain close to the global representation while moving away from the previous local representation.
Here, S(·,·) denotes cosine similarity, and τ is the temperature parameter that controls the sensitivity of the contrastive distribution. The complete local objective combines the supervised classification loss with the model-contrastive term as follows:
In this expression, ℓ_sup is the standard supervised classification loss, and μ determines the contribution of the contrastive regularization term. After local optimization, the server combines the client models using the same sample-size-weighted aggregation rule employed by FedAvg. Therefore, the principal difference between MOON and FedAvg lies in the local training objective rather than in the server-side aggregation procedure. While FedAvg trains each client only with supervised loss, MOON additionally aligns local representations with the global model, helping to limit client drift under heterogeneous data distributions. This benefit requires retaining the previous local model and performing additional forward passes during training. When μ is set to zero, the MOON objective reduces to the standard FedAvg local objective. In this study, the temperature was set to τ = 0.5, and the weight of the contrastive term to μ = 1. The representation z was taken from a 256-dimensional projection head placed before the output layer.
3.5. Honey Badger Algorithm
The Honey Badger Algorithm (HBA) is a population-based, nature-inspired metaheuristic proposed by Hashim et al. [18]. It was developed as a gradient-free method for solving continuous optimization problems. In HBA, each honey badger represents a candidate solution, while the best solution found during the search is treated as the location of the prey or food source.
The algorithm is inspired by two food-searching behaviors of the honey badger. In the digging mode, the animal uses the smell of prey, moves around its estimated location, and then digs to reach it. In the honey mode, it follows a honeyguide bird toward a beehive. HBA translates these behaviors into exploration and exploitation mechanisms. At each iteration, the candidate solutions are evaluated, the best position is updated, and one of the two search modes is selected. A decreasing density factor gradually reduces random movement, allowing the search to move from broad exploration toward local refinement.
Digging phase
The digging update combines the best solution, prey intensity, distance information, and a cardioid-shaped movement around the prey. This form supports a wider search and helps the population examine different regions around the current best solution. The honey mode uses a simpler position update:
Honey phase
Here, xnew is the new candidate position, xprey is the best solution found so far, and di = xprey − xi is the distance between the ith solution and the prey. Ii denotes smell intensity, α is the time-varying density factor, and β represents the honey badger’s ability to obtain food. The random variables r3, r4, r5, and r7 are generated between 0 and 1, while F takes the value −1 or 1 to change the search direction. A new position is retained when it improves the objective value, and the process continues until the stopping criterion is met.
3.6. HBA-Based Hyperparameter Optimization
HBA was used to determine the training and classifier-head hyperparameters of the ResNet50-based model. Because the centralized model, Client 1, and Client 2 share the same architecture, a common six-dimensional search space was used. The population contained five candidate solutions, and the search was conducted for 20 iterations. The food-searching coefficient β and density-factor coefficient C were set to 6.0 and 2.0, respectively. Including the initial population, the procedure generated at most 105 candidate evaluation requests.
Each candidate specifies two learning rates, two dropout ratios, and the number of neurons in two dense layers. Candidate configurations were evaluated on a fixed stratified validation subset containing 20% of the corresponding training data, with the random seed set to 42. The model was trained for 10 epochs with the ImageNet-pretrained ResNet50 backbone frozen and for another 10 epochs by fine-tuning the layers after layer 140. HBA minimized one minus validation accuracy; therefore, a lower fitness value indicated a better configuration.
The search ranges and variable types used for the six optimized hyperparameters are presented in Table 2. The learning rates were searched for in base-10 logarithmic space, whereas dropout ratios were treated as continuous variables and dense-layer sizes were treated as integer variables.
Table 2.
Hyperparameters and search ranges.
The implementation retains the standard HBA structure proposed by Hashim et al. [18], including uniform initialization, inverse-square intensity calculation, the decreasing density factor, random selection between digging and honey modes, and greedy acceptance. For neural network optimization, the learning rates were encoded in logarithmic space, the dense-layer sizes were rounded to the nearest integer, and every updated solution was clipped to its predefined bounds before evaluation.
The random coefficients in the update equations were sampled independently for each search dimension, and a constant of 10−12 was added to the intensity denominator to avoid division by zero. Previously evaluated configurations were retrieved from a cache, while the optimization state was saved after each agent evaluation. Together with the fixed validation split and common random seed, these choices improved reproducibility and computational reliability without changing the exploration and exploitation principles of the original HBA.
3.7. Robust FedAvg-HBA Hyperparameter Optimization
The proposed Robust FedAvg-HBA framework was designed to select hyperparameters that remain effective across clients rather than favoring a configuration that achieves high average accuracy while performing poorly for one client. For this purpose, every HBA candidate was evaluated through a complete federated training cycle, and its quality was measured by a robust score that combines overall performance with worst-client performance. Thus, the HBA searches the hyperparameter space, whereas FedAvg supplies the validation-based objective value used to guide that search.
Let Ak denote the validation accuracy obtained by the global model on client k after the final federated round. The mean client accuracy and worst-client accuracy are defined as follows:
In the present two-client setting, the robust score assigns 80% weight to the mean accuracy and 20% weight to the lower of the two client accuracies. This formulation rewards high overall classification performance while penalizing solutions whose success is concentrated on only one client.
Because HBA is implemented as a minimization algorithm, the candidate fitness is defined as one minus the robust score; therefore, maximizing robustness is equivalent to minimizing f(x). The client accuracy gap, ΔA = maxk(Ak) − mink(Ak), is also recorded to monitor inter-client disparity, but it is not included as an additional term in the fitness function. Importantly, only the client accuracies from the seventh and final hyperparameter optimization (HPO) round are used to calculate candidate fitness.
Each candidate vector represents the Stage 1 and Stage 2 learning rates, two dropout ratios, and the numbers of neurons in the two dense layers. The same parameter boundaries used in the centralized HBA optimization were applied here; learning rates were searched for in logarithmic space, while dense-layer sizes were rounded to valid integer values. For each candidate, a ResNet50-based global model was initialized and trained with two clients using their fixed training and validation folders.
Candidate evaluation consisted of seven communication rounds. During the first three rounds, the pretrained backbone was frozen, and each client performed three local epochs using the Stage 1 learning rate. In rounds four to seven, fine-tuning was enabled from layer 140 onward, and each client performed two local epochs using the Stage 2 learning rate. At the beginning of every round, both clients received identical global weights. After local training, the server applied the sample-size-weighted FedAvg procedure described in Section 3.3.
The aggregated global model was evaluated separately on each client’s fixed validation set after every communication round. These round-level results were retained for analysis; however, only the two client accuracies obtained at the end of round seven were converted into the robust score and HBA fitness described above.
The search used a population of five honey badgers over 20 HBA iterations, with β = 6, C = 2, and a fixed seed of 42. Including the initial population assessment, the procedure allows up to 105 candidate-evaluation requests. HBA alternates between its digging and honey-guided update mechanisms, clips every new position to the permitted search boundaries, and greedily retains a candidate only when its fitness improves. Previously evaluated parameter combinations are retrieved from a cache, while checkpoints preserve the population, current best solution, and evaluation records so that an interrupted optimization can resume without discarding completed work. The overall procedure of the Robust FedAvg-HBA is shown in Algorithm 1.
| Algorithm 1. R obust FedAvg-HBA hyperparameter search |
| Input: client training and validation data; search bounds; HBA and federated settings Output: best hyperparameter configuration q* 1 Encode each candidate as x = [η1, η2, p1, p2, h1, h2]. 2 X ← INITIALIZE-POPULATION(L, U) 3 For each xi ∈ X: fi ← EVALUATE-CANDIDATE(xi) 4 x* ← arg mini fi 5 For each HBA iteration: α ← UPDATE-DENSITY-FACTOR() I ← COMPUTE-INTENSITIES(X, x*) For each agent xi: xcand ← HBA-UPDATE(xi, x*, α, Ii, digging-or-honey) xcand ← CLIP(xcand, L, U) fcand ← EVALUATE-CANDIDATE(xcand) If fcand ≤ fi: (xi, fi) ← (xcand, fcand) x* ← BEST-SOLUTION(X) SAVE-CHECKPOINT(X, x*, cache, records) 6 Return DECODE(x*) EVALUATE-CANDIDATE(x): a q ← DECODE(x); apply log-scale conversion and integer rounding. b If q is cached: return cached fitness. c θglobal ← INITIALIZE-RESNET50(q) d For each communication round: phase ← SELECT-TRAINING-PHASE(round) Broadcast θglobal to all clients. θlocal ← LOCAL-TRAIN(θglobal, q, phase) for each client. θglobal ← WEIGHTED-FEDAVG(θlocal, client sizes) A ← CLIENT-VALIDATION(θglobal) e Amean ← MEAN(A); Aworst ← MIN(A); ΔA ← MAX(A) − MIN(A) f Srobust ← wmean × Amean + wworst × Aworst; fitness ← 1 − Srobust g CACHE(q, fitness, Srobust, ΔA); return fitness. |
To find out how much of the improvement comes from the robust term, the same search was repeated with the worst-client term removed, that is, with the weights in Equation (11) set to 1.00 for the mean accuracy and 0.00 for the worst-client accuracy. In this case, the fitness depends only on the mean validation accuracy of the two clients. The search space, the HBA settings, the random seed, the budget of 105 candidate evaluations, and the seven-round candidate evaluation were kept unchanged, so the two searches differ only in the objective. The resulting model is referred to as FedAvg-HBA (mean objective) and serves as an ablation of the robust score. Because it is a FedAvg model tuned with the same budget, it also provides a tuned FedAvg reference next to the untuned baseline.
3.8. Final Training Schedule
The final results reported in Section 4.2 were obtained with a final training schedule that is longer than the one used during the hyperparameter search. In the search, each candidate was trained only briefly to keep the cost manageable: 10 frozen and 10 fine-tuning epochs for the centralized and client-based models and seven communication rounds for the federated model (three rounds with a frozen backbone and three local epochs, followed by four fine-tuning rounds with two local epochs). The candidates were trained on the training part of the data and compared on the validation part. For the final models, no separate validation subset was kept, so the centralized model was trained on all 623 training images and the client and federated models on all images of each client. The centralized and client-based models were trained for 30 epochs with the backbone frozen and for 20 further epochs of fine-tuning; the learning rate was halved whenever the training loss had not improved for five epochs, and the weights with the lowest training loss were kept in each stage. FedAvg, MOON, FedAvg-HBA (mean objective), and Robust FedAvg-HBA were all trained for ten communication rounds with the same schedule, in which the backbone was frozen for the first three rounds with five local epochs per round and fine-tuned in the remaining seven rounds with three local epochs per round. All models used the Adam optimizer and a batch size of 16. The baseline models used the default hyperparameters given in Section 3.2, whereas the HBA models used the values in Table 3. Every final model was trained ten times with different random seeds and evaluated on the test set, which played no part in training or hyperparameter selection. The hyperparameter search was not repeated for these runs. Each search was carried out once, and the selected configuration was used in all ten runs. The data splits and the hyperparameters were therefore the same in every run of a model, and only the random seed changed, which affects the initial weights of the newly added layers, the order of the training images, and the random augmentation. All results given as mean ± standard deviation were calculated over these ten runs. They show the variation between training runs and do not include the variation that repeating the search would add. All experiments were implemented in Python 3.13 (Python Software Foundation, Beaverton, OR, USA) with TensorFlow 2.21.0 and Keras 3.14.1 (Google LLC., Mountain View, CA, USA) and were run on a laptop with an Intel Core i7-8750H processor (Intel Corporation, Santa Clara, CA, USA; 2.20 GHz) and 16 GB of RAM.
Table 3.
HBA-optimized hyperparameters for different learning configurations.
4. Experimental Results and Discussion
4.1. Hyperparameter Optimization Results
The hyperparameters obtained using the Honey Badger Algorithm for the centralized, client-based, and federated learning configurations are presented in Table 3. HBA selected different model capacities and regularization levels for each learning setting, indicating that a single hyperparameter configuration may not be equally suitable for all data distributions. While the centralized and client-based models generally used a Stage 1 learning rate of 1.00 × 10−3, the Robust FedAvg-HBA model adopted a lower rate of 2.35 × 10−4. Client 1 required the largest first dense layer with 406 units, whereas the proposed federated model used 291 and 170 units in its two dense layers. It also employed higher dropout rates of 0.31 and 0.12, providing stronger regularization against overfitting during learning from heterogeneous client data. The search with the mean objective led to a similar configuration. FedAvg-HBA (mean objective) also selected a low Stage 1 learning rate (2.31 × 10−4) and comparably large dense layers (252 and 144 units), but a lower Stage 2 learning rate (3.97 × 10−5) and a different dropout pattern (0.16 and 0.23). This similarity is not surprising, because the two searches started from the same initial population and differed only in the objective.
As shown in Figure 2, HBA exhibited a stable convergence pattern in both learning configurations. In centralized learning, the best validation accuracy improved rapidly during the initial iterations, while the mean and worst population performance increased gradually. A similar pattern was observed for Robust FedAvg-HBA, where the robust score improved steadily before reaching a stable level. The narrowing gap between the best, mean, and worst solutions indicates that the population converged toward a consistent and promising hyperparameter region.
Figure 2.
Convergence behavior of HBA-based hyperparameter optimization for the centralized and Robust FedAvg-HBA models.
4.2. Performance Analysis of Learning Paradigms
The different learning paradigms considered in this study were compared using multiple evaluation metrics, and the obtained findings are presented in Table 4. Within the centralized learning setting, the HBA-based model achieved better results than the baseline model across all metrics. In particular, Centralized-HBA increased accuracy from 81.34 ± 1.00% to 83.25 ± 2.55% and the macro F1-score from 80.43 ± 1.31% to 82.30 ± 2.66%. Balanced accuracy also improved from 82.80 ± 0.93% to 83.32 ± 3.03%, while the AUC increased slightly from 94.43 ± 0.46% to 94.89 ± 1.02%. The consistent improvement across these measures indicates that HBA successfully identified a more suitable hyperparameter configuration for the classification model.
Client-based learning, however, resulted in noticeably weaker performance. Client1-HBA achieved an accuracy of 77.07 ± 2.31% and a macro F1-score of 75.18 ± 2.43%, whereas these values decreased to 73.25 ± 2.99% and 72.59 ± 2.69% for Client2-HBA. This decline suggests that the limited and potentially heterogeneous data available at individual clients reduced the models’ ability to learn generalizable patterns. Among the federated approaches, Robust FedAvg-HBA provided the strongest results, reaching an accuracy of 82.68 ± 1.92%, a balanced accuracy of 82.12 ± 2.03%, and a macro F1-score of 81.39 ± 1.88%. It outperformed both FedAvg-Baseline and MOON-Baseline and achieved the highest AUC value in the comparison, at 94.91 ± 0.86%. Moreover, its accuracy and macro F1-score remained only 0.57 and 0.91 percentage points below those of Centralized-HBA, respectively. These findings show that the proposed approach was the best-performing federated learning method and achieved a predictive performance close to that of centralized learning without requiring client data to be collected in a single location. The ablation model, FedAvg-HBA (mean objective), reached an accuracy of 81.34 ± 2.08% and a macro F1-score of 80.27 ± 1.48%. It was 2.23 percentage points more accurate than FedAvg-Baseline, and Robust FedAvg-HBA was a further 1.34 percentage points higher. Most of the gain over the baseline therefore comes from tuning the hyperparameters, whereas the additional gain from the robust term is smaller than the variation between runs and should be interpreted with caution.
Table 4 also gives sensitivity for the malignant class, that is, the share of malignant test images that were classified as malignant, as the mean and standard deviation over the ten runs. Client2-HBA and Centralized-HBA had the highest values (87.14 ± 2.6% and 83.57 ± 5.7%), whereas Client1-HBA, whose data contain few malignant images, had the lowest (65.71 ± 4.9%). Among the federated models, MOON-Baseline (82.62 ± 3.2%), FedAvg-HBA (mean objective) (80.71 ± 3.8%), and FedAvg-Baseline (80.00 ± 3.9%) were close to each other, while the sensitivity of Robust FedAvg-HBA was lower and more variable (77.14 ± 6.6%). The higher overall accuracy of Robust FedAvg-HBA therefore comes mainly from the benign and normal classes, and its sensitivity for malignant images needs to be improved.
Table 4.
Performance comparison of centralized, client-based, and federated learning models.
To provide a more reliable comparison between the learning approaches, the paired Wilcoxon signed-rank test was applied to the accuracy and macro F1-score values obtained from ten corresponding experimental runs. The results are presented in Table 5. A p-value below 0.05 indicates a statistically significant difference between two models, whereas a p-value above 0.05 means that there is not enough statistical evidence to conclude that their performances differ.
Table 5.
Pairwise Wilcoxon signed-rank test results comparing Robust FedAvg-HBA with the other models. Adjusted p-values were obtained with the Holm method over the fourteen comparisons.
For both accuracy and macro F1-score, Robust FedAvg-HBA did not show a significant difference from either Centralized-Baseline (p = 0.1035 and p = 0.3750) or Centralized-HBA (p = 0.7148 and p = 0.5566). This result does not show that the two approaches are equivalent. It only means that no significant difference was detected with ten runs. In contrast, significant differences were found between Robust FedAvg-HBA and Client1-HBA, Client2-HBA, FedAvg-Baseline, MOON-Baseline, and FedAvg-HBA (mean objective) for both metrics (unadjusted p < 0.05). Considering the higher average results reported in Table 4, these differences favor Robust FedAvg-HBA. Because fourteen comparisons were made, the p-values were also adjusted with the Holm method. After this adjustment, the differences from Client1-HBA, Client2-HBA, and MOON-Baseline remained significant for both metrics (adjusted p = 0.0273). For FedAvg-Baseline, no significant difference was detected after the adjustment (adjusted p = 0.0625 for accuracy and 0.1875 for macro F1-score). The comparison with FedAvg-HBA (mean objective) gave a similar picture. Robust FedAvg-HBA was not less accurate in any of the ten paired runs (W = 0), and the unadjusted p-values were below 0.05 for both metrics, but no significant difference was detected after the adjustment (adjusted p = 0.1875 for accuracy and 0.0957 for macro F1-score). The statistical analysis therefore supports the advantage of the proposed method over the client-based models and MOON-Baseline. No significant difference from the centralized approaches was detected, and the advantage over FedAvg-Baseline and FedAvg-HBA (mean objective) was not significant after the adjustment.
Figure 3 presents the confusion matrices obtained from the seed yielding the highest accuracy for each learning methodology. These matrices are examples from a single run of each model, and the results over all ten runs are given in Table 4. The client-based results clearly reflect the effect of heterogeneous local data distributions. Client1-HBA had difficulty recognizing the malignant class and misclassified 13 malignant images as benign, whereas Client2-HBA showed weaker performance for the benign class, classifying 17 benign images as malignant. As expected, the Centralized-HBA model provided a more balanced classification performance because it was trained using the complete dataset. Nevertheless, Robust FedAvg-HBA produced a very similar confusion pattern and made only two more incorrect predictions than the centralized model. In contrast, FedAvg-Baseline and MOON-Baseline produced more off-diagonal errors, particularly between the benign and malignant classes, indicating that these methods were more affected by the heterogeneous client distributions. FedAvg-HBA (mean objective) lay between these baselines and the proposed model, with 25 incorrect predictions compared with 30 for FedAvg-Baseline, 32 for MOON-Baseline, and 23 for Robust FedAvg-HBA. It recognized more benign images than Robust FedAvg-HBA (76 against 73) but fewer malignant ones (34 against 38), and it classified five malignant images as benign, whereas Robust FedAvg-HBA did so for two. Over the ten runs, however, the malignant sensitivity of Robust FedAvg-HBA was lower than that of FedAvg-HBA (mean objective) (Table 4), so a single run should not be read as evidence of consistent behavior. In these example runs, the class-level results of Robust FedAvg-HBA were close to those of the centralized model.
Figure 3.
Example confusion matrices of the evaluated models for the best-performing seed.
The ROC and precision–recall curves obtained from the seed achieving the highest accuracy are presented in Figure 4 and Figure 5, respectively. Like the confusion matrices, they are examples from single runs. The Centralized-HBA model achieved a micro-average ROC-AUC of 0.9591 and a PR-AUC of 0.9263. The proposed Robust FedAvg-HBA model produced very similar results, reaching 0.9558 ROC-AUC and 0.9258 PR-AUC despite the heterogeneous client distributions. It also showed balanced class-level performance, with PR-AUC values of 0.9667 and 0.9017 for benign and malignant cases, respectively. In contrast, Client 1 recorded the lowest overall performance, with micro-average ROC-AUC and PR-AUC values of 0.9183 and 0.8553. The FedAvg and MOON baselines also remained below the proposed approach, achieving PR-AUC values of 0.8977 and 0.8699, respectively. FedAvg-HBA (mean objective) reached a micro-average ROC-AUC of 0.9461, which is higher than that of FedAvg-Baseline (0.9398) and that of MOON-Baseline (0.9289) but lower than that of Robust FedAvg-HBA (0.9558). The difference was largest for the malignant class, where its ROC-AUC was 0.9253 compared with 0.9519 for Robust FedAvg-HBA. Its micro-average PR-AUC was 0.9092, again between the two baselines and Robust FedAvg-HBA (0.9258), with lower values than the proposed model for the malignant (0.8645 against 0.9017) and normal (0.8740 against 0.9148) classes. In these example runs, the curves of Robust FedAvg-HBA were close to those of the centralized model.
Figure 4.
Example ROC curves of the evaluated models for the best-performing seed.
Figure 5.
Example precision–recall curves of the evaluated models for the best-performing seed.
Table 6 gives the lowest accuracy and macro F1-score obtained by each model in the ten runs, that is, the result of its weakest run. Even in its weakest run, Robust FedAvg-HBA reached an accuracy of 79.62% and a macro F1-score of 78.78%. These are the highest worst-case values in the comparison, equal to that of Centralized-Baseline in accuracy and slightly above FedAvg-HBA (mean objective), which reached 78.34% and 78.66%. The weakest runs of FedAvg-Baseline and MOON-Baseline were lower (75.80% and 73.25% accuracy), and those of the client-based models dropped to 72.61% and 68.15%. The proposed model therefore kept its advantage over the other federated models in the least favorable run as well. These values describe the variation between runs and do not show the performance on individual clients.
Table 6.
Lowest accuracy and macro F1-score (%) obtained by each model across the ten runs.
4.3. Analysis of Experimental Settings
An experimental analysis was conducted to evaluate the robustness of the models by varying the number of communication rounds while keeping the number of local epochs fixed at three. The resulting accuracy and macro F1-score values are presented in Figure 6. At only three rounds, Robust FedAvg-HBA achieved 74% accuracy and a macro F1-score of 72%, while FedAvg and MOON remained below 70% in accuracy. Although all algorithms improved as the number of rounds increased, the proposed method maintained a clear advantage over FedAvg and MOON under the heterogeneous data distribution. At ten rounds, Robust FedAvg-HBA reached 84% accuracy and 83% macro F1-score, outperforming both MOON and FedAvg. Up to five rounds, FedAvg-HBA (mean objective) was equal to or somewhat above Robust FedAvg-HBA, but from seven rounds onward, Robust FedAvg-HBA was four percentage points more accurate (83% against 79% at seven rounds and 84% against 80% at ten rounds). The limited improvement after seven rounds also indicates that additional communication rounds in the final training stage bring only small gains.
Figure 6.
Effect of communication rounds on model performance with three local epochs.
The effect of local training intensity was also examined by fixing the number of communication rounds at three and varying the number of local epochs, as shown in Figure 7. Robust FedAvg-HBA achieved the highest or joint-highest accuracy and macro F1-score at every epoch setting except three epochs, where FedAvg-HBA (mean objective) was one percentage point higher. Its performance increased from 68% accuracy and 66% macro F1-score at two epochs to 81% and 80%, respectively, at ten epochs. FedAvg-HBA (mean objective) followed it closely, rising from 68% and 62% to 80% and 79%. Although FedAvg and MOON also benefited from additional local training, their performances showed greater fluctuations, particularly at higher epoch settings. These results indicate that the two HBA-tuned models are less sensitive to changes in the number of local epochs and provide more stable learning under heterogeneous data distributions.
Figure 7.
Effect of local epochs on model performance with three communication rounds.
4.4. Discussion and Study Limitations
The findings highlight the importance of federated learning when medical image data are distributed heterogeneously across different clients. The client-based models showed weaker and class-dependent performance because each client could learn only from its own limited data distribution. For example, Client 1 had difficulty identifying malignant images, whereas Client 2 produced more errors for the benign class. Although centralized learning naturally achieved strong performance by accessing the entire dataset, this approach may not be feasible when medical data cannot be transferred due to privacy and institutional restrictions. In contrast, Robust FedAvg-HBA achieved results close to those of centralized learning while keeping the images on local clients. This is a benefit of data locality rather than a formal privacy guarantee, since the model updates were exchanged without additional protection. Its advantage over the FedAvg and MOON baselines, which were run with default hyperparameters, shows how strongly the hyperparameter configuration affects federated training under heterogeneous conditions.
Hyperparameter optimization was another important component of the proposed framework because the amount, class distribution, and quality of data were not identical across clients. A single neural network configuration may therefore perform well for one client but remain unsuitable for another. The HBA results support this observation, as different learning rates, dropout rates, and dense-layer sizes were selected for the centralized, client-based, and federated configurations. In particular, the proposed federated model required a more strongly regularized architecture to reduce overfitting and improve generalization across heterogeneous client data. These findings suggest that the performance improvement came from adapting the model architecture and training parameters to the learning environment, since the aggregation rule was the same as in FedAvg.
The experimental analyses further showed that the proposed approach was not dependent on a single training configuration. Robust FedAvg-HBA achieved comparatively strong performance even when the number of communication rounds was limited and continued to improve as additional rounds were introduced. The improvement became smaller after the model approached convergence, indicating that competitive performance could be obtained without a large number of communication rounds in the final training stage. Similarly, when the number of rounds was fixed and the local epoch setting was varied, the proposed method remained more stable than FedAvg and MOON. This is practically important because increasing the number of communication rounds creates additional network costs, while excessive local training may increase overfitting and client drift under heterogeneous data distributions. These observations apply to the final training stage only; the cost of the hyperparameter search is considered separately below.
The cost of the HBA search has to be considered separately from that of final training. The search for the Robust FedAvg-HBA configuration was allowed up to 105 candidate evaluations, namely 5 initial candidates and 5 new candidates in each of the 20 iterations; repeated configurations were taken from the cache, so the number of trained candidates could not exceed this value. Every candidate was trained for seven communication rounds with 17 local epochs per client, which gives up to 735 communication rounds and 1785 local epochs per client for the whole search. In our implementation, the complete model is exchanged between the server and each client in both directions in every round. The selected model has about 24.2 million parameters, or roughly 97 MB in 32-bit precision, and the candidate models differ from this only slightly because of their dense-layer sizes. With two clients, each round involves four model transfers, so the search corresponds to as many as 2940 transfers, or about 285 GB of exchanged data. By comparison, a final training run consists of ten communication rounds with 36 local epochs per client and requires 40 transfers, or about 3.9 GB. The search is therefore roughly 70 times more demanding than a single final training run in terms of communication and about 50 times in terms of local training. All experiments were simulated on a single machine, so these values describe the communication that a real federated deployment would need, and wall-clock time is not reported.
Despite these promising findings, the study has several limitations. The experiments were conducted using a single public breast ultrasound dataset with a relatively limited and imbalanced class distribution, and the federated environment was simulated with a small number of clients. Therefore, the generalizability of the findings should be evaluated using additional medical image datasets, larger client populations, and different levels of data heterogeneity. The dataset is not large. With 623 training images, dividing it among more clients would have left each client with very few images, so only two clients and one level of heterogeneity were studied, and the robustness of the approach under other partitions was not tested. Both clients were also simulated from the same public dataset, and no external dataset was used, so the results cannot be taken as evidence of generalization across institutions. In addition, because patient identifiers are not available, the splits were made at the image level. Images of the same patient may appear in both the training and test sets, which may make the reported results somewhat optimistic. A difference-hash comparison of the image content flagged 11 of the 157 test images as possible near-duplicates of training images, although no pixel-identical images are shared between the two sets. These matches are based on image similarity alone and were not confirmed to show the same lesion. Because the same training and test images were used for all models, they are not expected to change the comparison between the models. In future work, we plan to repeat the experiments with more clients and different levels of heterogeneity and to use datasets that allow patient-level splitting and external validation. Future studies should also compare HBA with grid search, Bayesian optimization, and other metaheuristic algorithms to determine whether the observed improvements are specific to HBA. The FedAvg and MOON baselines were not tuned, so the comparison shows the effect of tuning rather than an advantage over tuned baselines. The weights of the robust score (0.80 and 0.20) were fixed in advance, and their influence was not examined. No client-specific test sets were held out, so the performance of the global model on the data of each client could not be evaluated, and the effect of the robust score on the weaker client remains unverified. Finally, the cost of the hyperparameter search should be reduced, for example, by evaluating fewer candidates, shortening candidate training, or exchanging only the trainable layers, and real-world multi-institutional deployment and additional privacy mechanisms such as differential privacy and secure aggregation should be examined in future research.
5. Conclusions
This study examined hyperparameter optimization in federated learning with the Honey Badger Algorithm for breast ultrasound image classification. The standard FedAvg aggregation was kept, and the hyperparameters were tuned with a client-aware search objective, the robust score, which combines the mean and worst-client validation accuracies. Centralized, client-based, FedAvg, MOON, and Robust FedAvg-HBA learning approaches were evaluated under a heterogeneous data distribution. Although centralized learning naturally produced strong classification results, the client-based models showed limited and class-dependent performance. Robust FedAvg-HBA achieved the best performance among the federated approaches and produced results close to those of centralized learning without requiring clients to share their raw medical images. The ablation with the mean objective showed that most of this gain comes from tuning the hyperparameters, while the additional gain from the client-aware objective was smaller.
The experimental analyses also showed that Robust FedAvg-HBA remained effective under different communication-round and local-epoch settings, indicating that its final training stage does not depend on a large number of rounds or local epochs. The hyperparameter search, however, is costly, since it required up to 735 communication rounds. These findings demonstrate the potential of metaheuristic hyperparameter optimization for FedAvg in federated medical image analysis. Future work will evaluate the approach with client-specific test sets, additional medical image datasets, larger client populations, and real multi-institutional environments. Future research may also compare HBA with alternative hyperparameter optimization methods and integrate mechanisms such as differential privacy and secure aggregation to provide stronger protection for model updates.
Author Contributions
E.Z.: literature review, data preprocessing, and implementation of the ResNet-based classification architecture. Ö.A.: methodology, design and implementation of the federated learning framework, and Honey Badger Algorithm-based hyperparameter optimization. F.H.S.: statistical significance analysis, workflow design, writing of the Introduction, and manuscript review and language editing. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The dataset used in this study is publicly available on Kaggle under the title Breast Ultrasound Images Dataset (BUSI) and can be accessed at https://www.kaggle.com/datasets/sabahesaraki/breast-ultrasound-images-dataset. (accessed on 15 June 2026)
Acknowledgments
During the preparation of this manuscript, the authors used Claude Opus 5.5 for English-language editing and for improving the figures and their fonts.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Hoffmann, J.; Borgeaud, S.; Mensch, A.; Buchatskaya, E.; Cai, T.; Rutherford, E.; Casas, D.D.L.; Hendricks, L.A.; Welbl, J.; Clark, A.; et al. An empirical analysis of compute-optimal large language model training. Adv. Neural Inf. Process. Syst. 2022, 35, 30016–30030. [Google Scholar] [CrossRef] [Scilit]
- Wang, H.; Fu, T.; Du, Y.; Gao, W.; Huang, K.; Liu, Z.; Chandak, P.; Liu, S.; Van Katwyk, P.; Deac, A.; et al. Scientific discovery in the age of artificial intelligence. Nature 2023, 620, 47–60. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Guo, D.; Yang, D.; Zhang, H.; Song, J.; Wang, P.; Zhu, Q.; Xu, R.; Zhang, R.; Ma, S.; Bi, X.; et al. DeepSeek-R1 incentivizes reasoning in LLMs through reinforcement learning. Nature 2025, 645, 633–638. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Güler, M.; Sart, G.; Algorabi, Ö.; Adıguzel Tuylu, A.N.; Türkan, Y.S. Breast cancer classification with various optimized deep learning methods. Diagnostics 2025, 15, 1751. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Poterucha, T.J.; Jing, L.; Ricart, R.P.; Adjei-Mosi, M.; Finer, J.; Hartzel, D.; Kelsey, C.; Long, A.; Rocha, D.; Ruhl, J.A.; et al. Detecting structural heart disease from electrocardiograms using AI. Nature 2025, 644, 221–230. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Shmatko, A.; Jung, A.W.; Gaurav, K.; Brunak, S.; Mortensen, L.H.; Birney, E.; Fitzgerald, T.; Gerstung, M. Learning the natural history of human disease with generative transformers. Nature 2025, 647, 248–256. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Ma, J.; He, Y.; Li, F.; Han, L.; You, C.; Wang, B. Segment anything in medical images. Nat. Commun. 2024, 15, 654. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Abbas, S.R.; Abbas, Z.; Zahir, A.; Lee, S.W. Federated learning in smart healthcare: A comprehensive review on privacy, security, and predictive analytics with IoT integration. Healthcare 2024, 12, 2587. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Noor, A.; Chaman, U.M.; Kabir, M.S. Federated learning in healthcare: A comprehensive survey on privacy, scalability and clinical applications. ICT Express 2026, 12, 825–839. [Google Scholar] [CrossRef] [Scilit]
- McMahan, B.; Moore, E.; Ramage, D.; Hampson, S.; Agüera y Arcas, B. Communication-efficient learning of deep networks from decentralized data. In Proceedings of the 20th International Conference on Artificial Intelligence and Statistics (AISTATS), Fort Lauderdale, FL, USA, 20–22 April 2017; Volume 54, pp. 1273–1282. [Google Scholar]
- Nguyen, D.C.; Pham, Q.-V.; Pathirana, P.N.; Ding, M.; Seneviratne, A.; Lin, Z.; Dobre, O.; Hwang, W.-J. Federated learning for smart healthcare: A survey. ACM Comput. Surv. 2022, 55, 1–37. [Google Scholar] [CrossRef] [Scilit]
- Liu, Z.; Chen, Y.; Zhao, Y.; Yu, H.; Liu, Y.; Bao, R.; Jiang, J.; Nie, Z.; Xu, Q.; Yang, Q. Contribution-aware federated learning for smart healthcare. Proc. AAAI Conf. Artif. Intell. 2022, 36, 12396–12404. [Google Scholar] [CrossRef] [Scilit]
- Guendouzi, B.S.; Ouchani, S.; EL Assaad, H.; EL Zaher, M. A systematic review of federated learning: Challenges, aggregation methods, and development tools. J. Netw. Comput. Appl. 2023, 220, 103714. [Google Scholar] [CrossRef] [Scilit]
- Qi, P.; Chiaro, D.; Guzzo, A.; Ianni, M.; Fortino, G.; Piccialli, F. Model aggregation techniques in federated learning: A comprehensive survey. Future Gener. Comput. Syst. 2024, 150, 272–293. [Google Scholar] [CrossRef] [Scilit]
- Chen, H.; Krompaß, D.; Gu, J.; Tresp, V. FedPop: Federated population-based hyperparameter tuning. Proc. AAAI Conf. Artif. Intell. 2025, 39, 15776–15784. [Google Scholar] [CrossRef] [Scilit]
- Kaveh, M.; Mesgari, M.S. Application of meta-heuristic algorithms for training neural networks and deep learning architectures: A comprehensive review. Neural Process. Lett. 2023, 55, 4519–4622. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Rajwar, K.; Deep, K.; Das, S. An exhaustive review of the metaheuristic algorithms for search and optimization: Taxonomy, applications, and open challenges. Artif. Intell. Rev. 2023, 56, 13187–13257. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Hashim, F.A.; Houssein, E.H.; Hussain, K.; Mabrouk, M.S.; Al-Atabany, W. Honey Badger Algorithm: New metaheuristic algorithm for solving optimization problems. Math. Comput. Simul. 2022, 192, 84–110. [Google Scholar] [CrossRef] [Scilit]
- Li, X.; Gu, Y.; Dvornek, N.; Staib, L.H.; Ventola, P.; Duncan, J.S. Multi-site fMRI analysis using privacy-preserving federated learning and domain adaptation: ABIDE results. Med. Image Anal. 2020, 65, 101765. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Peng, L.; Luo, G.; Walker, A.; Zaiman, Z.; Jones, E.K.; Gupta, H.; Kersten, K.; Burns, J.L.; A Harle, C.; Magoc, T.; et al. Evaluation of federated learning variations for COVID-19 diagnosis using chest radiographs from 42 US and European hospitals. J. Am. Med. Inform. Assoc. 2023, 30, 54–63. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Yan, Y.; Wang, H.; Huang, Y.; He, N.; Zhu, L.; Xu, Y.; Li, Y.; Zheng, Y. Cross-modal vertical federated learning for MRI reconstruction. IEEE J. Biomed. Health Inform. 2024, 28, 6384–6394. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Shajimon, S.; Shukla, R.M.; Patra, A.N. Precision at heart: An IoT-based vertical federated learning approach for heterogeneous data-driven cardiovascular disease risk prediction. Comput. Methods Programs Biomed. 2025, 273, 109079. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Litjens, G.; Kooi, T.; Bejnordi, B.E.; Setio, A.A.A.; Ciompi, F.; Ghafoorian, M.; van der Laak, J.A.W.M.; van Ginneken, B.; Sánchez, C.I. A survey on deep learning in medical image analysis. Med. Image Anal. 2017, 42, 60–88. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Azizi, S.; Mustafa, B.; Ryan, F.; Beaver, Z.; Freyberg, J.; Deaton, J.; Loh, A.; Karthikesalingam, A.; Kornblith, S.; Chen, T.; et al. Big self-supervised models advance medical image classification. In 2021 IEEE/CVF International Conference on Computer Vision (ICCV); IEEE: Piscataway, NJ, USA, 2021; pp. 3458–3468. [Google Scholar]
- Matsoukas, C.; Haslum, J.F.; Sorkhei, M.; Söderberg, M.; Smith, K. What makes transfer learning work for medical images: Feature reuse and other factors. In 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR); IEEE: Piscataway, NJ, USA, 2022; pp. 9225–9234. [Google Scholar]
- Roth, H.R.; Chang, K.; Singh, P.; Neumark, N.; Li, W.; Gupta, V.; Gupta, S.; Qu, L.; Ihsani, A.; Bizzo, B.C.; et al. Federated learning for breast density classification: A real-world implementation. In Domain Adaptation and Representation Transfer, and Distributed and Collaborative Learning (DART/DCL 2020); Springer: Cham, Switzerland, 2020; pp. 181–191. [Google Scholar]
- Lu, M.Y.; Chen, R.J.; Kong, D.; Lipkova, J.; Singh, R.; Williamson, D.F.K.; Chen, T.Y.; Mahmood, F. Federated learning for computational pathology on gigapixel whole slide images. Med. Image Anal. 2022, 76, 102298. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Yang, D.; Xu, Z.; Li, W.; Myronenko, A.; Roth, H.R.; Harmon, S.; Xu, S.; Turkbey, B.; Turkbey, E.; Wang, X.; et al. Federated semi-supervised learning for COVID region segmentation in chest CT using multi-national data from China, Italy, Japan. Med. Image Anal. 2021, 70, 101992. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Yan, R.; Qu, L.; Wei, Q.; Huang, S.-C.; Shen, L.; Rubin, D.L.; Xing, L.; Zhou, Y. Label-efficient self-supervised federated learning for tackling data heterogeneity in medical imaging. IEEE Trans. Med. Imaging 2023, 42, 1932–1943. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Wicaksana, J.; Yan, Z.; Zhang, D.; Huang, X.; Wu, H.; Yang, X.; Cheng, K.-T. FedMix: Mixed supervised federated learning for medical image segmentation. IEEE Trans. Med. Imaging 2023, 42, 1955–1968. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Hosseini, S.M.; Sikaroudi, M.; Babaie, M.; Tizhoosh, H.R. Proportionally fair hospital collaborations in federated learning of histopathology images. IEEE Trans. Med. Imaging 2023, 42, 1982–1995. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Lei, B.; Zhu, Y.; Liang, E.; Yang, P.; Chen, S.; Hu, H.; Xie, H.; Wei, Z.; Hao, F.; Song, X.; et al. Federated domain adaptation via transformer for multi-site Alzheimer’s disease diagnosis. IEEE Trans. Med. Imaging 2023, 42, 3651–3664. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Qiu, L.; Cheng, J.; Gao, H.; Xiong, W.; Ren, H. Federated semi-supervised learning for medical image segmentation via pseudo-label denoising. IEEE J. Biomed. Health Inform. 2023, 27, 4672–4683. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Wang, J.; Jin, Y.; Stoyanov, D.; Wang, L. FedDP: Dual personalization in federated medical image segmentation. IEEE Trans. Med. Imaging 2024, 43, 297–308. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Yahiaoui, M.E.; Derdour, M.; Abdulghafor, R.; Turaev, S.; Gasmi, M.; Bennour, A.; Aborujilah, A.; Sarem, M.A. Federated learning with privacy preserving for multi-institutional three-dimensional brain tumor segmentation. Diagnostics 2024, 14, 2891. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Jiang, R.; Kumar, Y.; Kruger, D. Enhanced privacy-preserving architecture for fundus disease diagnosis with federated learning. Appl. Sci. 2025, 15, 3004. [Google Scholar] [CrossRef] [Scilit]
- Makhanov, N.; Abdikenov, B.; Zhaksylyk, T.; Karibekov, T. Federated learning with differential privacy for ultrasound breast cancer classification: An empirical study. J. Imaging 2026, 12, 205. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Bian, X.; Lin, H.; Wang, Y.; Li, L.; Liu, Z.; Wang, H.; Shi, Z.; Qian, Y.; Liu, Z.; Lan, R.; et al. Federated cross-source learning for lung nodule segmentation with data characteristic-aware weight optimization. Pattern Recognit. 2026, 172, 112396. [Google Scholar] [CrossRef] [Scilit]
- Kormpos, C.; Zantalis, F.; Katsoulis, S.; Koulouras, G. Evaluating deep learning architectures for breast tumor classification and ultrasound image detection using transfer learning. Big Data Cogn. Comput. 2025, 9, 111. [Google Scholar] [CrossRef] [Scilit]
- Abu, M.; Zahri, N.A.H.; Amir, A.; Ismail, M.I.; Yaakub, A.; Anwar, S.A.; Ahmad, M.I. A comprehensive performance analysis of transfer learning optimization in visual field defect classification. Diagnostics 2022, 12, 1258. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Qolomany, B.; Maabreh, M.; Al-Fuqaha, A.; Gupta, A.; Benhaddou, D. Parameters optimization of deep learning models using particle swarm optimization. In 2017 13th International Wireless Communications and Mobile Computing Conference (IWCMC); IEEE: Piscataway, NJ, USA, 2017; pp. 1285–1290. [Google Scholar]
- Bamaqa, A.; Bahgat, W.M.; AbdulAzeem, Y.; Balaha, H.M.; Badawy, M.; Elhosseini, M.A. Early detection of monkeypox: Analysis and optimization of pretrained deep learning models using the Sparrow Search Algorithm. Results Eng. 2024, 24, 102985. [Google Scholar] [CrossRef] [Scilit]
- Qolomany, B.; Ahmad, K.; Al-Fuqaha, A.; Qadir, J. Particle swarm optimized federated learning for Industrial IoT and smart city services. In 2020 IEEE Global Communications Conference (GLOBECOM); IEEE: Piscataway, NJ, USA, 2020; pp. 1–6. [Google Scholar]
- Połap, D.; Woźniak, M. Meta-heuristic as manager in federated learning approaches for image processing purposes. Appl. Soft Comput. 2021, 113, 107872. [Google Scholar] [CrossRef] [Scilit]
- Park, S.; Suh, Y.; Lee, J. FedPSO: Federated learning using particle swarm optimization to reduce communication costs. Sensors 2021, 21, 600. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Abasi, A.K.; Aloqaily, M.; Guizani, M. Grey Wolf Optimizer for reducing communication cost of federated learning. In 2022 IEEE Global Communications Conference (GLOBECOM); IEEE: Piscataway, NJ, USA, 2022; pp. 1049–1054. [Google Scholar]
- Al-Dhabyani, W.; Gomaa, M.; Khaled, H.; Fahmy, A. Dataset of breast ultrasound images. Data Brief. 2020, 28, 104863. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Kairouz, P.; McMahan, H.B.; Avent, B.; Bellet, A.; Bennis, M.; Bhagoji, A.N.; Bonawitz, K.; Charles, Z.; Cormode, G.; Cummings, R.; et al. Advances and open problems in federated learning. Found. Trends Mach. Learn. 2021, 14, 1–210. [Google Scholar] [CrossRef] [Scilit]
- He, K.; Zhang, X.; Ren, S.; Sun, J. Deep residual learning for image recognition. In 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR); IEEE: Piscataway, NJ, USA, 2016; pp. 770–778. [Google Scholar]
- Li, Q.; He, B.; Song, D. Model-contrastive federated learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR); IEEE: Piscataway, NJ, USA, 2021; pp. 10708–10717. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.






