On-Device Federated Learning for Energy-Efficient Smart Irrigation
Open Access
- 2 November 2025
- journal article
- research article
- Published by MDPI AG in Electronics
- Vol. 14 (21) , 4311
Abstract
This study presents a novel federated learning (FL) methodology implemented directly on STM32-based microcontrollers (MCUs) for energy-efficient smart irrigation. To the best of our knowledge, this is the first work to demonstrate end-to-end FL training and aggregation on real STM32 MCU clients (STM32F722ZE), under realistic energy and memory constraints. Unlike most prior studies that rely on simulated clients or high-power edge devices, our framework deploys lightweight neural networks trained locally on MCUs and synchronized via message queuing telemetry transport (MQTT) communication. Using a smart agriculture (SA) dataset partitioned by soil type, 7 clients collaboratively trained a model over 3 federated rounds. Experimental results show that MCU clients achieved competitive accuracy (70–82%) compared to PC clients (80–85%) while consuming orders of magnitude less energy. Specifically, MCU inference required only 0.95 mJ per sample versus 60–70 mJ on PCs, and training consumed ∼70 mJ per epoch versus nearly 20 J. Latency remained modest, with MCU inference averaging 3.2 ms per sample compared to sub-millisecond execution on PCs, a negligible overhead in irrigation scenarios. The evaluation also considers the payoff between accuracy, energy consumption, and latency through the Energy Latency Accuracy Index (ELAI). This integrated perspective highlights the trade-offs inherent in deploying FL on heterogeneous devices and demonstrates the efficiency advantages of MCU-based training in energy-constrained smart irrigation settings.Keywords
Funding Information
- European Union Next-GenerationEU
This publication has 22 references indexed in Scilit:
- Client Selection in Federated Learning on Resource-Constrained Devices: A Game Theory ApproachApplied Sciences, 2025
- Dempster Shafer-Empowered Machine Learning-Based Scheme for Reducing Fire Risks in IoT-Enabled Industrial EnvironmentsIEEE Access, 2025
- Leakage-Resilient and Carbon-Neutral Aggregation Featuring the Federated AI-Enabled Critical InfrastructureIEEE Transactions on Dependable and Secure Computing, 2025
- Novel Fusion Technique for High-Performance Automated Crop Edge Detection in Smart AgricultureIEEE Access, 2025
- Transparency and Privacy: The Role of Explainable AI and Federated Learning in Financial Fraud DetectionIEEE Access, 2024
- Edge Machine Learning Techniques Applied to RFID for Device-Free Hand Gesture RecognitionIEEE Journal of Radio Frequency Identification, 2022
- A TinyML Platform for On-Device Continual Learning With Quantized Latent ReplaysIEEE Journal on Emerging and Selected Topics in Circuits and Systems, 2021
- Federated Learning: Challenges, Methods, and Future DirectionsIEEE Signal Processing Magazine, 2020
- Federated Machine LearningACM Transactions on Intelligent Systems and Technology, 2019
- Federated learning of predictive models from federated Electronic Health RecordsInternational Journal of Medical Informatics, 2018