Node-RED custom node for time-series forecasting and anomaly detection using exponential smoothing. Current version 1.0.2, stable release. It forecasts the next value in a time series based on a configurable smoothing factor (alpha) and detects anomalies (sudden spikes/drops) using a running estimate of forecast error variance and a threshold in standard deviations. Offers an adaptive mode that adjusts alpha based on data volatility. Unlike general statistical libraries, this is specifically designed as a Node-RED node with status indicator and configurable settings, intended for predictive maintenance and real-time monitoring. Released under GPL-3.0.
npm install node-red-contrib-industrial-machine-forecastVerified import paths — ran on the pinned version, not inferred.
Node-RED node usage: install via npm, configure alpha and threshold, pass numeric payload to detect anomalies.
Ensure msg.payload is a number before sending to the node (e.g., use a Change node to convert).
Be aware that the node uses in-memory state; redeploying the flow resets the state. For persistent state, consider using a context store.
Tune the Std Devs threshold based on expected data variability. Start with 2-3 standard deviations and adjust.
Use a Change node to set msg.payload to a number, e.g., msg.payload = Number(msg.payload).
Ensure the first message sent to the node is a valid numeric payload. The node will initialize its state from the first message.
No dependency data recorded yet.