Sustainable farming and fire risk management using IoT and MQTT technologies for enhancing food security

Fires increasingly threaten farms, especially under climate change. IoT technologies enable real-time risk monitoring and rapid response. Integrating sensors, embedded systems, and MQTT communication supports smarter, faster, and more sustainable agricultural fire-risk management.
Like

Share this post

Choose a social network to share with, or copy the URL to share elsewhere

This is a representation of how your post may appear on social media. The actual post will vary between social networks

Explore the Research

Springer International Publishing
Springer International Publishing Springer International Publishing

Sustainable farming and fire risk management using IoT and MQTT technologies for enhancing food security

The variation in climate is posing a growing threat of fire to agricultural land while jeopardizing food security and the sustainability of farming practices. Sustainable agriculture, which uses advanced technologies to optimize production, is particularly vulnerable to these risks and hence affects the concept of cognitive and smart farming. Early detection of fires in farming practices is insufficient, requiring IoT solutions for real-time monitoring and rapid response to protect crops and ensure food security. This paper proposes an innovative Internet of Things (IoT)-based system for fire detection, integrating flame and smoke sensors and a Raspberry Pi 3 B+ embedded device. The system architecture is based on three layers: (1) a local layer, (2) a Message Queuing Telemetry Transport (MQTT) broker, and (3) a user interface. The local layer is utilized for data collection and processing. The MQTT broker has HiveMQ, which is used to ensure efficient communication via the publish/subscribe protocol using Quality of Service (QoS) 0. The user interface is utilized for real-time access to critical information. The performance evaluation demonstrated the effectiveness of this system in monitoring environmental parameters with reliable data published via dedicated topics. The central processing unit (CPU) performance and memory usage have been optimized to ensure low energy consumption. The experimental results show that the system publishes up to 5400 messages on six MQTT topics via HiveMQ in 30 min, at a rate of one message every two seconds. The data revealed variations in flames (41.9% to 43.1%) and smoke (21.9% to 27.0%), with system parameters kept constant. The frequency of one message every 20 s reduces the publishing load to 180 messages over 10 min. Contrary to the empirical threshold approaches, detection thresholds are optimally determined using a Receiver Operating Characteristic (ROC) analysis, ensuring a robust tradeoff between sensitivity and false alarm rate. The experimental results show that the optimal thresholds are set at 50% for smoke and 60% for flame. The statistical evaluation of the system highlights high performance, with an accuracy of 0.929, a precision of 0.864, a recall of 1.000, an F1 score of 0.927 and a specificity of 0.870. In addition, the values of the area under the curve (AUC), reaching 0.947 for smoke and 0.967 for flame, confirm an excellent ability to discriminate between fire and non-fire states. These results demonstrate the robustness, reliability and relevance of the proposed system for smart agriculture applications. The proposed system offers farmers practical tools for anticipating and responding quickly to fire risk situations, thereby contributing to food safety and sustainability in the agricultural sector.

Agricultural fires can cause significant losses to crops, infrastructure, and natural resources, while directly threatening food security. Early detection is therefore essential to limit damage and enable intervention before the situation becomes critical. The paper “Sustainable Agriculture and Fire Risk Management Using IoT and MQTT Technologies to Strengthen Food Security” presents an IoT system designed to provide continuous monitoring of fire risks in agricultural environments. The solution is based on a Raspberry Pi 3 B+, paired with sensors capable of detecting the presence of flames and smoke. The proposed architecture consists of three complementary layers: a local layer dedicated to data acquisition and processing, an HiveMQ MQTT broker that transmits data using a “publish/subscribe” architecture, and an interface providing real-time access to critical information. This structure effectively links physical monitoring in the field to a communication infrastructure tailored to connected agricultural applications.

Experiments show that the system can transmit up to 5,400 messages across six MQTT topics in 30 minutes, while monitoring processor performance, memory usage, and temperature to limit resource consumption. ROC curve analysis also made it possible to determine optimized detection thresholds of 50% for smoke and 60% for flames. Further, the results show particularly encouraging performance, with an accuracy of 92.9%, a precision of 86.4%, a recall of 100%, an F1-score of 92.7%, and a specificity of 87.0%. The AUC values also reached 0.947 for smoke and 0.967 for flame, confirming the system’s strong ability to distinguish between situations with and without a fire risk.

Beyond detection, the main advantage of this approach lies in its ability to provide real-time monitoring using a relatively lightweight embedded infrastructure. The use of the IoT and the MQTT protocol thus paves the way for solutions that can improve fire prevention while contributing to crop protection, food security, and the sustainability of agricultural systems. This approach also paves the way for more advanced monitoring systems that incorporate artificial intelligence, edge computing, and automated decision-making mechanisms. Such developments could enable better anticipation of high-risk situations and the implementation of agricultural systems capable of responding more quickly to critical events. The challenge ahead will therefore be to evolve these solutions into even more autonomous, energy-efficient, and robust architectures capable of operating under real-world agricultural conditions and across vast areas. The gradual integration of the Internet of Things (IoT), artificial intelligence, and smart communication systems could thus help make the agricultural sector more resilient to climate and environmental risks.

Please sign in or register for FREE

If you are a registered user on Research Communities by Springer Nature, please sign in