Pain is an inevitable part of life, no matter one's age or gender. This study lends support for the importance of facial expression technology in assisting individuals with pain. The self-report system commonly used to detect discomfort is ineffective and cannot be used by all ages; thus, using a standardized formula for measuring pain would resolve this problem. Because it is easy to use and has a high degree of precision, facial monitoring technology is an important tool for measuring pain. Using deep learning techniques, this article suggests using 2D facial expressions and motion to sense pain. In this study, we made use of sequential pictures from the University of Northern British Columbia (UNBC) dataset. Deep learning has been used to train data and detect motion to aid in patient orientation. Our mechanism is capable of classifying pain into three categories: not painful, becoming be painful, and painful. Additionally, the system's performance is evaluated by comparing the findings to those received from a specialist physician. The precision of the no-pain classification is 99.75 percent, the initial pain classification is 92.93 percent, and the pain classification is 95.15 percent. Our study has developed a gold standard for pain monitoring to test for pain before hospitalization. It is straightforward, cost effective, and readily comprehended by both the general population and health care professionals. Additionally, this analysis may be applied to other screening methods, such as pain detection for infectious diseases.