Straight leg raise rehabilitation exercises (for both lying and seated position) for lower limb injuries play a critical role in terms of stress on joints after the injury. The primary objective of the paper is to find how accurately and efficiently a single and a two IMU sensor-based system could classify SSLR (Seated straight leg raise) and LSLR (Lying straight leg raise) exercises using machine learning. Inertial Measurement Units (IMUs) that include accelerometer and gyroscope were calibrated and tested, individual and combined, for classified seating as well as lying exercise and for different demanded personalities. Individual IMUs achieved about 96 % accuracy in binary classification. However, the combined (two) IMUs achieved about 96.8 % accuracy. The merits of the proposed IMU based sensor system are that it is easy to install, cost effective and very useful for telemedical operations in pandemic situations like COVID19. On the basis of these results, it could be concluded that the accuracy of a single IMU sensor system and a two IMU sensor-based system is approximately 96% and both were efficiently able to classify SSLR and LSLR exercises as well as identify the individual performing the exercise.