The paper suggests a distributed cross-layer IoT architecture that combines LoRaWAN (Long Range Wide Area Network) with federated learning (FL) to improve reliability, scalability, and fault tolerance in multi-layer vertical farming systems in dense and dynamic environments. Unlike the traditional frameworks that rely on independent measures of QoS (Quality of Service), the proposed framework directly represents the inter-layer relationships, such as heterogeneity of latencies, robustness of connectivity, and propagation of faults. One of the contributions is the development of a cohesive cross-layer evaluation framework with six strictly defined metrics: MLDC (Multi-Layer Deployment Capacity), C-LCRI (Cross-Layer Connectivity Robustness Index), C-LFCI (Cross-Layer Fault Containment Index), SART (Smart Adaptive Recovery Time), and AIRSM (AI Resilience Score Metric), which allows for quantitatively characterizing latency differences, network resilience, fault containment, recovery efficiency, AI robustness, and energy-performance trade-offs. The experimental results show that the proposed Smart Distributed LoRaWAN–Federated Learning architecture operates reliably in high-density and multi-layer vertical farming environments, and is scalable to handle larger amounts of data. The proposed system guarantees a packet delivery ratio (PDR) of around 95% under a large-scale deployment with up to 1050 IoT nodes spread across seven cultivation layers, with a latency reduction of nearly 60%, less than 1.6 J/msg on average energy consumption, and a fault recovery time of less than 0.3 s in case of network disruptions. The proposed framework was validated using large-scale simulation scenarios developed based on experimentally reported LoRaWAN communication characteristics and agricultural IoT deployments, and operational conditions at the edge intelligence. This evaluation included up to 1050 sensing nodes in 7 vertical farming layers to approximate a realistic deployment of smart farming in a large-scale environment while keeping consistency with the recorded communication and reliability profile.
Perdana et al. (Mon,) studied this question.