Neural Networks Steering Drones with Precision

Unmanned aerial vehicles (UAVs), commonly known as drones, are increasingly vital in fields like package delivery, crop monitoring, and search and rescue, where they need to navigate autonomously and reliably in unpredictable settings. Standard control methods for drones often rely on rigid assumptions, limiting their flexibility and adding complexity when paired with artificial intelligence (AI). A recent study explores a new approach, using neural networks as the sole controllers for guiding holonomic UAVs, specifically quadcopters, which can move freely in any direction without kinematic constraints. This method simplifies control systems, enhances adaptability, and achieves high accuracy in tracking positions and trajectories, offering a encouraging path for autonomous flight.

Understanding Holonomic UAVs and Their Dynamics

Holonomic UAVs, such as quadcopters, are unique because their independent degrees of freedom match their control inputs, allowing movement in any direction without restrictions. The study uses the AR Drone 2.0, a quadcopter modeled as a rigid, symmetric body with six degrees of freedom (DoF), meaning it can move and rotate in three dimensional space along all axes. The model accounts for two reference frames. Those being the body frame, fixed to the drone, and the global frame, tied to the external environment. A rotation matrix relates these frames, using roll, pitch, and yaw angles to describe the drone’s orientation.

The quadcopter’s motion is governed by equations factoring in thrust from its motors, gravity, and drag forces. Thrust depends on motor speeds, while drag.ConcurrentHashMapinfluenced by air resistance, affects the drone’s linear speeds along each axis. Rotational motion is modeled using the drone’s inertia, a measure of its resistance to angular change, and external torques from motor differences. These equations, implemented in MATLAB/SIMULINK, form a dynamic model that simulates the quadcopter’s behavior, providing a foundation for testing control strategies.

Generating Training Data with Artificial Potential Fields

Training neural networks to control a drone requires extensive data on flight paths and control inputs. The study employs the artificial potential field method to create this data, a technique that guides the drone toward a target by treating the target as a point of minimum potential, similar to a magnet attracting an object. The method calculates velocity vectors based on the gradient of a potential function, directing the drone to the target while avoiding excessive speeds through saturation limits.

For the AR Drone 2.0, inputs include desired roll and pitch angles, yaw rate (rotation speed around the vertical axis), and vertical velocity, all scaled between -1 and 1. Outputs for monitoring include the drone’s position, linear speeds, and yaw angle, obtained by integrating speeds or using a local positioning system. The artificial potential field method transforms these velocity vectors into control signals, adjusting roll and pitch to match the drone’s bearing to the target, setting vertical speed based on height differences, and calculating yaw rate to correct heading errors. This process generates diverse datasets with various trajectory shapes and speeds, crucial for training neural networks to handle real-world flight scenarios.

Neural Networks as Direct Controllers

The study evaluates several neural network architectures as standalone controllers, a novel approach since most drone control systems combine neural networks with conventional methods. The architectures tested include single layer regression networks, double layer perceptron regression networks, deep neural networks (DNNs), and residual networks (ResNets). Each network takes inputs like the drone’s position relative to the target, normalized tracking error, linear speeds, and heading angle, producing outputs such as roll, pitch, yaw rate, and vertical speed to guide the quadcopter.

Single layer networks have one hidden layer, making them simple and fast but less capable of handling complex patterns. Double layer perceptrons add a second hidden layer for better learning capacity. DNNs, with multiple hidden layers, excel at capturing intricate relationships in data but require more computational resources. ResNets use shortcut connections to mitigate issues like vanishing gradients, where learning slows due to small updates in deep layers, though they can be complex to implement. The study addresses overfitting, where a network performs well on training data but poorly on new scenarios, by using techniques like dropout and limiting network size. The networks were trained on a dataset of 116,000 samples, generated from simulations of the artificial potential field method, covering trajectories like rectangles, triangles, circles, and 8 shapes at speeds from 0.5 to 3.5 m/s and different scales. The dataset was split into 70% for training and 30% for validation, ensuring vigorous evaluation across varied flight paths.

Performance of Neural Networks in Flight Simulations

The study tested the neural networks on the AR Drone 2.0 quadcopter using MATLAB/Simulink simulations, assessing their ability to track trajectories not included in the training data. The architectures’ performance was measured by trajectory tracking accuracy, using root mean squared error (RMSE) and correlation coefficients (Pearson’s correlation), alongside computational latency to gauge real time applicability.

Single layer multilayer perceptron (MLP) networks, with 100 to 300 neurons, showed mixed results. An MLP with 131 neurons tracked most paths well but struggled with a triangular path at 2.0 m/s and an 8 shaped path at 1.5 m/s, indicating sensitivity to specific scenarios. Increasing to 277 neurons worsened performance across all shapes and speeds, likely due to overfitting to the training data’s 52 trajectory combinations, despite higher training quality scores (correlation up to 0.95). These networks, however, had low latency, processing control signals in under 1 millisecond, making them viable for real time use despite accuracy trade-offs.

Double layer MLP networks, with optimized neuron counts (e.g., 105 and 54 neurons), achieved better consistency, with the best configuration yielding a validation RMSE of 1.123 and a correlation of 0.941. They tracked paths like circles and rectangles effectively but showed slight deviations in sharp turns, such as a 90-degree angle on a rectangular path at 3.0 m/s. Their training time was notably long, up to 5,000 iterations, and latency was higher at around 3 milliseconds, reflecting the added complexity of two hidden layers.

