In the task of emotion inference, a common issue is the lack of common sense knowledge, particularly in the context of dialogue, where traditional research has failed to effectively extract structural features, resulting in lower accuracy in emotion inference. To address this, this paper proposes a dialogue emotion inference model based on Common Sense Enhancement and Graph Model (CEICG). This model integrates external common sense with graph model techniques by dynamically constructing nodes and defining diverse edge relations to simulate the evolution of dialogue, thereby effectively capturing the structural and semantic features of the conversation. The model employs two methods to incorporate external common sense into the graph model, overcoming the limitations of previous models in understanding complex dialogue structures and the absence of external knowledge. This strategy of integrating external common sense significantly enhances the model’s emotion inference capabilities, improving the understanding of emotions in dialogue. Experimental results demonstrate that the CEICG model outperforms six existing baseline models in emotion inference tasks across three datasets.