The detection of beneficial microbes living within perennial ryegrass seed causing no apparent defects is challenging, even with the most sensitive and conventional methods, such as DNA genotyping. Using a near-infrared hyperspectral imaging system (NIR-HSI), we were able to discriminate not only the presence of the commercial NEA12 fungal endophyte strain but perennial ryegrass cultivars of diverse seed age and batch. A total of 288 wavebands were extracted for individual seeds from hyperspectral images. The optimal pre-processing methods investigated yielded the best partial least squares discriminant analysis (PLS-DA) classification model to discriminate NEA12 and without endophyte (WE) perennial ryegrass seed with a classification accuracy of 89%. Effective wavelength (EW) selection based on GA-PLS-DA resulted in the selection of 75 wavebands yielding 88.3% discrimination accuracy using PLS-DA. For cultivar identification, the artificial neural network discriminant analysis (ANN-DA) was the best-performing classification model, resulting in >90% classification accuracy for Trojan, Alto, Rohan, Governor and Bronsyn. EW selection using GA-PLS-DA resulted in 87 wavebands, and the PLS-DA model performed the best, with no extensive compromise in performance, resulting in >89.1% accuracy. The study demonstrates the use of NIR-HSI reflectance data to discriminate, for the first time, an associated beneficial fungal endophyte and five cultivars of perennial ryegrass seed, irrespective of seed age and batch. Furthermore, the negligible effects on the classification errors using EW selection improve the capability and deployment of optimized methods for real-time analysis, such as the use of low-cost multispectral sensors for single seed analysis and automated seed sorting devices.