Cotton diseases cause low cotton production and fiber quality. Disease detection methods based on deep learning can integrate feature extraction and improve identification accuracy. We present an automatic cotton disease detection method to improve the identification accuracy of cotton disease. Cotton images are collected using a quadruped robot. ConvNeXt integrates the convolution neural network architecture with intrinsic superiority of transformer. The multiscale spatial pyramid attention (MSPA) module can help ConvNeXt concentrate on important regions of feature maps. ConvNeXt with the MSPA module shows the best recognition results of 97.2%, 99.7% and 100.0% on one competition dataset and two cotton datasets, respectively, with little increase in inference time. It indicates that the proposed model performs well in recognition accuracy with fast detection speed.
In arid regions characterized by extreme water scarcity, it is important to synergistically optimize both crop yield and water use. Irrigation strategies based on empirical knowledge overlook crops’ dynamic water needs and may cause water waste and yield loss. To address this issue, this paper proposes an intelligent irrigation scheduling method based on a crop growth model and an improved deep reinforcement learning (DRL) agent. We construct a high-fidelity cotton growth environment using the Decision Support System for Agrotechnology Transfer (DSSAT) model. The model was calibrated with local data from the Shihezi region, Xinjiang, to provide a reliable simulation platform for DRL agent training. We developed a temporal state representation module based on a Bidirectional Long Short-Term Memory (BiLSTM) network and an attention mechanism. This module captures dynamic trends in historical environmental information to focus on critical decision factors. The Soft Actor–Critic (SAC) algorithm was improved by integrating a feature attention mechanism to enhance decision-making precision. A dynamic reward function was designed based on the critical growth stages of cotton to incorporate agronomic prior knowledge into the optimization objective. Simulation results demonstrate that our proposed method can improve water use efficiency (WUE) by 39.0% (with an 8.4% increase in yield and a 22.1% reduction in water consumption) compared to fixed-schedule irrigation strategies. An ablation study further confirms that each of our proposed modules—BiLSTM, the attention mechanism, and the dynamic reward—makes a significant contribution to the final performance.