Effect of Quantization on Data-Driven Model Predictive Control of Quadcopters

The following project was my undergraduate research thesis for graduation with honors research distinction. You can find the published paper at: Knowledge Bank, Published 05/25.

This research project explores how quantized communication effects data-driven control of unmanned aerial vehicles (UAVs), focusing specifically on quadcopters. By integrating dither quantization into a Koopman operator-based Model Predictive Control (MPC) framework, the project investigates how reduced word length use conserves bandwidth and impacts system identification and flight performance. Using a multi-stage validation process including MATLAB simulations, Gazebo-based digital twin testing, and real-world experiments with the PX4 Starling Developer Kit, this work aims to bridge the gap between theoretical control models and their deployment on resource-constrained aerial platforms. The findings offer practical insights for designing reliable, low-bandwidth control systems in next-generation UAVs.

Background

Modern quadcopters are becoming increasingly reliant on data-driven control strategies to maintain stability and performance in complex environments. However, these systems are often deployed on embedded platforms with limited computational power, memory, and bandwidth, which poses challenges for real-time communication and control. One common method to address these constraints is quantization, the process of converting high-resolution continuous data into lower-bit discrete representations. While this technique reduces data transmission costs, it introduces quantization error, which can distort system identification and degrade control performance.

To mitigate this, dither quantization introduces random noise before quantizing and removes it afterward, helping to decorrelate the error from the signal and reduce bias. In this project, dither quantization is applied to both state and control data before they are used in training and deploying a Koopman-based MPC. The Koopman operator provides a linear surrogate model of the inherently nonlinear quadrotor dynamics by lifting the system into a higher-dimensional space using Extended Dynamic Mode Decomposition (EDMD). This allows for efficient real-time control even when the input data is coarsely quantized.

By systematically analyzing how quantization resolution impacts model accuracy and tracking performance, this work contributes to a growing body of research focused on deploying advanced control algorithms in low-resource environments.

Overview

Below are the key technical foundations that this research builds upon.

What is Quantization?

Quantization is the process of mapping a large set of input values to a smaller set of output values. This is critical in embedded systems where memory, processing power, or bandwidth are limited.

A uniform quantizer with resolution ε maps a real number x to:

q(x)= xxmin ε

The resolution ε is based on bit-depth b and the signal range:

ε= xmax xmin 2b

In dither quantization, noise w is added before quantizing and subtracted after:

x ~ = Q(x+w)w

This technique helps ensure that the quantization error is independent from the signal, which improves learning and control.

An example of quantization in image signal processing can be seen below. The image on the left shows the original image of a cat with full 24-bit RGB color array. A quantized version, down to 16 colors, is shown in the middle. And finally, a dither quantized version of the same image can be seen on the right.

While the quantized version of the image does degrade the RGB signals, you can still understand the image and background. When dithering, the error becomes independent of the true signal, and the colors are smoothed and banding is visibly reduced.

This example motivates the idea behind using this architecture in drone controls.

Koopman-Operator Theory

The Koopman operator lets us represent nonlinear systems as linear ones in a lifted feature space. For a system

xt+1 = f(xt)

We define observables ϕ(x), and apply the Koopman operator 𝒪 as:

𝒪ϕ(x) = ϕ(f(x))

This transforms nonlinear dynamics into linear evolution in a higher-dimensional space.

Model Predictive Control (MPC)

Model Predictive Control (MPC) computes optimal control actions by solving a constrained optimization problem over a future horizon. The controller solves:

minimize {ut} t=0Th ( xxref 2 + u 2 )

subject to:

xt+1 = f(xt,ut)

This formulation allows real-time optimization of control inputs under constraints.

Extended Dynamic Mode Decomposition (EDMD)

To build a Koopman model from data, we use Extended Dynamic Mode Decomposition with Control (EDMDc). Given snapshots of data, we solve:

ϕ(xt+1) Aϕ(xt)+But

Matrices A and B are learned from data and represent a linear model in the lifted space defined by ϕ(x).

Methods

The methodology is divided into three phases: numerical simulations, Gazebo-based digital twin testing, and hardware-in-the-loop (HITL) flight testing. Each phase builds upon the previous one to validate both theoretical and experimental performance under quantized data conditions.

Numerical Simulations

The first stage implements the full control and learning pipeline in MATLAB, allowing for controlled experimentation and detailed analysis.

  • Trajectory Generation: Random quadrotor trajectories are generated using a nonlinear PID-based simulator. These trajectories include position, velocity, orientation, and angular velocity states, as well as corresponding control inputs.
  • System Identification:

Results

Explore Next

Promotional Landing Page

Other Projects