A Smartphone-Based System for Detecting Falls Using Anomaly Detection