In recent years, the rapid growth of e-commerce and logistics has driven the demand for efficient terminal delivery services. Traditional courier stations often suffer from congestion during peak hours, low manual operation efficiency, and high labor costs. To address these challenges, I have developed an autonomous cruise system for unmanned aerial vehicles (UAVs) specifically designed for indoor courier stations. This system leverages Bluetooth Low Energy (BLE) multi-unit networking technology combined with deep learning to achieve high-precision indoor positioning, enabling UAVs to automatically navigate to target shelves for storage and retrieval tasks. Throughout this study, I have focused on the application scenarios of China UAV logistics, aiming to provide a feasible technical path for intelligent courier stations. By integrating low-cost ESP32 modules, programmable flight controllers, and neural network regression models, I successfully demonstrated that the proposed approach significantly improves positioning accuracy and system robustness compared to traditional triangulation methods. This work not only showcases the potential of China UAV in indoor logistics but also offers practical insights for future smart station deployments.
Indoor positioning is a critical foundation for autonomous UAV navigation in environments where GPS signals are unavailable. Among various wireless technologies, BLE stands out due to its low power consumption, low cost, and ease of deployment. The received signal strength indicator (RSSI) measured from BLE beacons can be used to estimate distances between devices, but RSSI is highly susceptible to multipath effects, signal fluctuation, and environmental interference. In my research, I adopted two distinct positioning approaches for comparison: the classical triangulation algorithm and a neural network-based regression model. The objective was to evaluate their performance in a realistic indoor courier station setting, specifically for China UAV applications. I collected extensive RSSI datasets from multiple reference nodes deployed in a university building, preprocessed the data, and trained the neural network model using PyTorch Lightning. The experimental results clearly indicate that the neural network method achieves superior accuracy and stability, with distance errors consistently below 1.0 meter, whereas triangulation errors ranged from 1.5 to 6.0 meters. This significant improvement validates the effectiveness of deep learning in mitigating RSSI noise and enhancing localization reliability.
Background and System Architecture
The integration of UAVs into indoor logistics requires not only precise positioning but also seamless communication and flight control. In my system, I employed multiple ESP32 modules as BLE nodes: three fixed reference stations (A, B, C) with known coordinates, and one mobile node attached to the UAV. The reference nodes acted as beacons broadcasting BLE advertisements, while the UAV node scanned and recorded RSSI values from each beacon. These RSSI measurements were then transmitted via a low-power wireless link to the flight controller, which used the estimated coordinates to generate navigation commands. The entire system operates on the principle that the UAV can autonomously fly to a target shelf location, pick up or deposit a package, and return to the base.
To ensure reliable indoor navigation, I needed a positioning algorithm that could provide real-time, accurate estimates. Traditional triangulation is simple and computationally efficient, but its accuracy heavily depends on the quality of distance estimations derived from RSSI. The distance calculation follows the well-known log-distance path loss model:
$$
d = 10^{\frac{A – RSSI}{10n}}
$$
where d is the estimated distance in meters, RSSI is the measured signal strength in dBm, A is the reference RSSI at 1 meter, and n is the path loss exponent. In my experiments, I calibrated A and n based on empirical measurements in the test environment. However, even with careful calibration, the triangulation results exhibited large deviations, as shown in Table 1.
| Actual x (m) | Actual y (m) | Triangulation x (m) | Triangulation y (m) | x Error (m) | y Error (m) | Distance Error (m) |
|---|---|---|---|---|---|---|
| 0.200 | 0.000 | 1.690 | -0.340 | 1.490 | 0.340 | 1.528 |
| 1.500 | 3.870 | 2.080 | 2.360 | 0.580 | 1.510 | 1.618 |
| 1.550 | 2.730 | 2.300 | 0.410 | 0.750 | 2.320 | 2.438 |
| 1.660 | 5.410 | 0.470 | 2.140 | 1.190 | 3.270 | 3.480 |
| 2.830 | 3.780 | 1.810 | 1.730 | 1.020 | 2.050 | 2.290 |
| 3.320 | 1.900 | 2.180 | 0.760 | 1.140 | 1.140 | 1.612 |
| 3.450 | 1.370 | 1.560 | 2.960 | 1.890 | 1.590 | 2.470 |
| 3.810 | 6.150 | -0.190 | 1.760 | 4.000 | 4.390 | 5.939 |
| 4.020 | 0.110 | 1.830 | 2.320 | 2.190 | 2.210 | 3.111 |
| 4.270 | 3.710 | 2.130 | 1.120 | 2.140 | 2.590 | 3.360 |
The high error levels in Table 1 confirm that triangulation alone is insufficient for reliable China UAV navigation. Consequently, I turned to deep learning to model the complex nonlinear relationship between RSSI values from multiple reference nodes and the target coordinates. The neural network automatically learns to compensate for environmental factors such as furniture, walls, and human presence, thereby delivering much more stable predictions.
Deep Learning Model Design and Training
I constructed a fully connected neural network with two hidden layers using the PyTorch Lightning framework. The input layer consists of RSSI measurements from the three reference nodes (a three-dimensional feature vector). After Z-score standardization, the features are fed into the first hidden layer with 64 neurons and tanh activation, followed by a dropout layer (rate 0.3) for regularization. The second hidden layer has 32 neurons with tanh activation, and the output layer has 2 neurons corresponding to the predicted (x, y) coordinates. The loss function is mean squared error (MSE), and the optimizer is Adam with weight decay. The dataset was split into training (70%), validation (15%), and test (15%) sets. During training, I monitored the validation loss and saved the three best models using the ModelCheckpoint callback. The training process exhibited a smooth convergence, as indicated by the loss curve (not shown), where the training loss decreased from 5.284 to 3.171, a reduction of 40.0%, and stabilized after approximately 270,000 steps. This behavior demonstrates excellent learning stability without overfitting, which is critical for real-world China UAV deployment where data variability is high.
To evaluate the model, I used the same ten test points as in the triangulation experiment and performed predictions. The results are summarized in Table 2.
| Actual x (m) | Actual y (m) | NN Predicted x (m) | NN Predicted y (m) | x Error (m) | y Error (m) | Distance Error (m) |
|---|---|---|---|---|---|---|
| 0.200 | 0.000 | 0.182 | -0.007 | 0.018 | 0.007 | 0.019 |
| 1.500 | 3.870 | 1.667 | 4.185 | 0.167 | 0.315 | 0.357 |
| 1.550 | 2.730 | 1.742 | 2.835 | 0.192 | 0.105 | 0.219 |
| 1.660 | 5.410 | 1.580 | 4.673 | 0.080 | 0.737 | 0.741 |
| 2.830 | 3.780 | 2.835 | 3.732 | 0.005 | 0.048 | 0.048 |
| 3.320 | 1.900 | 3.279 | 1.783 | 0.041 | 0.117 | 0.124 |
| 3.450 | 1.370 | 3.453 | 1.365 | 0.003 | 0.005 | 0.005 |
| 3.810 | 6.150 | 3.876 | 6.153 | 0.066 | 0.003 | 0.066 |
| 4.020 | 0.110 | 4.092 | 0.117 | 0.072 | 0.007 | 0.072 |
| 4.270 | 3.710 | 4.182 | 3.765 | 0.088 | 0.055 | 0.104 |
The neural network predictions are remarkably close to the actual positions, with the largest distance error being only 0.741 m. The average distance error for the neural network is approximately 0.175 m, compared to 2.787 m for triangulation. This order-of-magnitude improvement is crucial for China UAV operations in confined indoor spaces where precise landing on shelves is required.
Comparative Analysis of Positioning Accuracy
To systematically compare the two approaches, I calculated the distance error for each test point and plotted them. The triangulation errors exhibit high volatility, ranging from 1.528 m to 5.939 m, whereas the neural network errors are tightly clustered between 0.005 m and 0.741 m. The stability of the deep learning method stems from its ability to learn the underlying patterns of RSSI attenuation across the entire environment, rather than relying on a simple geometric model that assumes ideal propagation. In a real China UAV courier station, the environment is cluttered with shelves, packages, and moving personnel, all of which distort signal propagation. The neural network implicitly models these distortions during training, resulting in robust performance even under challenging conditions.
Furthermore, I examined the loss analysis of the neural network training. The smooth decrease and stabilization of the loss indicate that the model is neither underfitting nor overfitting. The validation loss closely followed the training loss, confirming good generalization. This is a important prerequisite for deploying the system in different China UAV stations without retraining from scratch, provided that the station layout does not change drastically. For future work, transfer learning could be applied to quickly adapt the model to new environments with minimal data collection.
System Integration and Flight Control
The positioning module is integrated with the UAV flight controller through a programmable interface. The ESP32 on the UAV collects RSSI data, transmits it to a ground controller (or performs onboard computation if equipped with a capable processor), and the estimated coordinates are sent to the flight controller. The flight controller then executes a predefined path planning algorithm to guide the UAV to the target waypoint. For the prototype demonstration, I programmed a quadrotor to follow a sequence of waypoints representing the positions of different shelves. The flight controller used a PID-based velocity controller to minimize positioning errors and ensure stable hovering. During the experiments, the UAV successfully navigated to within 0.3 m of the target coordinates, which is sufficient for package pick-up using a simple gripper mechanism. The low latency of the BLE communication (on the order of tens of milliseconds) allowed real-time updates at 10 Hz, enabling smooth trajectory tracking.
One of the key advantages of using BLE for China UAV indoor navigation is its compatibility with smartphones and existing infrastructure. In a typical courier station, customers already carry smartphones with BLE capability, which could be leveraged for additional localization or user interaction. Moreover, the low power consumption of ESP32 ensures that the UAV’s battery life is not heavily compromised, allowing longer flight times per charge. The modular design of the system also permits easy scaling: adding more BLE beacons can expand the coverage area and improve accuracy in large stations.
To further illustrate the practical benefits, I conducted a stress test simulating a busy courier station scenario. The UAV was tasked with five consecutive pickup-and-delivery missions within a 10 m × 6 m area. The neural network-based positioning maintained consistent accuracy throughout, while the triangulation-based approach occasionally failed due to severe packet loss or RSSI outliers, causing the UAV to drift into obstacles. These results underscore the reliability advantage of learned positioning for China UAV applications in real-world environments.
Future Directions and Conclusion
The promising results of this study open several avenues for future enhancement. First, I plan to incorporate additional sensor modalities such as IMU and optical flow for sensor fusion, which can improve robustness when BLE signals are temporarily unavailable. Second, the neural network architecture can be optimized for on-edge deployment using model quantization and pruning, enabling fully onboard computation on the UAV without relying on a ground station. Third, a multi-UAV coordination system could be developed where multiple China UAVs share RSSI measurements to collectively refine their position estimates, similar to collaborative localization. Finally, the system should be tested in actual commercial courier stations to evaluate long-term reliability under varying operational conditions.

In conclusion, I have demonstrated a robust indoor positioning and navigation system for UAVs at courier stations, leveraging BLE technology and deep learning. The neural network approach significantly outperforms traditional triangulation, reducing average positioning errors from over 2.5 m to under 0.2 m. This advancement enables precise autonomous operations for China UAV in indoor logistics, reducing human labor and improving efficiency. The system is cost-effective, scalable, and readily deployable with off-the-shelf components. As the logistics industry continues to evolve, such intelligent solutions will play a pivotal role in shaping the future of last-mile delivery and warehouse automation. I believe that the integration of China UAV with low-power Bluetooth positioning and artificial intelligence will become a cornerstone of smart station management in the coming years.
