There is provided a computer-readable medium storing a program causing a processor to execute a procedure. The processor is provided in a portable electronic apparatus. The procedure includes detecting acceleration in the gravitational acceleration direction of the portable electronic apparatus, determining whether or not the acceleration in the gravitational acceleration direction is a threshold value or less, the threshold value being stored in a determination threshold value table, and raising an alarm for prediction of stumbling of a user when the acceleration in the gravitational acceleration direction is the threshold value or less.