Supporting AI on device with Android and Apple using .Net Maui

Scott Johnson 0 Reputation points
2024-07-12T19:02:27.8933333+00:00

I'd like to leverage AI in a new app I'm working on for Android and Apple using .Net Maui. Both these platforms have or are implementing AI on the devices.

I've seen references to using AI services on the internet, however I cannot guarantee internet access while using the application. In fact, I can pretty much say they will not have access more than 10% of the time while using the app so this means it must be on device.

All data that the application will be referencing is already in a SQL express database on the device with additional data that I need to bring in. It's less than 100 mb total in data.

Anyone aware of a library that supports on device AI in .Net Maui?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,207 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 61,186 Reputation points
    2024-07-12T21:04:23.65+00:00

    to run an AI engine on a device requires optimized code. Both IOS and Android on working on supporting AI engines natively, but the trained model will need to be compiled to the native engine.

    so in practice you will build and train a model. then covert to model format supported by the devices you want to support. your will then build a native wrapper around these models, which is callable from Maui. You should be able to make the api similar for all platforms.

    if you are using an already trained model, you might find it has cross platform support. as time goes on, these will become more available.

    0 comments No comments