Accurate and rapid discrimination between nodes and internodes in sugarcane is vital for automating planting processes, particularly for minimizing bud damage and optimizing planting material quality. This study investigates the potential of visible-shortwave near-infrared (Vis–SWNIR) spectroscopy (400–1000 nm) combined with machine learning for this classification task. Spectral data were acquired from the sugarcane cultivar Khon Kaen 3 at multiple orientations, and various preprocessing techniques were employed to enhance spectral features. Three machine learning algorithms, linear discriminant analysis (LDA), K-Nearest Neighbors (KNNs), and artificial neural networks (ANNs), were evaluated for their classification performance. The results demonstrated high accuracy across all models, with ANN coupled with derivative preprocessing achieving an F1-score of 0.93 on both calibration and validation datasets, and 0.92 on an independent test set. This study underscores the feasibility of Vis–SWNIR spectroscopy and machine learning for rapid and precise node/internode classification, paving the way for automation in sugarcane billet preparation and other precision agriculture applications.