AUTHOR=Mu Ye , Ni Ruiwen , Fu Lili , Luo Tianye , Feng Ruilong , Li Ji , Pan Haohong , Wang Yingkai , Sun Yu , Gong He , Guo Ying , Hu Tianli , Bao Yu , Li Shijun TITLE=DenseNet weed recognition model combining local variance preprocessing and attention mechanism JOURNAL=Frontiers in Plant Science VOLUME=Volume 13 - 2022 YEAR=2023 URL=https://www.frontiersin.org/journals/plant-science/articles/10.3389/fpls.2022.1041510 DOI=10.3389/fpls.2022.1041510 ISSN=1664-462X ABSTRACT=For the efficient and accurate identification of weed species in crop fields under complex environment, this paper proposes the use of local variance pre-processing method for background segmentation and data enhancement, which effectively removes the complex background and redundant information from the data, and prevents the experiment from overfitting, which can improve the accuracy rate significantly. Then, based on the optimization improvement of DenseNet network, Efficient Channel Attention (ECA) mechanism is introduced after the convolutional layer to increase the weight of important features, strengthen the weed features and suppress the background features; using the processed images to train the model, the accuracy rate reaches 97.98%, which is a great improvement, and the The comprehensive performance is higher than that of DenseNet, VGGNet-16, VGGNet-19, ResNet-50, and U-Net models. The experimental data show that the model and method we designed are well suited to solve the problem of accurate identification of crop and weed species in complex environments, laying a solid technical foundation for the development of intelligent weeding robots.