Novel Indoor Positioning System Based on Bluetooth Direction Finding and Machine Learning †
Abstract
1. Introduction
2. Related Works
2.1. Bluetooth Direction Finding Technology
2.2. Related Studies
3. System Design
- Bluetooth Mesh Network
- Composition and functionality: The network is built on BLE technology, with multiple nRF5340-DK development kits serving as BLE dongles. These dongles are deployed alongside panel lights to establish the experimental field. Each dongle not only controls lighting but also acts as a critical data receiver node within the network.
- Localization data collection: Each dongle is responsible for detecting Bluetooth advertising signals from beacons and measuring RSSI to estimate the distance between the beacon and the node. The beacons used in this study are based on the u-blox C209 module, capable of broadcasting iBeacon, Eddystone, and other customizable signals, including optional CTE for AoA applications.
- Bluetooth direction finding integration: A core innovation of this research lies in the development of an AoA-dongle, which integrates the nRF5340 with a u-blox AoA antenna board. These AoA-dongles replace a subset of the conventional dongle nodes in the Bluetooth mesh network. In addition to receiving RSSI signals, they are capable of measuring the angle (both azimuth and elevation) between the beacon and the dongle using Bluetooth direction-finding technology. This integration overcomes the limitations of prior research, where AoA antennas could not be directly incorporated into the mesh network. The AoA-dongles enable AoA data to be transmitted directly within the mesh network. The AoA technique determines signal direction by computing phase differences across antenna elements in the array, providing sub-meter positioning accuracy even in complex indoor environments.
- BLE mesh gateway
- Role: The system uses Delta’s xBeacon-Cloud-w model as the intermediary relay between the mesh network nodes and the backend server.
- Communication mechanism: The gateway enables bidirectional communication between the server and mesh nodes using the Bluetooth Mesh protocol and the MQTT publish/subscribe architecture. It relays lighting control commands issued from the web interface to the corresponding devices and uploads beacon signal data—comprising RSSI and AoA information—received from the mesh nodes to the server-side database. MQTT, being a lightweight messaging protocol, is well-suited for devices operating under limited bandwidth and hardware constraints.
- Localization computation server
- Data integration and processing: All RSSI and AoA data collected by both AoA-dongles and standard dongles are transmitted through the gateway via MQTT to a MySQL database on the server for integration and storage.
- Machine learning-based prediction: The server’s core functionality involves applying pre-trained machine learning models—including K-nearest neighbors (KNN), support vector machine (SVM), Random Forest (RF), and multilayer perceptron (MLP)—to predict indoor locations based on the incoming data. To improve model performance, data preprocessing techniques such as missing value handling, outlier filtering, normalization, and Gaussian filtering were employed.
- Performance enhancement: Compared with previous implementations that required approximately 20 s per localization cycle, the developed system significantly reduces localization latency while improving accuracy through optimized machine learning techniques.
- Web architecture
- User Interface: The web-based interface was jointly developed by the EMNA research group and Chung Shan Technology. It leverages asynchronous JavaScript and extensible markup language (AJAX) and Leaflet JavaScript for frontend implementation.
- Functionality: The web interface provides users with real-time visualization of current location data and intuitive lighting control capabilities. User interactions on the interface trigger AJAX-based hypertext transfer protocol requests to the server, which then returns location results or control commands in formats such as JavaScript object notation. These results are rendered dynamically and in real-time on the webpage.
4. System Implementation and Testing
4.1. Experiment
- Space dimensions: The test area is a rectangular space measuring 15.50 m in length, 10.10 m in width, and an average height of 2.71 m. All measurements reflect direct distances between opposing walls.
- Study area selection: To minimize interference in the RSSI readings caused by obstacles in the environment, the experiment utilized only the left half of the room, specifically four panel lights located in that region. The area is illustrated in Figure 2.
- Device deployment
- BLE Mesh Dongles: BLE Mesh Dongles were installed on the selected four panel lights. These dongles served as nodes within the Bluetooth Mesh network, functioning not only to control lighting and receive beacon signals but also to perform Bluetooth direction-finding in certain units. The IDs and coordinates of the deployed dongles are listed as follows:
- -
- Dongle 11: (3.00, 3.00);
- -
- Dongle 12: (8.60, 3.00);
- -
- Dongle 13: (8.75, 6.00);
- -
- Dongle 14: (3.15, 6.00).
- Beacons: During data collection, the beacons were fixed at a height of 1 m above the ground.
- Localization point configuration: Twelve localization points were defined within a red rectangular test area. This region formed a parallelogram with dimensions of 5.6 m in length and 3 m in width. The coordinates of all localization points were documented accordingly.
- Dataset construction scenarios: Three different training datasets were constructed based on the number of AoA-dongles in use:
4.2. Results
4.3. Performance Analysis
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Bluetooth SIG. Bluetooth Direction Finding. Available online: https://www.bluetooth.com/learn-about-bluetooth/feature-enhancements/direction-finding/ (accessed on 20 July 2025).
- Bluetooth SIG. Bluetooth® Mesh. Available online: https://www.bluetooth.com/learn-about-bluetooth/feature-enhancements/mesh/ (accessed on 20 July 2025).
- Essa, E.; Abdullah, B.A.; Wahba, A. Improve Performance of Indoor Positioning System using BLE. In Proceedings of the 14th International Conference on Computer Engineering and Systems (ICCES), Cairo, Egypt, 17 December 2019; pp. 234–237. [Google Scholar]
- Malajner, M.; Gleich, D.; Planinsic, P. Indoor AoA Estimation Using Received Signal Strength Parameter and a Support Vector Machine. In Proceedings of the 2019 International Conference on Systems, Signals and Image Processing (IWSSIP), Osijek, Croatia, 5–7 June 2019; pp. 133–137. [Google Scholar]
- Mavilia, F.; Barsocchi, P.; Furfari, F.; Girolami, M. Evaluating the Impact of Anchors Deployment for an AoA-based Indoor Localization System. In Proceedings of the 18th Wireless On-Demand Network Systems and Services Conference (WONS), Madonna di Campiglio, Italy, 30 January–1 February 2023; pp. 20–23. [Google Scholar]
- Zheng, Y.; Sheng, M.; Liu, J.; Li, J. Exploiting AoA Estimation Accuracy for Indoor Localization: A Weighted AoA-Based Approach. IEEE Wireless Commun. Lett. 2019, 8, 65–68. [Google Scholar] [CrossRef]
- Zhang, H.-E. Development of an Indoor Positioning System Enhanced by Bluetooth Direction Finding and Machine Learning Techniques. Master’s Thesis, Department of Electrical Engineering, National Formosa University, Yunlin, Taiwan, 2024. [Google Scholar]


