Patent ID: 11862773
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Electrical machinery, apparatus, energy (Electrical engineering)
Classification: CPC H  G  Y | IPC G  H

Claim 0:
1. A charging method, wherein the method comprises:
obtaining historical data that a user uses a terminal within a preset time period;
training, by using a preset machine learning algorithm, the historical data that the user uses the terminal to obtain a usage habit model of the user, wherein training the historical data comprises:
analyzing the historical data by using the preset machine learning algorithm; and
correcting an analysis result, and setting the corrected analysis result to the usage habit model of the user;

obtaining a current time and the usage habit model of the user when it is detected that a connection is established between the terminal and a charger;
matching the current time with the usage habit model of the user to obtain a charging intention of the user;
determining a charging mode corresponding to the obtained charging intention; and
charging the terminal according to the determined charging mode.