# Machine learning with NR

**URL:** <https://discourse.nodered.org/t/machine-learning-with-nr/39606>\
**Category:** General\
**Created:** [23 January 2021 14:51 UTC](https://discourse.nodered.org/t/machine-learning-with-nr/39606 "2021-01-23T14:51:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex88](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alex88/32/55523_2.png) [@alex88](https://discourse.nodered.org/u/alex88)\
**Post date:** [23 January 2021 14:51 UTC](https://discourse.nodered.org/t/machine-learning-with-nr/39606/1 "2021-01-23T14:51:37Z")

</div>

Hi,

I have a project in mind to use machine learning to detect that a home automation sensor has failed.

It's very possible to just write a set of rules in JS to determine whether the sensor is working or not, but I'd like to delve a little into ML.

Has anyone tried this before?  
Can you point me in the right direction?

I have been playing with the machine learning v2 node, but it looks unmaintained. I have installed all the prerequisites and will just get on with reading about each component until I figure something out.

EDIT: I get you need quite a bit of data. I don't think this is an issue as sensor data over a period of time adds up and when you have a hundred of them it doesn't take long at all to accumulate a data set.

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [23 January 2021 15:23 UTC](https://discourse.nodered.org/t/machine-learning-with-nr/39606/2 "2021-01-23T15:23:49Z")

</div>

Hi Alex,

Although I'm aware that not all types of sensors can be predicted, it would be very useful to have something like you explain in Node-RED.

At my daily job we host a large series of servers.. Since last month we are using Dynatrace for monitoring both our servers and our applications. Dynatrace uses AI for calculating a baseline (based on what Dynatrace has learned in a moving window of the last 7 days), and uses that knowledge to detect abnormalities in the metric values of today. I must admit that I have become a huge fan of this kind of stuff. It is absolutely not always correct but it is a huge help: it is like you suddenly get 20 pairs of extra eyes to watch your graphs. Very useful.

Hopefully somebody with knowledge in this area can assist you here..  
Bart

---

<div class="post-metadata">

**Author:** ![alex88](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alex88/32/55523_2.png) [@alex88](https://discourse.nodered.org/u/alex88)\
**Post date:** [23 January 2021 15:32 UTC](https://discourse.nodered.org/t/machine-learning-with-nr/39606/3 "2021-01-23T15:32:00Z")

</div>

Thales Bart. Let's see what comes up.

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [23 January 2021 18:50 UTC](https://discourse.nodered.org/t/machine-learning-with-nr/39606/4 "2021-01-23T18:50:01Z")

</div>

Could this [article](https://jinglescode.github.io/time-series-forecasting-tensorflowjs/) be of any help to you? His Github [repository](https://github.com/jinglescode/time-series-forecasting-tensorflowjs) seems to be maintained recently. Moreover it is written in javascript, and based on tensorflow.js. So you should be able to run it with Node-RED, without having to install third party stuff...  
Perhaps you can contact the author, if you don't know how to get started with it...

---

<div class="post-metadata">

**Author:** ![alex88](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alex88/32/55523_2.png) [@alex88](https://discourse.nodered.org/u/alex88)\
**Post date:** [23 January 2021 19:23 UTC](https://discourse.nodered.org/t/machine-learning-with-nr/39606/5 "2021-01-23T19:23:19Z")

</div>

Thank you... I have been reading up on numpty, but I'll give this a look into!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [24 March 2021 19:23 UTC](https://discourse.nodered.org/t/machine-learning-with-nr/39606/6 "2021-03-24T19:23:58Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