| Model | Number of AoA Antennas | Accuracy | Recall | Precision | F1-Score |
|---|---|---|---|---|---|
| MLP | 0 | 79.58% | 79.62% | 81.42% | 78.54% |
| 1 | 91.59% | 91.59% | 92.10% | 91.64% | |
| 2 | 92.67% | 92.66% | 92.38% | 92.66% | |
| KNN | 0 | 76.92% | 76.92% | 79.48% | 74.90% |
| 1 | 91.70% | 91.70% | 91.95% | 91.65% | |
| 2 | 95.72% | 95.72% | 96.11% | 95.70% | |
| SVM | 0 | 74.19% | 74.18% | 78.65% | 71.34% |
| 1 | 91.44% | 91.44% | 92.21% | 91.56% | |
| 2 | 96.58% | 96.58% | 96.79% | 96.55% | |
| RF | 0 | 73.85% | 73.84% | 80.19% | 71.29% |
| 1 | 90.93% | 90.93% | 91.85% | 90.98% | |
| 2 | 95.69% | 95.68% | 95.93% | 95.64% |
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 (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Su, H.-K.; Zhang, H.-E.; Wu, C.-S.; Chu, Y.-S. Novel Indoor Positioning System Based on Bluetooth Direction Finding and Machine Learning. Eng. Proc. 2025, 120, 67. https://doi.org/10.3390/engproc2025120067
Su H-K, Zhang H-E, Wu C-S, Chu Y-S. Novel Indoor Positioning System Based on Bluetooth Direction Finding and Machine Learning. Engineering Proceedings. 2025; 120(1):67. https://doi.org/10.3390/engproc2025120067
Chicago/Turabian StyleSu, Hui-Kai, Hong-En Zhang, Cheng-Shong Wu, and Yuan-Sun Chu. 2025. "Novel Indoor Positioning System Based on Bluetooth Direction Finding and Machine Learning" Engineering Proceedings 120, no. 1: 67. https://doi.org/10.3390/engproc2025120067
APA StyleSu, H.-K., Zhang, H.-E., Wu, C.-S., & Chu, Y.-S. (2025). Novel Indoor Positioning System Based on Bluetooth Direction Finding and Machine Learning. Engineering Proceedings, 120(1), 67. https://doi.org/10.3390/engproc2025120067

