Abstract
The integration of computational fluid dynamics (CFD) with deep learning in tunnel fire research is currently constrained by excessive reliance on manual operations and low overall efficiency. To address these limitations, this study presents a multi-agent collaborative framework driven by large language models, which enables full automation of the fire source characteristic inversion process. This framework reorganizes the conventional research pipeline into four dedicated, specialized agents: physical modeling, data governance, model training, and evaluation analysis. As a typical automated verification task, five deep learning models are systematically benchmarked under 45 experimental configurations to implement multi-task continuous regression inversion, which fully demonstrates the framework’s capability of automated, reproducible and large-scale comparative experiments. The experimental results demonstrated that the CNN-LSTM model outperforms other models in extracting spatiotemporal correlation features from temperature time-series data, enabling high-precision prediction of multiple fire parameters. With a 6 s observation window and 10 m sensor spacing, the average R2 attains 0.942, an improvement of 2% over the baseline LSTM model, and the RMSE decreases by 28.8%. For sparse sensor deployment at 30 m spacing, the average R2 remains at 0.917, confirming the effectiveness of integrating spatial feature extraction with temporal modeling. This study provides an efficient technical pathway for intelligent tunnel fire identification and advances the research paradigm by shifting the traditional manual optimization process to a multi-agent system-based optimization workflow.
1. Introduction
Tunnels serve as critical infrastructure in modern urban and intercity transportation networks, making operational safety paramount. Nonetheless, the naturally elongated, confined, and enclosed design of tunnels poses significant difficulties during a fire [1]. The quick spread of toxic smoke at high temperatures within confined spaces poses a severe risk to personnel safety and greatly impacts fire rescue decision-making [2,3]. Therefore, the ability to quickly and accurately identify the fire source’s location, scale, and ventilation-affected state after ignition holds irreplaceable scientific value and engineering urgency for guiding evacuation route planning, optimizing firefighting resource deployment, and minimizing loss of life and property [4,5].
Conventional tunnel fire detection technologies, such as smoke detectors based on smoke concentration thresholds, video image systems reliant on clear visibility, and linear heat-sensitive cables monitoring temperature changes, commonly suffer from inherent limitations in complex real-world tunnel environments (e.g., exhaust gas interference, low visibility smoke, fire plume deflection due to strong longitudinal airflow). These limitations include high false alarm rates, significant localization delays, and high maintenance costs [6]. In recent years, with advancements in computational power and artificial intelligence technologies, methods integrating computational fluid dynamics (CFD) numerical simulation with data-driven deep learning have opened new technical pathways for the intelligent inversion and prediction of tunnel fire characteristics [7]. Such methods establish CFD fire scenario datasets that cover diverse operational conditions. Deep learning models are then trained to fit the intricate nonlinear mapping between temperature sensor time-series information and core fire parameters, enabling accurate retrieval of fire source characteristics.
Early research widely applied the Back Propagation Neural Network (BPNN) for fire parameter identification. Xue et al. [8] first utilized BPNN to identify tunnel fire location using data from smoke concentration, temperature, and CO sensor data. Sun et al. [9] further validated the feasibility of BPNN for fire localization by conducting full-scale experiments with temperature data. Barros-Daza et al. [10] expanded BPNN to identify fire scenarios, achieving accurate classification of fire source locations from 500 simulated scenarios. These studies confirmed that neural network modeling is feasible, but BPNN simplifies time-series data, which complicates the detection of evolutionary patterns over time [11].
The development of deep learning has highlighted Convolutional Neural Networks (CNNs) for their effective spatial feature extraction. Allaire et al. [12] applied CNNs to surrogate modeling of wildfire spread simulation, demonstrating the ability of deep learning to fit complex physical fields. Meanwhile, Long Short-Term Memory (LSTM) networks have provided an effective tool for processing fire time-series data [13]. Wu et al. [14] first constructed a large-scale numerical scenario database for tunnel fires based on FDS, utilizing LSTM to achieve continuous regression prediction of multiple parameters, including fire source location and heat release rate. They also conducted a sensitivity analysis on sensor deployment strategies, indicating that prediction accuracy meets engineering requirements when sensor spacing does not exceed 20 m. In tunnel scenarios, Zhang et al. [5] systematically compared the performance of BPNN, CNN, LSTM, and CNN-LSTM in tasks involving fire source localization and different damper combinations, finding that hybrid models integrating spatial and temporal features have a clear advantage in classification tasks. However, their study did not investigate continuous regression prediction for tunnel fires.
Although the artificial intelligence-driven research paradigm for tunnel fires has achieved significant progress, it still faces critical bottlenecks [15]. First, the low degree of automation in the research workflow leads to high labor and time costs. Constructing physically credible CFD models requires deep domain expertise, and the research involves substantial repetitive manual tasks, such as geometric modeling, meshing, and solver configuration, which are cumbersome and error-prone [16]. Second, the management of sensor time-series data is complex, and preprocessing is labor intensive. The process of extracting, cleaning, and organizing data into structured training sets is time-consuming and technically demanding. Finally, the lengthy experimental research cycle makes it difficult to conduct large-scale, systematic parametric sensitivity analysis and iterative optimization of model architectures. This “artisanal” research model has become a core obstacle restricting the rapid development and engineering application of the field [17].
To address the previously mentioned challenges, this paper proposes and constructs a multi-agent collaborative artificial intelligence framework for inverting fire source characteristics in tunnel fires [18]. This framework incorporates an agent system based on large language models (LLMs). By simulating the collaborative model of a scientific research team, this framework restructures the traditional workflow, which spans physical modeling, data production, model training, and comprehensive evaluation, and previously relied heavily on manual operations. It thereby transforms this process into a highly automated and intelligent collaborative workflow [19]. To validate the effectiveness and efficiency of the proposed framework, a systematic benchmarking of five deep learning models is automatically conducted as a representative end-to-end task, covering multi-parameter inversion of fire source location, HRR, and longitudinal ventilation velocity [20,21].
The main contributions of this paper are summarized as follows:
- (1)
- This research initially combines a multi-agent collaborative system powered by LLM with specialized knowledge in tunnel fire, allowing for complete automation of fire source characteristic inversion from task creation to the final model deployment. The system encompasses the full workflow of tunnel physical modeling, data management, model training, and evaluation feedback, which significantly enhances the efficiency of research in tunnel fire inversion studies.
- (2)
- This study conducts a systematic comparison to clarify how different deep learning architectures perform in fire source characteristic inversion tasks. Leveraging a database of 100 FDS-simulated tunnel fire scenarios, this paper comprehensively assesses five representative models’ performance in multi-task continuous regression, targeting three key parameters: fire source location, heat release rate (HRR), and longitudinal ventilation velocity. By examining their capabilities in temporal feature extraction, spatial feature fusion, and long-range dependency capture, this study provides in-depth insights into the underlying mechanisms and applicable scenarios of different architectures, offering a reliable basis for model selection in future research.
- (3)
- This study validates the superior performance and strong robustness of CNN-LSTM under the challenge of continuous multi-task prediction. Under a sparse sensor deployment condition with a spacing of 30 m, the CNN-LSTM model achieves a validation set R2 of 91.7% under the early time window of 6 s, outperforming the baseline LSTM model by 1.6%.
2. Research Methodology
2.1. Multi-Agent Collaborative Research Outline
The core design philosophy of the multi-agent collaborative research framework is to decouple the complex research workflow into a series of standardized and modular tasks. Those tasks executed autonomously by specialized and collaborative agents, thereby constructing an end-to-end automated pipeline from physical problem definition to AI model delivery. Figure 1 illustrates the overall architecture and agent collaboration flow of the framework.
Figure 1.
Multi-agent collaborative research framework for tunnel fire.
2.1.1. Principles of the Tunnel Fire Multi-Agent System
The tunnel fire multi-agent system, built on Claude Code, adopts prompt engineering as behavioral specification, the shared-state paradigm as the communication backbone, a sequential task chain as execution logic, and multi-level human review as risk assurance [22]. This realizes lightweight, high-efficiency, and trustworthy end-to-end workflow automation for tunnel fire source characteristic inversion. The overall operational procedure is detailed as follows [23]:
- (1)
- Initialization phase: System prompts define the team collaboration rules, as well as the role, capabilities, operational constraints and output format of each individual agent.
- (2)
- Task requirement input: Users submit research task requirements in natural language.
- (3)
- Task scheduling: The central orchestrator dispatches each agent sequentially following a predefined task chain, covering physical modeling, data governance, model training, and evaluation analysis.
- (4)
- State synchronization: Each agent synchronizes data and execution status via the global shared state, ensuring seamless handover across the workflow pipeline.
- (5)
- Human review: Human review is activated at key workflow nodes. Tasks that pass review proceed to the next phase; otherwise, they are returned to the corresponding agent for regenerative optimization.
- (6)
- Automatic Evaluation and Output: The system autonomously conducts model performance evaluation and optimal model selection, eventually constructing an automated, traceable, and verifiable scientific research pipeline.
2.1.2. Multi-Agent Collaboration and Interaction Mechanism
This system adopts a shared-state mechanism for multi-agent collaborative communication, where all agents share a unified global state space. The shared state space uniformly stores key information, including tunnel physical parameters, simulation configurations, sensor layouts, data preprocessing rules, model hyperparameters, and task execution status [24]. The preceding agent writes its computation results and status flags into the shared space, and the subsequent agent directly reads and invokes them without the need for additional communication interfaces or format conversion [25]. This achieves low-coupling, high-consistency collaborative interaction.
2.1.3. Human Intervention Review Node Mechanism
To balance automation efficiency and risk control, the proposed framework embeds five mandatory human intervention nodes at key workflow stages. Strategically deployed across physical modeling, data governance, model training, result evaluation, and final output, these nodes support real-time manual inspection, parameter revision, and scheme optimization [26]. The detailed flowchart refers to Appendix A. The human intervention review nodes are summarized in Table 1.
Table 1.
Human intervention review node.
2.2. Physical Modeling Agent
The physical modeling agent is responsible for converting human expert research requirements described in natural language into physically credible and computationally viable CFD model libraries. Based on large language model mechanisms, it identifies, extracts, and formalizes key requirements from expert-provided descriptions. Figure 2 illustrates the workflow of the three agents involved in physical modeling.
Figure 2.
Schematic diagram of tunnel physical modeling agent.
Single-case modeling agent acts as the designer for tunnel modeling, responsible for identifying and extracting user descriptions of tunnel geometry, materials, boundary conditions, and initial fire source parameters. Combined with constraints from a dedicated tunnel fire knowledge base, it automatically generates physically plausible FDS files for tunnel modeling [27]. This study selects the full-scale road test tunnel from the Sichuan Fire Research Institute of China as the research example. The model tunnel is set with a length of 160 m (x-direction), a width of 6 m (y-direction), and a height of 6 m (z-direction). All tunnel wall surfaces are treated as inert boundaries, and the atmospheric temperature is maintained at 20 °C throughout the simulation. The left exit is open, while the right exit is set as open or a constant ventilation boundary, depending on ventilation conditions. The inner tunnel surface is assumed to be perfectly smooth (roughness = 0). The vehicle fire is represented by a rectangular fire source of 3 m × 6 m, which is installed at a height of 0.5 m above the tunnel ground.
The grid size is a critical parameter influencing both modeling accuracy and computational efficiency in FDS simulations. The mesh arrangement scheme adopted in this study follows the previous study [14]. The computational domain of each tunnel fire model was divided into three zones. A fine mesh of 0.05 m was used within 20 m of the fire source, while a coarse mesh of 0.2 m was applied to the remaining areas. In the two-dimensional FDS model, a single-layer mesh was discretized along the tunnel’s Y-axis. All fire scenarios consistently employed approximately 69,000 mesh elements. The single-case modeling schematic is shown in Figure 3, which includes (a) key parameters of the tunnel fire numerical model and (b) the sampling period window.
Figure 3.
Single-case modeling schematic (a) key parameters of tunnel fire numerical model (b) sampling period window.
Benchmark template validation agent is responsible for verifying the accuracy of single-case FDS simulation results. This agent can automatically execute the FDS file for a specified case, extract the temperature curves at left, middle, and right exits of the tunnel ceiling from the generated temperature field, and compare them with benchmark results from full-scale fire experiments or authoritative literature to validate model agreement [28]. Successfully validated FDS templates are passed as benchmark templates to the next stage, ensuring that the subsequent research is built upon a reliable physical foundation.
The multi-case generation agent acts as the experimental design engine. Based on user-defined experimental design schemes, this agent automatically writes scripts to batch modify key parameters in input files, generating a complete library of FDS case files that cover all parameter combinations. As shown in Table 2, this study considers three key variables, including fire source location (X), heat release rate (Q), and longitudinal ventilation velocity (V). A total of 100 independent fire cases are generated, laying the foundation for subsequent large-scale parametric studies.
Table 2.
Design of 100 tunnel fire scenarios.
2.3. Data Governance Agent
The data governance agent acts as a big data engineer, responsible for efficiently and reliably producing high-quality datasets suitable for deep learning. It interacts with high-performance computing clusters to intelligently package generated FDS job files, queue tasks for batch submission, and monitor job status and resource usage in real time. Upon computation completion, it automatically locates and parses the output files for each case, accurately extracting temperature time-series data from all preset measurement points to form a raw data pool.
Based on FDS numerical simulations, a dedicated dataset comprising 100 independent tunnel fire cases was constructed. For each case, one temperature measurement point is placed at equal longitudinal spacing along the tunnel ceiling, with spacing set to 10 m, 20 m, or 30 m. Temperature variations during the first 300 s after fire ignition are recorded at a sampling frequency of 1 Hz, forming temperature time-series. The dataset is randomly split into training, test, and validation sets in a ratio of 6:2:2, ensuring balanced distribution of case parameters across the splits [29]. The process of constructing the tunnel fire scenario simulation database is illustrated in Figure 4.
Figure 4.
Schematic diagram of tunnel fire scenario simulation database design.
2.4. Model Training Agent
In fire parameter inversion research, traditional experimental workflows typically rely on manual execution of repetitive tasks, such as data preprocessing, model selection, hyperparameter tuning, and result aggregation. Given the combination space involving multiple window lengths, multiple sensor spacings, and multiple models, such manual operations are not only inefficient but also make it difficult to ensure experimental fairness and reproducibility.
To address these issues, this paper designs and implements an AI agent tailored for multi-output continuous regression tasks. Through a modular design, this agent takes raw temperature time-series data as input and automatically executes data loading, data preprocessing, model construction, training evaluation, and result summarization. It systematically traverses all experimental configurations, providing a stable, efficient, and scalable infrastructure for fire parameter inversion research.
2.4.1. Model Selection
To systematically evaluate the performance differences in various deep learning architectures in fire parameter inversion tasks, this study selects five representative models, ranging from simple fully connected networks to complex spatiotemporal hybrid architectures [30].
- BPNN: Flattens spatiotemporal data and uses fully connected layers for direct regression, serving as a model without awareness of temporal structure.
- LSTM: Captures long-term and short-term dependencies in time series through gating mechanisms, serving as a classic benchmark for processing sequential data.
- BiLSTM: Utilizes both forward and backward temporal information simultaneously to enhance a comprehensive understanding of temporal context.
- CNN-LSTM: Combines the local feature perception advantage of CNN with the long-term and short-term memory capability of LSTM, thereby enhancing the model’s understanding and prediction performance for complex spatiotemporal data.
- CNN-BiLSTM: On the basis of CNN-LSTM, the unidirectional LSTM is replaced with BiLSTM, which further strengthens spatial feature extraction, as well as bidirectional temporal modeling.
Figure 5 illustrates the specific network structures of five representative models under conditions of 10 m sensor spacing and a 6 s observation window.
Figure 5.
Schematic diagram of BPNN, LSTM, CNN-LSTM, BiILSTM, CNN-BiLSTM structures.
2.4.2. Hyperparameter Settings
To ensure experimental fairness and reproducibility, all models employed unified training hyperparameter configurations. Using the RMSprop optimizer [31], we set the initial learning rate to , batch size to 800, and the number of training epochs set to 500. The loss function was Mean Squared Error (MSE). Inputs were normalized to zero mean and unit variance. Normalization parameters were computed only from the training data and then applied to the validation and test sets.
2.4.3. Experimental Design
To systematically evaluate the model performance, this study adopts a full factorial experimental design. It encompasses three sensor spacings (10 m, 20 m, 30 m), three time window lengths (6 s, 8 s, 12 s), and five deep learning models (BPNN, LSTM, CNN-LSTM, BiLSTM, and CNN-BiLSTM), yielding 45 distinct experimental cases, as detailed in Table 3.
Table 3.
Deep learning model experimental design.
Changes in sensor spacing evaluate the impact of spatial sampling density on prediction accuracy: smaller spacing provides richer information but incurs higher hardware costs. Different time windows represent varying observation durations in the early fire phase, enabling an investigation into the effect of data volume on model performance: shorter windows allow for shorter warning lead times, which is more advantageous for fire rescue. Comparative experiments across five model types aim to reveal the strengths and weaknesses of different deep learning architectures in spatiotemporal feature extraction and temporal modeling for tunnel fires.
The computing environment consisted of an Intel(R) Xeon(R) Gold 6334 CPU at 3.60 GHz and 48 GB of RAM. Claude-3.5 [32] was adopted as the foundational platform to enable efficient, intelligent collaboration at each key stage of the optimization workflow for tunnel fire intelligent detection.
2.5. Comprehensive Evaluation Agent
As a specialist in deep learning model evaluation and visualization, the evaluation and analysis agent is responsible for the quantitative assessment of 45 groups of experimental results, scientific figure plotting, optimal model selection, and the output of standardized evaluation reports [33]. Its main work content includes two aspects: first, reading the training logs and prediction results of the model, calculating key evaluation indicators to ensure the scientificity and accuracy of the data; second, drawing professional performance comparison charts, screening the optimal model according to the evaluation indicators, and finally generating a standardized evaluation report.
In the current study, the Coefficient of Determination (R2) and Root Mean Squared Error (RMSE) were used to assess the multi-task continuous regression performance of the developed models [34].
The R2 quantifies how well the model accounts for the variance in the target variable. This metric generally takes values between 0 and 1, where higher values (approaching 1) correspond to a stronger goodness-of-fit between the model predictions and the observed data [35]. Its mathematical definition is given in Equation (1):
The RMSE quantifies the magnitude of the absolute difference between predicted values and ground truth observations, and it carries the same physical units as the target variable. Lower RMSE values correspond to higher prediction accuracy, as they indicate smaller discrepancies between model outputs and real-world measurements. The corresponding formula is provided in Equation (2):
where denotes the ground value for the -th sample, is the predicted value for the -th sample, represents the mean of the true values, is the total number of samples, refers to the residual sum of squares, and is the total sum of squares. The average R2 is defined as the arithmetic mean of the R2 values for the three fire parameters (location, heat release rate, ventilation speed). Similarly, the overall RMSE is computed by treating predictions for all three fire parameters as a unified dataset, offering a measure of the model’s comprehensive prediction error across the entire set of target variables.
3. Results
3.1. Performance of the Models at a Sensor Spacing of 10 m
This study systematically assesses the effectiveness of five deep learning models in characterizing fire sources in tunnel fires, using data from 45 full factorial experiments. For example, Figure 6 presents a comparison of the average R2 and the RMSE metrics of the models on the validation set under conditions with a sensor spacing of 10 m and observation windows of 6 s, 8 s, and 12 s.
Figure 6.
Key performance metrics of models under 10 m sensor spacing.
Figure 6 illustrates that the main findings are the following:
- (1)
- All temporal models significantly outperform the BPNN baseline, as BPNN fails to capture temporal dependencies. Under all observation window settings, BPNN consistently yields the lowest and the highest RMSE, which demonstrates that temporal feature learning is essential for accurate tunnel fire parameter inversion.
- (2)
- For the shortest observation window of 6 s, the average R2 follows the order: CNN-LSTM > CNN-BiLSTM > BiLSTM > LSTM > BPNN. Specifically, CNN-LSTM achieves the highest of approximately 0.942, while BPNN records the lowest value of approximately 0.911. In terms of RMSE, the order is reversed: BPNN > LSTM > CNN-BiLSTM >BiLSTM > CNN-LSTM, with CNN-LSTM maintaining the lowest RMSE at this window length.
- (3)
- As the observation window extends from 6 s to 12 s, the values of all five models show a steady upward trend, while the corresponding RMSE decreases accordingly.
3.2. Impacts of Observation Window Length and Sensor Spacing on CNN-LSTM and Baseline LSTM Performance
As sensor spacing increases, the R2 of all models declines, while RMSE increases. This is due to the information loss resulting from decreased spatial sampling density. Under sparse deployment conditions with a spacing of 30 m and an observation window of 6 s, the validation set R2 of LSTM is 0.901, which is close to the empirical threshold for engineering application (R2 > 0.9 is often considered acceptable). In contrast, CNN-LSTM maintains a higher R2 of 0.917, approximately 1.6% higher than LSTM. The key performance of LSTM and CNN-LSTM at sensor spacings of 10 m, 20 m, and 30 m is illustrated in Figure 7.
Figure 7.
Key performance of LSTM and CNN-LSTM at sensor spacings of 10 m/20 m/30 m.
3.3. Quantitative Comparison
This study conducts a quantitative comparison based on 100 FDS simulation scenarios and 45 deep learning experimental cases.
Evaluation protocol: Three senior researchers (each with >3 years of experience in tunnel fire CFD and deep learning) independently performed a standardized subset of 10 out of 100 fire scenarios, covering the full range of fire locations, HRRs, and ventilation conditions.
Metrics and error definition: Total project duration (calendar days), hands-on time (hours), and human error rate. Errors were explicitly defined (e.g., incorrect FDS boundary conditions, sensor misconfiguration, data preprocessing mistakes, script dimension mismatches, figure errors).
Repetition: Each researcher repeated the manual workflow twice to account for intra-operator variability.
Updated results: The framework reduced total project duration by 50%, hands-on time by 80%, and human error rate from 15% to 3%. The quantitative comparison results are summarized in Table 4.
Table 4.
Quantitative comparison between the proposed multi-agent framework and the traditional manual workflow.
4. Discussion
4.1. Automated Efficiency Improvement in the Multi-Agent Framework
In this study, the multi-agent framework achieves a 50% reduction in R&D time and a significant decrease in error rates. The core reason is that it transforms repetitive engineering tasks in tunnel fire research, including FDS modeling, script writing, data cleaning, and model training into standardized, automated pipeline workflows. In traditional research, manual debugging of FDS grids, boundary conditions, and simulation scripts requires repeated parameter verification, which is prone to human errors due to oversight. In contrast, the rule-based execution of agents, supported by domain knowledge bases, effectively eliminates such human mistakes.
4.2. Analysis of the Underlying Mechanisms Driving the Superior Performance of the CNN-LSTM Model
In fire source parameter inversion tasks, the CNN-LSTM model consistently outperforms baseline methods, which can be attributed to its hybrid architecture that unites spatial feature extraction and temporal sequence modeling. The one-dimensional CNN captures spatial correlation among temperature sensors distributed throughout the tunnel via convolution operations, compensating for the limitation of vanilla LSTM in perceiving sensor spatial distribution. Meanwhile, LSTM accurately characterizes the temporal evolution patterns of tunnel fire temperature fields, addressing the inability of standard CNNs to model long-range temporal dependencies. Ablation experimental results demonstrate that the performance gain contributed by the CNN module is considerably greater than that of the BiLSTM module. This indicates that spatial feature fusion serves as the core factor for improving inversion accuracy under sparse sensor deployment.
4.3. Engineering Significance of Sparse Sensor Deployment
This study confirms that the CNN-LSTM model maintains an R2 of 0.917 even at a sensor spacing of 30 m, breaking through the previous limitation of the LSTM model that “sensor spacing should not exceed 20 m”. This result indicates that the spatial-temporal fusion model can effectively compensate for information loss caused by sparse sampling, providing theoretical support for the lightweight deployment of tunnel fire monitoring systems. In practical engineering applications, the 30 m spacing sensor deployment scheme reduces the number of devices by one-third, significantly lowering construction and maintenance costs, and is particularly suitable for the design of fire monitoring systems in long-distance tunnels.
4.4. Limitations
There are a few limitations to this study. First, FDS simulations inherently deviate from real fire scenarios, and the current model is only validated against numerical data rather than scaled or full-scale experimental fire measurements. Meanwhile, the model comparisons are primarily based on 2D or simplified tunnel geometries due to the high computational cost of large-scale 3D simulations. Second, the framework focuses on relatively simple scenarios involving a single fire source and longitudinal ventilation, without considering multi-fire-source coupling or complex ventilation conditions. Third, the agents lack autonomous decision-making capabilities and rely on predefined prompts and manual intervention nodes, which limits their adaptability to unforeseen situations.
Future work will extend to complex scenarios, such as multi-fire source coupling, and incorporate advanced model architectures like attention mechanisms. In addition, validation using full-scale experimental data will be conducted, alongside the exploration of agent systems with autonomous learning capabilities, aiming to achieve a higher level of closed-loop operation toward an AI scientist paradigm.
5. Conclusions
This work presents a multi-agent collaborative framework powered by large language models, designed to automate the repetitive yet essential tasks of model selection, ablation studies, and comparative experiments in tunnel fire source characteristic inversion. The framework covers the end-to-end workflow from CFD scenario generation to model deployment, while incorporating human review nodes for quality assurance. Its core value lies in enabling researchers to quickly validate experimental hypotheses by delegating implementation details to autonomous agents. Comprehensive experiments demonstrate that the framework reduces research cycle time by 50% and human error rate from 15% to 3%. As a demonstration of its capability, the framework automatically benchmarked five deep learning models under 45 configurations, generating actionable insights (e.g., CNN-LSTM as a robust architecture) without manual scripting. This paradigm shifts tunnel fire research from manual, ad hoc implementation to automated, reproducible experimentation, freeing researchers to focus on higher-level innovation.
The CNN-LSTM model performs best in the inversion tasks for fire source location, heat release rate, and longitudinal ventilation velocity. Under a sensor spacing of 10 m and an observation window of 6 s, the validation set R2 reaches 0.942, representing a 2% improvement over the baseline LSTM model and enabling high-precision fire parameter inversion in the early stages of an incident. The CNN-LSTM model also exhibits excellent robustness under sparse sensor deployment: the R2 remains above 0.917 even at a spacing of 30 m, providing a key basis for low-cost, lightweight deployment of tunnel fire monitoring systems.
This study’s proposed automated multi-agent research paradigm establishes an efficient, dependable technical framework for the intelligent inversion of tunnel fire parameters. It advances the field of tunnel fire research by shifting traditional manual-driven processes to AI-assisted workflows, and provides robust support for emergency decision-making in long and large tunnel fire scenarios, paving the way for future AI-driven safety solutions in tunnel engineering.
Author Contributions
Methodology, D.Z., A.G.; software, D.Z.; validation, D.Z. and A.G.; formal analysis, A.G. and Z.X.; resources, A.G.; data curation, A.G.; writing—original draft, D.Z.; writing—review and editing, D.Z., A.G.; supervision, Z.X.; project administration, A.G. and Z.X. All authors have read and agreed to the published version of the manuscript.
Funding
National Science and Technology Major Project: Fire Experiment and Traceability Research Based on Full-Scale Experimental Platform, 2024ZD0802105-2.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
Data available on request due to restrictions.
Acknowledgments
During the preparation of this manuscript, we adopted Claude 3.5 (Claude Code) to assist in generating FDS simulation files, writing deep learning program codes, and plotting analysis figures. All AI-generated contents have been fully reviewed, revised and edited by the authors. The authors take full responsibility for the accuracy and integrity of the entire manuscript.
Conflicts of Interest
The authors declare no conflicts of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| AI | Artificial Intelligence |
| LLMs | Large Language Models |
| CFD | Computational Fluid Dynamics |
| FDS | Fire Dynamics Simulator |
| HRR | Heat Release Rate (MW) |
| CNN | Convolutional Neural Network |
| LSTM | Long Short-Term Memory |
| CNN-LSTM | Convolutional Long Short-Term Memory |
| BPNN | Back Propagation Neural Network |
| BiLSTM | Bidirectional Long Short-Term Memory |
| CNN-BiLSTM | Convolutional Bidirectional Long Short-Term Memory |
| RMSE | Root Mean Square Error |
| R2 | Coefficient of Determination |
| RAG | Retrieval-Augmented Generation |
| MCP | Model Context Protocol |
Appendix A
Figure A1.
Process of the multi-agent collaboration framework.
References
- Elsisi, M.; Tran, M.-Q.; Mahmoud, K.; Lehtonen, M.; Darwish, M.M.F. Deep Learning-Based Industry 4.0 and Internet of Things Towards Effective Energy Management for Smart Buildings. Sensors 2021, 21, 1038. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- James, G.L.; Ansaf, R.B.; Al Samahi, S.S.; Parker, R.D.; Cutler, J.M.; Gachette, R.V.; Ansaf, B.I. An Efficient Wildfire Detection System for AI-Embedded Applications Using Satellite Imagery. Fire 2023, 6, 169. [Google Scholar] [CrossRef] [Scilit]
- Ryu, J.; Kwak, D. A Study on a Complex Flame and Smoke Detection Method Using Computer Vision Detection and Convolutional Neural Network. Fire 2022, 5, 108. [Google Scholar] [CrossRef] [Scilit]
- Halawa, T. Numerical simulation of the evacuation process and smoke propagation due to a fire in a road tunnel with transverse ventilation system. J. Therm. Sci. Eng. Appl. 2021, 13, 031015. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Z.; Wang, L.; Liu, S.; Yin, Y. Intelligent fire location detection approach for extrawide immersed tunnels. Expert Syst. With Appl. 2024, 239, 122251. [Google Scholar] [CrossRef] [Scilit]
- Liu, Z.; Zhang, L.; Ma, H.; Chen, X.; Zhang, M. Research on lightweight tunnel cable fire recognition algorithm based on multi-scale features. Sci. Rep. 2025, 15, 25841. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Manea, F.; Ghicioi, E.; Suvar, M.C.; Prodan, M.; Vlasin, N.I.; Suvar, N.S.; Vlase, T. FDS Results for Selecting the Right Scenario in the Case of a Building Fire: A Case Study. Fire 2022, 5, 198. [Google Scholar] [CrossRef] [Scilit]
- Xue, C.J. The road tunnel fire detection of multi-parameters based on BP neural network. In 2010 2nd International Asia Conference on Informatics in Control, Automation and Robotics (CAR 2010); IEEE: Piscataway, NJ, USA, 2010; Volume 1, pp. 441–444. [Google Scholar]
- Sun, B.; Liu, X.; Xu, Z.-D.; Xu, D. An Improved Updatable Backpropagation Neural Network for Temperature Prognosis in Tunnel Fires. J. Perform. Constr. Facil. 2022, 36, 04022012. [Google Scholar] [CrossRef] [Scilit]
- Barros-Daza, M.J.; Luxbacher, K.D.; Lattimer, B.Y.; Hodges, J.L. Real Time Mine Fire Classification to Support Firefighter Decision Making. Fire Technol. 2022, 58, 1545–1578. [Google Scholar] [CrossRef] [Scilit]
- Guo, C.; Guo, Q.; Zhang, T.; Li, W.; Zhu, H.; Yan, Z. Study on real-time heat release rate inversion for dynamic reconstruction and visualization of tunnel fire scenarios. Tunn. Undergr. Space Technol. 2022, 122, 104333. [Google Scholar] [CrossRef] [Scilit]
- Allaire, F.; Mallet, V.; Filippi, J.B. Emulation of wildland fire spread simulation using deep learning. Neural Netw. 2021, 141, 184–198. [Google Scholar] [CrossRef] [Scilit]
- Sherstinsky, A. Fundamentals of Recurrent Neural Network (RNN) and Long Short-Term Memory (LSTM) Network. Phys. D Nonlinear Phenom. 2020, 404, 132306. [Google Scholar] [CrossRef] [Scilit]
- Wu, X.; Park, Y.; Huang, X. Smart Detection of Fire Source in Tunnel Based on the Numerical Database and Artificial Intelligence. Fire Technol. 2021, 57, 657–682. [Google Scholar] [CrossRef] [Scilit]
- Alzubaidi, L.; Zhang, J.; Humadi, A.J.; Al-Dujaili, A.; Duan, Y.; Al-Shamma, O.; Santamaria, J.; Fadhel, M.A.; Al-Amidie, M.; Farhan, L. Review of deep learning: Concepts, CNN architectures, challenges, applications, future directions. J. Big Data 2021, 8, 53. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Migoya, E.; Crespo, A.; García, J.; Hernández, J. A simplified model of fires in road tunnels. Comparison with three-dimensional models and full-scale measurements. Tunn. Undergr. Space Technol. 2009, 24, 37–52. [Google Scholar] [CrossRef] [Scilit]
- Zhu, Y.; Qiao, S.; Ou, Y.; Deng, S.; Lyu, S.; Shen, Y.; Liang, L.; Gu, J.; Chen, H.; Zhang, N. Know Agent: Knowledge-Augmented Planning for LLM-Based Agents; Cornell University Library: Ithaca, NY, USA, 2025; pp. 3709–3732. [Google Scholar]
- Samuel Schmidgall, Y.S.Z.W. Agent Laboratory: Using LLM Agents as Research Assistants. In Empirical Methods in Natural Language Processing 2025; Association for Computational Linguistics: Stroudsburg, PA, USA, 2025; pp. 5977–6043. [Google Scholar]
- Iapascurta, V.; Fiodorov, I.; Belii, A.; Bostan, V. Multi-Agent Approach for Sepsis Management. Healthc. Inform. Res. 2025, 31, 209–214. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Renze, M.; Guven, E. Self-reflection in llm agents: Effects on problem-solving performance. arXiv 2024, arXiv:2405.06682. [Google Scholar]
- Chow, W.K.; Gao, Y.; Zhao, J.H.; Dang, J.F.; Chow, C.L.; Miao, L. Smoke Movement in Tilted Tunnel Fires with Longitudinal Ventilation. Fire Saf. J. 2015, 75, 14–22. [Google Scholar] [CrossRef] [Scilit]
- Buffington, T.; Cabrera, J.M.; Kurzawski, A.; Ezekoye, O.A. Deep-Learning Emulators of Transient Compartment Fire Simulations for Inverse Problems and Room-Scale Calorimetry. Fire Technol. 2020, 56, 2143–2170. [Google Scholar] [CrossRef] [Scilit]
- Jadhav, Y.; Farimani, A.B. Large language model agent as a mechanical designer. arXiv 2024, arXiv:240417525. [Google Scholar] [CrossRef] [Scilit]
- Chew, M.Y.L.; Yan, K. Enhancing Interpretability of Data-Driven Fault Detection and Diagnosis Methodology with Maintainability Rules in Smart Building Management. J. Sens. 2022, 2022, 5975816. [Google Scholar] [CrossRef] [Scilit]
- Owoyele, O.; Pal, P.; Torreira, A.V.; Probst, D.; Shaxted, M.; Wilde, M.; Senecal, P.K. Application of an automated machine learning-genetic algorithm (AutoML-GA) coupled with computational fluid dynamics simulations for rapid engine design optimization. Int. J. Engine Res. 2022, 23, 1586–1601. [Google Scholar] [CrossRef] [Scilit]
- Verda, V.; Borchiellini, R.; Cosentino, S.; Guelpa, E.; Tuni, J.M. Expanding the FDS simulation capabilities to fire tunnel scenarios through a novel multi-scale model. Fire Technol. 2021, 57, 2491–2514. [Google Scholar] [CrossRef] [Scilit]
- Vermesi, I.; Rein, G.; Colella, F.; Valkvist, M.; Jomaas, G. Reducing the computational requirements for simulating tunnel fires by combining multiscale modelling and multiple processor calculation. Tunn. Undergr. Space Technol. 2017, 64, 146–153. [Google Scholar] [CrossRef] [Scilit]
- Su, L.-C.; Wu, X.; Zhang, X.; Huang, X. Smart performance-based design for building fire safety: Prediction of smoke motion via AI. J. Build. Eng. 2021, 43, 102529. [Google Scholar] [CrossRef] [Scilit]
- Ma, Q.; Chen, Z.; Chen, J.; Sun, Y.; Chen, N.; Du, M. Assist in real-time risk evaluation induced by electrical cabinet fires in nuclear power plants: A dual AI framework employing BiTCN and TCNN. Reliab. Eng. Syst. Saf. 2025, 260, 111037. [Google Scholar] [CrossRef] [Scilit]
- Muksimova, S.; Umirzakova, S.; Babaraximova, D.A.; Cho, Y.I. Lightweight Fire Detection in Tunnel Environments. Fire 2025, 8, 134. [Google Scholar] [CrossRef] [Scilit]
- Qian, F.; Chen, L.; Li, J.; Ding, C.; Chen, X.; Wang, J. Direct Prediction of the Toxic Gas Diffusion Rule in a Real Environment Based on LSTM. Int. J. Environ. Res. Public Health 2019, 16, 2133. [Google Scholar] [CrossRef] [Scilit]
- Anthropic, S. Model Card Addendum: Claude 3.5 Haiku and Upgraded Claude 3.5 Sonnet. p. 24. Available online: https://www-cdn.anthropic.com/c7822cdc35ad788ec87e14b3a9d45010f1f86c38.pdf (accessed on 15 December 2025).
- Wu, X.; Zhang, X.; Jiang, Y.; Huang, X.; Huang, G.G.; Usmani, A. An intelligent tunnel firefighting system and small-scale demonstration. Tunn. Undergr. Space Technol. 2022, 120, 104301. [Google Scholar] [CrossRef] [Scilit]
- Koekkoek, E.J.W.; Booltink, H. Neural network models to predict soil water retention. Eur. J. Soil. Sci. 1999, 50, 489–495. [Google Scholar] [CrossRef] [Scilit]
- Adamowski, J.; Karapataki, C. Comparison of Multivariate Regression and Artificial Neural Networks for Peak Urban Water-Demand Forecasting: Evaluation of Different ANN Learning Algorithms. J. Hydrol. Eng. 2010, 15, 729–743. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.









