The leaf area-to-fruit ratio (LAFR) is an important factor affecting fruit quality. Previous studies on LAFR have provided some recommendations for optimal values. However, these recommendations have been quite broad and lack effectiveness during the fruit thinning period. In this study, data on the LAFR and fruit quality of pears at 5 stages were collected by continuously girdling bearing branches throughout the entire fruit development process. Five different clustering algorithms, including KMeans, Agglomerative clustering, Spectral clustering, Birch, and Spectral biclustering, were employed to classify the fruit quality data. Agglomerative clustering yielded the best results when the dataset was divided into 4 clusters. The least squares method was utilized to fit the LAFR corresponding to the best quality cluster, and the optimal LAFR values for 28, 42, 63, 91, and 112 days after flowering were 12.54, 18.95, 23.79, 27.06, and 28.76 dm2 (the corresponding leaf-to-fruit ratio values were 19, 29, 36, 41, and 44, respectively). Furthermore, field verification experiments demonstrated that the optimal LAFR contributed to improving pear fruit quality, and a relatively high LAFR beyond the optimum value did not further increase quality. In summary, we optimized the LAFR of pear trees at different stages and confirmed the effectiveness of the optimal LAFR in improving fruit quality. Our research provides a theoretical basis for managing pear tree fruit load and achieving high-quality, clean fruit production.