When the elderly enter the old age, their physical functions gradually decline; their physical strength, vision, and hearing are weakened; and their self-care ability gradually decreases with the increase of age. At the same time, it is accompanied by different degrees of anxiety and psychological problems. The rapid development of virtual reality technology in recent years provides a way to solve this problem, and high-performance computer and processing technology are the keys to directly affect the performance of the system. The existing research is more about the material and spiritual life of the elderly, but the research on their psychological status is relatively insufficient. From the perspective of mental health, this study makes a comprehensive and objective empirical study on the psychological status of family elderly. Based on virtual reality (VR), by extracting heart rate variability (HRV) features from the elderly, this paper establishes a model to identify the psychological pressure of family elderly, which solves the problem that the elderly have adverse effects on their body, mind, and life due to long-term psychological pressure. The paper analyzes the accuracy of KNN, CNN, and RFC models in identifying three psychological stress states: relaxation and low-pressure state, relaxation and medium-pressure state, and relaxation and high-pressure state. When the pressure is higher, the accuracy of the three models will be better than that of the lower pressure state. Under high pressure, the accuracy of CNN and RFC is close, but RFC is slightly better than CNN, and the accuracy of RFC model is as high as 95.02%.