<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Abhinav Shah on Medium]]></title>
        <description><![CDATA[Stories by Abhinav Shah on Medium]]></description>
        <link>https://medium.com/@shahabhinav00?source=rss-3c4759e79620------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*cS-wnSBGUGXiB73uKNfW7w.jpeg</url>
            <title>Stories by Abhinav Shah on Medium</title>
            <link>https://medium.com/@shahabhinav00?source=rss-3c4759e79620------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 22:54:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shahabhinav00/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Machine Learning Behind Autonomous Aerial Vehicles]]></title>
            <link>https://medium.com/@shahabhinav00/the-machine-learning-behind-autonomous-aerial-vehicles-d9e17c367d79?source=rss-3c4759e79620------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9e17c367d79</guid>
            <category><![CDATA[autonomousaerialvehicles]]></category>
            <category><![CDATA[aircraft]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[reinforcement-learning]]></category>
            <category><![CDATA[computer-vision]]></category>
            <dc:creator><![CDATA[Abhinav Shah]]></dc:creator>
            <pubDate>Sun, 17 Dec 2023 02:28:38 GMT</pubDate>
            <atom:updated>2024-05-18T07:17:46.153Z</atom:updated>
            <content:encoded><![CDATA[<p>It’s rush hour downtown and you need to get home. Turns out you can call an autonomous aerial vehicle to pick you up and fly you away — no pilot needed. Okay… maybe that future is a bit far off. But the technology is not. Autonomous aerial vehicles (AAVs) — aircraft that are neither piloted nor controlled by humans — require an impressive set of technologies to enable them to fly by themselves.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*o8m_sV_3Oy__mi4z0PMNeQ.jpeg" /><figcaption>Airbus air taxi concept</figcaption></figure><h3>Overview of an AAV</h3><p>Before jumping into machine learning models, it is imperative to understand the various hardware and software components enabling AAVs to fly.</p><h4>Hardware</h4><p>To start off with, a variety of <strong>sensors</strong> are used in order for AAVs to gather information about their surroundings, allowing the aircraft to navigate, avoid obstacles, and make autonomous decisions.</p><p><strong>Cameras</strong> are vital in providing visual information for an AAV. It allows the vehicle to understand its environment, meaning it can identify and classify objects around it, avoid dangers, and plan paths.</p><p><strong>Lidar</strong> (Light Detection and Ranging) is a remote sensing method that uses light in the form of a laser to measure distances to objects around it. This sensor provides AAVs with 3D point clouds of their surroundings, which can be valuable for obstacle avoidance, terrain mapping, and altitude estimation.</p><p><strong>Radar</strong> (Radio Detection and Ranging) can complement cameras and lidar by sensing surroundings in all types of weather. This allows an AAV to detect and avoid obstacles, as well as navigate even with poor visibility.</p><p>Processing the visual surroundings and then making decisions on it relies on machine learning algorithms, which will be covered later in the article!</p><p>While cameras, lidar, and radar are the primary sensors onboard, there are many others with much more specific applications. These include <strong>barometers</strong> to measure atmospheric pressure (and thus altitude) and <strong>internal measurement units</strong> (IMUs) providing real-time data on the AAV’s acceleration, angular velocity, and orientation, aiding stability and flight control.</p><p>Sensors provide the AAV with information, but <strong>actuators</strong> carry out physical applications. <strong>Motors</strong> convert electrical energy into mechanical energy, driving propellers in order to thrust or maneuver the AAV. <strong>Servos</strong> are high precision actuators that control movements of movable surfaces, such as ailerons or rudders, manipulating airflow to change orientation or maintain stability. Finally, <strong>gimbal systems</strong> are mechanical platforms that stabilize cameras or sensors to ensure they capture clean data.</p><p>The <strong>flight controller</strong> is like the brain of the AAV; it takes in all the information given by sensors and sends signals to the actuators. It manages the overall operation as it coordinates flight control and navigation. Additionally, various <strong>communication systems</strong> enable AAVs to exchange information with other aircraft or ground stations.</p><h4>Software</h4><p>Along with complex ML algorithms, simpler software components play vital roles in an AAV.</p><p><strong>Flight control software</strong> implements basic algorithms in order to ensure stability orientation for safe flight. A key functionality is <strong>altitude stabilization</strong> which compensates for external factors like wind in order to keep the aircraft stable. <strong>Path tracking</strong> and <strong>waypoint navigation</strong> allow an AAV to follow a desired flight path or a series of waypoints, respectively.</p><p><strong>Navigation software</strong> is another crucial software component. It determines an AAV’s location through sensor data, maps the surrounding environment, plans a route taking into account obstacles, and provides guidance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*zrRX61t_UR0xvd917UaLWQ.png" /></figure><h3>Computer Vision</h3><p><strong>Machine learning (ML)</strong> is a subdivision of artificial intelligence (AI) that gives computers the ability to learn how to do something without being explicitly programmed to do so. ML <strong>algorithms</strong> are trained on data: text, images, etc, and the algorithm learns to detect <strong>patterns</strong> and make <strong>predictions</strong> about similar data.</p><p>Autonomous aerial vehicles need to be able to detect objects or situations occurring around it. For example, another AAV nearby would pose a risk to both aircraft, as a collision would be catastrophic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/0*59FAEoQLYfxBhKpQ.png" /></figure><p><strong>Convolutional Neural Networks (CNNs)</strong> are a type of machine learning model used to effectively analyze images and extract features. In order to understand what a CNN is, we need to go over a neural network.</p><p>A <strong>neural network</strong> is a machine learning model loosely inspired by the brain. It is made up of neurons, or nodes, which is what the data flows through. Each neuron contains a weight and bias, and an activation function calculates the output of the node based on these values. A neural network has an input layer which receives the raw data, hidden layer(s) which do most of the computational work, and an output layer, which gives the result the ML model was performing. In a process called backpropagation, the model learns the values of these weights and biases in order to properly classify real data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*9WGxKMAmlVSZDkjUEQ8HAw@2x.png" /></figure><p>A <strong>CNN</strong> uses this structure as its foundation, but has some key features that help it analyze images and extract features. A <strong>convolutional</strong> layer has input data, a kernel, and a feature map. Assuming the analyzed image will be in color (RGB), the data will be a 3D matrix of pixels. A kernel, a matrix of values, slides over the image, acting as a feature detector to check if certain patterns are present.</p><p><strong>Pooling layers</strong> are necessary to reduce the vast amounts of data inputed. Similar to a kernel, a filter sweeps across the input but rather than extracting features, it either takes the maximum value or average value of the pixels. While losing information, this significantly improves efficiency. This data is fed into a fully-connected layer, which is nothing but a neural network!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Sk6VGqBlOX2G1rAx" /></figure><p>Now that we have the ML basics out of the way, let’s look at how certain models perform object detection and localization.</p><p><strong>Object detection</strong> is the process of identifying objects within images and assigning them a class or a category. <strong>Object localization</strong> is the process of determining the exact location of an object, usually by surrounding it by a bounding box.</p><h4>YOLO (You Only Look Once)</h4><p>YOLO is a real-time object detection and localization model that predicts bounding boxes and probabilities with just one neural network.</p><p>The YOLO pipeline begins with an image captured by a camera on the AAV, and goes through preprocessing, which is resizing the image to a specific input size. The YOLO architecture uses a CNN as its backbone, so the image passes through a series of convolutional layers, which extracts features.</p><p>Afterwards, the image is divided into a grid of cells, where each cell predicts objects within. The CNN simultaneously predicts a fixed number of bounding boxes. Each one of these boxes comes with corresponding attributes: the (x, y) coordinates of the center of the box, and the height and width of the box — relative to the entire image. These objects are classified among predefined classes (a drone, a tree, another AAV, etc). A confidence score is the final attribute which indicates the likelihood the box contains an object.</p><p>Low confidence and/or overlapping predictions are filtered out, such that the most confident predictions remain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JB6vGLpl5-dATnMHcp_w7g.png" /></figure><h4>SSD (Single Shot Multibox Detector)</h4><p>SSD is another object detection model that simultaneously classifies objects and identifies their location.</p><p>Similar to YOLO, an image captured by the AAV is preprocessed then passes through a backbone CNN, where features are extracted. The SSD generates multiple feature maps at various scales from different convolutional layers, so that it is able to capture both low and high level features at multiple resolutions.</p><p>In each feature map layer, default boxes with a variety of aspect ratios and scales are placed at different locations, covering the entire image in multiple scales. These boxes serve as predefined anchors across the image, in order to find objects of different shapes and sizes. For each default box in each map layer, the SSD predicts adjustments to the default coordinates (x, y, width, height). These offsets fit the boxes better around the actual object.</p><p>Afterwards, the model predicts confidence scores indicating the likelihood the box contains an object, along with the object class predictions to determine what the object is. Predictions from different feature maps are combined to form the final set of bounding boxes, confidence scores, and classification probabilities.</p><p>Just like in YOLO, confidence thresholding keeps the most confident of object predictions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ktZGS_yfzOIsVSxM.png" /></figure><p>YOLO and SSD are just two of many computer vision models seen in AAVs; others include Faster R-CNN and Mask R-CNN.</p><p><strong>What do these models do?</strong></p><p>These models are crucial for the aerial vehicle to detect obstacles in its path and avoid potential collisions. Additionally, they help the AAVs to perceive their environment, as they can understand their environment, including buildings and landmarks. This provides essential spatial awareness that aids the aircraft to make autonomous navigation decisions safely and efficiently. At speeds where decisions must be made at high speeds, real-time responsiveness is crucial, and thus models undergo vast training and testing to ensure capability.</p><h3>Reinforcement Learning</h3><p>Computer vision allows autonomous aerial vehicles to see their environment, but the process of making decisions and navigating requires reinforcement learning.</p><p><strong>Reinforcement learning (RL) </strong>is fundamentally different from other types of machine learning models, involving decision making through trial and error.</p><p><strong>Key Components:</strong></p><ol><li><strong>Agent:</strong> An entity (in this case the AAV) that is making decisions while learning from the environment.</li><li><strong>Environment:</strong> The world in which the agent interacts — everything the AAV can observe around it.</li><li><strong>State:</strong> A specific configuration of the environment that provides the context for the agent to make a decision. For an AAV, this could mean the current location, velocity, nearby obstacles, etc.</li><li><strong>Actions:</strong> A set of possible decisions the agent can make, such as altering altitude or dodging trees in an AAV.</li><li><strong>Reward:</strong> A feedback signal given to the agent after an action is made. It reflects how good the action was, and the goal for the agent is to maximize its reward over time.</li><li><strong>Policy:</strong> The strategy that the agent uses to decide which action to take. It can be as simple as a fixed set of rules or as complex as a deep neural network. A big challenge in RL is balancing exploration (trying new things) and exploitation (using known actions that work well).</li><li><strong>Value Function:</strong> A function that estimates how good it is to be in a certain state. It does this by approximating the expected future cumulative award that the agent can attain, guiding the decision making process.</li></ol><p><strong>Learning Process:</strong></p><ol><li><strong>Initial Exploration:</strong> The agent begins with little to no information about its environment. It has to explore its surroundings through random actions or some initial policy.</li><li><strong>Observation:</strong> The agent observes the current state of the environment after each action.</li><li><strong>Decision Making:</strong> Based on the state the agent is in, as well its policy, it selects an action. Overtime, the actions get refined.</li><li><strong>Action and Feedback:</strong> After performing the action, the agent receives feedback — a reward or a penalty — in order to measure how good the action was.</li><li><strong>Learning and Policy Update:</strong> The agent uses the feedback it gets to update its policy so that its future decision-making is better.</li><li><strong>Repetition and Convergence:</strong> The cycle of observing, decision making, acting, and learning is repeated many times until the policy converges to the maximum reward, ideally being the best strategy possible.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/617/0*RDEgqTZYYsKjKhJk.png" /></figure><h4>RL in AAVs</h4><p>Now that we know what reinforcement learning is, let’s look at how this is used in AAVs, specifically in their navigation. An aircraft wants to avoid obstacles while reaching its target, which requires complex decision-making in real time. RL algorithms are utilized to train AAVs to recognize and avoid obstacles and still reach its intended goal.</p><p>Sensors, cameras, lidar, radar, and the computer vision models covered earlier acquire crucial data, such that the AAV, the agent, understands the state it is in. This includes coordinates, velocities, nearby obstacles, or other environmental information.</p><p>The AAV, using its policy, selects actions such as adjusting velocity or altitude. The RL model is trained with a reward system, which reinforces behaviors that lead to successful obstacle avoidance. For example, there may be a positive reward if the vehicle maintains a safe distance from a tree, but a penalty for a collision.</p><p>There are many possible RL algorithms suited for obstacle avoidance, including deep Q-networks, policy gradient models, or actor critic models. Training tends to occur in simulated environments, replicating a range of scenarios, before fully testing in real life.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/0*N86eiux1yBuOJ4sw.png" /></figure><h4>The Stabilize-Avoid Problem</h4><p>The <strong>Stabilize-Avoid Problem</strong> is a dual challenge faced by autonomous aerial vehicles with two aspects: stabilization and obstacle avoidance.</p><p><strong>Stabilization</strong> refers to maintaining a controlled state and stable flight. This includes a steady altitude and orientation. The AAV should be able to handle external disturbances as wind or air pressure changes, or mechanical factors like weight imbalance.</p><p><strong>Avoidance</strong> is about detecting and maneuvering around obstacles in the aircraft’s path, ensuring a safe collision-free navigation. This requires accurately detecting objects around it, and then performing the best course of action, such as flying around it.</p><p>The real challenge of this problem is doing both of these tasks simultaneously, which is critical to the safety of the AAV. Traditional AI methods often struggle to address the problem, as the most straightforward path for the aircraft might put it at risk of collisions with other obstacles.</p><p>MIT researchers in 2023 developed a new approach safer than existing methods. They reframed the stabilize-avoid problem as a <strong>constrained optimization</strong> problem, which means structuring navigation not only as finding the most efficient path (optimization), but doing so also under specific constraints (like maintaining stability). They then applied <strong>deep reinforcement learning</strong> techniques, and integrated this solution with existing methods to create a unique solution to handle the complexities of flight.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9nCzKjwSp8fvp45P.jpg" /><figcaption>MIT researchers simulating their approach to the stabilize-avoid problem</figcaption></figure><p>Autonomous aerial vehicles rely on an impressive range of technologies, including the hardware that enable the vehicle to fly, relatively simple software components, and various machine learning algorithms. AAVs have the potential to make profound impacts in so many aspects, such as delivery, monitoring, rescue operations, and transportation. Who knows… that air taxi downtown might happen sooner than you think!</p><h4>References</h4><ol><li>“A Convolutional Neural Network (CNN).” <em>Stanford University</em>. deeplearning.stanford.edu/tutorial/supervised/ConvolutionalNeuralNetwork.</li><li>“A Step Toward Safe and Reliable Autopilots for Flying.” <em>MIT AeroAstro</em>. aeroastro.mit.edu/news-impact/a-step-toward-safe-and-reliable-autopilots-for-flying.</li><li>“Actuators &amp; Actuation Systems.” <em>Unmanned Systems Technology</em>. unmannedsystemstechnology.com/expo/actuators-actuation-systems.</li><li>“Autonomous Aerial Vehicles (AAVs).” <em>Flight Crowd</em>. flight-crowd.com/aav.</li><li>Fan, Jonathan, et al. “A Step Toward Safe and Reliable Autopilots for Flying.” <em>arXiv</em>. Cornell University, 2022, arxiv.org/pdf/2211.02147.pdf.</li><li>Liu, Wei, et al. “SSD: Single Shot MultiBox Detector.” <em>arXiv</em>. Cornell University, 2015, arxiv.org/pdf/1512.02325.pdf.</li><li>Redmon, Joseph, et al. “You Only Look Once: Unified, Real-Time Object Detection.” <em>arXiv</em>. Cornell University, 2015, arxiv.org/pdf/1506.02640.pdf.</li><li>“Reinforcement Learning.” TechTarget. www.techtarget.com/searchenterpriseai/definition/reinforcement-learning.</li><li>So, Oswin, and Chuchu Fan. <em>Solving Stabilize-Avoid Optimal Control via Epigraph Form and Deep Reinforcement Learning</em>, arxiv.org/pdf/2305.14154.pdf.</li><li>“What are Neural Networks?” <em>IBM</em>. www.ibm.com/topics/neural-networks.</li><li>“What is Computer Vision?” <em>Microsoft Azure</em>. azure.microsoft.com/en-us/resources/cloud-computing-dictionary/what-is-computer-vision#object-classification.</li><li>“What is LIDAR?” <em>NOAA’s National Ocean Service</em>. oceanservice.noaa.gov/facts/lidar.html.</li><li>Zhang, Wenjie, et al. “Computer Vision in UAV Autonomy: A Survey.” <em>ScienceDirect</em>. Elsevier, 2018, www.sciencedirect.com/science/article/abs/pii/S0957417417306395.</li><li>Zou, Zhongyuan, et al. “Hardware Selection Approach For Custom UAVs.” <em>ACM Digital Library</em>. 2023, dl.acm.org/doi/fullHtml/10.1145/3575879.3575978.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9e17c367d79" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>