Symmetry-Enhanced Indoor Occupant Locating and Motionless Alarm System: Fusion of BP Neural Network and DS-TWR Technology
Abstract
1. Introduction
2. Positioning Algorithm Based on BP Neural Network and DS-TWR Technology
2.1. DS-TWR Ranging Technology
2.2. BP Neural Network
2.3. BP Neural Network Training to Enhance Positioning Accuracy
3. Design of the System
3.1. Overview of System Functions
3.2. Hardware Equipment
3.3. Software Programming
4. Functional Test
4.1. Static Positioning Accuracy and Stability Test
4.2. Motion Trajectory Monitoring Accuracy Test
4.3. Real-Time Position and Trajectory Display Function Test
4.4. Alarm Display Function Test
4.5. Complex Environment Test
5. Discussion
5.1. Technology
5.2. Accuracy
5.3. Function
6. Conclusions
7. Future Work
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
Appendix A. BP Neural Network Training Implementation Details
- (1)
- The symmetrical experimental scenario and sample

- (2)
- BP neural network training process and parameters
- (3)
- Determination of the number of hidden nodes
- (4)
- BP neural network training
| Number | The Distance Between the Tags and the Base Stations (m) | Real Coordinates of Locating Tag (m) | ||||
|---|---|---|---|---|---|---|
| Base Station 1 | Base Station 2 | Base Station 3 | Base Station 4 | x | y | |
| 1 | 4.08 | 5.66 | 3.97 | 0.94 | 0.598 | 3.948 |
| 2 | 3.53 | 5.27 | 4.10 | 1.36 | 0.598 | 3.386 |
| 3 | 2.97 | 4.87 | 4.32 | 1.90 | 0.598 | 2.824 |
| …… | …… | …… | …… | …… | …… | …… |
| 400 | 4.05 | 0.74 | 4.07 | 5.70 | 3.904 | 0.5675 |
- (5)
- Validation of the training results of BP neural network
Appendix B. Programming Diagrams of the System




