The invention discloses an identification method of the cooking type of an electric cooker and an electric cooker. The method comprises the following steps: S1, controlling the electric cooker to perform heating in a mode of adjustment of heating average power till the electric cooker enters a first boiling stage; S2, detecting the temperature at the bottom of the electric cooker, and detecting the on-off state between a first electrode and a second electrode, so as to judge whether the first electrode is adhered to the second electrode; S3, identifying the cooking type of the electric cooker according to the temperature at the bottom and the frequency of adhesion between the first electrode and the second electrode; S4, obtaining a corresponding cooking parameter according to the cooking type, performing heating control on the electric cooker according to the corresponding cooking parameter, so as to enable the electric cooker to enter a second boiling state, and correcting the cooking type according to the temperature at the bottom and the working time when the electric cooker enters the second boiling stage. The method realizes the intelligent identification of the cooking type, and enhances the intelligent experience of the electric cooker.