Research on a Smart Fire Monitoring System for University Dormitories Based on Edge-Cloud Collaboration and Digital Twin Technology

Read full text
Authors: Xin Wang, Lei Ma, Junjie Xiong
Cited by: 1

Abstract

In response to significant fire hazards arising from high population density and complex electricity consumption in university dormitories, as well as industry pain points such as the "information silos" of traditional standalone smoke alarms and the spatial localization difficulties of 2D planar monitoring systems, this paper comprehensively utilizes embedded development, Internet of Things (IoT) communication, and digital twin technologies to design and implement an edge-cloud collaborative visual monitoring system for smart fire protection. Addressing the limitations of existing fire monitoring systems, the primary innovations and research outcomes of this paper include: the design of a network self-healing mechanism against process blocking based on a kernel-level soft reset; the construction of an early fire prediction model based on multi-dimensional environmental feature fusion; and the development of a 3D digital twin interactive architecture featuring an intelligent viewpoint scheduling algorithm. For environmental data extraction at the underlying hardware level, the system employs an STM32F103 microcontroller as the core computing engine, integrating an MQ-9 combustible gas sensor, a DHT11 temperature and humidity sensor, and a far-infrared flame detector. This enables the multi-dimensional, high-frequency capture of environmental fire factors in dormitories alongside local sound and light coordinated alarms. Regarding the network communication link design, the system utilizes an ESP8266 wireless module in coordination with an Alibaba Cloud EMQX message broker server. It adopts the lightweight MQTT protocol instead of the traditional HTTP protocol and achieves the efficient packaging of heterogeneous data via JSON serialization. To solve the engineering problem of frequent device freezing ("pseudo-death") in the complex and weak network environments typical of university dormitories, this paper innovatively introduces a network error counter and a kernel-level soft reset self-healing mechanism to prevent process blocking. Testing indicates that this mechanism can complete a full-link self-recovery within an average of 7.79 seconds following a network disconnection, ensuring stable, 24/7 unattended terminal operation. In terms of algorithmic models and upper-level visualization applications, this project breaks through traditional rigid alarm thresholds by introducing a multi-dimensional environmental feature spatial fusion prediction model based on logistic regression. By calculating the joint posterior probability of fire occurrence through weighted bias, this algorithm significantly advances the time window for fire early warning, transitioning the system from passive response to active prevention. Furthermore, a high-fidelity digital twin monitoring platform was developed using the Unity3D engine, constructing a 3D virtual mirror of the physical dormitory. Leveraging a self-developed asynchronous MQTT client middleware and cross-platform feature tag mapping technology, the platform achieves high-frame-rate, lossless parsing of massive data. Combined with a quaternion spherical linear interpolation camera movement algorithm, the system not only triggers global audio-visual effects upon detecting a fire but also automatically and smoothly navigates the monitoring perspective to lock onto the affected room. This creates an immersive interactive experience where "alarm equals localization, and localization equals visual confirmation." Comprehensive testing demonstrates that this system successfully integrates the full-stack technical pipeline, spanning underlying hardware data acquisition and cloud-based data transmission to upper-computer 3D simulation. All functional metrics meet the anticipated design requirements, validating the high feasibility and advanced nature of integrating digital twin technology with the IoT in the smart fire protection sector.

Fields of Study & Subjects

Fire Detection and Safety Systems IoT and Edge/Fog Computing Advanced Technologies and Applied Computing

Publication details

Journal / source
Frontiers in Computing and Intelligent Systems
Publisher
Darcy & Roy Press Co. Ltd.
Volume
15
Issue
3
Pages
147–160
Publication date
27 March 2026