Topic 2: AI and automated control
Summary of Topic 2: block-based drone programming (BlockCode), automated Waypoint missions, AI and Computer Vision, training Object Detection with YOLO/Ultralytics, and Aerial Mapping & GIS applications
This content builds on Topic 1, which has already laid the foundations of cybersecurity, aviation law and drone aerodynamics. This topic is a major turning point, because readers move from flying a drone by hand to programming it to fly autonomously, and begin to bring in artificial intelligence so that the drone can “see” and make decisions to a certain degree. These are core skills in strong demand in the defence industry and in modern rescue missions. The content expands on each topic with reference to sources on drone programming and artificial intelligence, as well as the original lecture slides on aerial mapping and geographic information systems, so that readers can use it for review or further study.
Module 03: Programming automated flight control
This module is designed so that learners build up their skills step by step in a systematic way, starting with manual control, the most basic skill, before moving on to block-based programming that does not rely on complex code, and finishing with writing fully automated flight missions. Figure 2 summarises these three stages, showing how the level of automation increases in sequence.
Figure 2: The three stages of drone control in Module 03, from manual flying to fully automated missions
Basic drone control practice: Manual Basic Control
The first step in this topic takes the four main control axes learned in theory in Topic 1, namely throttle, roll, pitch and yaw, and puts them into practice with the transmitter joysticks. Readers become familiar with the response of a drone whose PID has already been tuned in Topic 1. This is a necessary step before trusting the drone to fly itself under program control in the next stage, because a remote pilot who deeply understands manual control can intervene and handle emergencies promptly if the automated system malfunctions. In addition, repeated manual practice lets learners see for themselves how well the PID values tuned in Topic 1 suit their own flying style. If the drone responds too sharply or shows persistent oscillation, readers can go back and adjust the P, I and D values further before using the drone in automated programmed mode, which concretely links the knowledge of the two topics.
Introductory block-based drone programming (BlockCode)
Once familiar with manual flying, readers learn the concept of block-based programming, or Block-based Coding, a very popular way of teaching programming in drone education. Learners drag and drop ready-made command blocks, such as take off, turn left, take a photo or land, and arrange them into a sequence of commands without having to write complex program code. Platforms of this kind, such as DroneBlocks, follow an approach called “code, test, then fly”: learners can first simulate the program in an on-screen simulator to check its correctness in real time before using the tested code on a real drone. This approach reduces the risk of program errors during real flight and allows people with no previous coding background to understand the logic of automated flight missions in a concrete way (DroneBlocks, Autonomous Drone Coding Kits) Another advantage of learning with command blocks is that they act as a bridge towards programming in a real language in the future, because the logical structures behind each block, such as loops, conditions and command sequences, are the same concepts used in high-level programming languages such as Python, which readers will meet again when programming LoRa transmitter and receiver devices in Topic 3.
Workshop: Writing BlockCode for automated flight (Mission Automation Flight)
This workshop extends the understanding of BlockCode to writing fully automated flight missions, built around a concept called Waypoint Navigation. A waypoint is a coordinate reference point recorded in the satellite navigation system. The programmer can define the coordinates of each point the drone should fly through, as well as the flight altitude, the speed between points, and how long the drone should hover at each point before moving on to the next. Once all points are defined, the drone automatically calculates and selects the shortest route through the waypoints, saving both battery energy and mission time. The system also allows the remote pilot to take back manual control at any moment during automated flight, an important safety mechanism when unexpected situations arise (DroneZon, Drone Waypoint GPS Navigation Technology) Writing a Mission Automation Flight yourself in this workshop therefore completes the learning cycle of Module 03, from manual control and block-based programming to planning fully automated flight missions.
Module 04: Artificial intelligence and computer vision
This part takes readers into a more challenging dimension: giving the drone the ability to “see” and interpret what its camera captures using artificial intelligence. This technology is changing the role of drones from mere image-recording devices into automated decision-making systems that are practical for security and rescue missions.
Artificial intelligence and computer vision
This part lays the conceptual foundation of Computer Vision, a branch of artificial intelligence that enables computers to analyse image and video data to understand their surroundings in a way close to human vision. A Computer Vision system on a drone relies on hardware such as high-resolution cameras, thermal cameras and LiDAR sensors that capture the environment in real time, working together with AI model software such as YOLO, which detects objects and helps avoid obstacles. The technology is already applied in many industries today, from Amazon delivery drones that use detect-and-avoid systems without relying on human control, to wildlife population monitoring, disaster damage assessment, detecting illegal hunting, inspecting infrastructure for cracks, and military security uses for reconnaissance and target tracking (Ultralytics, AI Drones: Real-World Computer Vision Applications) On the technical side behind this vision, the AI models used are usually Convolutional Neural Networks (CNNs), which learn to extract image features, such as edges, corners, shapes and textures, layer by layer from raw images that are merely numerical pixel colour values, and then combine these features until they can eventually recognise and classify complex objects. Understanding this overall picture before practice helps readers see how the techniques they are about to practise connect with real-world applications.
Building AI for object detection (Object Detection)
The main content of this part is building an object detection system using Object Detection, a technique that locates objects within an image or video with rectangular frames called Bounding Boxes and identifies the type of each object. The most widely used algorithm today is YOLO, or You Only Look Once, which is popular because it can run in real time at more than 45 frames per second, gives accurate detection results and generalises well to image data in new contexts. YOLO works in four main steps. First, the input image is divided into a grid of cells, each responsible for detecting objects within its own area. Next, the model predicts the coordinates, size and probability of the detection boxes in each cell, a step called Bounding Box Regression. The system then calculates the Intersection over Union (IOU) to determine how much the detection boxes overlap, before using Non-Maximum Suppression (NMS) to filter them and keep only the box with the highest confidence for each object. These four steps are shown as a diagram in Figure 3 (DataCamp, YOLO Object Detection Explained: A Beginner’s Guide)
Figure 3: The YOLO Object Detection workflow, from the input image to the detection output
YOLO's processing speed is an extremely important property for use on drones, because a drone in flight must process camera images continuously and make decisions immediately without delay. If the object detection system is too slow, the information it produces will lag behind real situations that change rapidly during flight. This speed is the main reason YOLO has become the standard algorithm widely used in the drone and robotics field worldwide.
Workshop: A mission applying artificial intelligence and computer vision with drones (Mission AIR Detection)
This workshop combines the newly learned Object Detection technique with real flight in a mission called Mission AIR Detection, which simulates an end-to-end scenario of using AI with drones. The drone camera captures images continuously during flight and sends them to the AI model for real-time object detection. When the system detects a target object, it sends the detection result, consisting of the object's position and type, to the Flight Controller, which decides whether to adjust the flight path or alert the mission operator. The drone then moves according to the new command and loops back to capture images again, continuously throughout the mission, as shown as a cycle in Figure 4.
Figure 4: The operating cycle of Mission AIR Detection, which combines AI object detection with real flight
To illustrate real use at a more serious level than the classroom, one frequently cited example is the application of this concept on the actual battlefield, such as the case of the Yasni Ochi unit, or “Clear Eyes”, of the Ukrainian armed forces. It uses drones equipped with AI target detection to detect movement and then zoom in to confirm the target before striking targets at ranges of up to 20 km with high precision, and also uses tracking systems to confirm the results of operations. Field data also indicate that the share of strikes carried out by drones has risen from about 10 percent to as much as 70 percent of all operations, while the use of conventional artillery has fallen to only 10 to 15 percent. However, field commanders still acknowledge that current AI target detection systems have significant limitations, especially in environments with dense obstructions, such as trees that can block the algorithm's view, or puddles that reflect light so that the system mistakes them for metal vehicles (CEPA, Ukraine’s AI Drones Hunt the Enemy) This case study is therefore an important lesson for readers: however powerful AI may be, it still has limitations that operators must understand and plan for, and automated systems should not be relied on alone without human verification or control behind them.
In the classroom workshop, readers will try the same concept at a safe and controlled level, for example by having the drone patrol a simulated area and letting the AI model raise an alert when it finds a predefined target object. This practises the skill of integrating the three main components learned across the two topics: the drone hardware and flight control system from Topic 1, automated mission programming from Module 03 of this topic, and the object detection AI model that has just been built. Assembling all three components yourself is an experience that reinforces understanding of the overall picture of intelligent drone systems better than learning them separately.
This topic closes with a lesson summary and a review of the key points, giving readers the opportunity to review their understanding and check any points that remain unclear before moving on to Topic 3, which extends the scope to robot operating systems and swarms, as well as military Internet of Things technology.
Supplementary part: Applying AI and drones to aerial mapping and geographic information systems (Aerial Mapping & GIS)
Beyond real-time object detection, the core of Module 04, the original lecture slides also contain another strand that extends Computer Vision to applications in surveying and spatial analysis, skills that are just as important for security and disaster relief missions. This part is compiled from the original lecture slides on aerial mapping, which explain the process from aerial photography to spatial data analysis with AI.
Drone aerial imagery compared with satellite imagery
The starting point of aerial mapping is understanding the advantages of drone imagery compared with satellite imagery. The actual lecture slides compare Landsat satellite imagery, with a resolution of about 30 m per pixel, with Quickbird-2 satellite imagery, with a higher resolution of about 2.5 m per pixel, as shown in Figure 5. Even a high-resolution satellite such as Quickbird-2 cannot distinguish details at the level of individual buildings or plants as clearly as drone imagery taken at a much lower altitude, which can provide centimetre-level resolution per pixel. This resolution advantage is what makes drones a survey tool suited to work requiring high detail, such as post-disaster damage assessment or surveying agricultural areas to analyse the health of individual plants.
Figure 5: Differences in resolution between Landsat (30 m per pixel) and Quickbird-2 (2.5 m per pixel) satellite imagery compared with actual drone imagery
Flight planning for data collection and image overlap
Collecting aerial imagery for further processing requires systematic flight-path planning. The actual lecture slides show two main flight-path patterns: the Grid Flight Plan, which surveys the area in parallel back-and-forth lines like ploughing a field, and the Double Grid Flight Plan, which adds another set of crossing lines to capture images from two directions, giving more complete and accurate data for work requiring high-resolution 3D models. The key to flight planning is two image-overlap values: Forward lap, the overlap along the flight line, which the slides recommend at about 60 percent, and Side lap, the overlap between adjacent flight lines, recommended at about 30 percent, as shown in Figure 6. Sufficient overlap is a necessary condition for the next step, Image Stitching, in which software finds common points in the areas where two images overlap and automatically joins all the images into a single large mosaic. If the overlap is too small, the software may fail to find common points, causing stitching errors or gaps in the resulting map (Pix4D, Do I need a high image overlap?)
Figure 6: Grid and Double Grid Flight Plan patterns, with the principle of image overlap (Forward lap and Side lap) leading to Image Stitching
From raw photographs to Orthomosaics and terrain models
Once images have been collected according to the flight plan, the next step is to process the large number of raw photographs into a usable map. The process called Orthomosaic takes tens to hundreds of raw photographs, stitches them and corrects geometric distortions to produce a single map image with a correct and uniform scale throughout, as in the example in Figure 7, which shows raw photographs of an island before and after processing into an Orthomosaic. This process can be extended to produce three types of terrain elevation model: the Digital Surface Model (DSM), which records the height of everything on the surface including trees and buildings; the Digital Terrain Model (DTM), which removes buildings and vegetation, leaving only the height of the bare ground; and contour maps, which show lines of equal elevation overlaid on the actual imagery, as in Figure 8. These data are very useful for planning military missions and for disaster relief, for example assessing lines of sight in mountainous areas or planning evacuation routes in flood-risk areas (GIS Geography, DEM vs DSM vs DTM)
Figure 7: A large number of raw photographs are stitched and corrected into a single Orthomosaic map with a correct and uniform scale
Figure 8: Three types of terrain model derived from the same aerial imagery: Digital Surface Model, Digital Terrain Model and contour map
Case study: GeoAI and the recovery of Hat Yai after the flood crisis
To show how these technologies are applied in real situations in Thailand, the lecture slides cite a Thairath Online news report that the Program Management Unit for Human Resources & Institutional Development, Research and Innovation (PMU-B) joined forces with a network of partner researchers to use Geo-intelligence, or GeoAI, technology to develop a Geospatial database supporting the recovery of Hat Yai after the flood crisis, by producing comprehensive 360-degree digital maps through cooperation between Prince of Songkla University, the company Drone Mapper and more than ten private partners in geomatics survey engineering. Figure 9 shows thermal images from drones used to pinpoint the locations of flood victims needing help in the area. This case study shows that the aerial mapping techniques just described, from flight planning and image stitching to terrain models, are all being used in real national disaster relief missions, which matches the Disaster Prevention & Response mission of the defence industry discussed in Topic 1 (Thairath Online, PMU-B joins a network of partner researchers using “GeoAI” to support the recovery of Hat Yai from the flood crisis, as presented in the original lecture slides)
Figure 9: A news image from Thairath Online showing the use of drone thermal imaging and GeoAI technology to support the recovery of Hat Yai after the flood crisis
Advanced drone command through programming and real field test cases
Beyond standard object detection, the lecture slides also show examples of applying Computer Vision to command drones in more varied ways: Gesture control, commanding with hand gestures; Face recognition; Voice control, commanding by voice through a system playfully called “Drone Siri”; and Pose tracking, tracking the user's body posture, as shown in Figure 10. Each method relies on an AI model trained to recognise specific patterns from images or sound and then translates the output directly into drone control commands through program code. This variety of command methods shows that programming the connection between AI and drones is not limited to object detection alone, but can be designed to respond to users through multiple channels to suit the mission.
Figure 10: Four applications of AI for commanding drones: hand-gesture control, face recognition, voice control and body-pose tracking
To test the capability of an object detection model in a real environment more complex than the classroom, the team that prepared this content flew a drone performing real-time object detection over roads in the Bang Saen area under the project name “Drone AI Live in Bangsaen”. The results show Bounding Boxes with confidence values labelled on each vehicle travelling on the road, with cars labelled “car” and motorcycles labelled “Motorcycle”, and confidence values ranging from about 0.50 to 0.90, as shown in Figure 11. Testing in real road conditions with heavy traffic like this helps confirm that the YOLO model whose principles readers have already learned can actually work in real time on video taken from a drone's high vantage point, not just on still images in the classroom.
Figure 11: Results of testing a real-time object detection model on drone video over roads in the Bang Saen area, showing detection boxes and confidence values for each vehicle
Spatial data analysis with GIS and future technology directions
The final step in the aerial mapping workflow is to analyse the collected data in depth with a geographic information system, or GIS. An example in the lecture slides shows a hexagonal grid (Hexagon Grid) overlaid on aerial imagery of Nakhon Phanom Municipality, with the probability of low-income community settlements calculated for each hexagon and displayed as a heat map graded from green to red according to the level of likelihood, as shown in Figure 12, together with an evaluation of model accuracy using standard statistical measures: Accuracy, Precision, Recall and F1 Score. Combining aerial imagery, geographic coordinates and data analysis techniques in this way shows that drones are not just a photography tool but the starting point of a chain of policy decisions systematically supported by spatial data.
Figure 12: A hexagonal-grid heat map showing the likelihood of low-income community settlements, analysed from aerial imagery and evaluated with Accuracy, Precision, Recall and F1 Score
This supplementary part closes with an overview of future directions for drone and AI technology as presented in the lecture slides, consisting of five main trends: fully autonomous drone systems (Autonomous Drone Systems), more sophisticated AI and Computer Vision analysis (AI & Computer Vision Analytics), integrating GIS data with big data (GIS & Big Data Integration), real-time and predictive analysis (Real-Time & Predictive Analysis), and connection with the cloud, the Internet of Things and digital twins (Cloud, IoT & Digital Twin), as shown in Figure 13. All five trends are directly linked to content readers will meet in Topic 3, including robot operating systems, drone swarms and military IoT devices.
Figure 13: Five future trends in drone and AI technology according to the lecture slides, from fully autonomous systems to connection with the cloud and digital twins
Supplementary part 2: A closer look at the Ultralytics Platform and the Mission AI Detection & Drone mission
Beyond the YOLO principles and the Mission AIR Detection cycle described above, there is also an original lecture slide set, “Lesson 04: AI & Computer Vision at the Edge”, which goes a step further into detail, both in the basic theory of AI and in the practice of training your own Object Detection model through an online platform before using the self-trained model in a real flight mission. This part therefore expands further on that slide set so that readers can see the complete picture from theory to hands-on practice step by step.
The hierarchy of artificial intelligence and the place of Object Detection
Before going deeper into Object Detection, the lecture slides lay the foundation by arranging the field of artificial intelligence into four levels. It starts with Artificial Intelligence, or AI, meaning any machine or system that imitates human abilities to think, learn and make decisions. Next is Machine Learning, or ML, a specific approach that enables computers to learn from data and improve their performance on their own without hard-coding rules for every step. One level deeper is Deep Learning, or DL, machine learning that uses multiple stacked layers of artificial neural networks to learn complex patterns from large amounts of data. Finally, there is Generative AI, or GenAI, AI that can create new content by itself, whether text, images, audio or video. Notably, Object Detection, the heart of all of Module 04, sits inside the Deep Learning circle, as shown in Figure 14. This shows that the technique readers are about to practise is not content-generating AI like ChatGPT or Midjourney, but a branch of deep learning that specialises in vision and object detection (Medium - Priya Srivastava, Machine Learning Basics Part 1: What is Generative AI?)
Figure 14: The hierarchy of Artificial Intelligence, Machine Learning, Deep Learning and Generative AI, with the position of Object Detection nested within the Deep Learning circle
How do Classification, Object Detection and Instance Segmentation differ?
To avoid confusion between similar technical terms, the lecture slides compare four computer vision techniques using the same example image of a cat, a dog and a rubber duck. Classification is the most basic technique, which only tells what the whole image is, for example stating that this image is a “CAT”, without giving a location. One step up is Classification with Localization, which adds a rectangular frame around the object but is still limited to a single object in the image. Object Detection, the main technique of this lesson, goes a step further by identifying the locations and types of multiple objects simultaneously in a single image, for example distinguishing where the cat, the dog and the rubber duck are in one image. Finally, Instance Segmentation is the most detailed, using not just a rectangular box but delineating the boundary of each object according to its actual shape with a fine outline, as shown in Figure 15. This distinction matters because the drone object detection task readers will practise in the workshop is Object Detection, which strikes a balance between the detail of the output and the processing speed suitable for real-time use.
Figure 15: Comparison of four computer vision techniques: Classification, Classification with Localization, Object Detection for multiple objects, and Instance Segmentation
Principles of training and testing an object detection AI model
Before a usable AI model is obtained, the developer must go through two main stages: Train Model and Test Model. The lecture slides explain with a simple example that in the Train Model stage, the developer feeds input data consisting of many images, together with labels (Label) stating whether each image is a cat or a dog, into the algorithm, which calculates and adjusts its parameters until it produces an AI model. Then, in the Test Model stage, new images that the model has never seen are fed in without labels, and the model's predictions are compared with the true labels prepared in advance to calculate the model's percentage accuracy, or Accuracy, using the formula: number of correct predictions divided by the total number of predictions, multiplied by one hundred, as shown in Figure 16. In general, a usable model should have an accuracy of between 80 and 90 percent. This principle is an important foundation that readers will apply in the model-training workshop on the Ultralytics Platform in the next section.
Figure 16: The concept of building Object Detection, divided into the Train Model stage, which feeds images with labels into the algorithm, and the Test Model stage, which calculates the model's accuracy (Accuracy)
Case study: when an AI system is attacked in a cyber-physical system
To remind readers that AI systems receiving data from sensors are not always safe from threats, the lecture slides cite a cybersecurity research study titled “The Stealthy-Kidnapping Attack With a Learning-Based Model in Cyber-Physical Systems”, which simulated an attack on a drone in the Gazebo and ROS simulation environment. The experimental results, shown in an rqt_plot graph, present a blue line representing the drone's actual position compared with a red line representing where the drone's sensors “perceive” it to be. At the point labelled Point of Attack, the two values begin to diverge noticeably, meaning that the attacker can spoof sensor data so that the AI system misjudges its own position without the drone being aware of it. This case study relates directly to the cybersecurity topic introduced in Topic 1 and reinforces once again that, however powerful the AI system on a drone may be, it must always be verified and supervised by humans; automated systems should not be left to make decisions alone in high-risk missions.
Figure 17: A simulated attack on a drone's sensor system in Gazebo/ROS from the study “The Stealthy-Kidnapping Attack With a Learning-Based Model in Cyber-Physical Systems”, showing the divergence between the actual position (blue line) and the sensor-perceived position (red line) after the point of attack
Workshop: Training your own Object Detection model on the Ultralytics Platform
What clearly distinguishes this workshop from the theoretical explanation of YOLO in the previous section is that readers actually train their own Object Detection model through an online platform called Ultralytics, the direct developer of the latest versions of the YOLO algorithm. The workflow can be summarised in four main stages, as in Figure 18: Train Object Detection AI by training a model on a self-uploaded Dataset; then the YOLO algorithm, which performs the object detection; then the output, a .pt model file containing weights and parameters in PyTorch Weights format; and finally using this model file in practice to detect objects in images or video.
Figure 18: Overview of the four stages of training an Object Detection model on Ultralytics, from Train Object Detection AI to using the .pt model file in practice
In practice, readers start by registering an account on the Ultralytics Platform and creating their own project and dataset. They then upload the dataset images and label, or Annotate, the objects in each image using SAM 3, the Segment Anything Model, which selects object boundaries intelligently, making it much faster to label large amounts of data than drawing boxes by hand image by image. Once the dataset is ready, readers choose the YOLOv8 model size they want to train, from the smallest, YOLOv8n, to the largest, YOLOv8x, and set the training parameters: the number of training passes, or Epochs; the amount of data per step, or Batch Size; and the input image size, or Image Size. They then start training on a cloud graphics processing unit, such as an RTX PRO 6000 card, charged by actual usage time at about US$2.09 per hour. The system estimates the cost in advance so learners can see it before deciding to start training. For the small dataset in this lesson, training takes only about one minute and costs only around US$0.07 to US$0.13.
During training, the Ultralytics Platform dashboard displays results in real time through standard Object Detection metrics: mAP50 and mAP50-95, which measure the mean precision of detection boxes at different overlap levels; Precision, which tells what proportion of the items the model predicted to be target objects are actually correct; and Recall, which tells how completely the model detects all the target objects that actually exist. In the example of real training results in Figure 19, mAP50 reached 99.5 percent, Precision 99.6 percent and Recall 100 percent, which are very good results for the lesson's sample dataset. When the training status changes to Completed, readers check these performance values before deciding to download the .pt model file to their machine, then copy the file into the Models folder of the AIR Detection activity project on the computer used to control the drone, before opening the activity program to use the self-trained model in practice in the next step.
Figure 19: An example of real model training results on the Ultralytics Platform, showing mAP50 of 99.5 percent, mAP50-95 of 97.3 percent, Precision of 99.6 percent and Recall of 100 percent, together with the cost of training on a cloud GPU
The Mission AI Detection & Drone mission: system architecture and flight procedure
Once a self-trained model has been obtained, the final step is to use it with a real drone in a mission the lecture slides call Mission AI Detection & Drone. This mission is summarised in three major stages: the system and AI Detection, consisting of the drone, camera, YOLO model and dashboard that perform the object detection; automated Grid Survey flight covering the whole area along Waypoint routes; and finally the stage in which a human must decide to confirm or reject the detection results, summarised in a Post Flight Report, as shown in Figure 20. In terms of system architecture, the mission consists of five components working in sequence as a pipeline: the Controller, which commands automated Grid Flight Planning; the Camera Worker, which receives images in real time from a camera pointing straight down at 90 degrees; the YOLO Detector, which analyses the images and sends confidence values to the overview; the Dashboard, which displays results live and lets the operator confirm or reject; and finally Capture & Report, which records evidence images, positions and all decision results as evidence, as shown in Figure 21.
Figure 20: The five steps of the Mission AI Detection mission: flight, view, AI analysis, verification by the operator, and recording results
Figure 21: The Mission AI Detection system architecture, consisting of the Controller, Camera Worker, YOLO Detector, Dashboard and Capture & Report working in sequence as a pipeline
Before every mission, readers must complete a three-item Preflight Checklist: check the drone connection and tilt the camera down to 90 degrees; start the AI Camera system and check that the YOLO model has loaded successfully and is ready to detect; and check the operating area and battery level to ensure it is safe to fly. The drone then flies a Grid route in a Lawn-mower or Serpentine Survey Route pattern, surveying the area in parallel back-and-forth lines without repeating the same path. At each Waypoint, the system works through three steps in order: move to the destination and hold position; have the AI analyse the image from the 90-degree downward camera to detect objects; and finally record the position and results before moving on to the next point. During this process, detected objects are assigned one of three statuses: SEARCHING when no target has been found yet, CANDIDATE when a target has been found but the confidence value is not yet stable, and STABLE when it has been detected repeatedly over several frames and is ready for a human to decide whether to confirm or reject it on the Dashboard.
A confident AI is not necessarily a correct AI
One of the most important lessons from this slide set is to distinguish between “the AI is confident” and “the AI is correct”, which are not the same thing. The slides explain this through three concepts. Confidence and Stability means that the confidence value reported by the AI, for example 85 percent, may look high and appear consistently over many frames, but a high and stable number does not guarantee that the AI's judgement is always correct. Next, Position Consistency means the AI checks whether the object appears in a similar position across several frames to filter out False Positives, but errors are still possible, for example when the system detects a false object repeatedly over several frames so that it appears credible. Finally, the most important principle is that Ground Truth comes only from humans: no matter how confident the AI is in its numbers, the final decision to Confirm or Reject a detection must always come from the human drone operator, as shown in Figure 22. This principle corresponds directly to the lesson from the Ukrainian Yasni Ochi drone case study discussed earlier, and it is the same principle used for scoring the Final Challenge activity at the end of the workshop, which requires readers to submit both a Train Score greater than 0.85 and image or video evidence of real target detection through Live Detection, before the system combines them into a mission score at the level of 60, 75, 90 or 100 points.
Figure 22: Three concepts that distinguish a confident AI from a correct AI: Confidence and Stability, Position Consistency, and the principle that Ground Truth must come only from humans
Conclusion
Topic 2 is a major turning point that raises readers from remote pilots flying drones by hand to programmers who can make drones think and decide to a certain degree on their own. All of this content proceeds systematically through three levels of automation, starting with manual control as the basic skill, followed by block-based programming, which opens the door for people without a coding background to understand the logic of automated flight, and on to full Waypoint mission planning. It then builds on this with Computer Vision artificial intelligence, which enables drones to see and detect objects on their own, and ends by combining both fields in the Mission AIR Detection mission, which reflects both the potential and the limitations of AI technology in real situations through case studies from the actual battlefield. In addition, the supplementary content from the original lecture slides extends the scope of Computer Vision to aerial mapping and geographic information systems, from comparing the resolution of aerial and satellite imagery, flight planning and image overlap, and Orthomosaic and terrain-model processing, to the real case study of using GeoAI for the recovery of Hat Yai and spatial data analysis with GIS, showing that technology learned in the classroom can really be applied to solve national-level problems. The second supplementary part, from the original lecture slide set “Lesson 04: AI & Computer Vision at the Edge”, goes a step further by laying the foundation of the AI hierarchy from Machine Learning to Generative AI, comparing Classification, Object Detection and Instance Segmentation to show their differences, teaching the principles of Train and Test Model through the accuracy formula, citing a case study of a cyber-physical attack on a drone as a security warning, and, most importantly, taking readers through actually training their own Object Detection model on the Ultralytics Platform before using the model file in the Mission AI Detection & Drone mission, with its system architecture, Grid Survey flight procedure and the key principle that a confident AI is not necessarily a correct AI, because the final decision must come only from humans. All this knowledge is an important foundation for moving on to the more complex robotic systems and swarms in Topic 3.
Bibliography
-
DroneBlocks. (n.d.). Autonomous Drone Coding Kits. Retrieved from https://droneblocks.io/program/programming-a-drone/
-
DroneZon. (n.d.). Drone Waypoint GPS Navigation Technology And Uses Explained. Retrieved from https://www.dronezon.com/learn-about-drones-quadcopters/drone-waypoint-gps-navigation-technology-explained/
-
Ultralytics. (n.d.). AI Drones: Real-World Computer Vision Applications. Retrieved from https://www.ultralytics.com/blog/computer-vision-applications-ai-drone-uav-operations
-
DataCamp. (n.d.). YOLO Object Detection Explained: A Beginner’s Guide. Retrieved from https://www.datacamp.com/blog/yolo-object-detection-explained
-
CEPA (Center for European Policy Analysis). (n.d.). Ukraine’s AI Drones Hunt the Enemy. Retrieved from https://cepa.org/article/ukraines-ai-drones-hunt-the-enemy/
-
Pix4D. (n.d.). Do I need a high image overlap?. Retrieved from https://support.pix4d.com/hc/en-us/articles/202558969
-
GIS Geography. (n.d.). DEM vs DSM vs DTM: What’s the Difference?. Retrieved from https://gisgeography.com/dem-dsm-dtm-differences/
-
Thairath Online. (2025). PMU-B joins a network of partner researchers using “GeoAI” to support the recovery of Hat Yai from the flood crisis. As presented in the course lecture slides, Module 02 Anatomy Drone
-
Srivastava, P. (n.d.). Machine Learning Basics Part 1: What is Generative AI? How it is Different from AI Used Before. Medium. Retrieved from https://medium.com/@priyasrivastava18official/machine-learning-basics-part-1-what-is-generative-ai-how-it-is-different-from-ai-used-before-34c78433dced
-
Ultralytics. (n.d.). Ultralytics Platform. Retrieved from https://www.ultralytics.com/
-
Google. (n.d.). MediaPipe Studio. Retrieved from https://mediapipe-studio.webapps.google.com/home
Note: Content taken from the course's original schedule file (module topics, time slots and activity formats) does not cite external sources. The content and illustrations in the section “Supplementary part: Applying AI and drones to aerial mapping and geographic information systems” (Figures 5 to 13) were copied and edited directly from the course's actual presentation file for Module 02 Anatomy Drone, which is internal course property without attached external sources, except where the source is clearly stated in the content (Pix4D, GIS Geography and Thairath Online). The content and illustrations in the section “Supplementary part 2: A closer look at the Ultralytics Platform and the Mission AI Detection & Drone mission” (Figures 14 to 22) were copied and edited directly from the course's actual presentation file “Lesson 04: AI & Computer Vision at the Edge”, which is likewise internal course property, except where the original slides clearly cite external sources (Medium and MediaPipe Studio, items 9 and 11 above). The study “The Stealthy-Kidnapping Attack With a Learning-Based Model in Cyber-Physical Systems” referred to in Figure 17 appears as a title on the lecture slides without an attached external reference link, so it is cited only as it appears on the slides. Other in-depth explanations expanding on these topics cite external sources as stated in the content and the bibliography above.