The present invention relates to a method and an apparatus for deriving psychological state of a user from a text written by the user and recommending content to the user based on a machine learning model. The method for predicting a psychological state of a user based on a text comprises the steps of: receiving data sets including a text, anxiety classification information and patient health questionnaire (PHQ)-related information from a plurality of users; obtaining morpheme embedding by analyzing morphemes of the text; obtaining a first learning model with respect to a correlation between the morpheme embedding and the anxiety classification information by using machine learning including convolutional neural networks (CNNs) and long short-term memory models (LSTMs); and obtaining a second learning model for a correlation between the morpheme embedding and the PHQ-related information using the machine learning.
An apparatus for predicting the status of user's psychology and a method thereof