A model you train to classify activities based on motion sensor data.
- macOS 10.15+Beta
- Xcode 11.0+Beta
- Create ML
MLActivity to train a machine learning model that you can include in your app to classify user movements.
When you create an activity classification model, you train it with tabular data you collect from motions sensors, such as a device’s accelerometer and gyroscope. For example, you can gather sensor data from an Apple Watch to classify a person waving, shaking hands, or throwing a ball.
After you train an activity classifier, you save it as a Core ML model file with the
.mlmodel extension. You can then import this model file into an app that uses an activity classification model to recognize a person’s activity, based on their movements.