As an important and nutrient-rich economic crop, apple is significantly threatened by leaf diseases, which severely impact yield, making the timely and accurate diagnosis and segmentation of these diseases crucial. Traditional segmentation models face challenges such as low segmentation accuracy and excessive model size, limiting their applicability on resource-constrained devices. To address these issues, this study proposes RMP-UNet, an efficient and lightweight model for apple leaf disease segmentation. Based on the traditional UNet architecture, RMP-UNet incorporates an efficient multi-scale attention mechanism (EMA) along with innovative lightweight reparameterization modules (RepECA) and multi-scale feature fusion dynamic upsampling modules (PagDy), optimizing feature extraction and fusion processes to improve segmentation accuracy while reducing model complexity. The experimental results demonstrate that RMP-UNet achieves superior performance compared to mainstream models across multiple metrics, including a mean Intersection over Union (mIoU) of 83.27%, mean pixel accuracy of 89.84%, model size of 9.26 M, and computational complexity of 21.55 G FLOPs, making it suitable for deployment in resource-constrained environments and providing an efficient solution for real-time apple leaf disease diagnosis.
Accurate apple origin identification and non-destructive internal quality evaluation are important for fruit traceability, quality grading, and post-harvest management. Unlike previous studies mainly focusing on origin classification, this study established a dual-task near-infrared spectroscopy framework integrating geographical origin classification and soluble solid content (SSC, °Brix) prediction for Fuji apples. Samples were collected from three representative production regions in China: Alar in Xinjiang, Yantai in Shandong, and Luochuan in Shaanxi. Near-infrared diffuse reflectance spectra were acquired from 375 apples, generating 3000 spectral samples for origin classification and 750 SSC-calibrated samples for sugar content prediction. For classification, six deep learning models were evaluated using standardized full-spectrum input without chemometric spectral preprocessing, and the Transformer achieved the best performance, with a test accuracy of 96.22%. For SSC regression, spectra were preprocessed using standard normal variate and Savitzky–Golay filtering. The DNN model achieved the best prediction performance, with MAE = 0.5958 °Brix, RMSE = 0.7333 °Brix, R2 = 0.8646, and Pearson r = 0.9338. These results indicate that near-infrared spectroscopy combined with deep learning can support both Fuji apple origin authentication and non-destructive local tissue SSC assessment.