References
- Khan, A.A.; Khan, M.A.; Leung, K.; Huang, X.; Luo, M.; Usmani, A. A review of critical fire event library for buildings and safety framework for smart firefighting. Int. J. Disaster Risk Reduct. 2022, 83, 103412. [Google Scholar] [CrossRef]
- Qi, Y.; Pan, Z.; Hong, Y.; Yang, M.H.; Van Den Hengel, A.; Wu, Q. The Road to Know-Where: An Object-and-Room Informed Sequential BERT for Indoor Vision-Language Navigation. arXiv 2021. [Google Scholar] [CrossRef]
- Xiao, J.; Zhou, Z.; Yi, Y.; Ni, L.M. A Survey on Wireless Indoor Localization from the Device Perspective. Acm Comput. Surv. 2016, 49, 1–31. [Google Scholar] [CrossRef]
- Zafari, F.; Gkelias, A.; Leung, K.K. A Survey of Indoor Localization Systems and Technologies. IEEE Commun. Surv. Tutor. 2019, 21, 2568–2599. [Google Scholar] [CrossRef]
- Wang, H.; Wang, G.; Li, X. Image-based occupancy positioning system using pose-estimation model for demand-oriented ventilation. J. Build. Eng. 2021, 39, 102220. [Google Scholar] [CrossRef]
- Gomes, E.L.; Fonseca, M.; Lazzaretti, A.E.; Munaretto, A.; Guerber, C. Clustering and Hierarchical Classification for High-Precision RFID Indoor Location Systems. IEEE Sens. J. 2022, 22, 5141–5149. [Google Scholar] [CrossRef]
- Xu, J.; Yang, Z.; Chen, H.; Liu, Y.; Zhou, X.; Li, J.; Lane, N. Embracing Spatial Awareness for Reliable WiFi-Based Indoor Location Systems. In Proceedings of the 2018 IEEE 15th International Conference on Mobile Ad Hoc and Sensor Systems (MASS), Chengdu, China, 9–12 October 2018; pp. 281–289. [Google Scholar] [CrossRef]
- Terán, M.; Aranda, J.; Carrillo, H.; Mendez, D.; Parra, C. IoT-based system for indoor location using bluetooth low energy. In Proceedings of the 2017 IEEE Colombian Conference on Communications and Computing (COLCOM), Cartagena, Colombia, 16–18 August 2017; pp. 1–6. [Google Scholar] [CrossRef]
- Großwindhager, B.; Stocker, M.; Rath, M.; Boano, C.A.; Römer, K. SnapLoc: An Ultra-Fast UWB-Based Indoor Localization System for an Unlimited Number of Tags. In Proceedings of the 18th ACM/IEEE International Conference on Information Processing in Sensor Networks, Montreal, QC, Canada, 16–18 April 2019; pp. 61–72. [Google Scholar]
- Yang, S.; Liu, J.; Gong, X.; Huang, G.; Bai, Y. A Robust Heading Estimation Solution for Smartphone Multisensor-Integrated Indoor Positioning. IEEE Internet Things J. 2021, 8, 17186–17198. [Google Scholar] [CrossRef]
- Zhou, H.; Cong, H.; Wang, Y.; Dou, Z. A computer-vision-based deep learning model of smoke diffusion. Process Saf. Environ. Prot. 2024, 187, 721–735. [Google Scholar] [CrossRef]
- Wang, P.; Lian, Z.; Núñez-Andrés, M.A.; Tian, Y.; Wang, M.; Chai, H.; Bi, J.; Liu, X. A GCN-GRU-KAN-Based Framework for UWB 3D localization in adverse geometric configurations. Measurement 2026, 258, 119066. [Google Scholar] [CrossRef]
- Liu, Q.; Yin, Z.; Zhao, Y.; Wu, Z.; Wu, M. UWB LOS/NLOS identification in multiple indoor environments using deep learning methods. Phys. Commun. 2022, 52, 101695. [Google Scholar] [CrossRef]
- Tu, C.; Zhang, J.; Quan, Z.; Ding, Y. UWB indoor localization method based on neural network multi-classification for NLOS distance correction. Sensors Actu. A: Phys. 2024, 379, 115904. [Google Scholar] [CrossRef]
- Yang, H.; Wang, Y.; Seow, C.K.; Sun, M.; Joseph, W.; Plets, D. A novel credibility evaluation and mitigation for ranging measurement in UWB localization. Measurement 2025, 256, 117721. [Google Scholar] [CrossRef]
- Kordi, K.A.; Roslee, M.; Alias, M.Y.; Alhammadi, A.; Waseem, A.; Osman, A.F. Survey of Indoor Localization Based on Deep Learning. Comput. Mater. Contin. 2024, 79, 3261–3298. [Google Scholar] [CrossRef]
- Osman, A.; Shamsfakhr, F.; Vecchio, M.; Antonelli, F. Adaptive GNSS–UWB Sensor Fusion for Reliable Localization in Precision Agriculture. Smar. Agric. Technol. 2026, 13, 101846. [Google Scholar] [CrossRef]
- Liu, C.; Yun, J. A Joint TDOA/FDOA Localization Algorithm Using Bi-iterative Method with Optimal Step Length. Chin. J. Electron. 2021, 30, 119–126. [Google Scholar] [CrossRef]
- Tran, H.Q.; Ha, C. Machine learning in indoor visible light positioning systems: A review. Neurocomputing 2022, 491, 117–131. [Google Scholar] [CrossRef]
- Chen, X.; Zhang, M.; Ruan, K.; Gong, C.; Zhang, Y.; Yang, S.X. A Ranging Model Based on BP Neural Network. Intell. Autom. Soft Comput. 2015, 22, 325–329. [Google Scholar] [CrossRef]
- Zhao, L.; Ren, Y.; Wang, Q.; Deng, L.; Zhang, F. Visible Light Indoor Positioning System Based on Pisarenko Harmonic Decomposition and Neural Network. Chin. J. Electron. 2024, 33, 195–203. [Google Scholar] [CrossRef]
- Xu, Y.; Wang, K.; Jiang, C.; Li, Z.; Yang, C.; Liu, D.; Zhang, H. Motion-Constrained GNSS/INS Integrated Navigation Method Based on BP Neural Network. Remote Sens. 2023, 15, 154. [Google Scholar] [CrossRef]
- Hao, W.; Huang, Y.; Zhao, G. Acoustic sources localization for composite pate using arrival time and BP neural network. Polym. Test. 2022, 115, 107754. [Google Scholar] [CrossRef]
- Chong, Y.; Xu, X.; Guo, N.; Shu, L.; Zhang, Q.; Yu, Z.; Wen, T. Cooperative Localization of Firefighters Based on Relative Ranging Constraints of UWB and Autonomous Navigation. Electronics 2023, 12, 1181. [Google Scholar] [CrossRef]
- Schmitt, S.; Will, H.; Hillebrandt, T.; Kyas, M. A virtual indoor localization testbed for Wireless Sensor Networks. In Proceedings of the 10th Annual IEEE International Conference on Sensing, Communications and Networking, New Orleans, LA, USA, 24–27 June 2013; pp. 239–241. [Google Scholar]
- Han, R.Q. Application of inertial navigation high precision positioning system based on SVM optimization. Syst. Soft Comput. 2024, 6, 2772–9419. [Google Scholar] [CrossRef]
- Yang, G.; Zhu, S.; Li, Q.; Zhao, K. UWB/INS Based Indoor Positioning and NLOS Detection Algorithm for Firefighters. In Proceedings of the 2020 IEEE 22nd International Conference on High Performance Computing and Communications; IEEE 18th International Conference on Smart City; IEEE 6th International Conference on Data Science and Systems (HPCC/SmartCity/DSS), Cuvu, Fiji, 14–16 December 2020; pp. 909–916. [Google Scholar] [CrossRef]
- Li, J.; Xie, Z.; Sun, X.; Tang, J.; Liu, H.; Stankovic, J.A. An Automatic and Accurate Localization System for Firefighters. In Proceedings of the 2018 IEEE/ACM Third International Conference on Internet-of-Things Design and Implementation (IoTDI), Orlando, FL, USA, 17–20 April 2018; pp. 13–24. [Google Scholar] [CrossRef]
- Li, T.; Wang, Q.; Xu, Y.; An, L.; Wang, M. Design and Implementation of Autonomous Navigation and Search and Rescue System for Firefighters Based on Cloud Platform. J. Command Control 2023, 9, 303–313. [Google Scholar] [CrossRef]
- Gandhi, S.R.; Ganz, A.; Mullett, G. FIREGUIDE: Firefighter guide and tracker. In Proceedings of the 2010 Annual International Conference of the IEEE Engineering in Medicine and Biology, Buenos Aires, Argentina, 31 August–4 September 2010; pp. 2037–2040. [Google Scholar] [CrossRef]
- Pascucci, F.; Setola, R. An Indoor localization Framework for Hybrid Rescue Teams. IFAC Proc. Vol. 2011, 44, 4765–4770. [Google Scholar] [CrossRef]
- Aleksandar, M.; Vojin, Š. Indoor navigation system for firefighters. In Proceedings of the 2011 19th Telecommunications Forum (TELFOR), Belgrade, Serbia, 22–24 November 2011; pp. 1324–1327. [Google Scholar] [CrossRef]
- Berrahal, S.; Boudriga, N.; Chammem, M. Wban-Assisted Navigation for Firefighters in Indoor Environments. Adhoc Sens. Wirel. Networks 2016, 33, 81–119. [Google Scholar]
- Vey, Q.; Spies, F.; Pestourie, B.; Genon-Catalot, D.; Van Den Bossche, A.; Val, T.; Dalce, R.; Schrive, J. POUCET: A Multi-Technology Indoor Positioning Solution for Firefighters and Soldiers. In Proceedings of the 2021 International Conference on Indoor Positioning and Indoor Navigation (IPIN), Lloret de Mar, Spain, 29 November–2 December 2021. [Google Scholar] [CrossRef]
- Nilsson, J.O.; Zachariah, D.; Skog, I.; Händel, P. Cooperative localization by dual foot-mounted inertial sensors and inter-agent ranging. EURASIP J. Adv. Signal Process. 2013, 2013, 164. [Google Scholar] [CrossRef]
- Ruiz, A.R.J.; Granja, F.S. Comparing Ubisense, BeSpoon, and DecaWave UWB Location Systems: Indoor Performance Analysis. IEEE Trans. Instrum. Meas. 2017, 66, 2106–2117. [Google Scholar] [CrossRef]













