Fall detection is a critical area of research due to its implications for public health, particularly among older adults more vulnerable to fall-related injuries. This study explores the application of pervasive computing and machine learning algorithms in detecting falls using accelerometer and gyroscope sensors. Leveraging a dataset obtained from smartphone sensors, the study employs data processing techniques and classification algorithms, including K-Nearest Neighbors (KNN) and Artificial Neural Networks (ANN), to differentiate fall events from other activities. Evaluation metrics such as accuracy, precision, recall, and F1-score are utilized to assess the performance of the models. The results demonstrate the effectiveness of both the ANN and KNN models in accurately predicting fall detection with high precision and recall scores. The study highlights the potential of pervasive computing systems and machine learning methods to enhance fall detection capabilities, contributing to the development of proactive measures for ensuring the safety and well-being of individuals at risk of falls. Future research directions include exploring alternative algorithms and sensor modalities to improve fall detection systems further.