In this paper, we design an improved weed detection model using YOLOv10, a deep learning-based object detection algorithm. YOLOv10 improves its performance compared to previous versions by adding an attention module, the PSA module. PSA is strong at recognising complex patterns in large areas because it uses some features of its own attention to reduce computation and learn global information. However, it may be inefficient for certain problems, such as weeds, which are generally small objects. Therefore, in this paper, we propose an improved YOLOv10 by applying another attention module, SENet, instead of the PSA module. Since, SENet learns the importance between channels, it can learn the features of weeds in more detail than the PSA module. In addition, SENet is lighter, less computationally intensive, and faster than the PSA module, so we conducted experiments by replacing the PSA module with SENet, which is suitable for weed detection. The experiment consisted of 200 training runs with a total of 14 classes, and we compared the performance through various performance evaluations. The experimental results showed that the FPS increased from 476.19 to 526.32, which is about 9.52% processing speed improvement. The mAP50-95 value increased from 88.7% to 88.3%, which shows that the proposed model is lighter than the existing model and performs similarly to the existing model.