This study compares various algorithms for recognizing earthquake signals from smartphone accelerometers, ultimately finding that the fine k-nearest neighbor (k-NN) algorithm achieved the highest accuracy of 99.75%. The research involved collecting data from smartphone accelerometer sensors during different human activities and earthquake events, utilizing a series of signal processing techniques to discriminate between them. Results indicate significant differences in the characteristics of signals from human activities and earthquakes, highlighting the potential for crowdsourcing earthquake detection using smartphones.