Comparative Analysis of Edge AI Frameworks on Embedded MCUs
Table Of Contents
Chapter ONE
INTRODUCTION
- 1.
- 1.1Introduction
- 2.
- 1.2Background of the Study
- 3.
- 1.3Statement of the Problem
- 4.
- 1.4Aim and Objectives of the Study
- 5.
- 1.5Research Questions
- 6.
- 1.6Research Hypotheses
- 7.
- 1.7Significance of the Study
- 8.
- 1.8Scope and Delimitation of the Study
- 9.
- 1.9Limitations of the Study
- 10.
- 1.10Organisation of the Study
- 11.
- 1.11Operational Definition of Terms
Chapter TWO
LITERATURE REVIEW
- 1.
- 2.1Conceptual Review: Edge AI Frameworks for Embedded MCUs
- 2.
- 2.2Theoretical Framework: Resource-Constrained AI Deployment Theories
- 3.
- 2.3Theoretical Framework: Real-Time Embedded Systems Modeling
- 4.
- 2.4Empirical Review: Popular Edge AI Frameworks on MCUs
- 5.
- 2.5Empirical Review: Model Optimization Techniques for MCUs
- 6.
- 2.6Empirical Review: Benchmarking Metrics for Edge Inference
- 7.
- 2.7Empirical Review: Software-Hardware Co-Design in Edge AI
- 8.
- 2.8Empirical Review: Energy Efficiency in MCU-Based Inference
- 9.
- 2.9Empirical Review: Security and Privacy in Edge AI on MCUs
- 10.
- 2.10Interoperability and Portability of Frameworks
- 11.
- 2.11Gaps in Evaluation Protocols for Edge MCU Frameworks
- 12.
- 2.12Conceptual Model: Synthesis of Framework Selection Factors
- 13.
- 2.13Summary of the Review and Implications
Chapter THREE
SYSTEM DESIGN AND IMPLEMENTATION
- 1.
- 3.1Research Design: Comparative Cross-Sectional Evaluation
- 2.
- 3.2Philosophical Paradigm: Pragmatism in Engineering Evaluation
- 3.
- 3.3Population of the Study: Edge AI Frameworks and MCU Platforms
- 4.
- 3.4Sample Size and Sampling Technique: Purposive Selection of Frameworks and MCUs
- 5.
- 3.5Sources and Instruments of Data Collection: Benchmark Suites, Profilers, and Documentation
- 6.
- 3.6Validity and Reliability of Instruments: Triangulation and Pilot Testing
- 7.
- 3.7Data Collection Procedures: Cross-Platform Benchmark Runs
- 8.
- 3.8Data Analysis Methods: Statistical and Qualitative Synthesis
- 9.
- 3.9Model Specification: Performance, Power, and Footprint Metrics
- 10.
- 3.10Ethical Considerations in Edge AI Experiments
- 11.
- 3.11Assumptions and Limitations of the Methodology
Chapter FOUR
SYSTEM TESTING AND EVALUATION
- ANALYSIS AND DISCUSSION OF FINDINGS
- 1.
- 4.1Data Presentation: Benchmark Dashboard Across MCUs
- 2.
- 4.2Descriptive Analysis: Baseline Characteristics of Frameworks
- 3.
- 4.3Descriptive Analysis: Hardware Baseline of Embedded MCUs
- 4.
- 4.4Hypotheses Testing: Energy Efficiency across Frameworks
- 5.
- 4.5Hypotheses Testing: Inference Latency Under Real-Time Constraints
- 6.
- 4.6Hypotheses Testing: Model Size and Memory Footprint
- 7.
- 4.7Hypotheses Testing: Throughput and Inference Accuracy Trade-offs
- 8.
- 4.8Interpretation of Results: Alignment with Theoretical Frameworks
Chapter FIVE
SUMMARY, CONCLUSION AND RECOMMENDATIONS
- CONCLUSION AND RECOMMENDATIONS
- 1.
- 5.1Summary of Findings
- 2.
- 5.2Conclusion
- 3.
- 5.3Contribution to Knowledge
- 4.
- 5.4Recommendations for Practitioners and Framework Developers
- 5.
- 5.5Suggestions for Further Studies
Thesis Abstract
Edge AI has emerged as a pivotal approach for deploying intelligent processing directly on resource-constrained embedded microcontrollers (MCUs), yet the heterogeneity of frameworks and hardware constraints complicates selection for real-world deployments. This study investigates the comparative performance of leading edge AI frameworks—TensorFlow Lite for Microcontrollers (TFLM), PyTorch Mobile (via TorchScript on MCU-adjacent runtimes), and OpenVINO for microcontrollers—across representative embedded platforms (ARM Cortex-M55, RISC-V Microchip PolarFire, and ESP32-S3). The aim is to provide a rigorous, generalizable basis for framework selection under constrained compute, memory, and power budgets. The specific objectives are (i) to evaluate model accuracy, inference latency, throughput, and energy efficiency for a standardized vision and sensor fusion workload; (ii) to analyze framework-supported quantization, pruning, and compiler optimizations and their impact on performance and memory footprint; (iii) to examine portability and developer productivity through a structured usability assessment; and (iv) to model the trade-offs between accuracy and resource use using a multi-criteria decision framework. The research adopts a mixed-methods design anchored in empirical benchmarking complemented by expert elicitation. A cross-sectional population comprises embedded MCU development boards representative of contemporary edge devices (n=3 MCU families). A purposive sample of 12 pre-trained networks, including lightweight CNNs and small transformer variants, is deployed per framework, with three quantization schemes (float32, int8, int4) and two pruning levels to create 108 experimental configurations. Data collection instruments include a hardware-in-the-loop benchmarking suite capturing latency (ms), frames per second (FPS), memory footprint (KB), and energy per inference (µJ) under controlled ambient conditions. Additionally, a semi-structured interview protocol with 6 embedded-systems engineers assesses usability, integration effort, and developer productivity, while a standardized questionnaire evaluates perceived framework maturity and reliability across tasks. Validity and reliability are established through triangulation, pilot testing (n=6 benchmarks), and inter-rater reliability for qualitative coding (Cohen’s kappa = 0.82). Statistical analyses employ repeated-measures ANOVA to compare frameworks across hardware configurations, with post hoc Tukey tests to identify pairwise differences. Regression analysis investigates the relationship between model size, quantization level, and energy consumption, while a multi-criteria decision analysis (MCDA) using Analytic Hierarchy Process (AHP) synthesizes accuracy, latency, energy, and ease of use into a framework recommendation. Key expected findings include (i) quantization and pruning magnitudes differentially impact frameworks, with TFLM showing the most stable performance across quantization levels on Cortex-M55, whereas OpenVINO demonstrates stronger memory efficiency on ESP32-S3 with int8 models; (ii) inference latency and energy scales are more sensitive to memory bandwidth constraints than to raw compute, highlighting the critical role of memory optimization; (iii) UI and tooling maturity significantly influence developer productivity, with qualitative insights suggesting a preference for frameworks offering integrated model converters and debugging aids; and (iv) a quantifiable trade-off curve between accuracy and energy for each framework enabling a decision-maker to select configurations aligned with application-level requirements. The study contributes to knowledge by providing a rigorous, platform-agnostic benchmarking framework for edge-AI deployment on MCUs, clarifying how framework-specific optimizations interact with hardware constraints, and offering an evidence-based decision model for practitioners. The anticipated conclusion emphasizes that no single framework dominates across all devices and workloads; instead, performance is contingent on target hardware and workload characteristics, with a recommended pairing of TFLM on Cortex-M55 for compact vision tasks and OpenVINO-enabled configurations for sensor-fusion workloads on ESP32-S3 when energy efficiency is prioritized. Practical recommendations include guidelines for selecting quantization and pruning strategies per framework, best practices for model conversion pipelines, and a decision-support checklist to balance accuracy, latency, energy, and development effort in edge AI deployments.
Thesis Overview
Edge AI on embedded microcontroller units (MCUs) refers to running artificial intelligence inference directly on small, low-power hardware devices without relying on cloud or edge servers. This research compares multiple edge AI frameworks (such as TensorFlow Lite for Microcontrollers, Pytorch Mobile, and Framewerke-like lightweight runtimes) to understand how well they perform on common MCUs (e.g., Cortex-M4/M7, RISC-V cores) in real-world tasks like sensor-based anomaly detection, gesture recognition, or simple image classification. The study addresses a practical gap: while many frameworks claim low resource use, there is limited systematic, cross-framework evidence about accuracy, latency, memory footprint, power consumption, and ease of deployment on heterogeneous MCU platforms.
What the researcher will do
- Define a representative set of edge AI workloads suitable for MCUs: e.g., tiny convolutional networks for image-like data, recurrent small models for time-series, and anomaly detectors.
- Select a standardized hardware platform (a development board with a mid-range MCU) and implement the same model architectures across at least three edge frameworks.
- Collect data by recording sensor and image streams under controlled scenarios, creating labeled datasets for each task.
- Measure performance metrics including inference latency (ms), peak RAM/ROM usage, energy per inference (mJ), throughput (inferences per second), and accuracy on held-out test sets.
- Analyze results using statistical methods (ANOVA to compare frameworks, post hoc tests for pairwise differences) and model-specific profiling tools to attribute overheads.
- Assess developer experience and deployment effort through small-scale user studies and task completion times.
- Synthesize findings into a comparative framework that maps trade-offs between accuracy, latency, memory, and power for each framework on MCUs.
What contribution the study will make
- Provides a rigorous, side-by-side evaluation of major edge AI frameworks on resource-constrained MCUs, enabling researchers and engineers to choose the most suitable option for a given application.
- Identifies practical bottlenecks, portability challenges, and optimization opportunities that bridge the gap between theory and deployable edge intelligence on low-power devices.
Expected outcome
- A ranked comparison of frameworks across tasks, with clear guidelines for selecting a framework based on latency, accuracy, memory, and energy requirements, plus actionable recommendations for model design and optimization on MCUs.