Artificial intelligence feedback has become a hot topic in second language writing research. Although previous studies have yielded fruitful findings, most of them have adopted a cross-sectional research design, failing to demonstrate the long-term effects of AI feedback. In view of this, the current study adopts a longitudinal design to study the effects of AI feedback on the writing proficiency of 72 English majors at a comprehensive university in northwest China. The writing proficiency was evaluated via lexical complexity, syntactic complexity and accuracy. Findings revealed that AI feedback had a significant positive effect on English majors' language accuracy and lexical complexity, but had no effect on their syntactic complexity. This study finally highlights a few implications for the use of AI in second language writing.