# TinyML pipeline for efficient crack classification in UAV-based structural health inspections

**Authors:** Yuxuan Zhang, Arne Nürnberg, Luciano Sebastian Martinez Rau, Quynh Nguyen Phuong Vu, Yuchen Lu, Bengt Oelmann, Sebastian Bader

PMC · DOI: 10.1038/s41598-026-43534-4 · Scientific Reports · 2026-03-12

## TL;DR

This paper introduces a low-power TinyML system for classifying cracks in structures using drones, improving efficiency and reducing reliance on cloud computing.

## Contribution

The novel contribution is a fully self-contained TinyML pipeline for onboard crack classification with optimized accuracy and resource efficiency on a microcontroller.

## Key findings

- The optimized pipeline achieves an F1-score of 0.938, improving by 11.4% over existing methods.
- The system uses only 2.9 MB RAM and 309 KB flash with a latency of 461.6 ms per inference.
- Flight time on a DJI Mini 4 Pro UAV is reduced by only 4% compared to 24% with Jetson-based platforms.

## Abstract

Structural health monitoring (SHM) of civil, aerospace, and energy infrastructure increasingly relies on UAVs with vision sensors for efficient inspections. Crack classification is a central task, yet cloud-based inference introduces bandwidth, power, connectivity, and privacy challenges that limit its practicality. This study presents a fully self-contained Tiny Machine Learning (TinyML) pipeline for onboard crack classification on a milliwatt-level STM32H7 microcontroller. Using MobileNetV1x0.25 as the baseline, we systematically evaluate the full measurement pipeline, including image capture, preprocessing, and inference on a low-power embedded system. Two preprocessing strategies, a handcrafted sequence (grayscale, contrast, denoise, median, binarization) and a greedy algorithm-based composite method, are compared. Four compression techniques, namely post-training quantization (PTQ), quantization-aware training (QAT), pruning, and weight clustering, are assessed individually and in combination. The optimized pipeline achieves an F1-score of 0.938, an improvement of 11.4% over state-of-the-art deployments. At the same time, it requires only 2.9 MB RAM and 309 KB flash, with an end-to-end latency of 461.6 ms and an energy cost of 623.16 mJ per inference. On a DJI Mini 4 Pro UAV, continuous operation reduces flight time by just 1.31 minutes (4%), compared to 8 minutes (24%) when using Jetson-based platforms. Overall, this work delivers a reproducible benchmark for UAV-based SHM, demonstrating a practical balance of accuracy, resource efficiency, and energy consumption, and advancing the feasibility of on-device crack classification in highly resource-constrained environments.

## Full-text entities

- **Chemicals:** Crack (-)

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12987979/full.md

## Figures

11 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12987979/full.md

## References

14 references — full list in the complete paper: https://tomesphere.com/paper/PMC12987979/full.md

---
Source: https://tomesphere.com/paper/PMC12987979