The invention discloses a gait feature extraction method and a pedestrian identity recognition method based on gait features, and the method comprises the following steps: A, obtaining a region wherea pedestrian is located as a region of interest for each frame of gait image in a gait image sequence; B, segmenting a pedestrian target in the region of interest; C, acquiring joint point position information of the pedestrian target in each frame of gait image; D, based on joint point position information of the pedestrian target in each frame of gait image of the gait image sequence, carrying out gait period detection; and E, synthesizing a gait energy image corresponding to the gait image sequence according to the detected gait period, and taking the gait energy image as gait characteristics; based on the extracted gait characteristics, judging or identifying the pedestrian target by using a judgment network and a comparison network. According to the method, the problem of insufficientsample size in small sample classification in the field of gait recognition is well solved, and the algorithm is good in real-time performance.