Manuscript Offprint

arXiv:2609.06830

Constrained Bayesian Optimization for Hierarchical Federated Learning in IoT Networks for Plant Disease Classification

Athanasios Papanikolaou, Athanasios Tziouvaras, Apostolos Xenakis, Periklis Chatzimisios, Shameem A. Puthiya Parambath, George Floros, Enrica Zereik, Ivan Petrovic, Fabio Bonsignorio

Athanasios Papanikolaou†^\dagger, Athanasios Tziouvaras†^\dagger, Apostolos Xenakis†^\dagger, Periklis Chatzimisios∥^\parallel, Shameem A. Puthiya Parambath+^+, George Floros§^\S, Enrica Zereik∗^*, Ivan Petrovic‡^\ddagger, and Fabio Bonsignorio‡^\ddagger

‡^\ddaggerUniversity of Zagreb, Croatia, emails: {athanasios.papanikolaou, ivan.petrovic, fabio.bonsignorio}@fer.unizg.hr

†^\daggerUniversity of Thessaly, Greece, emails: {attziouv, axenakis}@uth.gr

∥^\parallelInternational Hellenic University, email: pchatimisios@ihu.gr

+^+University of Glasgow, UK, email: sham.puthiya@glasgow.ac.uk

§^\STrinity College Dublin, Ireland, email: florosg@tcd.ie

∗^*Italian National Research Council, Institute of Marine Engineering, Italy, email: enrica.zereik@cnr.it

Abstract—The deployment of Hierarchical Federated Learning (HFL) in resource-constrained Internet of Things (IoT) environments requires careful configuration to balance predictive performance with energy consumption and execution time. This challenge is particularly relevant to smart agriculture, where distributed IoT devices can support automated plant disease classification while operating under limited computational and communication resources. This paper presents a constrained Bayesian Optimization framework for the efficient configuration of HFL deployments. The proposed approach jointly explores the deep learning backbone architecture, aggregation strategy, and number of communication rounds, while the federation size is determined according to the spatial coverage requirements of the agricultural deployment. A weighted objective function captures user-defined trade-offs among energy consumption, execution time, and predictive performance, while explicit constraints ensure compliance with deployment-specific resource and accuracy requirements. The framework is evaluated on an IoT-based plant disease classification task considering multiple deep learning architectures, federated aggregation strategies, and communication-round settings. Experimental results across 30 independent optimization runs show that the proposed approach explores only 11.11% of the search space, while consistently identifying solutions within 1% of the exhaustive-search optimum, with a mean optimality gap of only 0.056%.

Index Terms—Hierarchical Federated Learning, Bayesian Optimization, Internet of Things, Smart Agriculture, Plant Disease Classification

I. INTRODUCTION

The agricultural sector is undergoing a major transformation, which is mainly driven by the combination of Internet of Things (IoT) technologies and deep learning (DL) models. This shift has already created new application scenarios such as data-driven crop monitoring, early disease detection and precision resource management [1], [2]. Within this context, the identification of plant diseases remains a critical challenge that undermines food security, since delayed interventions may result in substantial yield losses and economic damage [3]. A possible solution could reside within the recent advances in computer vision and convolutional neural networks, which have achieved high accuracy in automated plant disease classification [4], [5]. However, the deployment of centralized DL pipelines in large-scale agricultural environments raises practical concerns. This mainly happens because continuous data transmission to remote cloud servers is impractical for resource-constrained IoT networks that operate under limited bandwidth, energy, and computational budgets [6].

Federated Learning (FL) has emerged as a compelling distributed paradigm that enables multiple IoT nodes to collaboratively train a shared model without exchanging raw data. Thus, this approach preserves data privacy and reduces communication overhead, compared with other distributed deployments [7], [8]. Several recent works have explored FL for agricultural applications, including crop disease classification [9], [10] and yield prediction [11]. These works demonstrate that FL can achieve competitive performance, while respecting the privacy and autonomy of individual farm sites. Despite these advances, the practical deployment of FL on heterogeneous IoT devices remains challenging, as system performance is highly sensitive to several configuration parameters. Such parameters include but are not limited to the backbone DL architecture, the model aggregation strategy (e.g., FedAvg [8], FedProx [12], FedAvgM [13]), the number of communication rounds and the number of participating devices [14]. In the majority of the existing literature, these design choices are selected through manual experimentation or via an exhaustive search. Unfortunately, both strategies are prohibitively expensive when each configuration evaluation requires end-to-end execution of the full FL pipeline.

In this paper, we extend [15], [16] by introducing a constrained Bayesian Optimization framework for resource-aware Hierarchical Federated Learning (HFL) configuration in IoT-based plant disease classification. The proposed framework systematically explores deployment-specific configurations while accounting for resource and predictive-performance requirements. The main contributions of this work are summarized as follows:

  • We formulate HFL configuration as a constrained optimization problem that jointly considers architectural and training parameters under deployment-specific requirements.

  • We introduce a configurable weighted objective function that captures user-defined trade-offs among energy consumption, execution time, and predictive performance while enforcing explicit resource and performance constraints.

  • We integrate the spatial characteristics of the agricultural deployment into the framework to determine the required federation size.

  • We employ constrained Bayesian Optimization to jointly select the DL architecture, aggregation strategy, and number of communication rounds without exhaustively evaluating the configuration space.

  • We evaluate the proposed framework on a plant disease classification task in a resource-constrained IoT setting, demonstrating near-optimal configuration with a limited number of evaluations.

The remainder of this paper is organized as follows. Section II provides the background on Federated Learning and the considered deep learning architectures. Section III formulates the resource-aware HFL configuration problem, while Section IV presents the proposed constrained Bayesian Optimization approach. Section V presents the experimental evaluation. Finally, Section VI concludes the paper.

References (24)

  • Big data in smart farming – a review
  • An overview of internet of things (iot) and data analytics in agriculture: Benefits and challenges
  • Plant disease detection using computational intelligence and image processing
  • Deep learning and computer vision in plant disease detection: a comprehensive review of techniques, models, and trends in precision agriculture
  • A deep learning and social iot approach for plants disease prediction toward a sustainable agriculture
  • Towards precision agriculture: Iot-enabled intelligent irrigation systems using deep learning neural network
  • Decentralized federated learning: Fundamentals, state of the art, frameworks, trends, and challenges
  • Communication-efficient learning of deep networks from decentralized data
  • Adaptive knowledge transfer using federated deep learning for plant disease detection
  • Crop disease prediction using deep learning in a federated learning environment: Ensuring data privacy and agricultural sustainability
  • Flag: Federated learning for sustainable irrigation in agriculture 5.0
  • Federated Optimization in Heterogeneous Networks
  • Measuring the effects of non-identical data distribution for federated visual classification
  • Adaptive federated learning in resource constrained edge computing systems
  • Distributed deep learning in iot sensor network for the diagnosis of plant diseases
  • Performance and energy trade-off analysis of hierarchical federated learning for plant disease classification
  • Client-edge-cloud hierarchical federated learning
  • Efficientnet: Rethinking model scaling for convolutional neural networks (opens arXiv in a new tab)
  • Deep Residual Learning for Image Recognition
  • Searching for MobileNetV3
  • A computational geometry-based approach for planar k-coverage in wireless sensor networks
  • Energy efficient federated learning over wireless communication networks
  • Practical bayesian optimization of machine learning algorithms
  • Bayesian optimization with inequality constraints