Digital Twin-enabled predictive fire detection using IOT and Machine learning
Aman Singh Tomar1*, Anurag Singh2, Prof. Vivek Chandra Sagar3
1 Research Scholar, Vikrant University, Gwalior, M.P. India
tomaaman060@gmail.com
2 Research Scholar, Vikrant University, Gwalior, M.P. India
3 Professor, Vikrant University, Gwalior, M.P. India
Abstract: Fire incidents in built environments continue to cause significant human and economic losses, despite widespread deployment of automated fire detection systems. Most existing systems rely on reactive threshold-based sensing, which limits early intervention capabilities. In this study, a digital twin-enabled predictive fire detection system is designed, implemented, and evaluated. The proposed system integrates real-time IoT sensor data, physics-based fire simulation, and machine learning models within a synchronized digital twin environment. A prototype digital twin is developed for a building-scale scenario, and predictive models are trained using a combination of historical fire data and simulated fire scenarios. Experimental results demonstrate that the proposed system can predict fire risk significantly earlier than conventional detection methods, providing extended lead time for preventive actions. The findings validate the feasibility and effectiveness of digital twin technology for proactive fire risk management.
Keywords: Digital Twin, Predictive Fire Detection, IoT Sensors, Machine Learning, Fire Safety Systems
1. INTRODUCTION
Fire safety in buildings and urban environments remains a critical and persistent challenge worldwide. Rapid urbanization, increasing building heights, dense occupancy patterns, and the widespread use of electrical and automated systems have significantly elevated fire risk in modern infrastructure. According to international fire safety reports, fires in residential, commercial, and industrial buildings continue to result in substantial loss of life, property damage, and disruption of critical services each year [1]. These risks are further amplified by complex building layouts, mixed-use facilities, and the presence of combustible materials, making early detection and timely intervention essential. Conventional fire detection systems—such as smoke detectors, heat sensors, and flame detectors—form the backbone of current fire safety strategies. These systems primarily operate using predefined thresholds, activating alarms only after observable indicators of fire, such as smoke concentration or temperature, exceed critical limits [2]. While such systems are effective for alerting occupants and triggering emergency responses, they are inherently reactive in nature. As a result, they often provide limited warning time, particularly in fast-developing or concealed fire scenarios, and offer minimal capability for assessing fire risk during pre-ignition or incipient stages [3]. This reactive paradigm constrains opportunities for proactive intervention, predictive maintenance, and risk-informed decision-making.
In recent years, digital twin (DT) technology has emerged as a transformative approach for monitoring and managing complex physical systems. A digital twin is a dynamic virtual representation of a physical asset or environment that is continuously updated using real-time data from sensors and operational systems [4]. Digital twins have demonstrated considerable success in domains such as manufacturing, energy systems, aerospace, and smart infrastructure, where they enable predictive maintenance, system optimization, and scenario-based forecasting [5]. By integrating data, models, and analytics, digital twins allow stakeholders to understand not only the current state of a system but also its potential future behavior.
The application of digital twin technology to fire safety and emergency management is an emerging research area. Initial studies have explored the use of digital twins for real-time visualization of fire and smoke propagation, evacuation planning, and emergency response coordination [6]. Urban-scale digital twin platforms have been proposed to integrate environmental data, weather conditions, and sensor networks to support situational awareness during fire incidents [7]. At the building level, digital twins have been combined with Internet of Things (IoT) sensing to reconstruct fire development and support real-time monitoring once a fire has already begun [8]. Despite these advances, most existing digital twin-based fire safety systems focus on post-ignition monitoring and response, rather than predicting fire onset or early-stage fire risk. Practical implementations that integrate real-time sensing, predictive analytics, and simulation within a continuously synchronized digital twin environment remain limited. Furthermore, many prior studies are conceptual in nature, lacking experimental validation or quantitative comparison with traditional fire detection approaches. To address these limitations, this paper presents an implemented digital twin-enabled predictive fire detection system that integrates IoT-based sensing, machine learning models, and physics-based fire simulation within a unified digital twin framework. Unlike prior conceptual or visualization-focused studies, the proposed system is realized as a functional prototype and evaluated through controlled, simulation-based experiments. The system is designed to predict elevated fire risk before conventional alarm thresholds are reached, thereby extending detection lead time and enabling proactive fire safety interventions.
The main contributions of this work include:
- The development of a synchronized digital twin for predictive fire risk assessment,
- The integration of machine learning models trained on hybrid datasets for early fire prediction, and
- A quantitative evaluation of predictive performance compared to traditional threshold-based fire detection systems.
2. RELATED WORK
Recent research has explored the application of digital twin (DT) technology in fire safety, primarily focusing on fire spread simulation, visualization, and emergency response support. At the urban scale, digital twin platforms have been developed to integrate heterogeneous data sources—such as environmental sensors, meteorological data, and geographic information systems—to visualize fire and smoke propagation in real time and assist decision-makers during active fire incidents [1], [2]. These systems enhance situational awareness but are largely reactive, operating after fire ignition has already occurred. At the building scale, AIoT-enabled digital twins have been proposed to reconstruct fire development using multi-sensor data streams. Such studies demonstrate the feasibility of mapping real-time sensor data to virtual building models to estimate short-term fire behavior and support emergency response actions [3], [4]. However, these approaches typically focus on post-ignition monitoring and offer limited capability for predicting fire risk during pre-ignition or incipient stages. In parallel, predictive fire detection research has investigated the use of machine learning techniques to identify early fire signatures from sensor data. Data-driven models, including neural networks and ensemble classifiers, have shown promise in detecting subtle changes in temperature, smoke, and gas concentrations prior to alarm activation [5]. Hybrid approaches that combine computational fluid dynamics (CFD) simulations with machine learning have further improved prediction accuracy by incorporating physical fire behavior into the learning process [6]. Despite their effectiveness, these methods often suffer from high computational cost, limited scalability, or lack of integration with real-time system models.
Overall, existing studies either focus on predictive modeling without continuous system synchronization or implement digital twins that primarily support visualization and response. Few works integrate real-time sensing, predictive analytics, and simulation within a continuously synchronized digital twin framework capable of forecasting fire risk before conventional alarm thresholds are exceeded. This study addresses this gap by implementing and experimentally validating a predictive digital twin system that enables proactive fire risk assessment.
3. METHODOLOGY
3.1 System Overview
The system is composed of five main modules:
- Physical Environment: A building-scale testbed modeled using BIM data, including rooms, corridors, HVAC ducts, and material properties.
- IoT Sensor Network: Distributed sensors for temperature, smoke, CO, and humidity across key zones.
- Data Processing Layer: Handles real-time data ingestion, noise filtering, normalization, and feature extraction.
- Machine Learning Prediction Engine: LSTM-based neural network trained on hybrid datasets (historical and simulated fire events) to estimate fire risk probabilities.
- Digital Twin Platform: A continuously synchronized virtual environment for visualization, predictive simulation, and decision support.
3.2 Experimental Setup
3.2.1 Test Environment
- A BIM-modeled building with multiple rooms and corridors, representative of an urban indoor environment.
- Key high-risk zones (e.g., kitchen, electrical panel, storage) were identified for sensor deployment.
- Physical layout used for accurate digital twin mapping and simulation.
3.2.2 IoT Sensor Network
Sensor Type | Quantity | Purpose | Sampling Interval |
Temperature sensor | 10 | Detect rapid temperature rise | 1 sec |
Smoke detector | 8 | Measure particulate matter in air | 1 sec |
CO Sensor | 6 | Detect toxic gas accumulation | 1 sec |
Humidity sensor | 4 | Monitor environmental conditions affecting fire spread | 1 sec |
3.2.3 Data Acquisition and Dataset Creation
Data for the predictive fire detection system were collected using a hybrid approach. Real-time environmental data were captured from a distributed IoT sensor network measuring temperature, smoke density, carbon monoxide (CO) levels, and humidity across key zones in the test environment. To enhance model robustness, historical fire incident data were incorporated alongside simulated fire scenarios generated using the Fire Dynamics Simulator (FDS), representing various ignition points, ventilation conditions, and fire intensities. The combined dataset provided both real and synthetic examples of fire progression, enabling the machine learning model to learn early-stage fire indicators and improve predictive accuracy.
3.3 Machine Learning Modeling
The predictive engine of the proposed system relies on a Long Short-Term Memory (LSTM) neural network to capture temporal dependencies in sensor readings that may indicate early-stage fire development. LSTM networks are particularly suited for sequential data with temporal correlations, such as changes in temperature, smoke concentration, and CO levels over time.
Data Preprocessing:
- Sensor data were synchronized to a uniform 1-second sampling interval.
- Noise and outliers were removed using a rolling median filter.
- Features included absolute readings, first-order differences, and moving averages over 5-second and 10-second windows to capture rapid environmental changes.
Training and Validation:
- The dataset was split into 70% training, 15% validation, and 15% test sets.
- Both historical and simulated fire events were included to improve generalization.
- The model output is a probabilistic fire risk score ranging from 0 (no risk) to 1 (high risk).
- Cross-entropy loss was used for model optimization, with early stopping based on validation loss to prevent overfitting.
Hyperparameter Selection:
- Hidden layers: 2
- Units per layer: 64
- Dropout rate: 0.2
- Learning rate: 0.001
- Batch size: 32
3.4 Digital Twin Integration
The digital twin serves as a dynamic, virtual replica of the physical building, continuously synchronized with real-time IoT sensor data. Its main functions include:
- Visualization: Real-time rendering of the building, with color-coded zones indicating fire risk probabilities.
- Predictive Simulation: Using the LSTM output, the digital twin projects potential fire propagation under different ventilation and material scenarios.
- Decision Support: The platform can trigger pre-emptive alerts to building management systems, suggesting targeted evacuation routes or automated fire suppression activation.
The digital twin was implemented using Unity 3D for visualization, with data pipelines built on MQTT protocols for real-time sensor updates. The prediction engine communicates with the digital twin through REST APIs, ensuring seamless integration of real-time risk estimates.
4. RESULTS AND DISCUSSION
4.1 Predictive Performance
The LSTM-based predictive engine was evaluated using precision, recall, F1-score, and detection lead time, compared against conventional threshold-based systems.
Metric | Threshold-Based System | LSTM-Digital Twin System |
Precision | 0.78 | 0.92 |
Recall | 0.76 | 0.89 |
F1 Score | 0.74 | 0.90 |
Average lead time | 12 sec | 48 sec |
The results indicate that the proposed system can detect early fire risk approximately 36 seconds earlier than conventional systems, providing substantial additional time for preventive measures.
4.2 Scenario Analysis
Several fire scenarios were simulated, including kitchen ignition, electrical panel short-circuit, and storage room fire. The system successfully predicted risk escalation in all cases prior to the threshold-based alarms. The digital twin visualizations highlighted high-risk zones and potential propagation paths, supporting situational awareness for proactive response.
4.3 Discussion
- Advantages: Early detection, predictive visualization, and integration of hybrid data sources improve both situational awareness and safety outcomes.
- Limitations: Computational load for real-time simulation and the need for high-density sensor deployment in complex layouts may limit immediate large-scale deployment.
- Future Work: Optimizing model efficiency, exploring federated learning for multiple buildings, and integrating automated response systems can further enhance proactive fire management.
5. CONCLUSION
This study presents a digital twin-enabled predictive fire detection system that advances traditional fire safety approaches by shifting from reactive threshold-based alarms to proactive risk forecasting. By integrating IoT sensor networks, machine learning, and physics-based simulation within a continuously synchronized digital twin, the system predicts fire risk well before conventional alarms are triggered, significantly extending lead time for preventive measures. The proposed framework demonstrates several key contributions. First, it establishes a real-time, building-scale digital twin capable of visualizing high-risk zones and projecting fire propagation under varying conditions. Second, it leverages hybrid datasets, combining historical fire incidents and simulated scenarios, to train an LSTM-based predictive model that captures subtle precursors of fire across diverse environments. Third, experimental evaluation shows that the system outperforms conventional detection methods, achieving higher predictive accuracy and approximately four times earlier detection of emerging fire hazards. Beyond its predictive capability, the system provides actionable insights for proactive decision-making, enabling building managers to optimize emergency response, guide evacuations, and potentially automate mitigation measures. While computational demands and sensor deployment requirements present practical challenges, these can be addressed through edge computing, model optimization, and adaptive learning strategies. Overall, this work establishes a robust and scalable framework for proactive fire safety, demonstrating that digital twin technology, when combined with IoT and machine learning, can transform fire detection from a reactive necessity into a predictive, risk-informed practice. The approach holds promise not only for individual buildings but also for urban-scale fire management, paving the way toward safer, smarter, and more resilient built environments.
6. LIMITATIONS OF THE STUDY
While the proposed digital twin-enabled predictive fire detection system demonstrates significant improvements over traditional threshold-based fire alarms, certain limitations remain. First, the system relies on a relatively high density of IoT sensors to capture detailed environmental changes. In large or legacy buildings, deploying and maintaining such sensor networks may increase cost and complexity. Second, real-time synchronization between the digital twin, machine learning engine, and physics-based simulation introduces computational overhead, which may affect scalability in large-scale or multi-building deployments. Third, although simulated fire scenarios enhance dataset diversity, simulated data may not fully capture all real-world uncertainties, such as unexpected human behavior or sensor failures. Addressing these limitations is essential for broader real-world adoption.
7. FUTURE SCOPE AND RESEARCH DIRECTIONS
Several extensions can further enhance the effectiveness and scalability of the proposed system. Edge and fog computing can be incorporated to reduce latency and computational load by performing early data processing closer to the sensors. Federated learning approaches may allow multiple buildings to collaboratively improve predictive models without sharing sensitive data. Additionally, integrating adaptive sensor placement strategies can optimize sensor density while maintaining prediction accuracy. Future research can also explore automated actuation mechanisms, such as intelligent fire suppression systems and dynamic evacuation guidance, driven directly by digital twin predictions. Expanding the framework to urban-scale digital twins may further support smart city fire risk management and emergency planning.
8. PRACTICAL APPLICATIONS
The proposed system has strong potential for real-world deployment across multiple domains:
- Smart buildings: Early fire risk alerts for offices, hospitals, malls, and residential complexes
- Industrial facilities: Predictive monitoring in factories, warehouses, and chemical plants
- Critical infrastructure: Airports, data centers, and power stations
- Smart cities: Integration with urban digital twins for large-scale fire risk forecasting
By enabling proactive fire safety management, the system can significantly reduce response time, minimize damage, and improve occupant safety.
9. ETHICAL AND SAFETY CONSIDERATIONS
The system is designed to support human decision-making rather than replace it. Predictive outputs are probabilistic and must be interpreted alongside standard safety protocols. Data privacy is preserved by limiting sensor data to environmental parameters, avoiding personal information. Future implementations should comply with fire safety regulations, data protection standards, and ethical AI guidelines to ensure responsible deployment.
10. CONCLUSION
This paper presented a digital twin-enabled predictive fire detection framework that shifts conventional fire safety systems from reactive alarm-based detection to proactive risk forecasting. By integrating IoT sensor networks, machine learning-based temporal modeling, and physics-based fire simulation within a continuously synchronized digital twin environment, the proposed system enables early identification of fire hazards before traditional thresholds are exceeded. Experimental evaluation demonstrates that the system achieves higher predictive accuracy and provides substantially longer lead time compared to conventional fire detection methods. The findings confirm that digital twin technology, when combined with intelligent data analytics, can significantly enhance fire safety outcomes. Despite challenges related to computational cost and sensor deployment, the proposed framework offers a scalable and practical foundation for next-generation fire safety systems in smart buildings and urban environments.
References
- Hall, J. R., Fire in the United States: An Overview, National Fire Protection Association, 2021.
- Custer, R., & Meacham, B., Introduction to Fire Protection Engineering, Wiley, 2016.
- Bukowski, R., et al., “Performance-based fire detection systems and limitations of threshold alarms,” Fire Technology, 2018.
- Grieves, M., “Digital twin: Manufacturing excellence through virtual factory replication,” White Paper, 2014.
- Tao, F., Zhang, M., Liu, Y., & Nee, A. Y. C., “Digital twin in industry: State-of-the-art,” IEEE Transactions on Industrial Informatics, 2019.
- Chen, X., et al., “Digital twin-driven fire and smoke simulation for emergency management,” Safety Science, 2020.
- Liu, X., et al., “Urban-scale digital twin platforms for fire and smoke management,” Automation in Construction, 2022.
- Zhang, Y., et al., “AIoT-enabled digital twin for real-time fire monitoring in buildings,” Fire Safety Journal, 2021.
- Liu, X., et al., “Urban digital twin platforms for real-time fire and smoke monitoring,” Automation in Construction, 2022.
- Biljecki, F., et al., “Applications of digital twins in smart cities,” ISPRS Journal of Photogrammetry and Remote Sensing, 2021.
- Zhang, Y., et al., “AIoT-based digital twin for building fire monitoring and reconstruction,” Fire Safety Journal, 2021.
- Chen, X., et al., “Digital twin-driven fire emergency management in smart buildings,” Safety Science, 2020.
- Rossi, L., et al., “Machine learning techniques for early fire detection using sensor data,” Fire Technology, 2019.
- Hu, L., et al., “Hybrid CFD and data-driven models for fire dynamics prediction,” Fire Safety Journal, 2020.
- T. Zhang, Z. Wang, Y. Zeng, X. Wu, J. Shi and X. Huang,“Building ArtificialIntelligence Digital Fire (AIDFire) system: A realscale demonstration,” Journal of Building Engineering, vol. 62, p. 105363, Dec. 2022. doi:10.1016/j.jobe.2022.105363.
- W. Xie, Y. Zeng, X. Zhang, H. Y. Wong, T. Zhang, Z. Wang, X. Wu, J. Shi, X. Huang, F. Xiao and A. Usmani,“AIoTpowered building digital twin for smart firefighting and super realtime fire forecast,” Advanced Engineering Informatics, vol. 65, p. 103117, May 2025. doi:10.1016/j.aei.2025.103117.
- A. A. Ayrancı and B. Erkmen,“IoTbased fire detection: A comparative study of machine learning techniques,” Nigde Ömer Halisdemir Univ. Journal of Engineering Sciences, vol. 13, no. 4, pp. 1298–1307, Oct. 2024. doi:10.28948/ngumuh.1444349.
- L. Kong, J. Li, S. Guo, X. Zhou and D. Wu,“Computer vision based early firedetection and firefighting mobile robots oriented for onsite construction,” Journal of Civil Engineering and Management, vol. 30, no. 8, pp. 720–737, Oct. 2024. doi:10.3846/jcem.2024.21360.
- Z. CespedesCubides and M. Jradi,“A review of building digital twins to improve energy efficiency in the building operational stage,” Energy Informatics, vol. 7, Art. 11, 2024.
- A. A. Alnaser, M. Maxi and H. Elmousalami,“AIPowered Digital Twins and Internet of Things for Smart Cities and Sustainable Building Environment,” Applied Sciences, vol. 14, no. 24, p. 12056, Dec. 2024. doi:10.3390/app142412056.
- H. Zhang, L. Jiang, C. Wang and Z. Pan,“Intelligent control of building fire protection system using digital twins and semantic web technologies,” Automation in Construction, vol. 147, p. 104728, Mar. 2023. doi:10.1016/j.autcon.2022.104728.
- Y. Xue, H. Zhang, Q. Li, and Q. Wang,“Integrating IoT technology for fire risk monitoring and assessment in residential building design,” Buildings, vol. 15, no. 8, p. 1346, Aug. 2024.
- “An integrated fire detection system using IoT and image processing technique for smart cities,” Sustainable Cities and Society, vol. 61, p. 102332, Oct. 2020. doi:10.1016/j.scs.2020.102332.
- (Review) A. A. Alnaser, et al., “AIPowered Digital Twins and Internet of Things for Smart Cities and Sustainable Building Environment,” Applied Sciences, vol. 14, no. 24, p. 12056, 2024.
- “Fire Safety Journal” — Elsevier’s peerreviewed journal covering fundamental research in fire safety engineering.
- “Fire Technology” — Springer’s peerreviewed journal on fire hazards and safety research.
- M. Almatared, H. Liu, O. Abudayyeh, O. Hakim and M. Sulaiman,“DigitalTwinBased Fire Safety Management Framework for Smart Buildings,” Buildings, vol. 14, no. 1, p. 4, Dec. 2023.
- J. Shi, Z. Pan, L. Jiang, X. Zhai, et al.,“Building ArtificialIntelligence Digital Fire (AIDFire) system: A realscale demonstration,” Journal of Building Engineering, vol. 62, p. 105363, 2022.
- W. Xie, Y. Zeng, X. Zhang, H. Y. Wong, T. Zhang, Z. Wang, et al.,“AIoTpowered building digital twin for smart firefighting and super realtime fire forecast,” Advanced Engineering Informatics, vol. 65, p. 103117, 2025
- L. Kong, J. Li, S. Guo, X. Zhou and D. Wu,“Computer vision based early firedetection and firefighting mobile robots oriented for onsite construction,” Journal of Civil Engineering and Management, vol. 30, no. 8, pp. 720–737, 2024.
- A. A. Ayrancı and B. Erkmen,“IoTbased fire detection: A comparative study of machine learning techniques,” Nigde Ömer Halisdemir University Journal of Engineering Sciences, vol. 13, no. 4, pp. 1298–1307, 2024.