question

AnuragShelar-8594 avatar image
0 Votes"
AnuragShelar-8594 asked SandervandeVelde42 commented

How to use Azure Anomaly Detection on IOT edge module?

I want to demo a POC which sends data from SimulatedTemperatureSensor available on Azure Marketplace. This data should be sent to Stream Analytics module on Edge and then Anomaly Detection Module Should send only anomaly data to IOT Hub.
I need some documentation, resources, blogposts which will help me do this task. The current resources speak more of the Cloud aspects of doing it. I want to do this on Edge Side. Needed help on this. @SandervandeVelde42 @SatishBoddu-MSFT @asergaz

azure-iot-hubazure-iot-edgeazure-stream-analyticsazure-anomaly-detector
· 2
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.

Hello @AnuragShelar-8594 Just checking in if you have had a chance to see the previous response. If the response is helpful, please click "Accept Answer" and upvote it.

2 Votes 2 ·

Yes @SatishBoddu-MSFT . The answer actual helped and I have accepted it.
Thanks.

Also, how do I write a query which will pickup both temperature and humidity for anomaly detection. For eg. I am using az3166 which is sending temperature and humidity data to IOT Hub. Now I want to detect an anomaly which considers both my parameters.

0 Votes 0 ·

1 Answer

SandervandeVelde42 avatar image
2 Votes"
SandervandeVelde42 answered SandervandeVelde42 commented

Hello @AnuragShelar-8594 ,

It is quite easy to roll out a Stream Analytics job as an Azure IoT Edge module that supports Anomaly Detection.

Just follow this blog post where your scenario is described in detail.

Be aware that this is based on machine learning like technology. So there are possible false positives or false negatives.

Do not act on the outcome of anomaly detection only. Use other sources of information too.


· 2
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.

Hey @SandervandeVelde42 , the blogpost was much more helpful. I wanted to know what difference does it make to run the anomaly detection on edge itself apart from the fact that it will run when there is no internet.

Also, how do I write a query which will pickup both temperature and humidity for anomaly detection. For eg. I am using az3166 which is sending temperature and humidity data to IOT Hub. Now I want to detect an anomaly which considers both my parameters.

thanks,
Anurag

0 Votes 0 ·

The edge detection will run without cloud access as any iot edge module does.

If a message has to be sent to the cloud, the edge hub module will store it until the connection is back. Then, all messages are sent from that persisted temp storage (extra features as TTL and prioritization are available).

Regarding the temperature and humidity, you have to write separate anomaly detection logic for values, both in the same job.

0 Votes 0 ·