Anomaly detection with NeuralProphet #1653
Replies: 1 comment
-
I am not a developer of NeuralProphet, but I have some thoughts on this issue. |
Beta Was this translation helpful? Give feedback.
-
I am not a developer of NeuralProphet, but I have some thoughts on this issue. |
Beta Was this translation helpful? Give feedback.
-
My goals is to use NeuralProphet for anomaly detection within sales data.
I am using NeuralProphet to generate an in sample forecast of the sales data. I then calculate the residuals between the actual sales data value and forecast for each day. I then want to use the residuals for anomaly detection. I have defined changepoints (=red vertical lines) at which shifts in market share take place and the model shall be responsive here in order to only generate small residuals for these expected shifts. Sales are expected to be flat between changepoints if no anomalies (stock outs, quality issues etc.). if sales start to drop between changepoints, this is a sign of an anomaly. I would therefore want to model to generate residuals in this case. however the model follows the sales data 'too well' in my current setup. how can i make the model become less responsive between changepoints if sales start to fall (=generation of residuals) and at the same time very responsive at changepoints?
I would want the model to be less responsvie and generate residuals during the sales drops in April and August.
I have played aroung with trend_reg, which does not seem to have a strong effect on the in sample fc. i have also played aroung with learning_rate which is an approach that may help me, I believe.
model = NeuralProphet(loss_func='Huber', changepoints=changepoints, growth='discontinuous', weekly_seasonality=False, yearly_seasonality=False)
for regressor in competitor_columns:
model=model.add_future_regressor(name=regressor)
I have added future regressors (=market shares of all other competitors on the market)
Dok1.docx
Beta Was this translation helpful? Give feedback.
All reactions