I am currently using an isolation forest (from sklearn library) to detect anomalies in a data frame (basically it's a dynamic data frame more of a kind of time series I am. But I have certain criteria which dictate that if rows follow them I can confirm they are not anomalies. How can I use this knowledge to improve the accuracy of anomaly detection?
Before I further describe I'll say I am new to data science and AI; the question may sound utterly stupid but please bear with me. Now description:
I have just mentioned the isolation forest for reference but I am not bound to use it. I thought about using a small dnn or decision tree or doing hyperparameter optimization of anomaly method based on good row criteria; but in this case, I felt there were some issues, there will be high disbalance in the data class, an advantage of anomaly detection of deciding anomaly based on the current scope (i.e. they can adapt with the changes in statistics of the data frames) and also I think then the model will become susceptible to kind of positive feedback (i.e. error attracts more error kind of scenario). So I am trying to find something which do not consider the past (i.e. only consider the current time slot values which are used for anomaly detection) and kind of modify or instruct the anomaly detection algorithm because these are good points you should consider points nearer to this also good and based on this assumption do the anomaly detection.
I may be wrong in my approach, again the question may sound stupid but please correct me