Fall detection and activity recognition with machine learning