In neurocritical care, data from multiple biosensors are continuously measured, but only sporadically acknowledged by the attending physicians. In contrast, machine learning (ML) tools can analyze large amounts of data continuously, taking advantage of underlying information. However, the performance of such ML-based solutions is limited by different factors, for example, by patient motion, manipulation, or, as in the case of external ventricular drains (EVDs), the drainage of CSF to control intracranial pressure (ICP). The authors aimed to develop an ML-based algorithm that automatically classifies normal signals, artifacts, and drainages in high-resolution ICP monitoring data from EVDs, making the data suitable for real-time artifact removal and for future ML applications. In their 2-center retrospective cohort study, the authors used labeled ICP data from 40 patients in the first neurocritical care unit (University Hospital Zurich) for model development. The authors created 94 descriptive features that were used to train the model. They compared histogram-based gradient boosting with extremely randomized trees after building pipelines with principal component analysis, hyperparameter optimization via grid search, and sequential feature selection. Performance was measured with nested 5-fold cross-validation and multiclass area under the receiver operating characteristic curve (AUROC). Data from 20 patients in a second, independent neurocritical care unit (Charité - Universitätsmedizin Berlin) were used for external validation with bootstrapping technique and AUROC. In cross-validation, the best-performing model achieved a mean AUROC of 0.945 (95% CI 0.92-0.969) on the development dataset. On the external validation dataset, the model performed with a mean AUROC of 0.928 (95% CI 0.908-0.946) in 100 bootstrapping validation cycles to classify normal signals, artifacts, and drainages. Here, the authors developed a well-performing supervised model with external validation that can detect normal signals, artifacts, and drainages in ICP signals from patients in neurocritical care units. For future analyses, this is a powerful tool to discard artifacts or to detect drainage events in ICP monitoring signals.