This paper presents a deep learning-based target detection algorithm for automatic recognition of farmland pests, achieving a high average precision of 90.54%. A labeled pest database was established, and the Faster R-CNN algorithm was improved using an inception network for more accurate pest detection. The study demonstrates that this method significantly outperforms traditional pest identification techniques, enabling more efficient pest management in agriculture.