Abstract:Nighttime picking by robots is an effective way to significantly improve the operational efficiency of apple-picking robots. To solve the key problems such as the inability of apple-picking robots to accurately identify apples and distinguish different targets in the night environment, a night target recognition method for apple-picking robots was proposed based on a self-correcting illumination network. Based on the TracePro software, the illumination uniformity of the image acquisition area was analyzed, and the optimal installation angle of the compensation light source was determined. By comparing and analyzing the variation laws of the RGB and HSV component values of images under four compensation light sources, namely incandescent lamps, LED lamps, high-pressure sodium lamps, and halogen lamps, it was determined that incandescent lamps were the optimal compensation light sources suitable for the night recognition and detection of apple targets. YOLO v8s was selected as the backbone network, and the self-correcting illumination network SCINet was embedded into the YOLO v8 network, which solved the problems of local overexposure and local underexposure of the image. The attention mechanism CBAM was embeded into the backbone network to better extract the features of apple targets;the original UpSample module was replaced with the ultra-lightweight dynamic upsampler DySample module to enhance the detection ability of small targets such as apples deep in the tree canopy. Training and testing were conducted on the constructed nighttime apple dataset. The test results showed that the improved YOLO v8 model can achieve the recognition and classification of picking and non-picking apples in images under the night environment. The recall rate of the recognition model was 82.9%, the accuracy rate was 81.4%, and the mAP was 86.8%. The model was compared with mainstream models such as YOLO v5s, YOLO v7, YOLO v8n, YOLO v8s, YOLO v8m, and YOLO v11s. The mAP of the improved YOLO v8s model was increased by 3.9, 13.1, 12.9, 6.2, 2.7 and 5.7 percentage points respectively. The recall rates were increased by 0.9, 6.1, 7.2, 2.6, 2.3 and 1.8 percentage points respectively. The research results can provide technical support for the apple-picking robot’s operations in the night environment.