Exercise has become a vital component of modern lifestyle to streamline the daily schedule. A heart monitoring device is essential for maintaining good health. Current solutions may delay notification if heart rate rises abruptly above the threshold level. These problems have been addressed by developing a real-time heart rate monitoring system. The methodology used in the proposed method is to predict near conditions for heart rate that lead to failure during exercise, notably in people between the ages of 21 and 40. The proposed work methodology empirically assesses the relationship between heart rate, relative risk, and confidence intervals. The relative risk and confidence intervals are calculated as (observed heart rate/6) and (96% of heart rate). The innovative aspect of the suggested method is that it offers a virtually flawless early warning during workout sessions. This analysis allows for the establishment of an appropriate limit, enabling safe monitoring of exercise activity. The least common marginal values for the incidence of heart failure were determined based on these factors and gender classification. Men between the ages of 21 and 30 have a secure zone limit of 120 and a maximum CI of 50%; men between the ages of 31 and 40 have a safe zone limit of 113 and a maximum CI of 55%; and men among the ages of 41 and 60 have a safe zone limit of 102 and a maximum CI of 50%.