Cavitation in rotating hydraulic machinery -- such as industrial pumps and hydropower turbines -- can cause blade and casing erosion, excessive vibration, noise and efficiency loss, posing significant operational and economic risks across industrial sectors. Reliable and scalable monitoring strategies are therefore essential, particularly under variable operating conditions in real-world environments. Recent advances in machine learning (ML) and deep learning (DL) have enabled data-driven approaches for cavitation detection based on operational sensor signals, yet a structured synthesis of these developments is lacking. This scoping review systematically analyzes measurement-based ML and DL approaches for cavitation monitoring, with the aim of identifying key trends, challenges and future research directions. Following PRISMA-ScR and JBI guidelines, 52 peer-reviewed studies published between 1996 and 2025 were evaluated, covering laboratory and field investigations across pumps and turbines and a wide range of model architectures. The analysis reveals that most studies are laboratory-based (∼ 80%), focus on pumps (∼ 70%) and rely on single-machine datasets (> 80%), limiting generalization across machines and operating conditions. Classical ML approaches remain relevant due to interpretability and robustness with limited data, while DL enables end-to-end learning from raw or time-frequency transformed signals, frequently achieving diagnostic accuracy above 95%. Hybrid frameworks combining DL-based feature extraction with classical classifiers are increasingly adopted. Key limitations across the literature include domain shifts between laboratory and field data, scarce or inconsistent labeling and a predominant focus on categorical cavitation severity levels.