question

yjay-4307 avatar image
0 Votes"
yjay-4307 asked Yael-2003 commented

Send new data to Deployed model

Hello,

We are sending data from a smartwatch -> IoT Central -> Event Hubs -> Data Explorer -> Blob Storage.

We are then using the blob storage as a datastore in Machine Learning, which we make a dataset of.

We deployed a model we trained locally to Azure Machine Learning.

We now want to send new data from the watch to the model to make predictions on.

We are wondering how we can do this?

Do we just update the dataset the same way we are currently sending the data? and if so, how can we then auto send it to the model?

Or is there another way to send this new data? Can we still send through blob storage? Or should we send the data directly from the watch to the webservice made by the model?

Thanks so much!

azure-machine-learningazure-blob-storageazure-event-hubsazure-iot-centralazure-data-explorer
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SandervandeVelde42 avatar image
1 Vote"
SandervandeVelde42 answered Yael-2003 commented

Hello @yjay-4307 ,

so you get new data from devices and you want to predict using that data?

Check out Azure Stream Analytics which can ingest messages from the Event Hub.

Then, you can Azure ML as a function on make decisions based on the incoming data using ML.

91901-image.png



image.png (51.2 KiB)
· 7
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @SandervandeVelde42,

Thanks so much for your reply, would calling the webservice (that was made after deploying the model) directly from the watch work as well?

0 Votes 0 ·

Hello @yjay-43,

yes, technically this could work. Keep in mind you pay twice for the same data (a call to the service, an answer comes back, send the answer to the IoT Hub).

you need to secure access to prevent paying for other accessing your model. You need to store the security token on your device.

As an alternative to a Stream Analytics job, you can use an Azure Function in the cloud instead (route messages from IoT Hub to your azure function which calls the ML). Consumption plan pricing includes a monthly free grant of 1 million requests and 400,000 GB-s of resource consumption per month per subscription in pay-as-you-go pricing across all function apps in that subscription

You can also try to run the ML model on your device...

Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer.



1 Vote 1 ·

Hi @SandervandeVelde42

Thanks so much for these solutions, very helpful!


What do you mean by:

a call to the service, an answer comes back, send the answer to the IoT Hub

Why does it send back to IoT hub?

0 Votes 0 ·
Show more comments