r/embedded • • May 13 '25

Embedded AI

Has anyone here been dabbling with any embedded AI. If so what have you been doing with it and how was your experience ?

0 Upvotes

32 comments sorted by

8

u/Huge-Leek844 May 13 '25

Yes. Detect driver drowsiness based on sensors but no camera. Vehicle impacts detection and classification. Some road classification. Vehicle dynamics (only experimental).

The workflow is to use tensor flow lite and embed the weights on neural Processing units. The sensors are read and processed in a microcontroller or a DSP. 

OR

Just put the weights on a ECU if simple enough. 

So the chip may contain a CPU, a DSP, several NPUs. 

1

u/zd4yg0n May 13 '25

That sounds interesting. Are you guys doing OTA updates to the software?

2

u/hero_of_spring May 13 '25

For a uni project i stuck a devkit to a skateboard and recorded IMU Data while people who know how to skate did one of five different tricks. Then a tflite model was trained on the data and deployed to the devkit for trick detection.

2

u/zd4yg0n May 13 '25

That's cool. It's always nice to see projects like this

2

u/pylessard May 13 '25

My job is to accelerate ML on embedded device with dedicated accelerators. Compiler modification, device driver, benchmarking/profiling. Trying to stay up to date with latest tech. 

Do you have specific questions?

1

u/zd4yg0n May 13 '25

Im just curious how the deployment process is once the device is out in the wild. Are you doing OTA updates? How difficult and challenging it is. How does one orchestrate all the changes that it may need eventually.

2

u/pylessard May 13 '25

Oh, that's out of my work scope. But it shouldn't be really different than any other firmware updates. I know there are some trends to have the devices connected to a cloud where the device can train a model with real-time data and the cloud can push updated models. I'm not involved at that level, so I can't say much.

You might want to know that there are some model compilers out there that reads a .onnx and spit a .o. once you have, ML or not, it's the same

2

u/Fidus01 Jun 07 '25

Definitely — embedded AI is gaining traction, especially for use cases where sending data to the cloud isn't ideal (latency, privacy, or bandwidth concerns). We’ve seen it used for things like:

Visual anomaly detection (e.g., spotting defects on a production line)

Sensor fusion + gesture recognition in wearables

Predictive maintenance using vibration data

Voice wake-word detection on ultra-low power devices

The key is choosing the right balance of model complexity vs. hardware constraints.

The biggest lesson: don’t try to run a large model on a tiny chip. Start small, prune aggressively, and test early. Real-time performance + low memory is a tough combo, but it's doable with the right architecture.

What kind of project are you thinking about?

1

u/zd4yg0n Jun 07 '25

My background is in infrastructure and devops. So I was looking at building a platform for easing the deployment process of AI onto IoT and embedded devices.

10

u/kisielk May 13 '25

I've been deploying ML DSP to audio devices. I'd say the ecosystem is... fragmented. A lot of vendors were pushing tflite-micro which always felt pretty beta / unfinished, and now it seems Google has kind of sidelined it like they do many projects.

9

u/Jadeaffenjaeger May 13 '25

I work on ML model deployment to microcontrollers professionally.

Obviously you are generally quite limited in terms of memory and compute, but the upper end of the device line up is starting to have dedicated NPU coprecessors that alleviate at least the compute part to some extent. The most recent top-end MCUs should be capable of running small Yolo variants for object detection in real time.

For deployment, Tensorflow lite micro is a runtime environment that runs .tflite flatbuffer files which can be exported from Tensorflow. I would call this the most mature solution as of today. It's a bit of a pain to work with, but then so is most embedded software, I guess. It runs on anything down to 8-Bit Arduinos, so you are really only limited by what you can fit on your MCU.

In terms of models, obviously you are not going to run an LLM on a microcontroller. Audio applications (keyword spotting etc.) and machine vision are quite popular applications. Small ML models for monitoring of industrial equipment is also an increasingly hot topic.

0

u/[deleted] May 13 '25

do you think will be a lot on demand embedded ai engineers in the near future?

2

u/Jadeaffenjaeger May 13 '25 edited May 13 '25

Obviously these things might change very rapidly, but for the time being, I would say it's a niche with a few applications where it makes sense. I don't see any upscaling in demand that would be even close to comparable with Cloud AI in the near future.

1

u/mrtlo May 13 '25

We use ML for audio and video processing, running on NPU and/or DSP cores, or sometimes just on the main ARM cores even.

It's only going to get bigger as the SOC capabilities grow.

1

u/lazyear May 13 '25

I would just say that ML != LLMs. You can have classical ML (linear discriminant, random forests, regression, even small NNs) models that use very few parameters/memory requirements but are very useful

1

u/chunky_lover92 May 14 '25

I run an audio preclassifier, but then I send audio to the cloud for the real AI. This is basically how alexa works to.

1

u/DaemonInformatica May 15 '25

Been looking into 'TinyML' back when I was playing with an Arduino Nano 33.. But nothing concrete. Looked pretty solid though.

1

u/_EHLO Nov 22 '25

I've just released a new version of my Neural-Networks library for MCUs. What have I been doing with it? here's an (anecdotal) edge-case example: "ATtiny85 - Image recognition via the (internal) 512-Byte EEPROM".

1

u/_EHLO Nov 22 '25

Oh.. and have I mentioned it? it also supports SIMD acceleration for ESP32-S3

1

u/_EHLO Nov 22 '25

however I'm struggling to find a job :P

1

u/Bug13 May 13 '25

I have not use it myself, but I think this is cool.

https://openmv.io/collections/all-products

0

u/Cipepote May 13 '25

I’ve heard about TinyML and wanted to try it out but I could not find the time. Anyone has experience with it? Is it really for embedded?

73

u/[deleted] May 13 '25

[removed] — view removed comment

4

u/Calm-Success-5942 May 13 '25

But we are entering a new era of productivity with AI powered devices!!! Intelligent systems capable of multiplying our productivity 10 times!!!!

1

u/iceink May 13 '25

"a new era of replacing highly skilled workers with machines that cost pennies to the hour so we can make the work force even MORE desperately behind!!" is what they're really hopeful for when they say this

42

u/[deleted] May 13 '25

[removed] — view removed comment

1

u/SegFaultSwag May 15 '25

Don’t be absurd, that sort of thing will never exist

1

u/Working_Opposite1437 May 14 '25

AI in terms of machine learning and pattern/signal classification is pretty much the standard in embedded for 30 years. You better undo your melting.