This article uses artificial intelligence and big data to process the dialogs of the characters in A Dream of Red Mansions through Chinese psychoanalysis system, and obtains the prediction scores of the characters’ big-five personality. Then, the validity of this method is determined by examining the verification of the prediction scores by literature and fiction. Through the ecological identification and analysis of the personality characteristics in A Dream of Red Mansions, we find that Bao-Yu Jia in the novel has obvious openness, agreeableness, and extroversion; Dai-Yu Lin has very low extroversion, strong emotionality, and agreeableness; and Bao-Chai Xue has strong extroversion, agreeableness, and conscientiousness. The above prediction results are supported by relevant research literature and the novel itself. This shows that in the context of artificial intelligence and big data, the prediction of fictional characters’ personalities through literary intelligence analysis is helpful for us to understand the humanistic spirit or social idea behind literary works in a deeper and objective way. This research method is a beneficial supplement to the traditional literature and art research.