The invention discloses a riding vehicle attitude recognition and alarm method. The method includes steps: S1, acquiring components, in three axial directions, of an attitude angle detected by a gyroscope, and adopting an attitude fusion algorithm to respectively correct attitude angles, including a pitch angle agx, a yaw angle agy and a roll angle agz, fused in the three axial directions by the gyroscope and angular speeds gyrox, gyroy and gyroz around the three axial directions; S2, judging whether the angular speeds exceed a set slam collision angular speed threshold or not; if yes, turningto the step S3, and if not, turning to the step S4; S3, starting base station positioning and sending alarm information, adopting the attitude fusion algorithm to correct the attitude angles of the gyroscope, and judging whether the attitude angles exceed a set erection threshold or not; if not, turning to the step S3, and if yes, returning to the step S1; S4, judging whether the attitude anglesexceed a set inclination attitude angle threshold or not; if yeas, turning to the step S3, and if not, returning to the step S1.