How does statistical (or AI-based) anomaly detection work, and what is its main drawback?
It learns a statistical profile of normal behaviour and alerts on significant deviations; the drawback is the long training needed to bring false alarms down to an acceptable level.
The IDS observes objects (users, files, applications) and records how they normally behave: what times of day someone logs in, how often an application is used, how long sessions last, how many logins fail. These measurements form a baseline. Any behaviour that deviates statistically significantly from it is reported, for example an account that suddenly logs in at 3 a.m. from a new host and touches ten times its usual number of files.
Machine learning can refine this profile continuously, so decisions improve over time.
The upside is that it can catch attacks nobody has a signature for. The downside is that "unusual" is not the same as "malicious": a new project, a holiday or a backup job also looks unusual. Getting the false-alarm rate down needs a lot of training data and tuning, and an attacker who moves slowly can gradually shift the baseline.
Go deeper:
Anomaly-based intrusion detection system (Wikipedia) — training and testing phases, the families of methods, and why false positives are the main weakness.
BSI-Leitfaden zur Einführung von Intrusion-Detection-Systemen: IDS-Grundlagen — treats statistics-based and AI-based anomaly detection as separate variants.