Treffer: MQTT-Based Architecture for Real-Time Data Collection and Anomaly Detection in Smart Livestock Housing.

Title:
MQTT-Based Architecture for Real-Time Data Collection and Anomaly Detection in Smart Livestock Housing.
Authors:
Ko KI; Department of Smart Agriculture Program, Sunchon National University, Suncheon-si 31031, Republic of Korea., Lee MH; Department of Smart Agriculture Program, Sunchon National University, Suncheon-si 31031, Republic of Korea.
Source:
Sensors (Basel, Switzerland) [Sensors (Basel)] 2025 Nov 25; Vol. 25 (23). Date of Electronic Publication: 2025 Nov 25.
Publication Type:
Journal Article
Language:
English
Journal Info:
Publisher: MDPI Country of Publication: Switzerland NLM ID: 101204366 Publication Model: Electronic Cited Medium: Internet ISSN: 1424-8220 (Electronic) Linking ISSN: 14248220 NLM ISO Abbreviation: Sensors (Basel) Subsets: MEDLINE
Imprint Name(s):
Original Publication: Basel, Switzerland : MDPI, c2000-
References:
Sensors (Basel). 2009;9(6):4728-50. (PMID: 22408551)
Sensors (Basel). 2024 May 30;24(11):. (PMID: 38894308)
Animals (Basel). 2025 Feb 23;15(5):. (PMID: 40075927)
Grant Information:
RS-2024-00406426 This work was supported by the Korea Institute of Planning and Evaluation for Technology in Food, Agriculture, and Forestry (IPET) and Korea Smart Farm R&D Foundation (KosFarm) through the Smart Farm Innovation Technology Development Program, funded by th
Contributed Indexing:
Keywords: GRU; MQTT; QoS; anomaly detection; low-latency monitoring; smart livestock housing
Entry Date(s):
Date Created: 20251211 Date Completed: 20251211 Latest Revision: 20251214
Update Code:
20251214
PubMed Central ID:
PMC12694545
DOI:
10.3390/s25237186
PMID:
41374561
Database:
MEDLINE

Weitere Informationen

This study designed a message queuing telemetry transport (MQTT)-based communication framework to acquire environmental data with stable, low-latency response (soft real-time capability) and detect anomalies in smart livestock housing. We validated the performance of the proposed framework using actual sensor data. It comprises environmental sensor nodes, a Mosquitto MQTT broker, and a GRU-based anomaly detection model, with data transmission via a WiFi-based network. Comparing quality of service (QoS) levels, the QoS 1 configuration demonstrated the most stable performance, with an average latency of ~150 ms, a data collection rate ≥ 99%, and a packet loss rate ≤ 0.5%. In the sensor node expansion experiment, responsiveness (≤200 ms) persisted for 10-15 nodes, whereas latency increased to 238.7 ms for 20 or more nodes. The GRU model proved suitable for low-latency analysis, achieving 97.5% accuracy, an F1-score of 0.972, and 18.5 ms/sample inference latency. In the integrated experiment, we recorded an average end-to-end latency of 185.4 ms, a data retention rate of 98.9%, processing throughput of 5.39 samples/s, and system uptime of 99.6%. These findings demonstrate that combining QoS 1-based lightweight MQTT communication with the GRU model ensures stable system response and low-latency operation (soft real-time capability) in monitoring livestock housing environments, achieving an average end-to-end latency of 185.4 ms.