Who said that you need massive cloud infrastructure for machine learning? Nextcloud 16 comes with a neural network that is open source and is running locally to make your data safer. https://blog.wuc.me/2019/04/25/nextcloud-suspicious-login-detection.html