| Iterations | Learning Rate (Initial) | Training Target Minimum Error | Minimum Gradient Threshold | Overfitting Control Strategy |
|---|---|---|---|---|
| 1000 | 0.01 | 1 × 10−5 | 1 × 10−6 | Early stopping (validation error increase for 5 consecutive iterations |
| Number of Hidden Layer Nodes | Maximum Error (m) | Minimum Error (m) | Mean Squared Error (MSE)(m2) | Validation Set MSE (m2) |
|---|---|---|---|---|
| 6 | 0.3362 | 0.11784 | 0.03195 | 0.03521 |
| 7 | 0.2954 | 0.1311 | 0.03976 | 0.04215 |
| 8 | 0.2576 | 0.0756 | 0.03023 | 0.03289 |
| 9 | 0.1675 | 0.0985 | 0.02351 | 0.03478 |
| 10 | 0.0875 | 0.0125 | 0.00325 | 0.00331 |
| 11 | 0.1858 | 0.0507 | 0.03876 | 0.04056 |
| 12 | 0.0665 | 0.0053 | 0.00276 | 0.00298 |
| 13 | 0.04050 | 0.0050 | 0.001047 | 0.00115 |
| 14 | 0.03875 | 0.0045 | 0.01982 | 0.02876 |
| 15 | 0.03750 | 0.0040 | 0.01895 | 0.03124 |
| Model | RMSE (m) | MAPE (%) | MAE (m) |
|---|---|---|---|
| BP | 0.040952 | 17.28 | 0.087619 |
| Trilateration | 0.267567 | 35.79 | 0.201598 |
| Random forest | 0.083275 | 21.54 | 0.123427 |
| K-nearest neighbor | 0.109756 | 23.17 | 0.115678 |
| Test Point (x,y)(m) | X-Axis Fluctuation Range (m) | Y-Axis Fluctuation Range (m) | Average RMSE (m) | 95% Confidence Interval of RMSE (m) |
|---|---|---|---|---|
| P1(1.00, 1.20) | ±0.030 | ±0.040 | 0.015 | 0.013–0.017 |
| P2(1.50, 5.00) | ±0.025 | ±0.035 | 0.014 | 0.012–0.016 |
| P3(2.50, 9.00) | ±0.027 | ±0.036 | 0.015 | 0.013–0.017 |
| P4(2.80, 4.20) | ±0.032 | ±0.042 | 0.016 | 0.014–0.018 |
| P5(3.50, 3.80) | ±0.031 | ±0.041 | 0.016 | 0.014–0.018 |
| P6(4.00, 2.00) | ±0.026 | ±0.034 | 0.014 | 0.012–0.016 |
| P7(7.50, 3.00) | ±0.028 | ±0.038 | 0.015 | 0.013–0.017 |
| Test Scenario | Maximum Deviation Error (m) | Average RMSE (m) | 95% CDF Error (m) |
|---|---|---|---|
| Rectangular laboratory | 0.08 | 0.052 | 0.075 |
| Square office | 0.07 | 0.048 | 0.070 |
| L-shaped corridor | 0.10 | 0.065 | 0.095 |
| Environment | Static Average RMSE (m) | Dynamic Average RMSE (m) | Maximum Deviation (m) | Alarm Delay (s) |
|---|---|---|---|---|
| Normal | 0.015 | 0.052 | 0.08 | 2 |
| Metal and electromagnetic interference | 0.028 | 0.085 | 0.14 | 2.3 |
| Number | References | Technology | Deviation/m | Function |
|---|---|---|---|---|
| 1 | Chong et al. [24] | UWB, Autonomous Navigation | 3 | Location; Navigation |
| 2 | Simon et al. [25] | WSN | \ | Location |
| 3 | Han [26] | Inertial navigation | 1.4 | Location |
| 4 | Yang et al. [27] | UWB/INS | 0.7 | Location |
| 5 | Li et al. [28] | PDR breadcrumb system | 5–10 | Location |
| 6 | Li et al. [29] | Cloud platform (Inertial navigation, Visual, GPS, UWB, Laser) | 0.64 | Location; Motion analysis; State detection; Navigation; |
| 7 | Gandhi et al. [30] | Bluetooth, Wi-Fi, RFID | \ | Location; Navigation |
| 8 | Pascucci and Setola [31] | RFID, rescue robot | 0.1–0.7 | Location; Trajectory display; Communication |
| 9 | Minja and Šenk [32] | Inertial navigation | 1–6 | Location; navigation |
| 10 | Berrahal et al. [33] | WBAN | \ | Location; Navigation; Communication, |
| 11 | Vey et al. [34] | UWB, Altimeter, radio | 0.36 | Location |
| 12 | Nilsson et al. [35] | Double foot inertial navigation, UWB | 7 | Location |
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.
Share and Cite
Wang, L.; Wang, Z.; Meng, X.; Chen, W.; Sun, A. Symmetry-Enhanced Indoor Occupant Locating and Motionless Alarm System: Fusion of BP Neural Network and DS-TWR Technology. Symmetry 2026, 18, 376. https://doi.org/10.3390/sym18020376
Wang L, Wang Z, Meng X, Chen W, Sun A. Symmetry-Enhanced Indoor Occupant Locating and Motionless Alarm System: Fusion of BP Neural Network and DS-TWR Technology. Symmetry. 2026; 18(2):376. https://doi.org/10.3390/sym18020376
Chicago/Turabian StyleWang, Li, Zhe Wang, Xinhe Meng, Wentao Chen, and Aijun Sun. 2026. "Symmetry-Enhanced Indoor Occupant Locating and Motionless Alarm System: Fusion of BP Neural Network and DS-TWR Technology" Symmetry 18, no. 2: 376. https://doi.org/10.3390/sym18020376
APA StyleWang, L., Wang, Z., Meng, X., Chen, W., & Sun, A. (2026). Symmetry-Enhanced Indoor Occupant Locating and Motionless Alarm System: Fusion of BP Neural Network and DS-TWR Technology. Symmetry, 18(2), 376. https://doi.org/10.3390/sym18020376