Deep neural networks (DNNs) outperformed others in accuracy, with the best configuration (1600 to 100 neurons across layers, dropout 0.1) achieving an RMSE of 1.083 and a correlation of 0.962 on validation data. In simulations, DNNs tracked complex paths, like an 8-shaped trajectory at 2.5 m/s, with minimal deviation, though sharp turns at higher speeds (3.5 m/s) caused slight inaccuracies due to the quadcopter’s physical limits. Latency was higher, around 5 milliseconds, but still suitable for many applications, and their ability to generalize across untrained scenarios, such as a new circular path, was notable.

Residual networks (ResNets), despite their shortcut connections designed to improve deep learning, underperformed with an RMSE of 1.245 and a correlation of 0.913. They struggled with consistent tracking, often overshooting turns on a triangular path at 1.5 m/s, and had the highest latency at 7 milliseconds, making them less practical for real-time UAV control in this context.

Practical Applications and Real World Impact

Neural network controllers for UAVs have broad potential across industries. In package delivery, a DNN-controlled quadcopter could navigate a cityscape, following a rectangular path around buildings at 2.5 m/s, adjusting for sudden turns to avoid obstacles while maintaining stable flight. In agriculture, a single-layer MLP could enable a drone to track a circular path over a field at 1.0 m/s, monitoring crops with low latency to ensure real time data collection. Search and rescue operations could benefit from DNNs’ accuracy, allowing a drone to follow a triangular path through a disaster zone at 1.75 m/s, ensuring precise navigation around obstacles. These applications highlight the balance between accuracy and computational speed, with DNNs offering precision for complex tasks and simpler MLPs enabling faster responses for time-sensitive operations.

Neural Network Response Latency for Real Time Control

A critical factor for UAV control is the speed at which a neural network generates control signals, as delays can destabilize the system, especially in dynamic environments. The study measured the response latency of the best-performing neural networks using a computer with an Intel Core i7-9750H 2.6 GHz processor, running 10 trials with 1,000 different input patterns to ensure reliable results. The single layer MLP (MLP_1_131) was the fastest, with an average latency of 0.024 milliseconds, allowing it to compute control signals over 2,660 times within the 65-millisecond sample time of the AR Drone 2.0. This speed makes it ideal for real time applications, despite its slightly lower accuracy (RMSE 1.234, correlation 0.949) compared to DNNs.

DNNs, such as DNN1, had a latency of 1.2 milliseconds, still fast enough to compute signals 54 times within the sample time, balancing high accuracy with acceptable speed. Double-layer MLPs (MLP_2_107_54) took 1.8 milliseconds, while ResNets were the slowest at 5.4 milliseconds, computing signals only 12 times per sample period, highlighting their impracticality for real-time control in this context. These latencies, while suitable on a powerful computer, may increase on onboard systems like ARM microcontrollers or single-board computers (e.g., Raspberry Pi), where additional delays from sensor data acquisition and communication (e.g., Wi-Fi in MATLAB control) must be considered. For larger networks, neural processing units (NPUs) could accelerate computations, but the study’s networks are small enough for standard hardware, coded in languages like C++ or Python.

Bridging the Gap: Future Horizons for Drone AI

Despite these advancements, limitations persist. The study did not account for environmental factors like wind disturbances, which could affect tracking accuracy in real-world conditions. Neural networks also require large, diverse datasets to generalize effectively; the current dataset, while extensive, only covered 52 trajectory combinations, leading to issues like overfitting in larger networks. Computational demands vary, with DNNs requiring more processing power, which could strain onboard systems, while simpler networks like single-layer MLPs offer lower latency but reduced accuracy. The unpredictability of neural networks also poses safety risks, as they may fail in untested scenarios, such as sharp maneuvers or significant deviations from the expected path.

Moving forward, expanding datasets to include wind models and noisy feedback signals will improve robustness. Testing on physical drones, such as the Parrot AR Drone 2.0, will validate simulation results, addressing hardware-specific dynamics. Standardizing neural network architectures and training protocols could streamline adoption in UAV control, ensuring compatibility across platforms. Exploring alternative architectures, such as WASD Neuronet Models or reinforcement learning, may enhance performance. Collaborative efforts between researchers and industry could accelerate these developments, balancing economic scalability with ethical considerations, such as ensuring safe operation in populated areas to prevent accidents. Developing hybrid systems with fail-safe mechanisms, adaptive online training, and improved interpretability will further enhance reliability, especially for multiagent swarm coordination scenarios.

Conclusion

Neural networks as direct controllers mark a significant step in UAV autonomy, with DNNs achieving the highest accuracy (RMSE 1.083, correlation 0.962) and stable flight across diverse trajectories, while simpler MLPs offer low latency (0.024 milliseconds) for real time needs. By eliminating conventional control methods, this approach simplifies systems and enhances adaptability, clearing the way for applications in delivery, agriculture, and rescue missions. For instance, a DNN controlled drone could precisely navigate a disaster zone, while an MLP controlled drone ensures rapid response in crop monitoring. Addressing gaps in environmental robustness, computational demands, and safety will further their potential. Researchers can refine training datasets and explore hybrid systems, developers can optimize onboard processing, and investors can support scalable, safe solutions, all while prioritizing ethical deployment to ensure public safety and trust in autonomous UAVs.

Citation

Kownacki, C., Romaniuk, S., & Derlatka, M. (2025). Applying Neural Networks as Direct Controllers in Position and Trajectory Tracking Algorithms for Holonomic UAVs. Scientific Reports, 15, 12605. https://doi.org/10.1038/s41598-025-97215-9

NeuromorphicCore

Related Articles

PHP Code Snippets Powered By : XYZScripts.com
★

Track This Company

Create a free account to add companies to your watchlist and get notified when patents, funding, or key developments change.