The invention relates to an intelligent pillow which comprises an electric control device and a mechanical structure portion (a pillow support). The electric control device can adjust the height of the pillow automatically according to sleeping positions of a human body. The electric control device is composed of a forward sampling amplitude comparison circuit, a reverse sampling amplitude comparison circuit, a forward execution control circuit, a reverse execution control circuit, a motor driving circuit, a forward shut-down integrated switch, a reverse shut-down integrated switch, a vibration sensor circuit, a motor, and a position display and control circuit. A lifting plate is arranged at the middle position inside a casing of a pillow support structure, a pillow supporting plate is arranged on the lower portion of the casing, the motor is arranged on the lateral side inside the casing, and the motor is connected with a rotating rod through a coupler and a gearbox. A bevel gear is fixedly arranged at a terminal of the rotating rod and matched with a bevel gear wheel arranged at the bottom of the casing. The intelligent pillow can adjust the height of the pillow automatically along with the sleeping positions of the human body, can nurse the necks of people in sleep, and enables the necks to keep a normal physiological curvature. Therefore, comfortableness and quality of sleeping are improved, and a cervical disease and a spinal disease are prevented.