The characteristic value is a value that can be identified by the training model. The characteristic value of the environment record information may include but is not limited to a Euclidean distance, a mean value of the Euclidean distance, a variance of the Euclidean distance, or another value. A type of the characteristic value of the environment record information is not specifically limited in this application. The training model is used to obtain, based on an input characteristic value of environment record information, a location change rate value corresponding to the input environment record information.
Specifically, the training model is obtained through training by using a machine learning algorithm after the mobile device collects training data and then extracts a feature of the training data. A training process is not specifically limited in this embodiment of the present invention. Any manner of obtaining the location change rate value of the mobile device by using the training model shall fall within the protection scope of this application.
The machine learning algorithm may include a support vector machine (English full name: Support Vector Machine, SVM), a neural network (English full name: Neural Network, NN), a random forest, and the like. A type of the machine learning algorithm is not specifically limited in this embodiment of the present invention.
S203. The mobile device adjusts a positioning cycle of the mobile device based on the location change rate value.
Specifically, the mobile device may adjust the positioning cycle of the mobile device based on the location change rate value in S203 by using the following Solution A or Solution B.