This paper introduces a topic interaction model based on local community detection for MOOCs, addressing the challenge of varying student abilities. The model uses topic modeling and local community detection algorithms to classify students' interaction abilities in discussion forums. The proposed model demonstrates higher accuracy compared to traditional assessment methods and enhances students' overall abilities through targeted communication and training.